configure 399 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for package-unused version-unused.
  4. #
  5. # Report bugs to <libmpx>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1
  161. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  162. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  165. PATH=/empty FPATH=/empty; export PATH FPATH
  166. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  167. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  168. if (eval "$as_required") 2>/dev/null; then :
  169. as_have_required=yes
  170. else
  171. as_have_required=no
  172. fi
  173. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  174. else
  175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  176. as_found=false
  177. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  178. do
  179. IFS=$as_save_IFS
  180. test -z "$as_dir" && as_dir=.
  181. as_found=:
  182. case $as_dir in #(
  183. /*)
  184. for as_base in sh bash ksh sh5; do
  185. # Try only shells that exist, to save several forks.
  186. as_shell=$as_dir/$as_base
  187. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  188. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. CONFIG_SHELL=$as_shell as_have_required=yes
  190. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  191. break 2
  192. fi
  193. fi
  194. done;;
  195. esac
  196. as_found=false
  197. done
  198. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  199. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  200. CONFIG_SHELL=$SHELL as_have_required=yes
  201. fi; }
  202. IFS=$as_save_IFS
  203. if test "x$CONFIG_SHELL" != x; then :
  204. # We cannot yet assume a decent shell, so we have to provide a
  205. # neutralization value for shells without unset; and this also
  206. # works around shells that cannot unset nonexistent variables.
  207. BASH_ENV=/dev/null
  208. ENV=/dev/null
  209. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  210. export CONFIG_SHELL
  211. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  212. fi
  213. if test x$as_have_required = xno; then :
  214. $as_echo "$0: This script requires a shell more modern than all"
  215. $as_echo "$0: the shells that I found on your system."
  216. if test x${ZSH_VERSION+set} = xset ; then
  217. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  218. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  219. else
  220. $as_echo "$0: Please tell bug-autoconf@gnu.org and libmpx about your
  221. $0: system, including any error possibly output before this
  222. $0: message. Then install a modern shell, or manually run
  223. $0: the script under such a shell if you do have one."
  224. fi
  225. exit 1
  226. fi
  227. fi
  228. fi
  229. SHELL=${CONFIG_SHELL-/bin/sh}
  230. export SHELL
  231. # Unset more variables known to interfere with behavior of common tools.
  232. CLICOLOR_FORCE= GREP_OPTIONS=
  233. unset CLICOLOR_FORCE GREP_OPTIONS
  234. ## --------------------- ##
  235. ## M4sh Shell Functions. ##
  236. ## --------------------- ##
  237. # as_fn_unset VAR
  238. # ---------------
  239. # Portably unset VAR.
  240. as_fn_unset ()
  241. {
  242. { eval $1=; unset $1;}
  243. }
  244. as_unset=as_fn_unset
  245. # as_fn_set_status STATUS
  246. # -----------------------
  247. # Set $? to STATUS, without forking.
  248. as_fn_set_status ()
  249. {
  250. return $1
  251. } # as_fn_set_status
  252. # as_fn_exit STATUS
  253. # -----------------
  254. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  255. as_fn_exit ()
  256. {
  257. set +e
  258. as_fn_set_status $1
  259. exit $1
  260. } # as_fn_exit
  261. # as_fn_mkdir_p
  262. # -------------
  263. # Create "$as_dir" as a directory, including parents if necessary.
  264. as_fn_mkdir_p ()
  265. {
  266. case $as_dir in #(
  267. -*) as_dir=./$as_dir;;
  268. esac
  269. test -d "$as_dir" || eval $as_mkdir_p || {
  270. as_dirs=
  271. while :; do
  272. case $as_dir in #(
  273. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  274. *) as_qdir=$as_dir;;
  275. esac
  276. as_dirs="'$as_qdir' $as_dirs"
  277. as_dir=`$as_dirname -- "$as_dir" ||
  278. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  279. X"$as_dir" : 'X\(//\)[^/]' \| \
  280. X"$as_dir" : 'X\(//\)$' \| \
  281. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  282. $as_echo X"$as_dir" |
  283. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)[^/].*/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\).*/{
  296. s//\1/
  297. q
  298. }
  299. s/.*/./; q'`
  300. test -d "$as_dir" && break
  301. done
  302. test -z "$as_dirs" || eval "mkdir $as_dirs"
  303. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  304. } # as_fn_mkdir_p
  305. # as_fn_append VAR VALUE
  306. # ----------------------
  307. # Append the text in VALUE to the end of the definition contained in VAR. Take
  308. # advantage of any shell optimizations that allow amortized linear growth over
  309. # repeated appends, instead of the typical quadratic growth present in naive
  310. # implementations.
  311. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  312. eval 'as_fn_append ()
  313. {
  314. eval $1+=\$2
  315. }'
  316. else
  317. as_fn_append ()
  318. {
  319. eval $1=\$$1\$2
  320. }
  321. fi # as_fn_append
  322. # as_fn_arith ARG...
  323. # ------------------
  324. # Perform arithmetic evaluation on the ARGs, and store the result in the
  325. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  326. # must be portable across $(()) and expr.
  327. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  328. eval 'as_fn_arith ()
  329. {
  330. as_val=$(( $* ))
  331. }'
  332. else
  333. as_fn_arith ()
  334. {
  335. as_val=`expr "$@" || test $? -eq 1`
  336. }
  337. fi # as_fn_arith
  338. # as_fn_error ERROR [LINENO LOG_FD]
  339. # ---------------------------------
  340. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  341. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  342. # script with status $?, using 1 if that was 0.
  343. as_fn_error ()
  344. {
  345. as_status=$?; test $as_status -eq 0 && as_status=1
  346. if test "$3"; then
  347. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  348. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  349. fi
  350. $as_echo "$as_me: error: $1" >&2
  351. as_fn_exit $as_status
  352. } # as_fn_error
  353. if expr a : '\(a\)' >/dev/null 2>&1 &&
  354. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  355. as_expr=expr
  356. else
  357. as_expr=false
  358. fi
  359. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  360. as_basename=basename
  361. else
  362. as_basename=false
  363. fi
  364. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  365. as_dirname=dirname
  366. else
  367. as_dirname=false
  368. fi
  369. as_me=`$as_basename -- "$0" ||
  370. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  371. X"$0" : 'X\(//\)$' \| \
  372. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  373. $as_echo X/"$0" |
  374. sed '/^.*\/\([^/][^/]*\)\/*$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\/\)$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\).*/{
  383. s//\1/
  384. q
  385. }
  386. s/.*/./; q'`
  387. # Avoid depending upon Character Ranges.
  388. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  389. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  390. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  391. as_cr_digits='0123456789'
  392. as_cr_alnum=$as_cr_Letters$as_cr_digits
  393. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  394. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  395. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  396. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  397. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  398. sed -n '
  399. p
  400. /[$]LINENO/=
  401. ' <$as_myself |
  402. sed '
  403. s/[$]LINENO.*/&-/
  404. t lineno
  405. b
  406. :lineno
  407. N
  408. :loop
  409. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  410. t loop
  411. s/-\n.*//
  412. ' >$as_me.lineno &&
  413. chmod +x "$as_me.lineno" ||
  414. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  415. # Don't try to exec as it changes $[0], causing all sort of problems
  416. # (the dirname of $[0] is not the place where we might find the
  417. # original and so on. Autoconf is especially sensitive to this).
  418. . "./$as_me.lineno"
  419. # Exit status is that of the last command.
  420. exit
  421. }
  422. ECHO_C= ECHO_N= ECHO_T=
  423. case `echo -n x` in #(((((
  424. -n*)
  425. case `echo 'xy\c'` in
  426. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  427. xy) ECHO_C='\c';;
  428. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  429. ECHO_T=' ';;
  430. esac;;
  431. *)
  432. ECHO_N='-n';;
  433. esac
  434. rm -f conf$$ conf$$.exe conf$$.file
  435. if test -d conf$$.dir; then
  436. rm -f conf$$.dir/conf$$.file
  437. else
  438. rm -f conf$$.dir
  439. mkdir conf$$.dir 2>/dev/null
  440. fi
  441. if (echo >conf$$.file) 2>/dev/null; then
  442. if ln -s conf$$.file conf$$ 2>/dev/null; then
  443. as_ln_s='ln -s'
  444. # ... but there are two gotchas:
  445. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  446. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  447. # In both cases, we have to default to `cp -p'.
  448. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  449. as_ln_s='cp -p'
  450. elif ln conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s=ln
  452. else
  453. as_ln_s='cp -p'
  454. fi
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  459. rmdir conf$$.dir 2>/dev/null
  460. if mkdir -p . 2>/dev/null; then
  461. as_mkdir_p='mkdir -p "$as_dir"'
  462. else
  463. test -d ./-p && rmdir ./-p
  464. as_mkdir_p=false
  465. fi
  466. if test -x / >/dev/null 2>&1; then
  467. as_test_x='test -x'
  468. else
  469. if ls -dL / >/dev/null 2>&1; then
  470. as_ls_L_option=L
  471. else
  472. as_ls_L_option=
  473. fi
  474. as_test_x='
  475. eval sh -c '\''
  476. if test -d "$1"; then
  477. test -d "$1/.";
  478. else
  479. case $1 in #(
  480. -*)set "./$1";;
  481. esac;
  482. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  483. ???[sx]*):;;*)false;;esac;fi
  484. '\'' sh
  485. '
  486. fi
  487. as_executable_p=$as_test_x
  488. # Sed expression to map a string onto a valid CPP name.
  489. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  490. # Sed expression to map a string onto a valid variable name.
  491. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  492. SHELL=${CONFIG_SHELL-/bin/sh}
  493. exec 7<&0 </dev/null 6>&1
  494. # Name of the host.
  495. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  496. # so uname gets run too.
  497. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  498. #
  499. # Initializations.
  500. #
  501. ac_default_prefix=/usr/local
  502. ac_clean_files=
  503. ac_config_libobj_dir=.
  504. LIBOBJS=
  505. cross_compiling=no
  506. subdirs=
  507. MFLAGS=
  508. MAKEFLAGS=
  509. # Identity of this package.
  510. PACKAGE_NAME='package-unused'
  511. PACKAGE_TARNAME='package-unused'
  512. PACKAGE_VERSION='version-unused'
  513. PACKAGE_STRING='package-unused version-unused'
  514. PACKAGE_BUGREPORT='libmpx'
  515. PACKAGE_URL=''
  516. # Factoring default headers for most tests.
  517. ac_includes_default="\
  518. #include <stdio.h>
  519. #ifdef HAVE_SYS_TYPES_H
  520. # include <sys/types.h>
  521. #endif
  522. #ifdef HAVE_SYS_STAT_H
  523. # include <sys/stat.h>
  524. #endif
  525. #ifdef STDC_HEADERS
  526. # include <stdlib.h>
  527. # include <stddef.h>
  528. #else
  529. # ifdef HAVE_STDLIB_H
  530. # include <stdlib.h>
  531. # endif
  532. #endif
  533. #ifdef HAVE_STRING_H
  534. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  535. # include <memory.h>
  536. # endif
  537. # include <string.h>
  538. #endif
  539. #ifdef HAVE_STRINGS_H
  540. # include <strings.h>
  541. #endif
  542. #ifdef HAVE_INTTYPES_H
  543. # include <inttypes.h>
  544. #endif
  545. #ifdef HAVE_STDINT_H
  546. # include <stdint.h>
  547. #endif
  548. #ifdef HAVE_UNISTD_H
  549. # include <unistd.h>
  550. #endif"
  551. ac_subst_vars='am__EXEEXT_FALSE
  552. am__EXEEXT_TRUE
  553. LTLIBOBJS
  554. LIBOBJS
  555. XCFLAGS
  556. enable_static
  557. enable_shared
  558. OTOOL64
  559. OTOOL
  560. LIPO
  561. NMEDIT
  562. DSYMUTIL
  563. OBJDUMP
  564. LN_S
  565. NM
  566. ac_ct_DUMPBIN
  567. DUMPBIN
  568. LD
  569. FGREP
  570. SED
  571. LIBTOOL
  572. MPX_AS_SUPPORTED_FALSE
  573. MPX_AS_SUPPORTED_TRUE
  574. RANLIB
  575. AR
  576. AS
  577. CCASFLAGS
  578. CCAS
  579. toolexeclibdir
  580. toolexecdir
  581. EGREP
  582. GREP
  583. CPP
  584. OBJEXT
  585. EXEEXT
  586. ac_ct_CC
  587. CPPFLAGS
  588. LDFLAGS
  589. CFLAGS
  590. CC
  591. MAINT
  592. MAINTAINER_MODE_FALSE
  593. MAINTAINER_MODE_TRUE
  594. multi_basedir
  595. am__untar
  596. am__tar
  597. AMTAR
  598. am__leading_dot
  599. SET_MAKE
  600. AWK
  601. mkdir_p
  602. MKDIR_P
  603. INSTALL_STRIP_PROGRAM
  604. STRIP
  605. install_sh
  606. MAKEINFO
  607. AUTOHEADER
  608. AUTOMAKE
  609. AUTOCONF
  610. ACLOCAL
  611. VERSION
  612. PACKAGE
  613. CYGPATH_W
  614. am__isrc
  615. INSTALL_DATA
  616. INSTALL_SCRIPT
  617. INSTALL_PROGRAM
  618. link_mpx
  619. link_libmpx
  620. LIBMPX_SUPPORTED_FALSE
  621. LIBMPX_SUPPORTED_TRUE
  622. target_os
  623. target_vendor
  624. target_cpu
  625. target
  626. host_os
  627. host_vendor
  628. host_cpu
  629. host
  630. build_os
  631. build_vendor
  632. build_cpu
  633. build
  634. target_alias
  635. host_alias
  636. build_alias
  637. LIBS
  638. ECHO_T
  639. ECHO_N
  640. ECHO_C
  641. DEFS
  642. mandir
  643. localedir
  644. libdir
  645. psdir
  646. pdfdir
  647. dvidir
  648. htmldir
  649. infodir
  650. docdir
  651. oldincludedir
  652. includedir
  653. localstatedir
  654. sharedstatedir
  655. sysconfdir
  656. datadir
  657. datarootdir
  658. libexecdir
  659. sbindir
  660. bindir
  661. program_transform_name
  662. prefix
  663. exec_prefix
  664. PACKAGE_URL
  665. PACKAGE_BUGREPORT
  666. PACKAGE_STRING
  667. PACKAGE_VERSION
  668. PACKAGE_TARNAME
  669. PACKAGE_NAME
  670. PATH_SEPARATOR
  671. SHELL'
  672. ac_subst_files=''
  673. ac_user_opts='
  674. enable_option_checking
  675. enable_version_specific_runtime_libs
  676. enable_multilib
  677. enable_maintainer_mode
  678. enable_shared
  679. enable_static
  680. with_pic
  681. enable_fast_install
  682. with_gnu_ld
  683. enable_libtool_lock
  684. '
  685. ac_precious_vars='build_alias
  686. host_alias
  687. target_alias
  688. CC
  689. CFLAGS
  690. LDFLAGS
  691. LIBS
  692. CPPFLAGS
  693. CPP'
  694. # Initialize some variables set by options.
  695. ac_init_help=
  696. ac_init_version=false
  697. ac_unrecognized_opts=
  698. ac_unrecognized_sep=
  699. # The variables have the same names as the options, with
  700. # dashes changed to underlines.
  701. cache_file=/dev/null
  702. exec_prefix=NONE
  703. no_create=
  704. no_recursion=
  705. prefix=NONE
  706. program_prefix=NONE
  707. program_suffix=NONE
  708. program_transform_name=s,x,x,
  709. silent=
  710. site=
  711. srcdir=
  712. verbose=
  713. x_includes=NONE
  714. x_libraries=NONE
  715. # Installation directory options.
  716. # These are left unexpanded so users can "make install exec_prefix=/foo"
  717. # and all the variables that are supposed to be based on exec_prefix
  718. # by default will actually change.
  719. # Use braces instead of parens because sh, perl, etc. also accept them.
  720. # (The list follows the same order as the GNU Coding Standards.)
  721. bindir='${exec_prefix}/bin'
  722. sbindir='${exec_prefix}/sbin'
  723. libexecdir='${exec_prefix}/libexec'
  724. datarootdir='${prefix}/share'
  725. datadir='${datarootdir}'
  726. sysconfdir='${prefix}/etc'
  727. sharedstatedir='${prefix}/com'
  728. localstatedir='${prefix}/var'
  729. includedir='${prefix}/include'
  730. oldincludedir='/usr/include'
  731. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  732. infodir='${datarootdir}/info'
  733. htmldir='${docdir}'
  734. dvidir='${docdir}'
  735. pdfdir='${docdir}'
  736. psdir='${docdir}'
  737. libdir='${exec_prefix}/lib'
  738. localedir='${datarootdir}/locale'
  739. mandir='${datarootdir}/man'
  740. ac_prev=
  741. ac_dashdash=
  742. for ac_option
  743. do
  744. # If the previous option needs an argument, assign it.
  745. if test -n "$ac_prev"; then
  746. eval $ac_prev=\$ac_option
  747. ac_prev=
  748. continue
  749. fi
  750. case $ac_option in
  751. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  752. *) ac_optarg=yes ;;
  753. esac
  754. # Accept the important Cygnus configure options, so we can diagnose typos.
  755. case $ac_dashdash$ac_option in
  756. --)
  757. ac_dashdash=yes ;;
  758. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  759. ac_prev=bindir ;;
  760. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  761. bindir=$ac_optarg ;;
  762. -build | --build | --buil | --bui | --bu)
  763. ac_prev=build_alias ;;
  764. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  765. build_alias=$ac_optarg ;;
  766. -cache-file | --cache-file | --cache-fil | --cache-fi \
  767. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  768. ac_prev=cache_file ;;
  769. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  770. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  771. cache_file=$ac_optarg ;;
  772. --config-cache | -C)
  773. cache_file=config.cache ;;
  774. -datadir | --datadir | --datadi | --datad)
  775. ac_prev=datadir ;;
  776. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  777. datadir=$ac_optarg ;;
  778. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  779. | --dataroo | --dataro | --datar)
  780. ac_prev=datarootdir ;;
  781. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  782. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  783. datarootdir=$ac_optarg ;;
  784. -disable-* | --disable-*)
  785. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  786. # Reject names that are not valid shell variable names.
  787. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  788. as_fn_error "invalid feature name: $ac_useropt"
  789. ac_useropt_orig=$ac_useropt
  790. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  791. case $ac_user_opts in
  792. *"
  793. "enable_$ac_useropt"
  794. "*) ;;
  795. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  796. ac_unrecognized_sep=', ';;
  797. esac
  798. eval enable_$ac_useropt=no ;;
  799. -docdir | --docdir | --docdi | --doc | --do)
  800. ac_prev=docdir ;;
  801. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  802. docdir=$ac_optarg ;;
  803. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  804. ac_prev=dvidir ;;
  805. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  806. dvidir=$ac_optarg ;;
  807. -enable-* | --enable-*)
  808. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  809. # Reject names that are not valid shell variable names.
  810. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  811. as_fn_error "invalid feature name: $ac_useropt"
  812. ac_useropt_orig=$ac_useropt
  813. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  814. case $ac_user_opts in
  815. *"
  816. "enable_$ac_useropt"
  817. "*) ;;
  818. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  819. ac_unrecognized_sep=', ';;
  820. esac
  821. eval enable_$ac_useropt=\$ac_optarg ;;
  822. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  823. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  824. | --exec | --exe | --ex)
  825. ac_prev=exec_prefix ;;
  826. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  827. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  828. | --exec=* | --exe=* | --ex=*)
  829. exec_prefix=$ac_optarg ;;
  830. -gas | --gas | --ga | --g)
  831. # Obsolete; use --with-gas.
  832. with_gas=yes ;;
  833. -help | --help | --hel | --he | -h)
  834. ac_init_help=long ;;
  835. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  836. ac_init_help=recursive ;;
  837. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  838. ac_init_help=short ;;
  839. -host | --host | --hos | --ho)
  840. ac_prev=host_alias ;;
  841. -host=* | --host=* | --hos=* | --ho=*)
  842. host_alias=$ac_optarg ;;
  843. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  844. ac_prev=htmldir ;;
  845. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  846. | --ht=*)
  847. htmldir=$ac_optarg ;;
  848. -includedir | --includedir | --includedi | --included | --include \
  849. | --includ | --inclu | --incl | --inc)
  850. ac_prev=includedir ;;
  851. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  852. | --includ=* | --inclu=* | --incl=* | --inc=*)
  853. includedir=$ac_optarg ;;
  854. -infodir | --infodir | --infodi | --infod | --info | --inf)
  855. ac_prev=infodir ;;
  856. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  857. infodir=$ac_optarg ;;
  858. -libdir | --libdir | --libdi | --libd)
  859. ac_prev=libdir ;;
  860. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  861. libdir=$ac_optarg ;;
  862. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  863. | --libexe | --libex | --libe)
  864. ac_prev=libexecdir ;;
  865. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  866. | --libexe=* | --libex=* | --libe=*)
  867. libexecdir=$ac_optarg ;;
  868. -localedir | --localedir | --localedi | --localed | --locale)
  869. ac_prev=localedir ;;
  870. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  871. localedir=$ac_optarg ;;
  872. -localstatedir | --localstatedir | --localstatedi | --localstated \
  873. | --localstate | --localstat | --localsta | --localst | --locals)
  874. ac_prev=localstatedir ;;
  875. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  876. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  877. localstatedir=$ac_optarg ;;
  878. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  879. ac_prev=mandir ;;
  880. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  881. mandir=$ac_optarg ;;
  882. -nfp | --nfp | --nf)
  883. # Obsolete; use --without-fp.
  884. with_fp=no ;;
  885. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  886. | --no-cr | --no-c | -n)
  887. no_create=yes ;;
  888. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  889. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  890. no_recursion=yes ;;
  891. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  892. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  893. | --oldin | --oldi | --old | --ol | --o)
  894. ac_prev=oldincludedir ;;
  895. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  896. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  897. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  898. oldincludedir=$ac_optarg ;;
  899. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  900. ac_prev=prefix ;;
  901. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  902. prefix=$ac_optarg ;;
  903. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  904. | --program-pre | --program-pr | --program-p)
  905. ac_prev=program_prefix ;;
  906. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  907. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  908. program_prefix=$ac_optarg ;;
  909. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  910. | --program-suf | --program-su | --program-s)
  911. ac_prev=program_suffix ;;
  912. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  913. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  914. program_suffix=$ac_optarg ;;
  915. -program-transform-name | --program-transform-name \
  916. | --program-transform-nam | --program-transform-na \
  917. | --program-transform-n | --program-transform- \
  918. | --program-transform | --program-transfor \
  919. | --program-transfo | --program-transf \
  920. | --program-trans | --program-tran \
  921. | --progr-tra | --program-tr | --program-t)
  922. ac_prev=program_transform_name ;;
  923. -program-transform-name=* | --program-transform-name=* \
  924. | --program-transform-nam=* | --program-transform-na=* \
  925. | --program-transform-n=* | --program-transform-=* \
  926. | --program-transform=* | --program-transfor=* \
  927. | --program-transfo=* | --program-transf=* \
  928. | --program-trans=* | --program-tran=* \
  929. | --progr-tra=* | --program-tr=* | --program-t=*)
  930. program_transform_name=$ac_optarg ;;
  931. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  932. ac_prev=pdfdir ;;
  933. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  934. pdfdir=$ac_optarg ;;
  935. -psdir | --psdir | --psdi | --psd | --ps)
  936. ac_prev=psdir ;;
  937. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  938. psdir=$ac_optarg ;;
  939. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  940. | -silent | --silent | --silen | --sile | --sil)
  941. silent=yes ;;
  942. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  943. ac_prev=sbindir ;;
  944. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  945. | --sbi=* | --sb=*)
  946. sbindir=$ac_optarg ;;
  947. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  948. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  949. | --sharedst | --shareds | --shared | --share | --shar \
  950. | --sha | --sh)
  951. ac_prev=sharedstatedir ;;
  952. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  953. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  954. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  955. | --sha=* | --sh=*)
  956. sharedstatedir=$ac_optarg ;;
  957. -site | --site | --sit)
  958. ac_prev=site ;;
  959. -site=* | --site=* | --sit=*)
  960. site=$ac_optarg ;;
  961. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  962. ac_prev=srcdir ;;
  963. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  964. srcdir=$ac_optarg ;;
  965. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  966. | --syscon | --sysco | --sysc | --sys | --sy)
  967. ac_prev=sysconfdir ;;
  968. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  969. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  970. sysconfdir=$ac_optarg ;;
  971. -target | --target | --targe | --targ | --tar | --ta | --t)
  972. ac_prev=target_alias ;;
  973. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  974. target_alias=$ac_optarg ;;
  975. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  976. verbose=yes ;;
  977. -version | --version | --versio | --versi | --vers | -V)
  978. ac_init_version=: ;;
  979. -with-* | --with-*)
  980. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  981. # Reject names that are not valid shell variable names.
  982. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  983. as_fn_error "invalid package name: $ac_useropt"
  984. ac_useropt_orig=$ac_useropt
  985. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  986. case $ac_user_opts in
  987. *"
  988. "with_$ac_useropt"
  989. "*) ;;
  990. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  991. ac_unrecognized_sep=', ';;
  992. esac
  993. eval with_$ac_useropt=\$ac_optarg ;;
  994. -without-* | --without-*)
  995. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  996. # Reject names that are not valid shell variable names.
  997. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  998. as_fn_error "invalid package name: $ac_useropt"
  999. ac_useropt_orig=$ac_useropt
  1000. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1001. case $ac_user_opts in
  1002. *"
  1003. "with_$ac_useropt"
  1004. "*) ;;
  1005. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1006. ac_unrecognized_sep=', ';;
  1007. esac
  1008. eval with_$ac_useropt=no ;;
  1009. --x)
  1010. # Obsolete; use --with-x.
  1011. with_x=yes ;;
  1012. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1013. | --x-incl | --x-inc | --x-in | --x-i)
  1014. ac_prev=x_includes ;;
  1015. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1016. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1017. x_includes=$ac_optarg ;;
  1018. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1019. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1020. ac_prev=x_libraries ;;
  1021. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1022. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1023. x_libraries=$ac_optarg ;;
  1024. -*) as_fn_error "unrecognized option: \`$ac_option'
  1025. Try \`$0 --help' for more information."
  1026. ;;
  1027. *=*)
  1028. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1029. # Reject names that are not valid shell variable names.
  1030. case $ac_envvar in #(
  1031. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1032. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1033. esac
  1034. eval $ac_envvar=\$ac_optarg
  1035. export $ac_envvar ;;
  1036. *)
  1037. # FIXME: should be removed in autoconf 3.0.
  1038. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1039. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1040. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1041. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1042. ;;
  1043. esac
  1044. done
  1045. if test -n "$ac_prev"; then
  1046. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1047. as_fn_error "missing argument to $ac_option"
  1048. fi
  1049. if test -n "$ac_unrecognized_opts"; then
  1050. case $enable_option_checking in
  1051. no) ;;
  1052. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1053. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1054. esac
  1055. fi
  1056. # Check all directory arguments for consistency.
  1057. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1058. datadir sysconfdir sharedstatedir localstatedir includedir \
  1059. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1060. libdir localedir mandir
  1061. do
  1062. eval ac_val=\$$ac_var
  1063. # Remove trailing slashes.
  1064. case $ac_val in
  1065. */ )
  1066. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1067. eval $ac_var=\$ac_val;;
  1068. esac
  1069. # Be sure to have absolute directory names.
  1070. case $ac_val in
  1071. [\\/$]* | ?:[\\/]* ) continue;;
  1072. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1073. esac
  1074. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1075. done
  1076. # There might be people who depend on the old broken behavior: `$host'
  1077. # used to hold the argument of --host etc.
  1078. # FIXME: To remove some day.
  1079. build=$build_alias
  1080. host=$host_alias
  1081. target=$target_alias
  1082. # FIXME: To remove some day.
  1083. if test "x$host_alias" != x; then
  1084. if test "x$build_alias" = x; then
  1085. cross_compiling=maybe
  1086. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1087. If a cross compiler is detected then cross compile mode will be used." >&2
  1088. elif test "x$build_alias" != "x$host_alias"; then
  1089. cross_compiling=yes
  1090. fi
  1091. fi
  1092. ac_tool_prefix=
  1093. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1094. test "$silent" = yes && exec 6>/dev/null
  1095. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1096. ac_ls_di=`ls -di .` &&
  1097. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1098. as_fn_error "working directory cannot be determined"
  1099. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1100. as_fn_error "pwd does not report name of working directory"
  1101. # Find the source files, if location was not specified.
  1102. if test -z "$srcdir"; then
  1103. ac_srcdir_defaulted=yes
  1104. # Try the directory containing this script, then the parent directory.
  1105. ac_confdir=`$as_dirname -- "$as_myself" ||
  1106. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1107. X"$as_myself" : 'X\(//\)[^/]' \| \
  1108. X"$as_myself" : 'X\(//\)$' \| \
  1109. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1110. $as_echo X"$as_myself" |
  1111. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1112. s//\1/
  1113. q
  1114. }
  1115. /^X\(\/\/\)[^/].*/{
  1116. s//\1/
  1117. q
  1118. }
  1119. /^X\(\/\/\)$/{
  1120. s//\1/
  1121. q
  1122. }
  1123. /^X\(\/\).*/{
  1124. s//\1/
  1125. q
  1126. }
  1127. s/.*/./; q'`
  1128. srcdir=$ac_confdir
  1129. if test ! -r "$srcdir/$ac_unique_file"; then
  1130. srcdir=..
  1131. fi
  1132. else
  1133. ac_srcdir_defaulted=no
  1134. fi
  1135. if test ! -r "$srcdir/$ac_unique_file"; then
  1136. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1137. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1138. fi
  1139. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1140. ac_abs_confdir=`(
  1141. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1142. pwd)`
  1143. # When building in place, set srcdir=.
  1144. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1145. srcdir=.
  1146. fi
  1147. # Remove unnecessary trailing slashes from srcdir.
  1148. # Double slashes in file names in object file debugging info
  1149. # mess up M-x gdb in Emacs.
  1150. case $srcdir in
  1151. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1152. esac
  1153. for ac_var in $ac_precious_vars; do
  1154. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1155. eval ac_env_${ac_var}_value=\$${ac_var}
  1156. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1157. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1158. done
  1159. #
  1160. # Report the --help message.
  1161. #
  1162. if test "$ac_init_help" = "long"; then
  1163. # Omit some internal or obsolete options to make the list less imposing.
  1164. # This message is too long to be a string in the A/UX 3.1 sh.
  1165. cat <<_ACEOF
  1166. \`configure' configures package-unused version-unused to adapt to many kinds of systems.
  1167. Usage: $0 [OPTION]... [VAR=VALUE]...
  1168. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1169. VAR=VALUE. See below for descriptions of some of the useful variables.
  1170. Defaults for the options are specified in brackets.
  1171. Configuration:
  1172. -h, --help display this help and exit
  1173. --help=short display options specific to this package
  1174. --help=recursive display the short help of all the included packages
  1175. -V, --version display version information and exit
  1176. -q, --quiet, --silent do not print \`checking...' messages
  1177. --cache-file=FILE cache test results in FILE [disabled]
  1178. -C, --config-cache alias for \`--cache-file=config.cache'
  1179. -n, --no-create do not create output files
  1180. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1181. Installation directories:
  1182. --prefix=PREFIX install architecture-independent files in PREFIX
  1183. [$ac_default_prefix]
  1184. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1185. [PREFIX]
  1186. By default, \`make install' will install all the files in
  1187. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1188. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1189. for instance \`--prefix=\$HOME'.
  1190. For better control, use the options below.
  1191. Fine tuning of the installation directories:
  1192. --bindir=DIR user executables [EPREFIX/bin]
  1193. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1194. --libexecdir=DIR program executables [EPREFIX/libexec]
  1195. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1196. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1197. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1198. --libdir=DIR object code libraries [EPREFIX/lib]
  1199. --includedir=DIR C header files [PREFIX/include]
  1200. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1201. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1202. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1203. --infodir=DIR info documentation [DATAROOTDIR/info]
  1204. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1205. --mandir=DIR man documentation [DATAROOTDIR/man]
  1206. --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
  1207. --htmldir=DIR html documentation [DOCDIR]
  1208. --dvidir=DIR dvi documentation [DOCDIR]
  1209. --pdfdir=DIR pdf documentation [DOCDIR]
  1210. --psdir=DIR ps documentation [DOCDIR]
  1211. _ACEOF
  1212. cat <<\_ACEOF
  1213. Program names:
  1214. --program-prefix=PREFIX prepend PREFIX to installed program names
  1215. --program-suffix=SUFFIX append SUFFIX to installed program names
  1216. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1217. System types:
  1218. --build=BUILD configure for building on BUILD [guessed]
  1219. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1220. --target=TARGET configure for building compilers for TARGET [HOST]
  1221. _ACEOF
  1222. fi
  1223. if test -n "$ac_init_help"; then
  1224. case $ac_init_help in
  1225. short | recursive ) echo "Configuration of package-unused version-unused:";;
  1226. esac
  1227. cat <<\_ACEOF
  1228. Optional Features:
  1229. --disable-option-checking ignore unrecognized --enable/--with options
  1230. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1231. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1232. --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
  1233. --enable-multilib build many library versions (default)
  1234. --enable-maintainer-mode enable make rules and dependencies not useful
  1235. (and sometimes confusing) to the casual installer
  1236. --enable-shared[=PKGS] build shared libraries [default=yes]
  1237. --enable-static[=PKGS] build static libraries [default=yes]
  1238. --enable-fast-install[=PKGS]
  1239. optimize for fast installation [default=yes]
  1240. --disable-libtool-lock avoid locking (might break parallel builds)
  1241. Optional Packages:
  1242. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1243. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1244. --with-pic try to use only PIC/non-PIC objects [default=use
  1245. both]
  1246. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1247. Some influential environment variables:
  1248. CC C compiler command
  1249. CFLAGS C compiler flags
  1250. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1251. nonstandard directory <lib dir>
  1252. LIBS libraries to pass to the linker, e.g. -l<library>
  1253. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1254. you have headers in a nonstandard directory <include dir>
  1255. CPP C preprocessor
  1256. Use these variables to override the choices made by `configure' or to help
  1257. it to find libraries and programs with nonstandard names/locations.
  1258. Report bugs to <libmpx>.
  1259. _ACEOF
  1260. ac_status=$?
  1261. fi
  1262. if test "$ac_init_help" = "recursive"; then
  1263. # If there are subdirs, report their specific --help.
  1264. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1265. test -d "$ac_dir" ||
  1266. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1267. continue
  1268. ac_builddir=.
  1269. case "$ac_dir" in
  1270. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1271. *)
  1272. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1273. # A ".." for each directory in $ac_dir_suffix.
  1274. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1275. case $ac_top_builddir_sub in
  1276. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1277. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1278. esac ;;
  1279. esac
  1280. ac_abs_top_builddir=$ac_pwd
  1281. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1282. # for backward compatibility:
  1283. ac_top_builddir=$ac_top_build_prefix
  1284. case $srcdir in
  1285. .) # We are building in place.
  1286. ac_srcdir=.
  1287. ac_top_srcdir=$ac_top_builddir_sub
  1288. ac_abs_top_srcdir=$ac_pwd ;;
  1289. [\\/]* | ?:[\\/]* ) # Absolute name.
  1290. ac_srcdir=$srcdir$ac_dir_suffix;
  1291. ac_top_srcdir=$srcdir
  1292. ac_abs_top_srcdir=$srcdir ;;
  1293. *) # Relative name.
  1294. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1295. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1296. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1297. esac
  1298. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1299. cd "$ac_dir" || { ac_status=$?; continue; }
  1300. # Check for guested configure.
  1301. if test -f "$ac_srcdir/configure.gnu"; then
  1302. echo &&
  1303. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1304. elif test -f "$ac_srcdir/configure"; then
  1305. echo &&
  1306. $SHELL "$ac_srcdir/configure" --help=recursive
  1307. else
  1308. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1309. fi || ac_status=$?
  1310. cd "$ac_pwd" || { ac_status=$?; break; }
  1311. done
  1312. fi
  1313. test -n "$ac_init_help" && exit $ac_status
  1314. if $ac_init_version; then
  1315. cat <<\_ACEOF
  1316. package-unused configure version-unused
  1317. generated by GNU Autoconf 2.64
  1318. Copyright (C) 2009 Free Software Foundation, Inc.
  1319. This configure script is free software; the Free Software Foundation
  1320. gives unlimited permission to copy, distribute and modify it.
  1321. _ACEOF
  1322. exit
  1323. fi
  1324. ## ------------------------ ##
  1325. ## Autoconf initialization. ##
  1326. ## ------------------------ ##
  1327. # ac_fn_c_try_compile LINENO
  1328. # --------------------------
  1329. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1330. ac_fn_c_try_compile ()
  1331. {
  1332. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1333. rm -f conftest.$ac_objext
  1334. if { { ac_try="$ac_compile"
  1335. case "(($ac_try" in
  1336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1337. *) ac_try_echo=$ac_try;;
  1338. esac
  1339. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1340. $as_echo "$ac_try_echo"; } >&5
  1341. (eval "$ac_compile") 2>conftest.err
  1342. ac_status=$?
  1343. if test -s conftest.err; then
  1344. grep -v '^ *+' conftest.err >conftest.er1
  1345. cat conftest.er1 >&5
  1346. mv -f conftest.er1 conftest.err
  1347. fi
  1348. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1349. test $ac_status = 0; } && {
  1350. test -z "$ac_c_werror_flag" ||
  1351. test ! -s conftest.err
  1352. } && test -s conftest.$ac_objext; then :
  1353. ac_retval=0
  1354. else
  1355. $as_echo "$as_me: failed program was:" >&5
  1356. sed 's/^/| /' conftest.$ac_ext >&5
  1357. ac_retval=1
  1358. fi
  1359. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1360. return $ac_retval
  1361. } # ac_fn_c_try_compile
  1362. # ac_fn_c_try_cpp LINENO
  1363. # ----------------------
  1364. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1365. ac_fn_c_try_cpp ()
  1366. {
  1367. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1368. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1369. case "(($ac_try" in
  1370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1371. *) ac_try_echo=$ac_try;;
  1372. esac
  1373. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1374. $as_echo "$ac_try_echo"; } >&5
  1375. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1376. ac_status=$?
  1377. if test -s conftest.err; then
  1378. grep -v '^ *+' conftest.err >conftest.er1
  1379. cat conftest.er1 >&5
  1380. mv -f conftest.er1 conftest.err
  1381. fi
  1382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1383. test $ac_status = 0; } >/dev/null && {
  1384. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1385. test ! -s conftest.err
  1386. }; then :
  1387. ac_retval=0
  1388. else
  1389. $as_echo "$as_me: failed program was:" >&5
  1390. sed 's/^/| /' conftest.$ac_ext >&5
  1391. ac_retval=1
  1392. fi
  1393. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1394. return $ac_retval
  1395. } # ac_fn_c_try_cpp
  1396. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1397. # -------------------------------------------------------
  1398. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1399. # the include files in INCLUDES and setting the cache variable VAR
  1400. # accordingly.
  1401. ac_fn_c_check_header_mongrel ()
  1402. {
  1403. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1404. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1406. $as_echo_n "checking for $2... " >&6; }
  1407. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1408. $as_echo_n "(cached) " >&6
  1409. fi
  1410. eval ac_res=\$$3
  1411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1412. $as_echo "$ac_res" >&6; }
  1413. else
  1414. # Is the header compilable?
  1415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1416. $as_echo_n "checking $2 usability... " >&6; }
  1417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1418. /* end confdefs.h. */
  1419. $4
  1420. #include <$2>
  1421. _ACEOF
  1422. if ac_fn_c_try_compile "$LINENO"; then :
  1423. ac_header_compiler=yes
  1424. else
  1425. ac_header_compiler=no
  1426. fi
  1427. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1429. $as_echo "$ac_header_compiler" >&6; }
  1430. # Is the header present?
  1431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1432. $as_echo_n "checking $2 presence... " >&6; }
  1433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1434. /* end confdefs.h. */
  1435. #include <$2>
  1436. _ACEOF
  1437. if ac_fn_c_try_cpp "$LINENO"; then :
  1438. ac_header_preproc=yes
  1439. else
  1440. ac_header_preproc=no
  1441. fi
  1442. rm -f conftest.err conftest.$ac_ext
  1443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1444. $as_echo "$ac_header_preproc" >&6; }
  1445. # So? What about this header?
  1446. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1447. yes:no: )
  1448. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1449. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1451. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1452. ;;
  1453. no:yes:* )
  1454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1455. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1457. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1459. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1461. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1463. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1464. ( cat <<\_ASBOX
  1465. ## --------------------- ##
  1466. ## Report this to libmpx ##
  1467. ## --------------------- ##
  1468. _ASBOX
  1469. ) | sed "s/^/$as_me: WARNING: /" >&2
  1470. ;;
  1471. esac
  1472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1473. $as_echo_n "checking for $2... " >&6; }
  1474. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1475. $as_echo_n "(cached) " >&6
  1476. else
  1477. eval "$3=\$ac_header_compiler"
  1478. fi
  1479. eval ac_res=\$$3
  1480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1481. $as_echo "$ac_res" >&6; }
  1482. fi
  1483. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1484. } # ac_fn_c_check_header_mongrel
  1485. # ac_fn_c_try_run LINENO
  1486. # ----------------------
  1487. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1488. # that executables *can* be run.
  1489. ac_fn_c_try_run ()
  1490. {
  1491. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1492. if { { ac_try="$ac_link"
  1493. case "(($ac_try" in
  1494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1495. *) ac_try_echo=$ac_try;;
  1496. esac
  1497. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1498. $as_echo "$ac_try_echo"; } >&5
  1499. (eval "$ac_link") 2>&5
  1500. ac_status=$?
  1501. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1502. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1503. { { case "(($ac_try" in
  1504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1505. *) ac_try_echo=$ac_try;;
  1506. esac
  1507. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1508. $as_echo "$ac_try_echo"; } >&5
  1509. (eval "$ac_try") 2>&5
  1510. ac_status=$?
  1511. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1512. test $ac_status = 0; }; }; then :
  1513. ac_retval=0
  1514. else
  1515. $as_echo "$as_me: program exited with status $ac_status" >&5
  1516. $as_echo "$as_me: failed program was:" >&5
  1517. sed 's/^/| /' conftest.$ac_ext >&5
  1518. ac_retval=$ac_status
  1519. fi
  1520. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1521. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1522. return $ac_retval
  1523. } # ac_fn_c_try_run
  1524. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1525. # -------------------------------------------------------
  1526. # Tests whether HEADER exists and can be compiled using the include files in
  1527. # INCLUDES, setting the cache variable VAR accordingly.
  1528. ac_fn_c_check_header_compile ()
  1529. {
  1530. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1532. $as_echo_n "checking for $2... " >&6; }
  1533. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1534. $as_echo_n "(cached) " >&6
  1535. else
  1536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1537. /* end confdefs.h. */
  1538. $4
  1539. #include <$2>
  1540. _ACEOF
  1541. if ac_fn_c_try_compile "$LINENO"; then :
  1542. eval "$3=yes"
  1543. else
  1544. eval "$3=no"
  1545. fi
  1546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1547. fi
  1548. eval ac_res=\$$3
  1549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1550. $as_echo "$ac_res" >&6; }
  1551. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1552. } # ac_fn_c_check_header_compile
  1553. # ac_fn_c_try_link LINENO
  1554. # -----------------------
  1555. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1556. ac_fn_c_try_link ()
  1557. {
  1558. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1559. rm -f conftest.$ac_objext conftest$ac_exeext
  1560. if { { ac_try="$ac_link"
  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_link") 2>conftest.err
  1568. ac_status=$?
  1569. if test -s conftest.err; then
  1570. grep -v '^ *+' conftest.err >conftest.er1
  1571. cat conftest.er1 >&5
  1572. mv -f conftest.er1 conftest.err
  1573. fi
  1574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1575. test $ac_status = 0; } && {
  1576. test -z "$ac_c_werror_flag" ||
  1577. test ! -s conftest.err
  1578. } && test -s conftest$ac_exeext && {
  1579. test "$cross_compiling" = yes ||
  1580. $as_test_x conftest$ac_exeext
  1581. }; then :
  1582. ac_retval=0
  1583. else
  1584. $as_echo "$as_me: failed program was:" >&5
  1585. sed 's/^/| /' conftest.$ac_ext >&5
  1586. ac_retval=1
  1587. fi
  1588. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1589. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1590. # interfere with the next link command; also delete a directory that is
  1591. # left behind by Apple's compiler. We do this before executing the actions.
  1592. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1593. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1594. return $ac_retval
  1595. } # ac_fn_c_try_link
  1596. # ac_fn_c_check_func LINENO FUNC VAR
  1597. # ----------------------------------
  1598. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1599. ac_fn_c_check_func ()
  1600. {
  1601. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1603. $as_echo_n "checking for $2... " >&6; }
  1604. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1605. $as_echo_n "(cached) " >&6
  1606. else
  1607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1608. /* end confdefs.h. */
  1609. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1610. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1611. #define $2 innocuous_$2
  1612. /* System header to define __stub macros and hopefully few prototypes,
  1613. which can conflict with char $2 (); below.
  1614. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1615. <limits.h> exists even on freestanding compilers. */
  1616. #ifdef __STDC__
  1617. # include <limits.h>
  1618. #else
  1619. # include <assert.h>
  1620. #endif
  1621. #undef $2
  1622. /* Override any GCC internal prototype to avoid an error.
  1623. Use char because int might match the return type of a GCC
  1624. builtin and then its argument prototype would still apply. */
  1625. #ifdef __cplusplus
  1626. extern "C"
  1627. #endif
  1628. char $2 ();
  1629. /* The GNU C library defines this for functions which it implements
  1630. to always fail with ENOSYS. Some functions are actually named
  1631. something starting with __ and the normal name is an alias. */
  1632. #if defined __stub_$2 || defined __stub___$2
  1633. choke me
  1634. #endif
  1635. int
  1636. main ()
  1637. {
  1638. return $2 ();
  1639. ;
  1640. return 0;
  1641. }
  1642. _ACEOF
  1643. if ac_fn_c_try_link "$LINENO"; then :
  1644. eval "$3=yes"
  1645. else
  1646. eval "$3=no"
  1647. fi
  1648. rm -f core conftest.err conftest.$ac_objext \
  1649. conftest$ac_exeext conftest.$ac_ext
  1650. fi
  1651. eval ac_res=\$$3
  1652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1653. $as_echo "$ac_res" >&6; }
  1654. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1655. } # ac_fn_c_check_func
  1656. cat >config.log <<_ACEOF
  1657. This file contains any messages produced by compilers while
  1658. running configure, to aid debugging if configure makes a mistake.
  1659. It was created by package-unused $as_me version-unused, which was
  1660. generated by GNU Autoconf 2.64. Invocation command line was
  1661. $ $0 $@
  1662. _ACEOF
  1663. exec 5>>config.log
  1664. {
  1665. cat <<_ASUNAME
  1666. ## --------- ##
  1667. ## Platform. ##
  1668. ## --------- ##
  1669. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1670. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1671. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1672. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1673. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1674. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1675. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1676. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1677. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1678. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1679. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1680. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1681. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1682. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1683. _ASUNAME
  1684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1685. for as_dir in $PATH
  1686. do
  1687. IFS=$as_save_IFS
  1688. test -z "$as_dir" && as_dir=.
  1689. $as_echo "PATH: $as_dir"
  1690. done
  1691. IFS=$as_save_IFS
  1692. } >&5
  1693. cat >&5 <<_ACEOF
  1694. ## ----------- ##
  1695. ## Core tests. ##
  1696. ## ----------- ##
  1697. _ACEOF
  1698. # Keep a trace of the command line.
  1699. # Strip out --no-create and --no-recursion so they do not pile up.
  1700. # Strip out --silent because we don't want to record it for future runs.
  1701. # Also quote any args containing shell meta-characters.
  1702. # Make two passes to allow for proper duplicate-argument suppression.
  1703. ac_configure_args=
  1704. ac_configure_args0=
  1705. ac_configure_args1=
  1706. ac_must_keep_next=false
  1707. for ac_pass in 1 2
  1708. do
  1709. for ac_arg
  1710. do
  1711. case $ac_arg in
  1712. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1713. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1714. | -silent | --silent | --silen | --sile | --sil)
  1715. continue ;;
  1716. *\'*)
  1717. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1718. esac
  1719. case $ac_pass in
  1720. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1721. 2)
  1722. as_fn_append ac_configure_args1 " '$ac_arg'"
  1723. if test $ac_must_keep_next = true; then
  1724. ac_must_keep_next=false # Got value, back to normal.
  1725. else
  1726. case $ac_arg in
  1727. *=* | --config-cache | -C | -disable-* | --disable-* \
  1728. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1729. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1730. | -with-* | --with-* | -without-* | --without-* | --x)
  1731. case "$ac_configure_args0 " in
  1732. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1733. esac
  1734. ;;
  1735. -* ) ac_must_keep_next=true ;;
  1736. esac
  1737. fi
  1738. as_fn_append ac_configure_args " '$ac_arg'"
  1739. ;;
  1740. esac
  1741. done
  1742. done
  1743. { ac_configure_args0=; unset ac_configure_args0;}
  1744. { ac_configure_args1=; unset ac_configure_args1;}
  1745. # When interrupted or exit'd, cleanup temporary files, and complete
  1746. # config.log. We remove comments because anyway the quotes in there
  1747. # would cause problems or look ugly.
  1748. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1749. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1750. trap 'exit_status=$?
  1751. # Save into config.log some information that might help in debugging.
  1752. {
  1753. echo
  1754. cat <<\_ASBOX
  1755. ## ---------------- ##
  1756. ## Cache variables. ##
  1757. ## ---------------- ##
  1758. _ASBOX
  1759. echo
  1760. # The following way of writing the cache mishandles newlines in values,
  1761. (
  1762. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1763. eval ac_val=\$$ac_var
  1764. case $ac_val in #(
  1765. *${as_nl}*)
  1766. case $ac_var in #(
  1767. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1768. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1769. esac
  1770. case $ac_var in #(
  1771. _ | IFS | as_nl) ;; #(
  1772. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1773. *) { eval $ac_var=; unset $ac_var;} ;;
  1774. esac ;;
  1775. esac
  1776. done
  1777. (set) 2>&1 |
  1778. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1779. *${as_nl}ac_space=\ *)
  1780. sed -n \
  1781. "s/'\''/'\''\\\\'\'''\''/g;
  1782. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1783. ;; #(
  1784. *)
  1785. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1786. ;;
  1787. esac |
  1788. sort
  1789. )
  1790. echo
  1791. cat <<\_ASBOX
  1792. ## ----------------- ##
  1793. ## Output variables. ##
  1794. ## ----------------- ##
  1795. _ASBOX
  1796. echo
  1797. for ac_var in $ac_subst_vars
  1798. do
  1799. eval ac_val=\$$ac_var
  1800. case $ac_val in
  1801. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1802. esac
  1803. $as_echo "$ac_var='\''$ac_val'\''"
  1804. done | sort
  1805. echo
  1806. if test -n "$ac_subst_files"; then
  1807. cat <<\_ASBOX
  1808. ## ------------------- ##
  1809. ## File substitutions. ##
  1810. ## ------------------- ##
  1811. _ASBOX
  1812. echo
  1813. for ac_var in $ac_subst_files
  1814. do
  1815. eval ac_val=\$$ac_var
  1816. case $ac_val in
  1817. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1818. esac
  1819. $as_echo "$ac_var='\''$ac_val'\''"
  1820. done | sort
  1821. echo
  1822. fi
  1823. if test -s confdefs.h; then
  1824. cat <<\_ASBOX
  1825. ## ----------- ##
  1826. ## confdefs.h. ##
  1827. ## ----------- ##
  1828. _ASBOX
  1829. echo
  1830. cat confdefs.h
  1831. echo
  1832. fi
  1833. test "$ac_signal" != 0 &&
  1834. $as_echo "$as_me: caught signal $ac_signal"
  1835. $as_echo "$as_me: exit $exit_status"
  1836. } >&5
  1837. rm -f core *.core core.conftest.* &&
  1838. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1839. exit $exit_status
  1840. ' 0
  1841. for ac_signal in 1 2 13 15; do
  1842. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1843. done
  1844. ac_signal=0
  1845. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1846. rm -f -r conftest* confdefs.h
  1847. $as_echo "/* confdefs.h */" > confdefs.h
  1848. # Predefined preprocessor variables.
  1849. cat >>confdefs.h <<_ACEOF
  1850. #define PACKAGE_NAME "$PACKAGE_NAME"
  1851. _ACEOF
  1852. cat >>confdefs.h <<_ACEOF
  1853. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1854. _ACEOF
  1855. cat >>confdefs.h <<_ACEOF
  1856. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1857. _ACEOF
  1858. cat >>confdefs.h <<_ACEOF
  1859. #define PACKAGE_STRING "$PACKAGE_STRING"
  1860. _ACEOF
  1861. cat >>confdefs.h <<_ACEOF
  1862. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1863. _ACEOF
  1864. cat >>confdefs.h <<_ACEOF
  1865. #define PACKAGE_URL "$PACKAGE_URL"
  1866. _ACEOF
  1867. # Let the site file select an alternate cache file if it wants to.
  1868. # Prefer an explicitly selected file to automatically selected ones.
  1869. ac_site_file1=NONE
  1870. ac_site_file2=NONE
  1871. if test -n "$CONFIG_SITE"; then
  1872. ac_site_file1=$CONFIG_SITE
  1873. elif test "x$prefix" != xNONE; then
  1874. ac_site_file1=$prefix/share/config.site
  1875. ac_site_file2=$prefix/etc/config.site
  1876. else
  1877. ac_site_file1=$ac_default_prefix/share/config.site
  1878. ac_site_file2=$ac_default_prefix/etc/config.site
  1879. fi
  1880. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1881. do
  1882. test "x$ac_site_file" = xNONE && continue
  1883. if test -r "$ac_site_file"; then
  1884. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1885. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1886. sed 's/^/| /' "$ac_site_file" >&5
  1887. . "$ac_site_file"
  1888. fi
  1889. done
  1890. if test -r "$cache_file"; then
  1891. # Some versions of bash will fail to source /dev/null (special
  1892. # files actually), so we avoid doing that.
  1893. if test -f "$cache_file"; then
  1894. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1895. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1896. case $cache_file in
  1897. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1898. *) . "./$cache_file";;
  1899. esac
  1900. fi
  1901. else
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1903. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1904. >$cache_file
  1905. fi
  1906. # Check that the precious variables saved in the cache have kept the same
  1907. # value.
  1908. ac_cache_corrupted=false
  1909. for ac_var in $ac_precious_vars; do
  1910. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1911. eval ac_new_set=\$ac_env_${ac_var}_set
  1912. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1913. eval ac_new_val=\$ac_env_${ac_var}_value
  1914. case $ac_old_set,$ac_new_set in
  1915. set,)
  1916. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1917. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1918. ac_cache_corrupted=: ;;
  1919. ,set)
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1921. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1922. ac_cache_corrupted=: ;;
  1923. ,);;
  1924. *)
  1925. if test "x$ac_old_val" != "x$ac_new_val"; then
  1926. # differences in whitespace do not lead to failure.
  1927. ac_old_val_w=`echo x $ac_old_val`
  1928. ac_new_val_w=`echo x $ac_new_val`
  1929. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1931. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1932. ac_cache_corrupted=:
  1933. else
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1935. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1936. eval $ac_var=\$ac_old_val
  1937. fi
  1938. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1939. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1941. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1942. fi;;
  1943. esac
  1944. # Pass precious variables to config.status.
  1945. if test "$ac_new_set" = set; then
  1946. case $ac_new_val in
  1947. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1948. *) ac_arg=$ac_var=$ac_new_val ;;
  1949. esac
  1950. case " $ac_configure_args " in
  1951. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1952. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1953. esac
  1954. fi
  1955. done
  1956. if $ac_cache_corrupted; then
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1958. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1960. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1961. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1962. fi
  1963. ## -------------------- ##
  1964. ## Main body of script. ##
  1965. ## -------------------- ##
  1966. ac_ext=c
  1967. ac_cpp='$CPP $CPPFLAGS'
  1968. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1969. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1970. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1971. # -------
  1972. # Options
  1973. # -------
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  1975. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  1976. # Check whether --enable-version-specific-runtime-libs was given.
  1977. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  1978. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  1979. yes) version_specific_libs=yes ;;
  1980. no) version_specific_libs=no ;;
  1981. *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  1982. esac
  1983. else
  1984. version_specific_libs=no
  1985. fi
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  1987. $as_echo "$version_specific_libs" >&6; }
  1988. # Do not delete or change the following two lines. For why, see
  1989. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  1990. ac_aux_dir=
  1991. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1992. for ac_t in install-sh install.sh shtool; do
  1993. if test -f "$ac_dir/$ac_t"; then
  1994. ac_aux_dir=$ac_dir
  1995. ac_install_sh="$ac_aux_dir/$ac_t -c"
  1996. break 2
  1997. fi
  1998. done
  1999. done
  2000. if test -z "$ac_aux_dir"; then
  2001. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2002. fi
  2003. # These three variables are undocumented and unsupported,
  2004. # and are intended to be withdrawn in a future Autoconf release.
  2005. # They can cause serious problems if a builder's source tree is in a directory
  2006. # whose full name contains unusual characters.
  2007. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2008. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2009. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2010. # Make sure we can run config.sub.
  2011. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2012. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2014. $as_echo_n "checking build system type... " >&6; }
  2015. if test "${ac_cv_build+set}" = set; then :
  2016. $as_echo_n "(cached) " >&6
  2017. else
  2018. ac_build_alias=$build_alias
  2019. test "x$ac_build_alias" = x &&
  2020. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2021. test "x$ac_build_alias" = x &&
  2022. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2023. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2024. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2025. fi
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2027. $as_echo "$ac_cv_build" >&6; }
  2028. case $ac_cv_build in
  2029. *-*-*) ;;
  2030. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2031. esac
  2032. build=$ac_cv_build
  2033. ac_save_IFS=$IFS; IFS='-'
  2034. set x $ac_cv_build
  2035. shift
  2036. build_cpu=$1
  2037. build_vendor=$2
  2038. shift; shift
  2039. # Remember, the first character of IFS is used to create $*,
  2040. # except with old shells:
  2041. build_os=$*
  2042. IFS=$ac_save_IFS
  2043. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2045. $as_echo_n "checking host system type... " >&6; }
  2046. if test "${ac_cv_host+set}" = set; then :
  2047. $as_echo_n "(cached) " >&6
  2048. else
  2049. if test "x$host_alias" = x; then
  2050. ac_cv_host=$ac_cv_build
  2051. else
  2052. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2053. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2054. fi
  2055. fi
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2057. $as_echo "$ac_cv_host" >&6; }
  2058. case $ac_cv_host in
  2059. *-*-*) ;;
  2060. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2061. esac
  2062. host=$ac_cv_host
  2063. ac_save_IFS=$IFS; IFS='-'
  2064. set x $ac_cv_host
  2065. shift
  2066. host_cpu=$1
  2067. host_vendor=$2
  2068. shift; shift
  2069. # Remember, the first character of IFS is used to create $*,
  2070. # except with old shells:
  2071. host_os=$*
  2072. IFS=$ac_save_IFS
  2073. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2075. $as_echo_n "checking target system type... " >&6; }
  2076. if test "${ac_cv_target+set}" = set; then :
  2077. $as_echo_n "(cached) " >&6
  2078. else
  2079. if test "x$target_alias" = x; then
  2080. ac_cv_target=$ac_cv_host
  2081. else
  2082. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2083. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2084. fi
  2085. fi
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2087. $as_echo "$ac_cv_target" >&6; }
  2088. case $ac_cv_target in
  2089. *-*-*) ;;
  2090. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2091. esac
  2092. target=$ac_cv_target
  2093. ac_save_IFS=$IFS; IFS='-'
  2094. set x $ac_cv_target
  2095. shift
  2096. target_cpu=$1
  2097. target_vendor=$2
  2098. shift; shift
  2099. # Remember, the first character of IFS is used to create $*,
  2100. # except with old shells:
  2101. target_os=$*
  2102. IFS=$ac_save_IFS
  2103. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2104. # The aliases save the names the user supplied, while $host etc.
  2105. # will get canonicalized.
  2106. test -n "$target_alias" &&
  2107. test "$program_prefix$program_suffix$program_transform_name" = \
  2108. NONENONEs,x,x, &&
  2109. program_prefix=${target_alias}-
  2110. target_alias=${target_alias-$host_alias}
  2111. # See if supported.
  2112. unset LIBMPX_SUPPORTED
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target support for Intel MPX runtime library" >&5
  2114. $as_echo_n "checking for target support for Intel MPX runtime library... " >&6; }
  2115. echo "int i[sizeof (void *) == 4 ? 1 : -1] = { __x86_64__ };" > conftest.c
  2116. if { ac_try='${CC} ${CFLAGS} -c -o conftest.o conftest.c 1>&5'
  2117. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  2118. (eval $ac_try) 2>&5
  2119. ac_status=$?
  2120. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2121. test $ac_status = 0; }; }
  2122. then
  2123. LIBMPX_SUPPORTED=no
  2124. else
  2125. LIBMPX_SUPPORTED=yes
  2126. fi
  2127. rm -f conftest.o conftest.c
  2128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPX_SUPPORTED" >&5
  2129. $as_echo "$LIBMPX_SUPPORTED" >&6; }
  2130. if test "x$LIBMPX_SUPPORTED" = "xyes"; then
  2131. LIBMPX_SUPPORTED_TRUE=
  2132. LIBMPX_SUPPORTED_FALSE='#'
  2133. else
  2134. LIBMPX_SUPPORTED_TRUE='#'
  2135. LIBMPX_SUPPORTED_FALSE=
  2136. fi
  2137. link_libmpx="-lpthread"
  2138. link_mpx=""
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld accepts -z bndplt" >&5
  2140. $as_echo_n "checking whether ld accepts -z bndplt... " >&6; }
  2141. echo "int main() {};" > conftest.c
  2142. if { ac_try='${CC} ${CFLAGS} -Wl,-z,bndplt -o conftest conftest.c 1>&5'
  2143. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  2144. (eval $ac_try) 2>&5
  2145. ac_status=$?
  2146. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2147. test $ac_status = 0; }; }
  2148. then
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2150. $as_echo "yes" >&6; }
  2151. link_mpx="$link_mpx -z bndplt"
  2152. else
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2154. $as_echo "no" >&6; }
  2155. fi
  2156. am__api_version='1.11'
  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 test "${ac_cv_path_install+set}" = set; 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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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. # Just in case
  2246. sleep 1
  2247. echo timestamp > conftest.file
  2248. # Reject unsafe characters in $srcdir or the absolute working directory
  2249. # name. Accept space and tab only in the latter.
  2250. am_lf='
  2251. '
  2252. case `pwd` in
  2253. *[\\\"\#\$\&\'\`$am_lf]*)
  2254. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2255. esac
  2256. case $srcdir in
  2257. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2258. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2259. esac
  2260. # Do `set' in a subshell so we don't clobber the current shell's
  2261. # arguments. Must try -L first in case configure is actually a
  2262. # symlink; some systems play weird games with the mod time of symlinks
  2263. # (eg FreeBSD returns the mod time of the symlink's containing
  2264. # directory).
  2265. if (
  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. rm -f conftest.file
  2272. if test "$*" != "X $srcdir/configure conftest.file" \
  2273. && test "$*" != "X conftest.file $srcdir/configure"; then
  2274. # If neither matched, then we have a broken ls. This can happen
  2275. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2276. # broken ls alias from the environment. This has actually
  2277. # happened. Such a system could not be considered "sane".
  2278. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2279. alias in your environment" "$LINENO" 5
  2280. fi
  2281. test "$2" = conftest.file
  2282. )
  2283. then
  2284. # Ok.
  2285. :
  2286. else
  2287. as_fn_error "newly created file is older than distributed files!
  2288. Check your system clock" "$LINENO" 5
  2289. fi
  2290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2291. $as_echo "yes" >&6; }
  2292. test "$program_prefix" != NONE &&
  2293. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2294. # Use a double $ so make ignores it.
  2295. test "$program_suffix" != NONE &&
  2296. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2297. # Double any \ or $.
  2298. # By default was `s,x,x', remove it if useless.
  2299. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2300. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2301. # expand $ac_aux_dir to an absolute path
  2302. am_aux_dir=`cd $ac_aux_dir && pwd`
  2303. if test x"${MISSING+set}" != xset; then
  2304. case $am_aux_dir in
  2305. *\ * | *\ *)
  2306. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2307. *)
  2308. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2309. esac
  2310. fi
  2311. # Use eval to expand $SHELL
  2312. if eval "$MISSING --run true"; then
  2313. am_missing_run="$MISSING --run "
  2314. else
  2315. am_missing_run=
  2316. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2317. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2318. fi
  2319. if test x"${install_sh}" != xset; then
  2320. case $am_aux_dir in
  2321. *\ * | *\ *)
  2322. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2323. *)
  2324. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2325. esac
  2326. fi
  2327. # Installed binaries are usually stripped using `strip' when the user
  2328. # run `make install-strip'. However `strip' might not be the right
  2329. # tool to use in cross-compilation environments, therefore Automake
  2330. # will honor the `STRIP' environment variable to overrule this program.
  2331. if test "$cross_compiling" != no; then
  2332. if test -n "$ac_tool_prefix"; then
  2333. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2334. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2336. $as_echo_n "checking for $ac_word... " >&6; }
  2337. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2338. $as_echo_n "(cached) " >&6
  2339. else
  2340. if test -n "$STRIP"; then
  2341. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2342. else
  2343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344. for as_dir in $PATH
  2345. do
  2346. IFS=$as_save_IFS
  2347. test -z "$as_dir" && as_dir=.
  2348. for ac_exec_ext in '' $ac_executable_extensions; do
  2349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2350. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2351. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352. break 2
  2353. fi
  2354. done
  2355. done
  2356. IFS=$as_save_IFS
  2357. fi
  2358. fi
  2359. STRIP=$ac_cv_prog_STRIP
  2360. if test -n "$STRIP"; then
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2362. $as_echo "$STRIP" >&6; }
  2363. else
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2365. $as_echo "no" >&6; }
  2366. fi
  2367. fi
  2368. if test -z "$ac_cv_prog_STRIP"; then
  2369. ac_ct_STRIP=$STRIP
  2370. # Extract the first word of "strip", so it can be a program name with args.
  2371. set dummy strip; ac_word=$2
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2373. $as_echo_n "checking for $ac_word... " >&6; }
  2374. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2375. $as_echo_n "(cached) " >&6
  2376. else
  2377. if test -n "$ac_ct_STRIP"; then
  2378. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2379. else
  2380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2381. for as_dir in $PATH
  2382. do
  2383. IFS=$as_save_IFS
  2384. test -z "$as_dir" && as_dir=.
  2385. for ac_exec_ext in '' $ac_executable_extensions; do
  2386. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2387. ac_cv_prog_ac_ct_STRIP="strip"
  2388. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2389. break 2
  2390. fi
  2391. done
  2392. done
  2393. IFS=$as_save_IFS
  2394. fi
  2395. fi
  2396. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2397. if test -n "$ac_ct_STRIP"; then
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2399. $as_echo "$ac_ct_STRIP" >&6; }
  2400. else
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2402. $as_echo "no" >&6; }
  2403. fi
  2404. if test "x$ac_ct_STRIP" = x; then
  2405. STRIP=":"
  2406. else
  2407. case $cross_compiling:$ac_tool_warned in
  2408. yes:)
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2410. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2411. ac_tool_warned=yes ;;
  2412. esac
  2413. STRIP=$ac_ct_STRIP
  2414. fi
  2415. else
  2416. STRIP="$ac_cv_prog_STRIP"
  2417. fi
  2418. fi
  2419. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2421. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2422. if test -z "$MKDIR_P"; then
  2423. if test "${ac_cv_path_mkdir+set}" = set; then :
  2424. $as_echo_n "(cached) " >&6
  2425. else
  2426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2427. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2428. do
  2429. IFS=$as_save_IFS
  2430. test -z "$as_dir" && as_dir=.
  2431. for ac_prog in mkdir gmkdir; do
  2432. for ac_exec_ext in '' $ac_executable_extensions; do
  2433. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2434. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2435. 'mkdir (GNU coreutils) '* | \
  2436. 'mkdir (coreutils) '* | \
  2437. 'mkdir (fileutils) '4.1*)
  2438. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2439. break 3;;
  2440. esac
  2441. done
  2442. done
  2443. done
  2444. IFS=$as_save_IFS
  2445. fi
  2446. if test "${ac_cv_path_mkdir+set}" = set; then
  2447. MKDIR_P="$ac_cv_path_mkdir -p"
  2448. else
  2449. # As a last resort, use the slow shell script. Don't cache a
  2450. # value for MKDIR_P within a source directory, because that will
  2451. # break other packages using the cache if that directory is
  2452. # removed, or if the value is a relative name.
  2453. test -d ./--version && rmdir ./--version
  2454. MKDIR_P="$ac_install_sh -d"
  2455. fi
  2456. fi
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2458. $as_echo "$MKDIR_P" >&6; }
  2459. mkdir_p="$MKDIR_P"
  2460. case $mkdir_p in
  2461. [\\/$]* | ?:[\\/]*) ;;
  2462. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2463. esac
  2464. for ac_prog in gawk mawk nawk awk
  2465. do
  2466. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2467. set dummy $ac_prog; ac_word=$2
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2469. $as_echo_n "checking for $ac_word... " >&6; }
  2470. if test "${ac_cv_prog_AWK+set}" = set; then :
  2471. $as_echo_n "(cached) " >&6
  2472. else
  2473. if test -n "$AWK"; then
  2474. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2475. else
  2476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2477. for as_dir in $PATH
  2478. do
  2479. IFS=$as_save_IFS
  2480. test -z "$as_dir" && as_dir=.
  2481. for ac_exec_ext in '' $ac_executable_extensions; do
  2482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2483. ac_cv_prog_AWK="$ac_prog"
  2484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2485. break 2
  2486. fi
  2487. done
  2488. done
  2489. IFS=$as_save_IFS
  2490. fi
  2491. fi
  2492. AWK=$ac_cv_prog_AWK
  2493. if test -n "$AWK"; then
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2495. $as_echo "$AWK" >&6; }
  2496. else
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2498. $as_echo "no" >&6; }
  2499. fi
  2500. test -n "$AWK" && break
  2501. done
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2503. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2504. set x ${MAKE-make}
  2505. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2506. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2507. $as_echo_n "(cached) " >&6
  2508. else
  2509. cat >conftest.make <<\_ACEOF
  2510. SHELL = /bin/sh
  2511. all:
  2512. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2513. _ACEOF
  2514. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2515. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2516. *@@@%%%=?*=@@@%%%*)
  2517. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2518. *)
  2519. eval ac_cv_prog_make_${ac_make}_set=no;;
  2520. esac
  2521. rm -f conftest.make
  2522. fi
  2523. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2525. $as_echo "yes" >&6; }
  2526. SET_MAKE=
  2527. else
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2529. $as_echo "no" >&6; }
  2530. SET_MAKE="MAKE=${MAKE-make}"
  2531. fi
  2532. rm -rf .tst 2>/dev/null
  2533. mkdir .tst 2>/dev/null
  2534. if test -d .tst; then
  2535. am__leading_dot=.
  2536. else
  2537. am__leading_dot=_
  2538. fi
  2539. rmdir .tst 2>/dev/null
  2540. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2541. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2542. # is not polluted with repeated "-I."
  2543. am__isrc=' -I$(srcdir)'
  2544. # test to see if srcdir already configured
  2545. if test -f $srcdir/config.status; then
  2546. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2547. fi
  2548. fi
  2549. # test whether we have cygpath
  2550. if test -z "$CYGPATH_W"; then
  2551. if (cygpath --version) >/dev/null 2>/dev/null; then
  2552. CYGPATH_W='cygpath -w'
  2553. else
  2554. CYGPATH_W=echo
  2555. fi
  2556. fi
  2557. # Define the identity of the package.
  2558. PACKAGE='package-unused'
  2559. VERSION='version-unused'
  2560. cat >>confdefs.h <<_ACEOF
  2561. #define PACKAGE "$PACKAGE"
  2562. _ACEOF
  2563. cat >>confdefs.h <<_ACEOF
  2564. #define VERSION "$VERSION"
  2565. _ACEOF
  2566. # Some tools Automake needs.
  2567. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2568. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2569. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2570. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2571. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2572. # We need awk for the "check" target. The system "awk" is bad on
  2573. # some platforms.
  2574. # Always define AMTAR for backward compatibility.
  2575. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2576. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2577. # Default to --enable-multilib
  2578. # Check whether --enable-multilib was given.
  2579. if test "${enable_multilib+set}" = set; then :
  2580. enableval=$enable_multilib; case "$enableval" in
  2581. yes) multilib=yes ;;
  2582. no) multilib=no ;;
  2583. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2584. esac
  2585. else
  2586. multilib=yes
  2587. fi
  2588. # We may get other options which we leave undocumented:
  2589. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2590. # See config-ml.in if you want the gory details.
  2591. if test "$srcdir" = "."; then
  2592. if test "$with_target_subdir" != "."; then
  2593. multi_basedir="$srcdir/$with_multisrctop../.."
  2594. else
  2595. multi_basedir="$srcdir/$with_multisrctop.."
  2596. fi
  2597. else
  2598. multi_basedir="$srcdir/.."
  2599. fi
  2600. # Even if the default multilib is not a cross compilation,
  2601. # it may be that some of the other multilibs are.
  2602. if test $cross_compiling = no && test $multilib = yes \
  2603. && test "x${with_multisubdir}" != x ; then
  2604. cross_compiling=maybe
  2605. fi
  2606. ac_config_commands="$ac_config_commands default-1"
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2608. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2609. # Check whether --enable-maintainer-mode was given.
  2610. if test "${enable_maintainer_mode+set}" = set; then :
  2611. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2612. else
  2613. USE_MAINTAINER_MODE=no
  2614. fi
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2616. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2617. if test $USE_MAINTAINER_MODE = yes; then
  2618. MAINTAINER_MODE_TRUE=
  2619. MAINTAINER_MODE_FALSE='#'
  2620. else
  2621. MAINTAINER_MODE_TRUE='#'
  2622. MAINTAINER_MODE_FALSE=
  2623. fi
  2624. MAINT=$MAINTAINER_MODE_TRUE
  2625. ac_ext=c
  2626. ac_cpp='$CPP $CPPFLAGS'
  2627. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2628. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2629. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2630. if test -n "$ac_tool_prefix"; then
  2631. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2632. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2634. $as_echo_n "checking for $ac_word... " >&6; }
  2635. if test "${ac_cv_prog_CC+set}" = set; then :
  2636. $as_echo_n "(cached) " >&6
  2637. else
  2638. if test -n "$CC"; then
  2639. ac_cv_prog_CC="$CC" # Let the user override the test.
  2640. else
  2641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2642. for as_dir in $PATH
  2643. do
  2644. IFS=$as_save_IFS
  2645. test -z "$as_dir" && as_dir=.
  2646. for ac_exec_ext in '' $ac_executable_extensions; do
  2647. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2648. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2650. break 2
  2651. fi
  2652. done
  2653. done
  2654. IFS=$as_save_IFS
  2655. fi
  2656. fi
  2657. CC=$ac_cv_prog_CC
  2658. if test -n "$CC"; then
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2660. $as_echo "$CC" >&6; }
  2661. else
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2663. $as_echo "no" >&6; }
  2664. fi
  2665. fi
  2666. if test -z "$ac_cv_prog_CC"; then
  2667. ac_ct_CC=$CC
  2668. # Extract the first word of "gcc", so it can be a program name with args.
  2669. set dummy gcc; ac_word=$2
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2671. $as_echo_n "checking for $ac_word... " >&6; }
  2672. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2673. $as_echo_n "(cached) " >&6
  2674. else
  2675. if test -n "$ac_ct_CC"; then
  2676. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2677. else
  2678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2679. for as_dir in $PATH
  2680. do
  2681. IFS=$as_save_IFS
  2682. test -z "$as_dir" && as_dir=.
  2683. for ac_exec_ext in '' $ac_executable_extensions; do
  2684. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2685. ac_cv_prog_ac_ct_CC="gcc"
  2686. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2687. break 2
  2688. fi
  2689. done
  2690. done
  2691. IFS=$as_save_IFS
  2692. fi
  2693. fi
  2694. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2695. if test -n "$ac_ct_CC"; then
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2697. $as_echo "$ac_ct_CC" >&6; }
  2698. else
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2700. $as_echo "no" >&6; }
  2701. fi
  2702. if test "x$ac_ct_CC" = x; then
  2703. CC=""
  2704. else
  2705. case $cross_compiling:$ac_tool_warned in
  2706. yes:)
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2708. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2709. ac_tool_warned=yes ;;
  2710. esac
  2711. CC=$ac_ct_CC
  2712. fi
  2713. else
  2714. CC="$ac_cv_prog_CC"
  2715. fi
  2716. if test -z "$CC"; then
  2717. if test -n "$ac_tool_prefix"; then
  2718. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2719. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2721. $as_echo_n "checking for $ac_word... " >&6; }
  2722. if test "${ac_cv_prog_CC+set}" = set; then :
  2723. $as_echo_n "(cached) " >&6
  2724. else
  2725. if test -n "$CC"; then
  2726. ac_cv_prog_CC="$CC" # Let the user override the test.
  2727. else
  2728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2729. for as_dir in $PATH
  2730. do
  2731. IFS=$as_save_IFS
  2732. test -z "$as_dir" && as_dir=.
  2733. for ac_exec_ext in '' $ac_executable_extensions; do
  2734. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2735. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2737. break 2
  2738. fi
  2739. done
  2740. done
  2741. IFS=$as_save_IFS
  2742. fi
  2743. fi
  2744. CC=$ac_cv_prog_CC
  2745. if test -n "$CC"; then
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2747. $as_echo "$CC" >&6; }
  2748. else
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2750. $as_echo "no" >&6; }
  2751. fi
  2752. fi
  2753. fi
  2754. if test -z "$CC"; then
  2755. # Extract the first word of "cc", so it can be a program name with args.
  2756. set dummy cc; ac_word=$2
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2758. $as_echo_n "checking for $ac_word... " >&6; }
  2759. if test "${ac_cv_prog_CC+set}" = set; then :
  2760. $as_echo_n "(cached) " >&6
  2761. else
  2762. if test -n "$CC"; then
  2763. ac_cv_prog_CC="$CC" # Let the user override the test.
  2764. else
  2765. ac_prog_rejected=no
  2766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2767. for as_dir in $PATH
  2768. do
  2769. IFS=$as_save_IFS
  2770. test -z "$as_dir" && as_dir=.
  2771. for ac_exec_ext in '' $ac_executable_extensions; do
  2772. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2773. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2774. ac_prog_rejected=yes
  2775. continue
  2776. fi
  2777. ac_cv_prog_CC="cc"
  2778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2779. break 2
  2780. fi
  2781. done
  2782. done
  2783. IFS=$as_save_IFS
  2784. if test $ac_prog_rejected = yes; then
  2785. # We found a bogon in the path, so make sure we never use it.
  2786. set dummy $ac_cv_prog_CC
  2787. shift
  2788. if test $# != 0; then
  2789. # We chose a different compiler from the bogus one.
  2790. # However, it has the same basename, so the bogon will be chosen
  2791. # first if we set CC to just the basename; use the full file name.
  2792. shift
  2793. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2794. fi
  2795. fi
  2796. fi
  2797. fi
  2798. CC=$ac_cv_prog_CC
  2799. if test -n "$CC"; then
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2801. $as_echo "$CC" >&6; }
  2802. else
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2804. $as_echo "no" >&6; }
  2805. fi
  2806. fi
  2807. if test -z "$CC"; then
  2808. if test -n "$ac_tool_prefix"; then
  2809. for ac_prog in cl.exe
  2810. do
  2811. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2812. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2814. $as_echo_n "checking for $ac_word... " >&6; }
  2815. if test "${ac_cv_prog_CC+set}" = set; then :
  2816. $as_echo_n "(cached) " >&6
  2817. else
  2818. if test -n "$CC"; then
  2819. ac_cv_prog_CC="$CC" # Let the user override the test.
  2820. else
  2821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2822. for as_dir in $PATH
  2823. do
  2824. IFS=$as_save_IFS
  2825. test -z "$as_dir" && as_dir=.
  2826. for ac_exec_ext in '' $ac_executable_extensions; do
  2827. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2828. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2830. break 2
  2831. fi
  2832. done
  2833. done
  2834. IFS=$as_save_IFS
  2835. fi
  2836. fi
  2837. CC=$ac_cv_prog_CC
  2838. if test -n "$CC"; then
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2840. $as_echo "$CC" >&6; }
  2841. else
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2843. $as_echo "no" >&6; }
  2844. fi
  2845. test -n "$CC" && break
  2846. done
  2847. fi
  2848. if test -z "$CC"; then
  2849. ac_ct_CC=$CC
  2850. for ac_prog in cl.exe
  2851. do
  2852. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2853. set dummy $ac_prog; ac_word=$2
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2855. $as_echo_n "checking for $ac_word... " >&6; }
  2856. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2857. $as_echo_n "(cached) " >&6
  2858. else
  2859. if test -n "$ac_ct_CC"; then
  2860. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2861. else
  2862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2863. for as_dir in $PATH
  2864. do
  2865. IFS=$as_save_IFS
  2866. test -z "$as_dir" && as_dir=.
  2867. for ac_exec_ext in '' $ac_executable_extensions; do
  2868. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2869. ac_cv_prog_ac_ct_CC="$ac_prog"
  2870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2871. break 2
  2872. fi
  2873. done
  2874. done
  2875. IFS=$as_save_IFS
  2876. fi
  2877. fi
  2878. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2879. if test -n "$ac_ct_CC"; then
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2881. $as_echo "$ac_ct_CC" >&6; }
  2882. else
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2884. $as_echo "no" >&6; }
  2885. fi
  2886. test -n "$ac_ct_CC" && break
  2887. done
  2888. if test "x$ac_ct_CC" = x; then
  2889. CC=""
  2890. else
  2891. case $cross_compiling:$ac_tool_warned in
  2892. yes:)
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2894. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2895. ac_tool_warned=yes ;;
  2896. esac
  2897. CC=$ac_ct_CC
  2898. fi
  2899. fi
  2900. fi
  2901. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2902. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2903. as_fn_error "no acceptable C compiler found in \$PATH
  2904. See \`config.log' for more details." "$LINENO" 5; }
  2905. # Provide some information about the compiler.
  2906. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2907. set X $ac_compile
  2908. ac_compiler=$2
  2909. for ac_option in --version -v -V -qversion; do
  2910. { { ac_try="$ac_compiler $ac_option >&5"
  2911. case "(($ac_try" in
  2912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2913. *) ac_try_echo=$ac_try;;
  2914. esac
  2915. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2916. $as_echo "$ac_try_echo"; } >&5
  2917. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2918. ac_status=$?
  2919. if test -s conftest.err; then
  2920. sed '10a\
  2921. ... rest of stderr output deleted ...
  2922. 10q' conftest.err >conftest.er1
  2923. cat conftest.er1 >&5
  2924. rm -f conftest.er1 conftest.err
  2925. fi
  2926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2927. test $ac_status = 0; }
  2928. done
  2929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2930. /* end confdefs.h. */
  2931. int
  2932. main ()
  2933. {
  2934. ;
  2935. return 0;
  2936. }
  2937. _ACEOF
  2938. ac_clean_files_save=$ac_clean_files
  2939. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2940. # Try to create an executable without -o first, disregard a.out.
  2941. # It will help us diagnose broken compilers, and finding out an intuition
  2942. # of exeext.
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2944. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2945. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2946. # The possible output files:
  2947. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2948. ac_rmfiles=
  2949. for ac_file in $ac_files
  2950. do
  2951. case $ac_file in
  2952. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2953. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2954. esac
  2955. done
  2956. rm -f $ac_rmfiles
  2957. if { { ac_try="$ac_link_default"
  2958. case "(($ac_try" in
  2959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2960. *) ac_try_echo=$ac_try;;
  2961. esac
  2962. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2963. $as_echo "$ac_try_echo"; } >&5
  2964. (eval "$ac_link_default") 2>&5
  2965. ac_status=$?
  2966. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2967. test $ac_status = 0; }; then :
  2968. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2969. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2970. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2971. # so that the user can short-circuit this test for compilers unknown to
  2972. # Autoconf.
  2973. for ac_file in $ac_files ''
  2974. do
  2975. test -f "$ac_file" || continue
  2976. case $ac_file in
  2977. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2978. ;;
  2979. [ab].out )
  2980. # We found the default executable, but exeext='' is most
  2981. # certainly right.
  2982. break;;
  2983. *.* )
  2984. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2985. then :; else
  2986. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2987. fi
  2988. # We set ac_cv_exeext here because the later test for it is not
  2989. # safe: cross compilers may not add the suffix if given an `-o'
  2990. # argument, so we may need to know it at that point already.
  2991. # Even if this section looks crufty: it has the advantage of
  2992. # actually working.
  2993. break;;
  2994. * )
  2995. break;;
  2996. esac
  2997. done
  2998. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2999. else
  3000. ac_file=''
  3001. fi
  3002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3003. $as_echo "$ac_file" >&6; }
  3004. if test -z "$ac_file"; then :
  3005. $as_echo "$as_me: failed program was:" >&5
  3006. sed 's/^/| /' conftest.$ac_ext >&5
  3007. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3008. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3009. { as_fn_set_status 77
  3010. as_fn_error "C compiler cannot create executables
  3011. See \`config.log' for more details." "$LINENO" 5; }; }
  3012. fi
  3013. ac_exeext=$ac_cv_exeext
  3014. # Check that the compiler produces executables we can run. If not, either
  3015. # the compiler is broken, or we cross compile.
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3017. $as_echo_n "checking whether the C compiler works... " >&6; }
  3018. # If not cross compiling, check that we can run a simple program.
  3019. if test "$cross_compiling" != yes; then
  3020. if { ac_try='./$ac_file'
  3021. { { case "(($ac_try" in
  3022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3023. *) ac_try_echo=$ac_try;;
  3024. esac
  3025. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3026. $as_echo "$ac_try_echo"; } >&5
  3027. (eval "$ac_try") 2>&5
  3028. ac_status=$?
  3029. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3030. test $ac_status = 0; }; }; then
  3031. cross_compiling=no
  3032. else
  3033. if test "$cross_compiling" = maybe; then
  3034. cross_compiling=yes
  3035. else
  3036. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3037. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3038. as_fn_error "cannot run C compiled programs.
  3039. If you meant to cross compile, use \`--host'.
  3040. See \`config.log' for more details." "$LINENO" 5; }
  3041. fi
  3042. fi
  3043. fi
  3044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3045. $as_echo "yes" >&6; }
  3046. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3047. ac_clean_files=$ac_clean_files_save
  3048. # Check that the compiler produces executables we can run. If not, either
  3049. # the compiler is broken, or we cross compile.
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3051. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3053. $as_echo "$cross_compiling" >&6; }
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3055. $as_echo_n "checking for suffix of executables... " >&6; }
  3056. if { { ac_try="$ac_link"
  3057. case "(($ac_try" in
  3058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3059. *) ac_try_echo=$ac_try;;
  3060. esac
  3061. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3062. $as_echo "$ac_try_echo"; } >&5
  3063. (eval "$ac_link") 2>&5
  3064. ac_status=$?
  3065. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3066. test $ac_status = 0; }; then :
  3067. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3068. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3069. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3070. # `rm'.
  3071. for ac_file in conftest.exe conftest conftest.*; do
  3072. test -f "$ac_file" || continue
  3073. case $ac_file in
  3074. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3075. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3076. break;;
  3077. * ) break;;
  3078. esac
  3079. done
  3080. else
  3081. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3082. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3083. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3084. See \`config.log' for more details." "$LINENO" 5; }
  3085. fi
  3086. rm -f conftest$ac_cv_exeext
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3088. $as_echo "$ac_cv_exeext" >&6; }
  3089. rm -f conftest.$ac_ext
  3090. EXEEXT=$ac_cv_exeext
  3091. ac_exeext=$EXEEXT
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3093. $as_echo_n "checking for suffix of object files... " >&6; }
  3094. if test "${ac_cv_objext+set}" = set; then :
  3095. $as_echo_n "(cached) " >&6
  3096. else
  3097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3098. /* end confdefs.h. */
  3099. int
  3100. main ()
  3101. {
  3102. ;
  3103. return 0;
  3104. }
  3105. _ACEOF
  3106. rm -f conftest.o conftest.obj
  3107. if { { ac_try="$ac_compile"
  3108. case "(($ac_try" in
  3109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3110. *) ac_try_echo=$ac_try;;
  3111. esac
  3112. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3113. $as_echo "$ac_try_echo"; } >&5
  3114. (eval "$ac_compile") 2>&5
  3115. ac_status=$?
  3116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3117. test $ac_status = 0; }; then :
  3118. for ac_file in conftest.o conftest.obj 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 ) ;;
  3122. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3123. break;;
  3124. esac
  3125. done
  3126. else
  3127. $as_echo "$as_me: failed program was:" >&5
  3128. sed 's/^/| /' conftest.$ac_ext >&5
  3129. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3130. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3131. as_fn_error "cannot compute suffix of object files: cannot compile
  3132. See \`config.log' for more details." "$LINENO" 5; }
  3133. fi
  3134. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3135. fi
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3137. $as_echo "$ac_cv_objext" >&6; }
  3138. OBJEXT=$ac_cv_objext
  3139. ac_objext=$OBJEXT
  3140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3141. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3142. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3143. $as_echo_n "(cached) " >&6
  3144. else
  3145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3146. /* end confdefs.h. */
  3147. int
  3148. main ()
  3149. {
  3150. #ifndef __GNUC__
  3151. choke me
  3152. #endif
  3153. ;
  3154. return 0;
  3155. }
  3156. _ACEOF
  3157. if ac_fn_c_try_compile "$LINENO"; then :
  3158. ac_compiler_gnu=yes
  3159. else
  3160. ac_compiler_gnu=no
  3161. fi
  3162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3163. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3164. fi
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3166. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3167. if test $ac_compiler_gnu = yes; then
  3168. GCC=yes
  3169. else
  3170. GCC=
  3171. fi
  3172. ac_test_CFLAGS=${CFLAGS+set}
  3173. ac_save_CFLAGS=$CFLAGS
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3175. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3176. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3177. $as_echo_n "(cached) " >&6
  3178. else
  3179. ac_save_c_werror_flag=$ac_c_werror_flag
  3180. ac_c_werror_flag=yes
  3181. ac_cv_prog_cc_g=no
  3182. CFLAGS="-g"
  3183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3184. /* end confdefs.h. */
  3185. int
  3186. main ()
  3187. {
  3188. ;
  3189. return 0;
  3190. }
  3191. _ACEOF
  3192. if ac_fn_c_try_compile "$LINENO"; then :
  3193. ac_cv_prog_cc_g=yes
  3194. else
  3195. CFLAGS=""
  3196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3197. /* end confdefs.h. */
  3198. int
  3199. main ()
  3200. {
  3201. ;
  3202. return 0;
  3203. }
  3204. _ACEOF
  3205. if ac_fn_c_try_compile "$LINENO"; then :
  3206. else
  3207. ac_c_werror_flag=$ac_save_c_werror_flag
  3208. CFLAGS="-g"
  3209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3210. /* end confdefs.h. */
  3211. int
  3212. main ()
  3213. {
  3214. ;
  3215. return 0;
  3216. }
  3217. _ACEOF
  3218. if ac_fn_c_try_compile "$LINENO"; then :
  3219. ac_cv_prog_cc_g=yes
  3220. fi
  3221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3222. fi
  3223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3224. fi
  3225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3226. ac_c_werror_flag=$ac_save_c_werror_flag
  3227. fi
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3229. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3230. if test "$ac_test_CFLAGS" = set; then
  3231. CFLAGS=$ac_save_CFLAGS
  3232. elif test $ac_cv_prog_cc_g = yes; then
  3233. if test "$GCC" = yes; then
  3234. CFLAGS="-g -O2"
  3235. else
  3236. CFLAGS="-g"
  3237. fi
  3238. else
  3239. if test "$GCC" = yes; then
  3240. CFLAGS="-O2"
  3241. else
  3242. CFLAGS=
  3243. fi
  3244. fi
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3246. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3247. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3248. $as_echo_n "(cached) " >&6
  3249. else
  3250. ac_cv_prog_cc_c89=no
  3251. ac_save_CC=$CC
  3252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3253. /* end confdefs.h. */
  3254. #include <stdarg.h>
  3255. #include <stdio.h>
  3256. #include <sys/types.h>
  3257. #include <sys/stat.h>
  3258. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3259. struct buf { int x; };
  3260. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3261. static char *e (p, i)
  3262. char **p;
  3263. int i;
  3264. {
  3265. return p[i];
  3266. }
  3267. static char *f (char * (*g) (char **, int), char **p, ...)
  3268. {
  3269. char *s;
  3270. va_list v;
  3271. va_start (v,p);
  3272. s = g (p, va_arg (v,int));
  3273. va_end (v);
  3274. return s;
  3275. }
  3276. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3277. function prototypes and stuff, but not '\xHH' hex character constants.
  3278. These don't provoke an error unfortunately, instead are silently treated
  3279. as 'x'. The following induces an error, until -std is added to get
  3280. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3281. array size at least. It's necessary to write '\x00'==0 to get something
  3282. that's true only with -std. */
  3283. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3284. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3285. inside strings and character constants. */
  3286. #define FOO(x) 'x'
  3287. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3288. int test (int i, double x);
  3289. struct s1 {int (*f) (int a);};
  3290. struct s2 {int (*f) (double a);};
  3291. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3292. int argc;
  3293. char **argv;
  3294. int
  3295. main ()
  3296. {
  3297. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3298. ;
  3299. return 0;
  3300. }
  3301. _ACEOF
  3302. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3303. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3304. do
  3305. CC="$ac_save_CC $ac_arg"
  3306. if ac_fn_c_try_compile "$LINENO"; then :
  3307. ac_cv_prog_cc_c89=$ac_arg
  3308. fi
  3309. rm -f core conftest.err conftest.$ac_objext
  3310. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3311. done
  3312. rm -f conftest.$ac_ext
  3313. CC=$ac_save_CC
  3314. fi
  3315. # AC_CACHE_VAL
  3316. case "x$ac_cv_prog_cc_c89" in
  3317. x)
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3319. $as_echo "none needed" >&6; } ;;
  3320. xno)
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3322. $as_echo "unsupported" >&6; } ;;
  3323. *)
  3324. CC="$CC $ac_cv_prog_cc_c89"
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3326. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3327. esac
  3328. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3329. fi
  3330. ac_ext=c
  3331. ac_cpp='$CPP $CPPFLAGS'
  3332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3335. ac_ext=c
  3336. ac_cpp='$CPP $CPPFLAGS'
  3337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3341. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3342. # On Suns, sometimes $CPP names a directory.
  3343. if test -n "$CPP" && test -d "$CPP"; then
  3344. CPP=
  3345. fi
  3346. if test -z "$CPP"; then
  3347. if test "${ac_cv_prog_CPP+set}" = set; then :
  3348. $as_echo_n "(cached) " >&6
  3349. else
  3350. # Double quotes because CPP needs to be expanded
  3351. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3352. do
  3353. ac_preproc_ok=false
  3354. for ac_c_preproc_warn_flag in '' yes
  3355. do
  3356. # Use a header file that comes with gcc, so configuring glibc
  3357. # with a fresh cross-compiler works.
  3358. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3359. # <limits.h> exists even on freestanding compilers.
  3360. # On the NeXT, cc -E runs the code through the compiler's parser,
  3361. # not just through cpp. "Syntax error" is here to catch this case.
  3362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3363. /* end confdefs.h. */
  3364. #ifdef __STDC__
  3365. # include <limits.h>
  3366. #else
  3367. # include <assert.h>
  3368. #endif
  3369. Syntax error
  3370. _ACEOF
  3371. if ac_fn_c_try_cpp "$LINENO"; then :
  3372. else
  3373. # Broken: fails on valid input.
  3374. continue
  3375. fi
  3376. rm -f conftest.err conftest.$ac_ext
  3377. # OK, works on sane cases. Now check whether nonexistent headers
  3378. # can be detected and how.
  3379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3380. /* end confdefs.h. */
  3381. #include <ac_nonexistent.h>
  3382. _ACEOF
  3383. if ac_fn_c_try_cpp "$LINENO"; then :
  3384. # Broken: success on invalid input.
  3385. continue
  3386. else
  3387. # Passes both tests.
  3388. ac_preproc_ok=:
  3389. break
  3390. fi
  3391. rm -f conftest.err conftest.$ac_ext
  3392. done
  3393. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3394. rm -f conftest.err conftest.$ac_ext
  3395. if $ac_preproc_ok; then :
  3396. break
  3397. fi
  3398. done
  3399. ac_cv_prog_CPP=$CPP
  3400. fi
  3401. CPP=$ac_cv_prog_CPP
  3402. else
  3403. ac_cv_prog_CPP=$CPP
  3404. fi
  3405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3406. $as_echo "$CPP" >&6; }
  3407. ac_preproc_ok=false
  3408. for ac_c_preproc_warn_flag in '' yes
  3409. do
  3410. # Use a header file that comes with gcc, so configuring glibc
  3411. # with a fresh cross-compiler works.
  3412. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3413. # <limits.h> exists even on freestanding compilers.
  3414. # On the NeXT, cc -E runs the code through the compiler's parser,
  3415. # not just through cpp. "Syntax error" is here to catch this case.
  3416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3417. /* end confdefs.h. */
  3418. #ifdef __STDC__
  3419. # include <limits.h>
  3420. #else
  3421. # include <assert.h>
  3422. #endif
  3423. Syntax error
  3424. _ACEOF
  3425. if ac_fn_c_try_cpp "$LINENO"; then :
  3426. else
  3427. # Broken: fails on valid input.
  3428. continue
  3429. fi
  3430. rm -f conftest.err conftest.$ac_ext
  3431. # OK, works on sane cases. Now check whether nonexistent headers
  3432. # can be detected and how.
  3433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3434. /* end confdefs.h. */
  3435. #include <ac_nonexistent.h>
  3436. _ACEOF
  3437. if ac_fn_c_try_cpp "$LINENO"; then :
  3438. # Broken: success on invalid input.
  3439. continue
  3440. else
  3441. # Passes both tests.
  3442. ac_preproc_ok=:
  3443. break
  3444. fi
  3445. rm -f conftest.err conftest.$ac_ext
  3446. done
  3447. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3448. rm -f conftest.err conftest.$ac_ext
  3449. if $ac_preproc_ok; then :
  3450. else
  3451. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3452. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3453. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3454. See \`config.log' for more details." "$LINENO" 5; }
  3455. fi
  3456. ac_ext=c
  3457. ac_cpp='$CPP $CPPFLAGS'
  3458. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3459. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3460. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3462. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3463. if test "${ac_cv_path_GREP+set}" = set; then :
  3464. $as_echo_n "(cached) " >&6
  3465. else
  3466. if test -z "$GREP"; then
  3467. ac_path_GREP_found=false
  3468. # Loop through the user's path and test for each of PROGNAME-LIST
  3469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3470. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3471. do
  3472. IFS=$as_save_IFS
  3473. test -z "$as_dir" && as_dir=.
  3474. for ac_prog in grep ggrep; do
  3475. for ac_exec_ext in '' $ac_executable_extensions; do
  3476. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3477. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3478. # Check for GNU ac_path_GREP and select it if it is found.
  3479. # Check for GNU $ac_path_GREP
  3480. case `"$ac_path_GREP" --version 2>&1` in
  3481. *GNU*)
  3482. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3483. *)
  3484. ac_count=0
  3485. $as_echo_n 0123456789 >"conftest.in"
  3486. while :
  3487. do
  3488. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3489. mv "conftest.tmp" "conftest.in"
  3490. cp "conftest.in" "conftest.nl"
  3491. $as_echo 'GREP' >> "conftest.nl"
  3492. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3493. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3494. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3495. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3496. # Best one so far, save it but keep looking for a better one
  3497. ac_cv_path_GREP="$ac_path_GREP"
  3498. ac_path_GREP_max=$ac_count
  3499. fi
  3500. # 10*(2^10) chars as input seems more than enough
  3501. test $ac_count -gt 10 && break
  3502. done
  3503. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3504. esac
  3505. $ac_path_GREP_found && break 3
  3506. done
  3507. done
  3508. done
  3509. IFS=$as_save_IFS
  3510. if test -z "$ac_cv_path_GREP"; then
  3511. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3512. fi
  3513. else
  3514. ac_cv_path_GREP=$GREP
  3515. fi
  3516. fi
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3518. $as_echo "$ac_cv_path_GREP" >&6; }
  3519. GREP="$ac_cv_path_GREP"
  3520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3521. $as_echo_n "checking for egrep... " >&6; }
  3522. if test "${ac_cv_path_EGREP+set}" = set; then :
  3523. $as_echo_n "(cached) " >&6
  3524. else
  3525. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3526. then ac_cv_path_EGREP="$GREP -E"
  3527. else
  3528. if test -z "$EGREP"; then
  3529. ac_path_EGREP_found=false
  3530. # Loop through the user's path and test for each of PROGNAME-LIST
  3531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3532. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3533. do
  3534. IFS=$as_save_IFS
  3535. test -z "$as_dir" && as_dir=.
  3536. for ac_prog in egrep; do
  3537. for ac_exec_ext in '' $ac_executable_extensions; do
  3538. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3539. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3540. # Check for GNU ac_path_EGREP and select it if it is found.
  3541. # Check for GNU $ac_path_EGREP
  3542. case `"$ac_path_EGREP" --version 2>&1` in
  3543. *GNU*)
  3544. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3545. *)
  3546. ac_count=0
  3547. $as_echo_n 0123456789 >"conftest.in"
  3548. while :
  3549. do
  3550. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3551. mv "conftest.tmp" "conftest.in"
  3552. cp "conftest.in" "conftest.nl"
  3553. $as_echo 'EGREP' >> "conftest.nl"
  3554. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3555. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3556. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3557. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3558. # Best one so far, save it but keep looking for a better one
  3559. ac_cv_path_EGREP="$ac_path_EGREP"
  3560. ac_path_EGREP_max=$ac_count
  3561. fi
  3562. # 10*(2^10) chars as input seems more than enough
  3563. test $ac_count -gt 10 && break
  3564. done
  3565. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3566. esac
  3567. $ac_path_EGREP_found && break 3
  3568. done
  3569. done
  3570. done
  3571. IFS=$as_save_IFS
  3572. if test -z "$ac_cv_path_EGREP"; then
  3573. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3574. fi
  3575. else
  3576. ac_cv_path_EGREP=$EGREP
  3577. fi
  3578. fi
  3579. fi
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3581. $as_echo "$ac_cv_path_EGREP" >&6; }
  3582. EGREP="$ac_cv_path_EGREP"
  3583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3584. $as_echo_n "checking for ANSI C header files... " >&6; }
  3585. if test "${ac_cv_header_stdc+set}" = set; then :
  3586. $as_echo_n "(cached) " >&6
  3587. else
  3588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3589. /* end confdefs.h. */
  3590. #include <stdlib.h>
  3591. #include <stdarg.h>
  3592. #include <string.h>
  3593. #include <float.h>
  3594. int
  3595. main ()
  3596. {
  3597. ;
  3598. return 0;
  3599. }
  3600. _ACEOF
  3601. if ac_fn_c_try_compile "$LINENO"; then :
  3602. ac_cv_header_stdc=yes
  3603. else
  3604. ac_cv_header_stdc=no
  3605. fi
  3606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3607. if test $ac_cv_header_stdc = yes; then
  3608. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3610. /* end confdefs.h. */
  3611. #include <string.h>
  3612. _ACEOF
  3613. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3614. $EGREP "memchr" >/dev/null 2>&1; then :
  3615. else
  3616. ac_cv_header_stdc=no
  3617. fi
  3618. rm -f conftest*
  3619. fi
  3620. if test $ac_cv_header_stdc = yes; then
  3621. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3623. /* end confdefs.h. */
  3624. #include <stdlib.h>
  3625. _ACEOF
  3626. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3627. $EGREP "free" >/dev/null 2>&1; then :
  3628. else
  3629. ac_cv_header_stdc=no
  3630. fi
  3631. rm -f conftest*
  3632. fi
  3633. if test $ac_cv_header_stdc = yes; then
  3634. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3635. if test "$cross_compiling" = yes; then :
  3636. :
  3637. else
  3638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3639. /* end confdefs.h. */
  3640. #include <ctype.h>
  3641. #include <stdlib.h>
  3642. #if ((' ' & 0x0FF) == 0x020)
  3643. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3644. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3645. #else
  3646. # define ISLOWER(c) \
  3647. (('a' <= (c) && (c) <= 'i') \
  3648. || ('j' <= (c) && (c) <= 'r') \
  3649. || ('s' <= (c) && (c) <= 'z'))
  3650. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3651. #endif
  3652. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3653. int
  3654. main ()
  3655. {
  3656. int i;
  3657. for (i = 0; i < 256; i++)
  3658. if (XOR (islower (i), ISLOWER (i))
  3659. || toupper (i) != TOUPPER (i))
  3660. return 2;
  3661. return 0;
  3662. }
  3663. _ACEOF
  3664. if ac_fn_c_try_run "$LINENO"; then :
  3665. else
  3666. ac_cv_header_stdc=no
  3667. fi
  3668. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3669. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3670. fi
  3671. fi
  3672. fi
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3674. $as_echo "$ac_cv_header_stdc" >&6; }
  3675. if test $ac_cv_header_stdc = yes; then
  3676. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3677. fi
  3678. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3679. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3680. inttypes.h stdint.h unistd.h
  3681. do :
  3682. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3683. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3684. "
  3685. eval as_val=\$$as_ac_Header
  3686. if test "x$as_val" = x""yes; then :
  3687. cat >>confdefs.h <<_ACEOF
  3688. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3689. _ACEOF
  3690. fi
  3691. done
  3692. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3693. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3694. MINIX=yes
  3695. else
  3696. MINIX=
  3697. fi
  3698. if test "$MINIX" = yes; then
  3699. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3700. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3701. $as_echo "#define _MINIX 1" >>confdefs.h
  3702. fi
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3704. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3705. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3706. $as_echo_n "(cached) " >&6
  3707. else
  3708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3709. /* end confdefs.h. */
  3710. # define __EXTENSIONS__ 1
  3711. $ac_includes_default
  3712. int
  3713. main ()
  3714. {
  3715. ;
  3716. return 0;
  3717. }
  3718. _ACEOF
  3719. if ac_fn_c_try_compile "$LINENO"; then :
  3720. ac_cv_safe_to_define___extensions__=yes
  3721. else
  3722. ac_cv_safe_to_define___extensions__=no
  3723. fi
  3724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3725. fi
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3727. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3728. test $ac_cv_safe_to_define___extensions__ = yes &&
  3729. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3730. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3731. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3732. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3733. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3734. for ac_func in secure_getenv
  3735. do :
  3736. ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
  3737. if test "x$ac_cv_func_secure_getenv" = x""yes; then :
  3738. cat >>confdefs.h <<_ACEOF
  3739. #define HAVE_SECURE_GETENV 1
  3740. _ACEOF
  3741. fi
  3742. done
  3743. # Calculate toolexeclibdir
  3744. # Also toolexecdir, though it's only used in toolexeclibdir
  3745. case ${version_specific_libs} in
  3746. yes)
  3747. # Need the gcc compiler version to know where to install libraries
  3748. # and header files if --enable-version-specific-runtime-libs option
  3749. # is selected.
  3750. toolexecdir='$(libdir)/gcc/$(target_alias)'
  3751. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  3752. ;;
  3753. no)
  3754. if test -n "$with_cross_host" &&
  3755. test x"$with_cross_host" != x"no"; then
  3756. # Install a library built with a cross compiler in tooldir, not libdir.
  3757. toolexecdir='$(exec_prefix)/$(target_alias)'
  3758. toolexeclibdir='$(toolexecdir)/lib'
  3759. else
  3760. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  3761. toolexeclibdir='$(libdir)'
  3762. fi
  3763. multi_os_directory=`$CC -print-multi-os-directory`
  3764. case $multi_os_directory in
  3765. .) ;; # Avoid trailing /.
  3766. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  3767. esac
  3768. ;;
  3769. esac
  3770. # Check for programs.
  3771. ac_ext=c
  3772. ac_cpp='$CPP $CPPFLAGS'
  3773. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3774. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3775. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3776. if test -n "$ac_tool_prefix"; then
  3777. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3778. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3780. $as_echo_n "checking for $ac_word... " >&6; }
  3781. if test "${ac_cv_prog_CC+set}" = set; then :
  3782. $as_echo_n "(cached) " >&6
  3783. else
  3784. if test -n "$CC"; then
  3785. ac_cv_prog_CC="$CC" # Let the user override the test.
  3786. else
  3787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3788. for as_dir in $PATH
  3789. do
  3790. IFS=$as_save_IFS
  3791. test -z "$as_dir" && as_dir=.
  3792. for ac_exec_ext in '' $ac_executable_extensions; do
  3793. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3794. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3796. break 2
  3797. fi
  3798. done
  3799. done
  3800. IFS=$as_save_IFS
  3801. fi
  3802. fi
  3803. CC=$ac_cv_prog_CC
  3804. if test -n "$CC"; then
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3806. $as_echo "$CC" >&6; }
  3807. else
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3809. $as_echo "no" >&6; }
  3810. fi
  3811. fi
  3812. if test -z "$ac_cv_prog_CC"; then
  3813. ac_ct_CC=$CC
  3814. # Extract the first word of "gcc", so it can be a program name with args.
  3815. set dummy gcc; ac_word=$2
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3817. $as_echo_n "checking for $ac_word... " >&6; }
  3818. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3819. $as_echo_n "(cached) " >&6
  3820. else
  3821. if test -n "$ac_ct_CC"; then
  3822. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3823. else
  3824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3825. for as_dir in $PATH
  3826. do
  3827. IFS=$as_save_IFS
  3828. test -z "$as_dir" && as_dir=.
  3829. for ac_exec_ext in '' $ac_executable_extensions; do
  3830. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3831. ac_cv_prog_ac_ct_CC="gcc"
  3832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3833. break 2
  3834. fi
  3835. done
  3836. done
  3837. IFS=$as_save_IFS
  3838. fi
  3839. fi
  3840. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3841. if test -n "$ac_ct_CC"; then
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3843. $as_echo "$ac_ct_CC" >&6; }
  3844. else
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3846. $as_echo "no" >&6; }
  3847. fi
  3848. if test "x$ac_ct_CC" = x; then
  3849. CC=""
  3850. else
  3851. case $cross_compiling:$ac_tool_warned in
  3852. yes:)
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3854. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3855. ac_tool_warned=yes ;;
  3856. esac
  3857. CC=$ac_ct_CC
  3858. fi
  3859. else
  3860. CC="$ac_cv_prog_CC"
  3861. fi
  3862. if test -z "$CC"; then
  3863. if test -n "$ac_tool_prefix"; then
  3864. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3865. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3867. $as_echo_n "checking for $ac_word... " >&6; }
  3868. if test "${ac_cv_prog_CC+set}" = set; then :
  3869. $as_echo_n "(cached) " >&6
  3870. else
  3871. if test -n "$CC"; then
  3872. ac_cv_prog_CC="$CC" # Let the user override the test.
  3873. else
  3874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3875. for as_dir in $PATH
  3876. do
  3877. IFS=$as_save_IFS
  3878. test -z "$as_dir" && as_dir=.
  3879. for ac_exec_ext in '' $ac_executable_extensions; do
  3880. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3881. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3883. break 2
  3884. fi
  3885. done
  3886. done
  3887. IFS=$as_save_IFS
  3888. fi
  3889. fi
  3890. CC=$ac_cv_prog_CC
  3891. if test -n "$CC"; then
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3893. $as_echo "$CC" >&6; }
  3894. else
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3896. $as_echo "no" >&6; }
  3897. fi
  3898. fi
  3899. fi
  3900. if test -z "$CC"; then
  3901. # Extract the first word of "cc", so it can be a program name with args.
  3902. set dummy cc; ac_word=$2
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3904. $as_echo_n "checking for $ac_word... " >&6; }
  3905. if test "${ac_cv_prog_CC+set}" = set; then :
  3906. $as_echo_n "(cached) " >&6
  3907. else
  3908. if test -n "$CC"; then
  3909. ac_cv_prog_CC="$CC" # Let the user override the test.
  3910. else
  3911. ac_prog_rejected=no
  3912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3913. for as_dir in $PATH
  3914. do
  3915. IFS=$as_save_IFS
  3916. test -z "$as_dir" && as_dir=.
  3917. for ac_exec_ext in '' $ac_executable_extensions; do
  3918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3919. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3920. ac_prog_rejected=yes
  3921. continue
  3922. fi
  3923. ac_cv_prog_CC="cc"
  3924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3925. break 2
  3926. fi
  3927. done
  3928. done
  3929. IFS=$as_save_IFS
  3930. if test $ac_prog_rejected = yes; then
  3931. # We found a bogon in the path, so make sure we never use it.
  3932. set dummy $ac_cv_prog_CC
  3933. shift
  3934. if test $# != 0; then
  3935. # We chose a different compiler from the bogus one.
  3936. # However, it has the same basename, so the bogon will be chosen
  3937. # first if we set CC to just the basename; use the full file name.
  3938. shift
  3939. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3940. fi
  3941. fi
  3942. fi
  3943. fi
  3944. CC=$ac_cv_prog_CC
  3945. if test -n "$CC"; then
  3946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3947. $as_echo "$CC" >&6; }
  3948. else
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3950. $as_echo "no" >&6; }
  3951. fi
  3952. fi
  3953. if test -z "$CC"; then
  3954. if test -n "$ac_tool_prefix"; then
  3955. for ac_prog in cl.exe
  3956. do
  3957. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3958. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3960. $as_echo_n "checking for $ac_word... " >&6; }
  3961. if test "${ac_cv_prog_CC+set}" = set; then :
  3962. $as_echo_n "(cached) " >&6
  3963. else
  3964. if test -n "$CC"; then
  3965. ac_cv_prog_CC="$CC" # Let the user override the test.
  3966. else
  3967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3968. for as_dir in $PATH
  3969. do
  3970. IFS=$as_save_IFS
  3971. test -z "$as_dir" && as_dir=.
  3972. for ac_exec_ext in '' $ac_executable_extensions; do
  3973. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3974. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3976. break 2
  3977. fi
  3978. done
  3979. done
  3980. IFS=$as_save_IFS
  3981. fi
  3982. fi
  3983. CC=$ac_cv_prog_CC
  3984. if test -n "$CC"; then
  3985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3986. $as_echo "$CC" >&6; }
  3987. else
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3989. $as_echo "no" >&6; }
  3990. fi
  3991. test -n "$CC" && break
  3992. done
  3993. fi
  3994. if test -z "$CC"; then
  3995. ac_ct_CC=$CC
  3996. for ac_prog in cl.exe
  3997. do
  3998. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3999. set dummy $ac_prog; ac_word=$2
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4001. $as_echo_n "checking for $ac_word... " >&6; }
  4002. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4003. $as_echo_n "(cached) " >&6
  4004. else
  4005. if test -n "$ac_ct_CC"; then
  4006. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4007. else
  4008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4009. for as_dir in $PATH
  4010. do
  4011. IFS=$as_save_IFS
  4012. test -z "$as_dir" && as_dir=.
  4013. for ac_exec_ext in '' $ac_executable_extensions; do
  4014. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4015. ac_cv_prog_ac_ct_CC="$ac_prog"
  4016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4017. break 2
  4018. fi
  4019. done
  4020. done
  4021. IFS=$as_save_IFS
  4022. fi
  4023. fi
  4024. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4025. if test -n "$ac_ct_CC"; then
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4027. $as_echo "$ac_ct_CC" >&6; }
  4028. else
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4030. $as_echo "no" >&6; }
  4031. fi
  4032. test -n "$ac_ct_CC" && break
  4033. done
  4034. if test "x$ac_ct_CC" = x; then
  4035. CC=""
  4036. else
  4037. case $cross_compiling:$ac_tool_warned in
  4038. yes:)
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4040. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4041. ac_tool_warned=yes ;;
  4042. esac
  4043. CC=$ac_ct_CC
  4044. fi
  4045. fi
  4046. fi
  4047. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4048. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4049. as_fn_error "no acceptable C compiler found in \$PATH
  4050. See \`config.log' for more details." "$LINENO" 5; }
  4051. # Provide some information about the compiler.
  4052. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4053. set X $ac_compile
  4054. ac_compiler=$2
  4055. for ac_option in --version -v -V -qversion; do
  4056. { { ac_try="$ac_compiler $ac_option >&5"
  4057. case "(($ac_try" in
  4058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4059. *) ac_try_echo=$ac_try;;
  4060. esac
  4061. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4062. $as_echo "$ac_try_echo"; } >&5
  4063. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4064. ac_status=$?
  4065. if test -s conftest.err; then
  4066. sed '10a\
  4067. ... rest of stderr output deleted ...
  4068. 10q' conftest.err >conftest.er1
  4069. cat conftest.er1 >&5
  4070. rm -f conftest.er1 conftest.err
  4071. fi
  4072. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4073. test $ac_status = 0; }
  4074. done
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4076. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4077. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4078. $as_echo_n "(cached) " >&6
  4079. else
  4080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4081. /* end confdefs.h. */
  4082. int
  4083. main ()
  4084. {
  4085. #ifndef __GNUC__
  4086. choke me
  4087. #endif
  4088. ;
  4089. return 0;
  4090. }
  4091. _ACEOF
  4092. if ac_fn_c_try_compile "$LINENO"; then :
  4093. ac_compiler_gnu=yes
  4094. else
  4095. ac_compiler_gnu=no
  4096. fi
  4097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4098. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4099. fi
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4101. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4102. if test $ac_compiler_gnu = yes; then
  4103. GCC=yes
  4104. else
  4105. GCC=
  4106. fi
  4107. ac_test_CFLAGS=${CFLAGS+set}
  4108. ac_save_CFLAGS=$CFLAGS
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4110. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4111. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4112. $as_echo_n "(cached) " >&6
  4113. else
  4114. ac_save_c_werror_flag=$ac_c_werror_flag
  4115. ac_c_werror_flag=yes
  4116. ac_cv_prog_cc_g=no
  4117. CFLAGS="-g"
  4118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4119. /* end confdefs.h. */
  4120. int
  4121. main ()
  4122. {
  4123. ;
  4124. return 0;
  4125. }
  4126. _ACEOF
  4127. if ac_fn_c_try_compile "$LINENO"; then :
  4128. ac_cv_prog_cc_g=yes
  4129. else
  4130. CFLAGS=""
  4131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4132. /* end confdefs.h. */
  4133. int
  4134. main ()
  4135. {
  4136. ;
  4137. return 0;
  4138. }
  4139. _ACEOF
  4140. if ac_fn_c_try_compile "$LINENO"; then :
  4141. else
  4142. ac_c_werror_flag=$ac_save_c_werror_flag
  4143. CFLAGS="-g"
  4144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4145. /* end confdefs.h. */
  4146. int
  4147. main ()
  4148. {
  4149. ;
  4150. return 0;
  4151. }
  4152. _ACEOF
  4153. if ac_fn_c_try_compile "$LINENO"; then :
  4154. ac_cv_prog_cc_g=yes
  4155. fi
  4156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4157. fi
  4158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4159. fi
  4160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4161. ac_c_werror_flag=$ac_save_c_werror_flag
  4162. fi
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4164. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4165. if test "$ac_test_CFLAGS" = set; then
  4166. CFLAGS=$ac_save_CFLAGS
  4167. elif test $ac_cv_prog_cc_g = yes; then
  4168. if test "$GCC" = yes; then
  4169. CFLAGS="-g -O2"
  4170. else
  4171. CFLAGS="-g"
  4172. fi
  4173. else
  4174. if test "$GCC" = yes; then
  4175. CFLAGS="-O2"
  4176. else
  4177. CFLAGS=
  4178. fi
  4179. fi
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4181. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4182. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4183. $as_echo_n "(cached) " >&6
  4184. else
  4185. ac_cv_prog_cc_c89=no
  4186. ac_save_CC=$CC
  4187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4188. /* end confdefs.h. */
  4189. #include <stdarg.h>
  4190. #include <stdio.h>
  4191. #include <sys/types.h>
  4192. #include <sys/stat.h>
  4193. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4194. struct buf { int x; };
  4195. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4196. static char *e (p, i)
  4197. char **p;
  4198. int i;
  4199. {
  4200. return p[i];
  4201. }
  4202. static char *f (char * (*g) (char **, int), char **p, ...)
  4203. {
  4204. char *s;
  4205. va_list v;
  4206. va_start (v,p);
  4207. s = g (p, va_arg (v,int));
  4208. va_end (v);
  4209. return s;
  4210. }
  4211. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4212. function prototypes and stuff, but not '\xHH' hex character constants.
  4213. These don't provoke an error unfortunately, instead are silently treated
  4214. as 'x'. The following induces an error, until -std is added to get
  4215. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4216. array size at least. It's necessary to write '\x00'==0 to get something
  4217. that's true only with -std. */
  4218. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4219. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4220. inside strings and character constants. */
  4221. #define FOO(x) 'x'
  4222. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4223. int test (int i, double x);
  4224. struct s1 {int (*f) (int a);};
  4225. struct s2 {int (*f) (double a);};
  4226. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4227. int argc;
  4228. char **argv;
  4229. int
  4230. main ()
  4231. {
  4232. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4233. ;
  4234. return 0;
  4235. }
  4236. _ACEOF
  4237. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4238. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4239. do
  4240. CC="$ac_save_CC $ac_arg"
  4241. if ac_fn_c_try_compile "$LINENO"; then :
  4242. ac_cv_prog_cc_c89=$ac_arg
  4243. fi
  4244. rm -f core conftest.err conftest.$ac_objext
  4245. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4246. done
  4247. rm -f conftest.$ac_ext
  4248. CC=$ac_save_CC
  4249. fi
  4250. # AC_CACHE_VAL
  4251. case "x$ac_cv_prog_cc_c89" in
  4252. x)
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4254. $as_echo "none needed" >&6; } ;;
  4255. xno)
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4257. $as_echo "unsupported" >&6; } ;;
  4258. *)
  4259. CC="$CC $ac_cv_prog_cc_c89"
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4261. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4262. esac
  4263. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4264. fi
  4265. ac_ext=c
  4266. ac_cpp='$CPP $CPPFLAGS'
  4267. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4268. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4269. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4270. if test "x$CC" != xcc; then
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4272. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4273. else
  4274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4275. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4276. fi
  4277. set dummy $CC; ac_cc=`$as_echo "$2" |
  4278. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4279. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  4280. $as_echo_n "(cached) " >&6
  4281. else
  4282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4283. /* end confdefs.h. */
  4284. int
  4285. main ()
  4286. {
  4287. ;
  4288. return 0;
  4289. }
  4290. _ACEOF
  4291. # Make sure it works both with $CC and with simple cc.
  4292. # We do the test twice because some compilers refuse to overwrite an
  4293. # existing .o file with -o, though they will create one.
  4294. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4295. rm -f conftest2.*
  4296. if { { case "(($ac_try" in
  4297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4298. *) ac_try_echo=$ac_try;;
  4299. esac
  4300. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4301. $as_echo "$ac_try_echo"; } >&5
  4302. (eval "$ac_try") 2>&5
  4303. ac_status=$?
  4304. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4305. test $ac_status = 0; } &&
  4306. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4308. *) ac_try_echo=$ac_try;;
  4309. esac
  4310. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4311. $as_echo "$ac_try_echo"; } >&5
  4312. (eval "$ac_try") 2>&5
  4313. ac_status=$?
  4314. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4315. test $ac_status = 0; };
  4316. then
  4317. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4318. if test "x$CC" != xcc; then
  4319. # Test first that cc exists at all.
  4320. if { ac_try='cc -c conftest.$ac_ext >&5'
  4321. { { case "(($ac_try" in
  4322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4323. *) ac_try_echo=$ac_try;;
  4324. esac
  4325. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4326. $as_echo "$ac_try_echo"; } >&5
  4327. (eval "$ac_try") 2>&5
  4328. ac_status=$?
  4329. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4330. test $ac_status = 0; }; }; then
  4331. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4332. rm -f conftest2.*
  4333. if { { case "(($ac_try" in
  4334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4335. *) ac_try_echo=$ac_try;;
  4336. esac
  4337. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4338. $as_echo "$ac_try_echo"; } >&5
  4339. (eval "$ac_try") 2>&5
  4340. ac_status=$?
  4341. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4342. test $ac_status = 0; } &&
  4343. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4345. *) ac_try_echo=$ac_try;;
  4346. esac
  4347. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4348. $as_echo "$ac_try_echo"; } >&5
  4349. (eval "$ac_try") 2>&5
  4350. ac_status=$?
  4351. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4352. test $ac_status = 0; };
  4353. then
  4354. # cc works too.
  4355. :
  4356. else
  4357. # cc exists but doesn't like -o.
  4358. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4359. fi
  4360. fi
  4361. fi
  4362. else
  4363. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4364. fi
  4365. rm -f core conftest*
  4366. fi
  4367. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4369. $as_echo "yes" >&6; }
  4370. else
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4372. $as_echo "no" >&6; }
  4373. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4374. fi
  4375. # FIXME: we rely on the cache variable name because
  4376. # there is no other way.
  4377. set dummy $CC
  4378. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4379. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4380. if test "$am_t" != yes; then
  4381. # Losing compiler, so override with the script.
  4382. # FIXME: It is wrong to rewrite CC.
  4383. # But if we don't then we get into trouble of one sort or another.
  4384. # A longer-term fix would be to have automake use am__CC in this case,
  4385. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4386. CC="$am_aux_dir/compile $CC"
  4387. fi
  4388. # Newer automakes demand CCAS and CCASFLAGS.
  4389. : ${CCAS='$(CC)'}
  4390. : ${CCASFLAGS='$(CFLAGS)'}
  4391. if test -n "$ac_tool_prefix"; then
  4392. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4393. set dummy ${ac_tool_prefix}as; ac_word=$2
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4395. $as_echo_n "checking for $ac_word... " >&6; }
  4396. if test "${ac_cv_prog_AS+set}" = set; then :
  4397. $as_echo_n "(cached) " >&6
  4398. else
  4399. if test -n "$AS"; then
  4400. ac_cv_prog_AS="$AS" # Let the user override the test.
  4401. else
  4402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4403. for as_dir in $PATH
  4404. do
  4405. IFS=$as_save_IFS
  4406. test -z "$as_dir" && as_dir=.
  4407. for ac_exec_ext in '' $ac_executable_extensions; do
  4408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4409. ac_cv_prog_AS="${ac_tool_prefix}as"
  4410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4411. break 2
  4412. fi
  4413. done
  4414. done
  4415. IFS=$as_save_IFS
  4416. fi
  4417. fi
  4418. AS=$ac_cv_prog_AS
  4419. if test -n "$AS"; then
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4421. $as_echo "$AS" >&6; }
  4422. else
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4424. $as_echo "no" >&6; }
  4425. fi
  4426. fi
  4427. if test -z "$ac_cv_prog_AS"; then
  4428. ac_ct_AS=$AS
  4429. # Extract the first word of "as", so it can be a program name with args.
  4430. set dummy as; ac_word=$2
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4432. $as_echo_n "checking for $ac_word... " >&6; }
  4433. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  4434. $as_echo_n "(cached) " >&6
  4435. else
  4436. if test -n "$ac_ct_AS"; then
  4437. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4438. else
  4439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4440. for as_dir in $PATH
  4441. do
  4442. IFS=$as_save_IFS
  4443. test -z "$as_dir" && as_dir=.
  4444. for ac_exec_ext in '' $ac_executable_extensions; do
  4445. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4446. ac_cv_prog_ac_ct_AS="as"
  4447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4448. break 2
  4449. fi
  4450. done
  4451. done
  4452. IFS=$as_save_IFS
  4453. fi
  4454. fi
  4455. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4456. if test -n "$ac_ct_AS"; then
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4458. $as_echo "$ac_ct_AS" >&6; }
  4459. else
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4461. $as_echo "no" >&6; }
  4462. fi
  4463. if test "x$ac_ct_AS" = x; then
  4464. AS=""
  4465. else
  4466. case $cross_compiling:$ac_tool_warned in
  4467. yes:)
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4469. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4470. ac_tool_warned=yes ;;
  4471. esac
  4472. AS=$ac_ct_AS
  4473. fi
  4474. else
  4475. AS="$ac_cv_prog_AS"
  4476. fi
  4477. if test -n "$ac_tool_prefix"; then
  4478. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4479. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4481. $as_echo_n "checking for $ac_word... " >&6; }
  4482. if test "${ac_cv_prog_AR+set}" = set; then :
  4483. $as_echo_n "(cached) " >&6
  4484. else
  4485. if test -n "$AR"; then
  4486. ac_cv_prog_AR="$AR" # Let the user override the test.
  4487. else
  4488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4489. for as_dir in $PATH
  4490. do
  4491. IFS=$as_save_IFS
  4492. test -z "$as_dir" && as_dir=.
  4493. for ac_exec_ext in '' $ac_executable_extensions; do
  4494. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4495. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4497. break 2
  4498. fi
  4499. done
  4500. done
  4501. IFS=$as_save_IFS
  4502. fi
  4503. fi
  4504. AR=$ac_cv_prog_AR
  4505. if test -n "$AR"; then
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4507. $as_echo "$AR" >&6; }
  4508. else
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4510. $as_echo "no" >&6; }
  4511. fi
  4512. fi
  4513. if test -z "$ac_cv_prog_AR"; then
  4514. ac_ct_AR=$AR
  4515. # Extract the first word of "ar", so it can be a program name with args.
  4516. set dummy ar; ac_word=$2
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4518. $as_echo_n "checking for $ac_word... " >&6; }
  4519. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4520. $as_echo_n "(cached) " >&6
  4521. else
  4522. if test -n "$ac_ct_AR"; then
  4523. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4524. else
  4525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4526. for as_dir in $PATH
  4527. do
  4528. IFS=$as_save_IFS
  4529. test -z "$as_dir" && as_dir=.
  4530. for ac_exec_ext in '' $ac_executable_extensions; do
  4531. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4532. ac_cv_prog_ac_ct_AR="ar"
  4533. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4534. break 2
  4535. fi
  4536. done
  4537. done
  4538. IFS=$as_save_IFS
  4539. fi
  4540. fi
  4541. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4542. if test -n "$ac_ct_AR"; then
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4544. $as_echo "$ac_ct_AR" >&6; }
  4545. else
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4547. $as_echo "no" >&6; }
  4548. fi
  4549. if test "x$ac_ct_AR" = x; then
  4550. AR=""
  4551. else
  4552. case $cross_compiling:$ac_tool_warned in
  4553. yes:)
  4554. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4555. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4556. ac_tool_warned=yes ;;
  4557. esac
  4558. AR=$ac_ct_AR
  4559. fi
  4560. else
  4561. AR="$ac_cv_prog_AR"
  4562. fi
  4563. if test -n "$ac_tool_prefix"; then
  4564. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4565. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4567. $as_echo_n "checking for $ac_word... " >&6; }
  4568. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4569. $as_echo_n "(cached) " >&6
  4570. else
  4571. if test -n "$RANLIB"; then
  4572. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4573. else
  4574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4575. for as_dir in $PATH
  4576. do
  4577. IFS=$as_save_IFS
  4578. test -z "$as_dir" && as_dir=.
  4579. for ac_exec_ext in '' $ac_executable_extensions; do
  4580. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4581. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4583. break 2
  4584. fi
  4585. done
  4586. done
  4587. IFS=$as_save_IFS
  4588. fi
  4589. fi
  4590. RANLIB=$ac_cv_prog_RANLIB
  4591. if test -n "$RANLIB"; then
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4593. $as_echo "$RANLIB" >&6; }
  4594. else
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4596. $as_echo "no" >&6; }
  4597. fi
  4598. fi
  4599. if test -z "$ac_cv_prog_RANLIB"; then
  4600. ac_ct_RANLIB=$RANLIB
  4601. # Extract the first word of "ranlib", so it can be a program name with args.
  4602. set dummy ranlib; ac_word=$2
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4604. $as_echo_n "checking for $ac_word... " >&6; }
  4605. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4606. $as_echo_n "(cached) " >&6
  4607. else
  4608. if test -n "$ac_ct_RANLIB"; then
  4609. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4610. else
  4611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4612. for as_dir in $PATH
  4613. do
  4614. IFS=$as_save_IFS
  4615. test -z "$as_dir" && as_dir=.
  4616. for ac_exec_ext in '' $ac_executable_extensions; do
  4617. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4618. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4620. break 2
  4621. fi
  4622. done
  4623. done
  4624. IFS=$as_save_IFS
  4625. fi
  4626. fi
  4627. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4628. if test -n "$ac_ct_RANLIB"; then
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4630. $as_echo "$ac_ct_RANLIB" >&6; }
  4631. else
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4633. $as_echo "no" >&6; }
  4634. fi
  4635. if test "x$ac_ct_RANLIB" = x; then
  4636. RANLIB=":"
  4637. else
  4638. case $cross_compiling:$ac_tool_warned in
  4639. yes:)
  4640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4641. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4642. ac_tool_warned=yes ;;
  4643. esac
  4644. RANLIB=$ac_ct_RANLIB
  4645. fi
  4646. else
  4647. RANLIB="$ac_cv_prog_RANLIB"
  4648. fi
  4649. # Check we may build wrappers library
  4650. echo "test: bndmov %bnd0, %bnd1" > conftest.s
  4651. if { ac_try='$AS -o conftest.o conftest.s 1>&5'
  4652. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  4653. (eval $ac_try) 2>&5
  4654. ac_status=$?
  4655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4656. test $ac_status = 0; }; }
  4657. then
  4658. mpx_as=yes
  4659. else
  4660. mpx_as=no
  4661. echo "configure: no MPX support fo as" >&5
  4662. fi
  4663. rm -f conftest.o conftest.s
  4664. if test "x$mpx_as" = "xyes"; then
  4665. MPX_AS_SUPPORTED_TRUE=
  4666. MPX_AS_SUPPORTED_FALSE='#'
  4667. else
  4668. MPX_AS_SUPPORTED_TRUE='#'
  4669. MPX_AS_SUPPORTED_FALSE=
  4670. fi
  4671. # Configure libtool
  4672. enable_dlopen=yes
  4673. case `pwd` in
  4674. *\ * | *\ *)
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4676. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4677. esac
  4678. macro_version='2.2.7a'
  4679. macro_revision='1.3134'
  4680. ltmain="$ac_aux_dir/ltmain.sh"
  4681. # Backslashify metacharacters that are still active within
  4682. # double-quoted strings.
  4683. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4684. # Same as above, but do not quote variable references.
  4685. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4686. # Sed substitution to delay expansion of an escaped shell variable in a
  4687. # double_quote_subst'ed string.
  4688. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4689. # Sed substitution to delay expansion of an escaped single quote.
  4690. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4691. # Sed substitution to avoid accidental globbing in evaled expressions
  4692. no_glob_subst='s/\*/\\\*/g'
  4693. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4694. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4695. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4697. $as_echo_n "checking how to print strings... " >&6; }
  4698. # Test print first, because it will be a builtin if present.
  4699. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4700. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4701. ECHO='print -r --'
  4702. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4703. ECHO='printf %s\n'
  4704. else
  4705. # Use this function as a fallback that always works.
  4706. func_fallback_echo ()
  4707. {
  4708. eval 'cat <<_LTECHO_EOF
  4709. $1
  4710. _LTECHO_EOF'
  4711. }
  4712. ECHO='func_fallback_echo'
  4713. fi
  4714. # func_echo_all arg...
  4715. # Invoke $ECHO with all args, space-separated.
  4716. func_echo_all ()
  4717. {
  4718. $ECHO ""
  4719. }
  4720. case "$ECHO" in
  4721. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4722. $as_echo "printf" >&6; } ;;
  4723. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4724. $as_echo "print -r" >&6; } ;;
  4725. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4726. $as_echo "cat" >&6; } ;;
  4727. esac
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4729. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4730. if test "${ac_cv_path_SED+set}" = set; then :
  4731. $as_echo_n "(cached) " >&6
  4732. else
  4733. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4734. for ac_i in 1 2 3 4 5 6 7; do
  4735. ac_script="$ac_script$as_nl$ac_script"
  4736. done
  4737. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4738. { ac_script=; unset ac_script;}
  4739. if test -z "$SED"; then
  4740. ac_path_SED_found=false
  4741. # Loop through the user's path and test for each of PROGNAME-LIST
  4742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4743. for as_dir in $PATH
  4744. do
  4745. IFS=$as_save_IFS
  4746. test -z "$as_dir" && as_dir=.
  4747. for ac_prog in sed gsed; do
  4748. for ac_exec_ext in '' $ac_executable_extensions; do
  4749. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4750. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4751. # Check for GNU ac_path_SED and select it if it is found.
  4752. # Check for GNU $ac_path_SED
  4753. case `"$ac_path_SED" --version 2>&1` in
  4754. *GNU*)
  4755. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4756. *)
  4757. ac_count=0
  4758. $as_echo_n 0123456789 >"conftest.in"
  4759. while :
  4760. do
  4761. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4762. mv "conftest.tmp" "conftest.in"
  4763. cp "conftest.in" "conftest.nl"
  4764. $as_echo '' >> "conftest.nl"
  4765. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4766. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4767. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4768. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4769. # Best one so far, save it but keep looking for a better one
  4770. ac_cv_path_SED="$ac_path_SED"
  4771. ac_path_SED_max=$ac_count
  4772. fi
  4773. # 10*(2^10) chars as input seems more than enough
  4774. test $ac_count -gt 10 && break
  4775. done
  4776. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4777. esac
  4778. $ac_path_SED_found && break 3
  4779. done
  4780. done
  4781. done
  4782. IFS=$as_save_IFS
  4783. if test -z "$ac_cv_path_SED"; then
  4784. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4785. fi
  4786. else
  4787. ac_cv_path_SED=$SED
  4788. fi
  4789. fi
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4791. $as_echo "$ac_cv_path_SED" >&6; }
  4792. SED="$ac_cv_path_SED"
  4793. rm -f conftest.sed
  4794. test -z "$SED" && SED=sed
  4795. Xsed="$SED -e 1s/^X//"
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4797. $as_echo_n "checking for fgrep... " >&6; }
  4798. if test "${ac_cv_path_FGREP+set}" = set; then :
  4799. $as_echo_n "(cached) " >&6
  4800. else
  4801. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4802. then ac_cv_path_FGREP="$GREP -F"
  4803. else
  4804. if test -z "$FGREP"; then
  4805. ac_path_FGREP_found=false
  4806. # Loop through the user's path and test for each of PROGNAME-LIST
  4807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4808. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4809. do
  4810. IFS=$as_save_IFS
  4811. test -z "$as_dir" && as_dir=.
  4812. for ac_prog in fgrep; do
  4813. for ac_exec_ext in '' $ac_executable_extensions; do
  4814. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4815. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4816. # Check for GNU ac_path_FGREP and select it if it is found.
  4817. # Check for GNU $ac_path_FGREP
  4818. case `"$ac_path_FGREP" --version 2>&1` in
  4819. *GNU*)
  4820. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4821. *)
  4822. ac_count=0
  4823. $as_echo_n 0123456789 >"conftest.in"
  4824. while :
  4825. do
  4826. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4827. mv "conftest.tmp" "conftest.in"
  4828. cp "conftest.in" "conftest.nl"
  4829. $as_echo 'FGREP' >> "conftest.nl"
  4830. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4831. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4832. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4833. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4834. # Best one so far, save it but keep looking for a better one
  4835. ac_cv_path_FGREP="$ac_path_FGREP"
  4836. ac_path_FGREP_max=$ac_count
  4837. fi
  4838. # 10*(2^10) chars as input seems more than enough
  4839. test $ac_count -gt 10 && break
  4840. done
  4841. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4842. esac
  4843. $ac_path_FGREP_found && break 3
  4844. done
  4845. done
  4846. done
  4847. IFS=$as_save_IFS
  4848. if test -z "$ac_cv_path_FGREP"; then
  4849. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4850. fi
  4851. else
  4852. ac_cv_path_FGREP=$FGREP
  4853. fi
  4854. fi
  4855. fi
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4857. $as_echo "$ac_cv_path_FGREP" >&6; }
  4858. FGREP="$ac_cv_path_FGREP"
  4859. test -z "$GREP" && GREP=grep
  4860. # Check whether --with-gnu-ld was given.
  4861. if test "${with_gnu_ld+set}" = set; then :
  4862. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4863. else
  4864. with_gnu_ld=no
  4865. fi
  4866. ac_prog=ld
  4867. if test "$GCC" = yes; then
  4868. # Check if gcc -print-prog-name=ld gives a path.
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4870. $as_echo_n "checking for ld used by $CC... " >&6; }
  4871. case $host in
  4872. *-*-mingw*)
  4873. # gcc leaves a trailing carriage return which upsets mingw
  4874. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4875. *)
  4876. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4877. esac
  4878. case $ac_prog in
  4879. # Accept absolute paths.
  4880. [\\/]* | ?:[\\/]*)
  4881. re_direlt='/[^/][^/]*/\.\./'
  4882. # Canonicalize the pathname of ld
  4883. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4884. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4885. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4886. done
  4887. test -z "$LD" && LD="$ac_prog"
  4888. ;;
  4889. "")
  4890. # If it fails, then pretend we aren't using GCC.
  4891. ac_prog=ld
  4892. ;;
  4893. *)
  4894. # If it is relative, then search for the first ld in PATH.
  4895. with_gnu_ld=unknown
  4896. ;;
  4897. esac
  4898. elif test "$with_gnu_ld" = yes; then
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4900. $as_echo_n "checking for GNU ld... " >&6; }
  4901. else
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4903. $as_echo_n "checking for non-GNU ld... " >&6; }
  4904. fi
  4905. if test "${lt_cv_path_LD+set}" = set; then :
  4906. $as_echo_n "(cached) " >&6
  4907. else
  4908. if test -z "$LD"; then
  4909. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4910. for ac_dir in $PATH; do
  4911. IFS="$lt_save_ifs"
  4912. test -z "$ac_dir" && ac_dir=.
  4913. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4914. lt_cv_path_LD="$ac_dir/$ac_prog"
  4915. # Check to see if the program is GNU ld. I'd rather use --version,
  4916. # but apparently some variants of GNU ld only accept -v.
  4917. # Break only if it was the GNU/non-GNU ld that we prefer.
  4918. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4919. *GNU* | *'with BFD'*)
  4920. test "$with_gnu_ld" != no && break
  4921. ;;
  4922. *)
  4923. test "$with_gnu_ld" != yes && break
  4924. ;;
  4925. esac
  4926. fi
  4927. done
  4928. IFS="$lt_save_ifs"
  4929. else
  4930. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4931. fi
  4932. fi
  4933. LD="$lt_cv_path_LD"
  4934. if test -n "$LD"; then
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4936. $as_echo "$LD" >&6; }
  4937. else
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4939. $as_echo "no" >&6; }
  4940. fi
  4941. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4943. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4944. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4945. $as_echo_n "(cached) " >&6
  4946. else
  4947. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4948. case `$LD -v 2>&1 </dev/null` in
  4949. *GNU* | *'with BFD'*)
  4950. lt_cv_prog_gnu_ld=yes
  4951. ;;
  4952. *)
  4953. lt_cv_prog_gnu_ld=no
  4954. ;;
  4955. esac
  4956. fi
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4958. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4959. with_gnu_ld=$lt_cv_prog_gnu_ld
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4961. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4962. if test "${lt_cv_path_NM+set}" = set; then :
  4963. $as_echo_n "(cached) " >&6
  4964. else
  4965. if test -n "$NM"; then
  4966. # Let the user override the test.
  4967. lt_cv_path_NM="$NM"
  4968. else
  4969. lt_nm_to_check="${ac_tool_prefix}nm"
  4970. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4971. lt_nm_to_check="$lt_nm_to_check nm"
  4972. fi
  4973. for lt_tmp_nm in $lt_nm_to_check; do
  4974. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4975. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4976. IFS="$lt_save_ifs"
  4977. test -z "$ac_dir" && ac_dir=.
  4978. tmp_nm="$ac_dir/$lt_tmp_nm"
  4979. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4980. # Check to see if the nm accepts a BSD-compat flag.
  4981. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4982. # nm: unknown option "B" ignored
  4983. # Tru64's nm complains that /dev/null is an invalid object file
  4984. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4985. */dev/null* | *'Invalid file or object type'*)
  4986. lt_cv_path_NM="$tmp_nm -B"
  4987. break
  4988. ;;
  4989. *)
  4990. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4991. */dev/null*)
  4992. lt_cv_path_NM="$tmp_nm -p"
  4993. break
  4994. ;;
  4995. *)
  4996. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4997. continue # so that we can try to find one that supports BSD flags
  4998. ;;
  4999. esac
  5000. ;;
  5001. esac
  5002. fi
  5003. done
  5004. IFS="$lt_save_ifs"
  5005. done
  5006. : ${lt_cv_path_NM=no}
  5007. fi
  5008. fi
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5010. $as_echo "$lt_cv_path_NM" >&6; }
  5011. if test "$lt_cv_path_NM" != "no"; then
  5012. NM="$lt_cv_path_NM"
  5013. else
  5014. # Didn't find any BSD compatible name lister, look for dumpbin.
  5015. if test -n "$DUMPBIN"; then :
  5016. # Let the user override the test.
  5017. else
  5018. if test -n "$ac_tool_prefix"; then
  5019. for ac_prog in dumpbin "link -dump"
  5020. do
  5021. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5022. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5024. $as_echo_n "checking for $ac_word... " >&6; }
  5025. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  5026. $as_echo_n "(cached) " >&6
  5027. else
  5028. if test -n "$DUMPBIN"; then
  5029. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5030. else
  5031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5032. for as_dir in $PATH
  5033. do
  5034. IFS=$as_save_IFS
  5035. test -z "$as_dir" && as_dir=.
  5036. for ac_exec_ext in '' $ac_executable_extensions; do
  5037. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5038. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5040. break 2
  5041. fi
  5042. done
  5043. done
  5044. IFS=$as_save_IFS
  5045. fi
  5046. fi
  5047. DUMPBIN=$ac_cv_prog_DUMPBIN
  5048. if test -n "$DUMPBIN"; then
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5050. $as_echo "$DUMPBIN" >&6; }
  5051. else
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5053. $as_echo "no" >&6; }
  5054. fi
  5055. test -n "$DUMPBIN" && break
  5056. done
  5057. fi
  5058. if test -z "$DUMPBIN"; then
  5059. ac_ct_DUMPBIN=$DUMPBIN
  5060. for ac_prog in dumpbin "link -dump"
  5061. do
  5062. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5063. set dummy $ac_prog; ac_word=$2
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5065. $as_echo_n "checking for $ac_word... " >&6; }
  5066. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  5067. $as_echo_n "(cached) " >&6
  5068. else
  5069. if test -n "$ac_ct_DUMPBIN"; then
  5070. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5071. else
  5072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5073. for as_dir in $PATH
  5074. do
  5075. IFS=$as_save_IFS
  5076. test -z "$as_dir" && as_dir=.
  5077. for ac_exec_ext in '' $ac_executable_extensions; do
  5078. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5079. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5080. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5081. break 2
  5082. fi
  5083. done
  5084. done
  5085. IFS=$as_save_IFS
  5086. fi
  5087. fi
  5088. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5089. if test -n "$ac_ct_DUMPBIN"; then
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5091. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5092. else
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5094. $as_echo "no" >&6; }
  5095. fi
  5096. test -n "$ac_ct_DUMPBIN" && break
  5097. done
  5098. if test "x$ac_ct_DUMPBIN" = x; then
  5099. DUMPBIN=":"
  5100. else
  5101. case $cross_compiling:$ac_tool_warned in
  5102. yes:)
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5104. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5105. ac_tool_warned=yes ;;
  5106. esac
  5107. DUMPBIN=$ac_ct_DUMPBIN
  5108. fi
  5109. fi
  5110. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5111. *COFF*)
  5112. DUMPBIN="$DUMPBIN -symbols"
  5113. ;;
  5114. *)
  5115. DUMPBIN=:
  5116. ;;
  5117. esac
  5118. fi
  5119. if test "$DUMPBIN" != ":"; then
  5120. NM="$DUMPBIN"
  5121. fi
  5122. fi
  5123. test -z "$NM" && NM=nm
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5125. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5126. if test "${lt_cv_nm_interface+set}" = set; then :
  5127. $as_echo_n "(cached) " >&6
  5128. else
  5129. lt_cv_nm_interface="BSD nm"
  5130. echo "int some_variable = 0;" > conftest.$ac_ext
  5131. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5132. (eval "$ac_compile" 2>conftest.err)
  5133. cat conftest.err >&5
  5134. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5135. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5136. cat conftest.err >&5
  5137. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5138. cat conftest.out >&5
  5139. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5140. lt_cv_nm_interface="MS dumpbin"
  5141. fi
  5142. rm -f conftest*
  5143. fi
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5145. $as_echo "$lt_cv_nm_interface" >&6; }
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5147. $as_echo_n "checking whether ln -s works... " >&6; }
  5148. LN_S=$as_ln_s
  5149. if test "$LN_S" = "ln -s"; then
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5151. $as_echo "yes" >&6; }
  5152. else
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5154. $as_echo "no, using $LN_S" >&6; }
  5155. fi
  5156. # find the maximum length of command line arguments
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5158. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5159. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5160. $as_echo_n "(cached) " >&6
  5161. else
  5162. i=0
  5163. teststring="ABCD"
  5164. case $build_os in
  5165. msdosdjgpp*)
  5166. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5167. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5168. # during glob expansion). Even if it were fixed, the result of this
  5169. # check would be larger than it should be.
  5170. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5171. ;;
  5172. gnu*)
  5173. # Under GNU Hurd, this test is not required because there is
  5174. # no limit to the length of command line arguments.
  5175. # Libtool will interpret -1 as no limit whatsoever
  5176. lt_cv_sys_max_cmd_len=-1;
  5177. ;;
  5178. cygwin* | mingw* | cegcc*)
  5179. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5180. # about 5 minutes as the teststring grows exponentially.
  5181. # Worse, since 9x/ME are not pre-emptively multitasking,
  5182. # you end up with a "frozen" computer, even though with patience
  5183. # the test eventually succeeds (with a max line length of 256k).
  5184. # Instead, let's just punt: use the minimum linelength reported by
  5185. # all of the supported platforms: 8192 (on NT/2K/XP).
  5186. lt_cv_sys_max_cmd_len=8192;
  5187. ;;
  5188. mint*)
  5189. # On MiNT this can take a long time and run out of memory.
  5190. lt_cv_sys_max_cmd_len=8192;
  5191. ;;
  5192. amigaos*)
  5193. # On AmigaOS with pdksh, this test takes hours, literally.
  5194. # So we just punt and use a minimum line length of 8192.
  5195. lt_cv_sys_max_cmd_len=8192;
  5196. ;;
  5197. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5198. # This has been around since 386BSD, at least. Likely further.
  5199. if test -x /sbin/sysctl; then
  5200. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5201. elif test -x /usr/sbin/sysctl; then
  5202. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5203. else
  5204. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5205. fi
  5206. # And add a safety zone
  5207. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5208. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5209. ;;
  5210. interix*)
  5211. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5212. lt_cv_sys_max_cmd_len=196608
  5213. ;;
  5214. osf*)
  5215. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5216. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5217. # nice to cause kernel panics so lets avoid the loop below.
  5218. # First set a reasonable default.
  5219. lt_cv_sys_max_cmd_len=16384
  5220. #
  5221. if test -x /sbin/sysconfig; then
  5222. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5223. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5224. esac
  5225. fi
  5226. ;;
  5227. sco3.2v5*)
  5228. lt_cv_sys_max_cmd_len=102400
  5229. ;;
  5230. sysv5* | sco5v6* | sysv4.2uw2*)
  5231. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5232. if test -n "$kargmax"; then
  5233. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5234. else
  5235. lt_cv_sys_max_cmd_len=32768
  5236. fi
  5237. ;;
  5238. *)
  5239. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5240. if test -n "$lt_cv_sys_max_cmd_len"; then
  5241. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5242. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5243. else
  5244. # Make teststring a little bigger before we do anything with it.
  5245. # a 1K string should be a reasonable start.
  5246. for i in 1 2 3 4 5 6 7 8 ; do
  5247. teststring=$teststring$teststring
  5248. done
  5249. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5250. # If test is not a shell built-in, we'll probably end up computing a
  5251. # maximum length that is only half of the actual maximum length, but
  5252. # we can't tell.
  5253. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5254. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5255. test $i != 17 # 1/2 MB should be enough
  5256. do
  5257. i=`expr $i + 1`
  5258. teststring=$teststring$teststring
  5259. done
  5260. # Only check the string length outside the loop.
  5261. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5262. teststring=
  5263. # Add a significant safety factor because C++ compilers can tack on
  5264. # massive amounts of additional arguments before passing them to the
  5265. # linker. It appears as though 1/2 is a usable value.
  5266. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5267. fi
  5268. ;;
  5269. esac
  5270. fi
  5271. if test -n $lt_cv_sys_max_cmd_len ; then
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5273. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5274. else
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5276. $as_echo "none" >&6; }
  5277. fi
  5278. max_cmd_len=$lt_cv_sys_max_cmd_len
  5279. : ${CP="cp -f"}
  5280. : ${MV="mv -f"}
  5281. : ${RM="rm -f"}
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5283. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5284. # Try some XSI features
  5285. xsi_shell=no
  5286. ( _lt_dummy="a/b/c"
  5287. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5288. = c,a/b,, \
  5289. && eval 'test $(( 1 + 1 )) -eq 2 \
  5290. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5291. && xsi_shell=yes
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5293. $as_echo "$xsi_shell" >&6; }
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5295. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5296. lt_shell_append=no
  5297. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5298. >/dev/null 2>&1 \
  5299. && lt_shell_append=yes
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5301. $as_echo "$lt_shell_append" >&6; }
  5302. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5303. lt_unset=unset
  5304. else
  5305. lt_unset=false
  5306. fi
  5307. # test EBCDIC or ASCII
  5308. case `echo X|tr X '\101'` in
  5309. A) # ASCII based system
  5310. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5311. lt_SP2NL='tr \040 \012'
  5312. lt_NL2SP='tr \015\012 \040\040'
  5313. ;;
  5314. *) # EBCDIC based system
  5315. lt_SP2NL='tr \100 \n'
  5316. lt_NL2SP='tr \r\n \100\100'
  5317. ;;
  5318. esac
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5320. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5321. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5322. $as_echo_n "(cached) " >&6
  5323. else
  5324. lt_cv_ld_reload_flag='-r'
  5325. fi
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5327. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5328. reload_flag=$lt_cv_ld_reload_flag
  5329. case $reload_flag in
  5330. "" | " "*) ;;
  5331. *) reload_flag=" $reload_flag" ;;
  5332. esac
  5333. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5334. case $host_os in
  5335. darwin*)
  5336. if test "$GCC" = yes; then
  5337. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5338. else
  5339. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5340. fi
  5341. ;;
  5342. esac
  5343. if test -n "$ac_tool_prefix"; then
  5344. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5345. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5347. $as_echo_n "checking for $ac_word... " >&6; }
  5348. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5349. $as_echo_n "(cached) " >&6
  5350. else
  5351. if test -n "$OBJDUMP"; then
  5352. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5353. else
  5354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5355. for as_dir in $PATH
  5356. do
  5357. IFS=$as_save_IFS
  5358. test -z "$as_dir" && as_dir=.
  5359. for ac_exec_ext in '' $ac_executable_extensions; do
  5360. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5361. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5363. break 2
  5364. fi
  5365. done
  5366. done
  5367. IFS=$as_save_IFS
  5368. fi
  5369. fi
  5370. OBJDUMP=$ac_cv_prog_OBJDUMP
  5371. if test -n "$OBJDUMP"; then
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5373. $as_echo "$OBJDUMP" >&6; }
  5374. else
  5375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5376. $as_echo "no" >&6; }
  5377. fi
  5378. fi
  5379. if test -z "$ac_cv_prog_OBJDUMP"; then
  5380. ac_ct_OBJDUMP=$OBJDUMP
  5381. # Extract the first word of "objdump", so it can be a program name with args.
  5382. set dummy objdump; ac_word=$2
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5384. $as_echo_n "checking for $ac_word... " >&6; }
  5385. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5386. $as_echo_n "(cached) " >&6
  5387. else
  5388. if test -n "$ac_ct_OBJDUMP"; then
  5389. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5390. else
  5391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5392. for as_dir in $PATH
  5393. do
  5394. IFS=$as_save_IFS
  5395. test -z "$as_dir" && as_dir=.
  5396. for ac_exec_ext in '' $ac_executable_extensions; do
  5397. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5398. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5400. break 2
  5401. fi
  5402. done
  5403. done
  5404. IFS=$as_save_IFS
  5405. fi
  5406. fi
  5407. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5408. if test -n "$ac_ct_OBJDUMP"; then
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5410. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5411. else
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5413. $as_echo "no" >&6; }
  5414. fi
  5415. if test "x$ac_ct_OBJDUMP" = x; then
  5416. OBJDUMP="false"
  5417. else
  5418. case $cross_compiling:$ac_tool_warned in
  5419. yes:)
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5421. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5422. ac_tool_warned=yes ;;
  5423. esac
  5424. OBJDUMP=$ac_ct_OBJDUMP
  5425. fi
  5426. else
  5427. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5428. fi
  5429. test -z "$OBJDUMP" && OBJDUMP=objdump
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5431. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5432. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5433. $as_echo_n "(cached) " >&6
  5434. else
  5435. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5436. lt_cv_file_magic_test_file=
  5437. lt_cv_deplibs_check_method='unknown'
  5438. # Need to set the preceding variable on all platforms that support
  5439. # interlibrary dependencies.
  5440. # 'none' -- dependencies not supported.
  5441. # `unknown' -- same as none, but documents that we really don't know.
  5442. # 'pass_all' -- all dependencies passed with no checks.
  5443. # 'test_compile' -- check by making test program.
  5444. # 'file_magic [[regex]]' -- check by looking for files in library path
  5445. # which responds to the $file_magic_cmd with a given extended regex.
  5446. # If you have `file' or equivalent on your system and you're not sure
  5447. # whether `pass_all' will *always* work, you probably want this one.
  5448. case $host_os in
  5449. aix[4-9]*)
  5450. lt_cv_deplibs_check_method=pass_all
  5451. ;;
  5452. beos*)
  5453. lt_cv_deplibs_check_method=pass_all
  5454. ;;
  5455. bsdi[45]*)
  5456. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5457. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5458. lt_cv_file_magic_test_file=/shlib/libc.so
  5459. ;;
  5460. cygwin*)
  5461. # func_win32_libid is a shell function defined in ltmain.sh
  5462. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5463. lt_cv_file_magic_cmd='func_win32_libid'
  5464. ;;
  5465. mingw* | pw32*)
  5466. # Base MSYS/MinGW do not provide the 'file' command needed by
  5467. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5468. # unless we find 'file', for example because we are cross-compiling.
  5469. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5470. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5471. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5472. lt_cv_file_magic_cmd='func_win32_libid'
  5473. else
  5474. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5475. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5476. fi
  5477. ;;
  5478. cegcc*)
  5479. # use the weaker test based on 'objdump'. See mingw*.
  5480. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5481. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5482. ;;
  5483. darwin* | rhapsody*)
  5484. lt_cv_deplibs_check_method=pass_all
  5485. ;;
  5486. freebsd* | dragonfly*)
  5487. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5488. case $host_cpu in
  5489. i*86 )
  5490. # Not sure whether the presence of OpenBSD here was a mistake.
  5491. # Let's accept both of them until this is cleared up.
  5492. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5493. lt_cv_file_magic_cmd=/usr/bin/file
  5494. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5495. ;;
  5496. esac
  5497. else
  5498. lt_cv_deplibs_check_method=pass_all
  5499. fi
  5500. ;;
  5501. gnu*)
  5502. lt_cv_deplibs_check_method=pass_all
  5503. ;;
  5504. haiku*)
  5505. lt_cv_deplibs_check_method=pass_all
  5506. ;;
  5507. hpux10.20* | hpux11*)
  5508. lt_cv_file_magic_cmd=/usr/bin/file
  5509. case $host_cpu in
  5510. ia64*)
  5511. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5512. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5513. ;;
  5514. hppa*64*)
  5515. 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]'
  5516. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5517. ;;
  5518. *)
  5519. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5520. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5521. ;;
  5522. esac
  5523. ;;
  5524. interix[3-9]*)
  5525. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5526. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5527. ;;
  5528. irix5* | irix6* | nonstopux*)
  5529. case $LD in
  5530. *-32|*"-32 ") libmagic=32-bit;;
  5531. *-n32|*"-n32 ") libmagic=N32;;
  5532. *-64|*"-64 ") libmagic=64-bit;;
  5533. *) libmagic=never-match;;
  5534. esac
  5535. lt_cv_deplibs_check_method=pass_all
  5536. ;;
  5537. # This must be Linux ELF.
  5538. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5539. lt_cv_deplibs_check_method=pass_all
  5540. ;;
  5541. netbsd*)
  5542. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5543. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5544. else
  5545. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5546. fi
  5547. ;;
  5548. newos6*)
  5549. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5550. lt_cv_file_magic_cmd=/usr/bin/file
  5551. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5552. ;;
  5553. *nto* | *qnx*)
  5554. lt_cv_deplibs_check_method=pass_all
  5555. ;;
  5556. openbsd*)
  5557. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5558. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5559. else
  5560. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5561. fi
  5562. ;;
  5563. osf3* | osf4* | osf5*)
  5564. lt_cv_deplibs_check_method=pass_all
  5565. ;;
  5566. rdos*)
  5567. lt_cv_deplibs_check_method=pass_all
  5568. ;;
  5569. solaris*)
  5570. lt_cv_deplibs_check_method=pass_all
  5571. ;;
  5572. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5573. lt_cv_deplibs_check_method=pass_all
  5574. ;;
  5575. sysv4 | sysv4.3*)
  5576. case $host_vendor in
  5577. motorola)
  5578. 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]'
  5579. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5580. ;;
  5581. ncr)
  5582. lt_cv_deplibs_check_method=pass_all
  5583. ;;
  5584. sequent)
  5585. lt_cv_file_magic_cmd='/bin/file'
  5586. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5587. ;;
  5588. sni)
  5589. lt_cv_file_magic_cmd='/bin/file'
  5590. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5591. lt_cv_file_magic_test_file=/lib/libc.so
  5592. ;;
  5593. siemens)
  5594. lt_cv_deplibs_check_method=pass_all
  5595. ;;
  5596. pc)
  5597. lt_cv_deplibs_check_method=pass_all
  5598. ;;
  5599. esac
  5600. ;;
  5601. tpf*)
  5602. lt_cv_deplibs_check_method=pass_all
  5603. ;;
  5604. esac
  5605. fi
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5607. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5608. file_magic_cmd=$lt_cv_file_magic_cmd
  5609. deplibs_check_method=$lt_cv_deplibs_check_method
  5610. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5611. if test -n "$ac_tool_prefix"; then
  5612. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5613. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5615. $as_echo_n "checking for $ac_word... " >&6; }
  5616. if test "${ac_cv_prog_AR+set}" = set; then :
  5617. $as_echo_n "(cached) " >&6
  5618. else
  5619. if test -n "$AR"; then
  5620. ac_cv_prog_AR="$AR" # Let the user override the test.
  5621. else
  5622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5623. for as_dir in $PATH
  5624. do
  5625. IFS=$as_save_IFS
  5626. test -z "$as_dir" && as_dir=.
  5627. for ac_exec_ext in '' $ac_executable_extensions; do
  5628. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5629. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5630. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5631. break 2
  5632. fi
  5633. done
  5634. done
  5635. IFS=$as_save_IFS
  5636. fi
  5637. fi
  5638. AR=$ac_cv_prog_AR
  5639. if test -n "$AR"; then
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5641. $as_echo "$AR" >&6; }
  5642. else
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5644. $as_echo "no" >&6; }
  5645. fi
  5646. fi
  5647. if test -z "$ac_cv_prog_AR"; then
  5648. ac_ct_AR=$AR
  5649. # Extract the first word of "ar", so it can be a program name with args.
  5650. set dummy ar; ac_word=$2
  5651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5652. $as_echo_n "checking for $ac_word... " >&6; }
  5653. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5654. $as_echo_n "(cached) " >&6
  5655. else
  5656. if test -n "$ac_ct_AR"; then
  5657. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5658. else
  5659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5660. for as_dir in $PATH
  5661. do
  5662. IFS=$as_save_IFS
  5663. test -z "$as_dir" && as_dir=.
  5664. for ac_exec_ext in '' $ac_executable_extensions; do
  5665. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5666. ac_cv_prog_ac_ct_AR="ar"
  5667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5668. break 2
  5669. fi
  5670. done
  5671. done
  5672. IFS=$as_save_IFS
  5673. fi
  5674. fi
  5675. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5676. if test -n "$ac_ct_AR"; then
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5678. $as_echo "$ac_ct_AR" >&6; }
  5679. else
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5681. $as_echo "no" >&6; }
  5682. fi
  5683. if test "x$ac_ct_AR" = x; then
  5684. AR="false"
  5685. else
  5686. case $cross_compiling:$ac_tool_warned in
  5687. yes:)
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5689. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5690. ac_tool_warned=yes ;;
  5691. esac
  5692. AR=$ac_ct_AR
  5693. fi
  5694. else
  5695. AR="$ac_cv_prog_AR"
  5696. fi
  5697. test -z "$AR" && AR=ar
  5698. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5699. if test -n "$ac_tool_prefix"; then
  5700. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5701. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5703. $as_echo_n "checking for $ac_word... " >&6; }
  5704. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5705. $as_echo_n "(cached) " >&6
  5706. else
  5707. if test -n "$STRIP"; then
  5708. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5709. else
  5710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5711. for as_dir in $PATH
  5712. do
  5713. IFS=$as_save_IFS
  5714. test -z "$as_dir" && as_dir=.
  5715. for ac_exec_ext in '' $ac_executable_extensions; do
  5716. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5717. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5718. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5719. break 2
  5720. fi
  5721. done
  5722. done
  5723. IFS=$as_save_IFS
  5724. fi
  5725. fi
  5726. STRIP=$ac_cv_prog_STRIP
  5727. if test -n "$STRIP"; then
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5729. $as_echo "$STRIP" >&6; }
  5730. else
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5732. $as_echo "no" >&6; }
  5733. fi
  5734. fi
  5735. if test -z "$ac_cv_prog_STRIP"; then
  5736. ac_ct_STRIP=$STRIP
  5737. # Extract the first word of "strip", so it can be a program name with args.
  5738. set dummy strip; ac_word=$2
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5740. $as_echo_n "checking for $ac_word... " >&6; }
  5741. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5742. $as_echo_n "(cached) " >&6
  5743. else
  5744. if test -n "$ac_ct_STRIP"; then
  5745. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5746. else
  5747. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5748. for as_dir in $PATH
  5749. do
  5750. IFS=$as_save_IFS
  5751. test -z "$as_dir" && as_dir=.
  5752. for ac_exec_ext in '' $ac_executable_extensions; do
  5753. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5754. ac_cv_prog_ac_ct_STRIP="strip"
  5755. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5756. break 2
  5757. fi
  5758. done
  5759. done
  5760. IFS=$as_save_IFS
  5761. fi
  5762. fi
  5763. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5764. if test -n "$ac_ct_STRIP"; then
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5766. $as_echo "$ac_ct_STRIP" >&6; }
  5767. else
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5769. $as_echo "no" >&6; }
  5770. fi
  5771. if test "x$ac_ct_STRIP" = x; then
  5772. STRIP=":"
  5773. else
  5774. case $cross_compiling:$ac_tool_warned in
  5775. yes:)
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5777. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5778. ac_tool_warned=yes ;;
  5779. esac
  5780. STRIP=$ac_ct_STRIP
  5781. fi
  5782. else
  5783. STRIP="$ac_cv_prog_STRIP"
  5784. fi
  5785. test -z "$STRIP" && STRIP=:
  5786. if test -n "$ac_tool_prefix"; then
  5787. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5788. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5790. $as_echo_n "checking for $ac_word... " >&6; }
  5791. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5792. $as_echo_n "(cached) " >&6
  5793. else
  5794. if test -n "$RANLIB"; then
  5795. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5796. else
  5797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5798. for as_dir in $PATH
  5799. do
  5800. IFS=$as_save_IFS
  5801. test -z "$as_dir" && as_dir=.
  5802. for ac_exec_ext in '' $ac_executable_extensions; do
  5803. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5804. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5806. break 2
  5807. fi
  5808. done
  5809. done
  5810. IFS=$as_save_IFS
  5811. fi
  5812. fi
  5813. RANLIB=$ac_cv_prog_RANLIB
  5814. if test -n "$RANLIB"; then
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5816. $as_echo "$RANLIB" >&6; }
  5817. else
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5819. $as_echo "no" >&6; }
  5820. fi
  5821. fi
  5822. if test -z "$ac_cv_prog_RANLIB"; then
  5823. ac_ct_RANLIB=$RANLIB
  5824. # Extract the first word of "ranlib", so it can be a program name with args.
  5825. set dummy ranlib; ac_word=$2
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5827. $as_echo_n "checking for $ac_word... " >&6; }
  5828. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5829. $as_echo_n "(cached) " >&6
  5830. else
  5831. if test -n "$ac_ct_RANLIB"; then
  5832. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5833. else
  5834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5835. for as_dir in $PATH
  5836. do
  5837. IFS=$as_save_IFS
  5838. test -z "$as_dir" && as_dir=.
  5839. for ac_exec_ext in '' $ac_executable_extensions; do
  5840. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5841. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5843. break 2
  5844. fi
  5845. done
  5846. done
  5847. IFS=$as_save_IFS
  5848. fi
  5849. fi
  5850. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5851. if test -n "$ac_ct_RANLIB"; then
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5853. $as_echo "$ac_ct_RANLIB" >&6; }
  5854. else
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5856. $as_echo "no" >&6; }
  5857. fi
  5858. if test "x$ac_ct_RANLIB" = x; then
  5859. RANLIB=":"
  5860. else
  5861. case $cross_compiling:$ac_tool_warned in
  5862. yes:)
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5864. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5865. ac_tool_warned=yes ;;
  5866. esac
  5867. RANLIB=$ac_ct_RANLIB
  5868. fi
  5869. else
  5870. RANLIB="$ac_cv_prog_RANLIB"
  5871. fi
  5872. test -z "$RANLIB" && RANLIB=:
  5873. # Determine commands to create old-style static archives.
  5874. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5875. old_postinstall_cmds='chmod 644 $oldlib'
  5876. old_postuninstall_cmds=
  5877. if test -n "$RANLIB"; then
  5878. case $host_os in
  5879. openbsd*)
  5880. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5881. ;;
  5882. *)
  5883. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5884. ;;
  5885. esac
  5886. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5887. fi
  5888. case $host_os in
  5889. darwin*)
  5890. lock_old_archive_extraction=yes ;;
  5891. *)
  5892. lock_old_archive_extraction=no ;;
  5893. esac
  5894. # If no C compiler was specified, use CC.
  5895. LTCC=${LTCC-"$CC"}
  5896. # If no C compiler flags were specified, use CFLAGS.
  5897. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5898. # Allow CC to be a program name with arguments.
  5899. compiler=$CC
  5900. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5902. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5903. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5904. $as_echo_n "(cached) " >&6
  5905. else
  5906. # These are sane defaults that work on at least a few old systems.
  5907. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5908. # Character class describing NM global symbol codes.
  5909. symcode='[BCDEGRST]'
  5910. # Regexp to match symbols that can be accessed directly from C.
  5911. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5912. # Define system-specific variables.
  5913. case $host_os in
  5914. aix*)
  5915. symcode='[BCDT]'
  5916. ;;
  5917. cygwin* | mingw* | pw32* | cegcc*)
  5918. symcode='[ABCDGISTW]'
  5919. ;;
  5920. hpux*)
  5921. if test "$host_cpu" = ia64; then
  5922. symcode='[ABCDEGRST]'
  5923. fi
  5924. ;;
  5925. irix* | nonstopux*)
  5926. symcode='[BCDEGRST]'
  5927. ;;
  5928. osf*)
  5929. symcode='[BCDEGQRST]'
  5930. ;;
  5931. solaris*)
  5932. symcode='[BDRT]'
  5933. ;;
  5934. sco3.2v5*)
  5935. symcode='[DT]'
  5936. ;;
  5937. sysv4.2uw2*)
  5938. symcode='[DT]'
  5939. ;;
  5940. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5941. symcode='[ABDT]'
  5942. ;;
  5943. sysv4)
  5944. symcode='[DFNSTU]'
  5945. ;;
  5946. esac
  5947. # If we're using GNU nm, then use its standard symbol codes.
  5948. case `$NM -V 2>&1` in
  5949. *GNU* | *'with BFD'*)
  5950. symcode='[ABCDGIRSTW]' ;;
  5951. esac
  5952. # Transform an extracted symbol line into a proper C declaration.
  5953. # Some systems (esp. on ia64) link data and code symbols differently,
  5954. # so use this general approach.
  5955. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5956. # Transform an extracted symbol line into symbol name and symbol address
  5957. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5958. 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'"
  5959. # Handle CRLF in mingw tool chain
  5960. opt_cr=
  5961. case $build_os in
  5962. mingw*)
  5963. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5964. ;;
  5965. esac
  5966. # Try without a prefix underscore, then with it.
  5967. for ac_symprfx in "" "_"; do
  5968. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5969. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5970. # Write the raw and C identifiers.
  5971. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5972. # Fake it for dumpbin and say T for any non-static function
  5973. # and D for any global variable.
  5974. # Also find C++ and __fastcall symbols from MSVC++,
  5975. # which start with @ or ?.
  5976. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5977. " {last_section=section; section=\$ 3};"\
  5978. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5979. " \$ 0!~/External *\|/{next};"\
  5980. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5981. " {if(hide[section]) next};"\
  5982. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5983. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5984. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5985. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5986. " ' prfx=^$ac_symprfx"
  5987. else
  5988. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5989. fi
  5990. # Check to see that the pipe works correctly.
  5991. pipe_works=no
  5992. rm -f conftest*
  5993. cat > conftest.$ac_ext <<_LT_EOF
  5994. #ifdef __cplusplus
  5995. extern "C" {
  5996. #endif
  5997. char nm_test_var;
  5998. void nm_test_func(void);
  5999. void nm_test_func(void){}
  6000. #ifdef __cplusplus
  6001. }
  6002. #endif
  6003. int main(){nm_test_var='a';nm_test_func();return(0);}
  6004. _LT_EOF
  6005. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6006. (eval $ac_compile) 2>&5
  6007. ac_status=$?
  6008. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6009. test $ac_status = 0; }; then
  6010. # Now try to grab the symbols.
  6011. nlist=conftest.nm
  6012. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6013. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6014. ac_status=$?
  6015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6016. test $ac_status = 0; } && test -s "$nlist"; then
  6017. # Try sorting and uniquifying the output.
  6018. if sort "$nlist" | uniq > "$nlist"T; then
  6019. mv -f "$nlist"T "$nlist"
  6020. else
  6021. rm -f "$nlist"T
  6022. fi
  6023. # Make sure that we snagged all the symbols we need.
  6024. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6025. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6026. cat <<_LT_EOF > conftest.$ac_ext
  6027. #ifdef __cplusplus
  6028. extern "C" {
  6029. #endif
  6030. _LT_EOF
  6031. # Now generate the symbol file.
  6032. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6033. cat <<_LT_EOF >> conftest.$ac_ext
  6034. /* The mapping between symbol names and symbols. */
  6035. const struct {
  6036. const char *name;
  6037. void *address;
  6038. }
  6039. lt__PROGRAM__LTX_preloaded_symbols[] =
  6040. {
  6041. { "@PROGRAM@", (void *) 0 },
  6042. _LT_EOF
  6043. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6044. cat <<\_LT_EOF >> conftest.$ac_ext
  6045. {0, (void *) 0}
  6046. };
  6047. /* This works around a problem in FreeBSD linker */
  6048. #ifdef FREEBSD_WORKAROUND
  6049. static const void *lt_preloaded_setup() {
  6050. return lt__PROGRAM__LTX_preloaded_symbols;
  6051. }
  6052. #endif
  6053. #ifdef __cplusplus
  6054. }
  6055. #endif
  6056. _LT_EOF
  6057. # Now try linking the two files.
  6058. mv conftest.$ac_objext conftstm.$ac_objext
  6059. lt_save_LIBS="$LIBS"
  6060. lt_save_CFLAGS="$CFLAGS"
  6061. LIBS="conftstm.$ac_objext"
  6062. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6063. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6064. (eval $ac_link) 2>&5
  6065. ac_status=$?
  6066. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6067. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6068. pipe_works=yes
  6069. fi
  6070. LIBS="$lt_save_LIBS"
  6071. CFLAGS="$lt_save_CFLAGS"
  6072. else
  6073. echo "cannot find nm_test_func in $nlist" >&5
  6074. fi
  6075. else
  6076. echo "cannot find nm_test_var in $nlist" >&5
  6077. fi
  6078. else
  6079. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6080. fi
  6081. else
  6082. echo "$progname: failed program was:" >&5
  6083. cat conftest.$ac_ext >&5
  6084. fi
  6085. rm -rf conftest* conftst*
  6086. # Do not use the global_symbol_pipe unless it works.
  6087. if test "$pipe_works" = yes; then
  6088. break
  6089. else
  6090. lt_cv_sys_global_symbol_pipe=
  6091. fi
  6092. done
  6093. fi
  6094. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6095. lt_cv_sys_global_symbol_to_cdecl=
  6096. fi
  6097. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6099. $as_echo "failed" >&6; }
  6100. else
  6101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6102. $as_echo "ok" >&6; }
  6103. fi
  6104. # Check whether --enable-libtool-lock was given.
  6105. if test "${enable_libtool_lock+set}" = set; then :
  6106. enableval=$enable_libtool_lock;
  6107. fi
  6108. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6109. # Some flags need to be propagated to the compiler or linker for good
  6110. # libtool support.
  6111. case $host in
  6112. ia64-*-hpux*)
  6113. # Find out which ABI we are using.
  6114. echo 'int i;' > conftest.$ac_ext
  6115. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6116. (eval $ac_compile) 2>&5
  6117. ac_status=$?
  6118. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6119. test $ac_status = 0; }; then
  6120. case `/usr/bin/file conftest.$ac_objext` in
  6121. *ELF-32*)
  6122. HPUX_IA64_MODE="32"
  6123. ;;
  6124. *ELF-64*)
  6125. HPUX_IA64_MODE="64"
  6126. ;;
  6127. esac
  6128. fi
  6129. rm -rf conftest*
  6130. ;;
  6131. *-*-irix6*)
  6132. # Find out which ABI we are using.
  6133. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6134. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6135. (eval $ac_compile) 2>&5
  6136. ac_status=$?
  6137. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6138. test $ac_status = 0; }; then
  6139. if test "$lt_cv_prog_gnu_ld" = yes; then
  6140. case `/usr/bin/file conftest.$ac_objext` in
  6141. *32-bit*)
  6142. LD="${LD-ld} -melf32bsmip"
  6143. ;;
  6144. *N32*)
  6145. LD="${LD-ld} -melf32bmipn32"
  6146. ;;
  6147. *64-bit*)
  6148. LD="${LD-ld} -melf64bmip"
  6149. ;;
  6150. esac
  6151. else
  6152. case `/usr/bin/file conftest.$ac_objext` in
  6153. *32-bit*)
  6154. LD="${LD-ld} -32"
  6155. ;;
  6156. *N32*)
  6157. LD="${LD-ld} -n32"
  6158. ;;
  6159. *64-bit*)
  6160. LD="${LD-ld} -64"
  6161. ;;
  6162. esac
  6163. fi
  6164. fi
  6165. rm -rf conftest*
  6166. ;;
  6167. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6168. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6169. # Find out which ABI we are using.
  6170. echo 'int i;' > conftest.$ac_ext
  6171. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6172. (eval $ac_compile) 2>&5
  6173. ac_status=$?
  6174. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6175. test $ac_status = 0; }; then
  6176. case `/usr/bin/file conftest.o` in
  6177. *32-bit*)
  6178. case $host in
  6179. x86_64-*kfreebsd*-gnu)
  6180. LD="${LD-ld} -m elf_i386_fbsd"
  6181. ;;
  6182. x86_64-*linux*)
  6183. case `/usr/bin/file conftest.o` in
  6184. *x86-64*)
  6185. LD="${LD-ld} -m elf32_x86_64"
  6186. ;;
  6187. *)
  6188. LD="${LD-ld} -m elf_i386"
  6189. ;;
  6190. esac
  6191. ;;
  6192. powerpc64le-*linux*)
  6193. LD="${LD-ld} -m elf32lppclinux"
  6194. ;;
  6195. powerpc64-*linux*)
  6196. LD="${LD-ld} -m elf32ppclinux"
  6197. ;;
  6198. s390x-*linux*)
  6199. LD="${LD-ld} -m elf_s390"
  6200. ;;
  6201. sparc64-*linux*)
  6202. LD="${LD-ld} -m elf32_sparc"
  6203. ;;
  6204. esac
  6205. ;;
  6206. *64-bit*)
  6207. case $host in
  6208. x86_64-*kfreebsd*-gnu)
  6209. LD="${LD-ld} -m elf_x86_64_fbsd"
  6210. ;;
  6211. x86_64-*linux*)
  6212. LD="${LD-ld} -m elf_x86_64"
  6213. ;;
  6214. powerpcle-*linux*)
  6215. LD="${LD-ld} -m elf64lppc"
  6216. ;;
  6217. powerpc-*linux*)
  6218. LD="${LD-ld} -m elf64ppc"
  6219. ;;
  6220. s390*-*linux*|s390*-*tpf*)
  6221. LD="${LD-ld} -m elf64_s390"
  6222. ;;
  6223. sparc*-*linux*)
  6224. LD="${LD-ld} -m elf64_sparc"
  6225. ;;
  6226. esac
  6227. ;;
  6228. esac
  6229. fi
  6230. rm -rf conftest*
  6231. ;;
  6232. *-*-sco3.2v5*)
  6233. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6234. SAVE_CFLAGS="$CFLAGS"
  6235. CFLAGS="$CFLAGS -belf"
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6237. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6238. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6239. $as_echo_n "(cached) " >&6
  6240. else
  6241. ac_ext=c
  6242. ac_cpp='$CPP $CPPFLAGS'
  6243. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6244. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6245. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6247. /* end confdefs.h. */
  6248. int
  6249. main ()
  6250. {
  6251. ;
  6252. return 0;
  6253. }
  6254. _ACEOF
  6255. if ac_fn_c_try_link "$LINENO"; then :
  6256. lt_cv_cc_needs_belf=yes
  6257. else
  6258. lt_cv_cc_needs_belf=no
  6259. fi
  6260. rm -f core conftest.err conftest.$ac_objext \
  6261. conftest$ac_exeext conftest.$ac_ext
  6262. ac_ext=c
  6263. ac_cpp='$CPP $CPPFLAGS'
  6264. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6265. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6266. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6267. fi
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6269. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6270. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6271. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6272. CFLAGS="$SAVE_CFLAGS"
  6273. fi
  6274. ;;
  6275. sparc*-*solaris*)
  6276. # Find out which ABI we are using.
  6277. echo 'int i;' > conftest.$ac_ext
  6278. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6279. (eval $ac_compile) 2>&5
  6280. ac_status=$?
  6281. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6282. test $ac_status = 0; }; then
  6283. case `/usr/bin/file conftest.o` in
  6284. *64-bit*)
  6285. case $lt_cv_prog_gnu_ld in
  6286. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6287. *)
  6288. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6289. LD="${LD-ld} -64"
  6290. fi
  6291. ;;
  6292. esac
  6293. ;;
  6294. esac
  6295. fi
  6296. rm -rf conftest*
  6297. ;;
  6298. esac
  6299. need_locks="$enable_libtool_lock"
  6300. case $host_os in
  6301. rhapsody* | darwin*)
  6302. if test -n "$ac_tool_prefix"; then
  6303. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6304. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6306. $as_echo_n "checking for $ac_word... " >&6; }
  6307. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. if test -n "$DSYMUTIL"; then
  6311. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6312. else
  6313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6314. for as_dir in $PATH
  6315. do
  6316. IFS=$as_save_IFS
  6317. test -z "$as_dir" && as_dir=.
  6318. for ac_exec_ext in '' $ac_executable_extensions; do
  6319. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6320. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6322. break 2
  6323. fi
  6324. done
  6325. done
  6326. IFS=$as_save_IFS
  6327. fi
  6328. fi
  6329. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6330. if test -n "$DSYMUTIL"; then
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6332. $as_echo "$DSYMUTIL" >&6; }
  6333. else
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6335. $as_echo "no" >&6; }
  6336. fi
  6337. fi
  6338. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6339. ac_ct_DSYMUTIL=$DSYMUTIL
  6340. # Extract the first word of "dsymutil", so it can be a program name with args.
  6341. set dummy dsymutil; ac_word=$2
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6343. $as_echo_n "checking for $ac_word... " >&6; }
  6344. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6345. $as_echo_n "(cached) " >&6
  6346. else
  6347. if test -n "$ac_ct_DSYMUTIL"; then
  6348. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6349. else
  6350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6351. for as_dir in $PATH
  6352. do
  6353. IFS=$as_save_IFS
  6354. test -z "$as_dir" && as_dir=.
  6355. for ac_exec_ext in '' $ac_executable_extensions; do
  6356. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6357. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6359. break 2
  6360. fi
  6361. done
  6362. done
  6363. IFS=$as_save_IFS
  6364. fi
  6365. fi
  6366. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6367. if test -n "$ac_ct_DSYMUTIL"; then
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6369. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6370. else
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6372. $as_echo "no" >&6; }
  6373. fi
  6374. if test "x$ac_ct_DSYMUTIL" = x; then
  6375. DSYMUTIL=":"
  6376. else
  6377. case $cross_compiling:$ac_tool_warned in
  6378. yes:)
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6380. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6381. ac_tool_warned=yes ;;
  6382. esac
  6383. DSYMUTIL=$ac_ct_DSYMUTIL
  6384. fi
  6385. else
  6386. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6387. fi
  6388. if test -n "$ac_tool_prefix"; then
  6389. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6390. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6392. $as_echo_n "checking for $ac_word... " >&6; }
  6393. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6394. $as_echo_n "(cached) " >&6
  6395. else
  6396. if test -n "$NMEDIT"; then
  6397. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6398. else
  6399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6400. for as_dir in $PATH
  6401. do
  6402. IFS=$as_save_IFS
  6403. test -z "$as_dir" && as_dir=.
  6404. for ac_exec_ext in '' $ac_executable_extensions; do
  6405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6406. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6408. break 2
  6409. fi
  6410. done
  6411. done
  6412. IFS=$as_save_IFS
  6413. fi
  6414. fi
  6415. NMEDIT=$ac_cv_prog_NMEDIT
  6416. if test -n "$NMEDIT"; then
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6418. $as_echo "$NMEDIT" >&6; }
  6419. else
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6421. $as_echo "no" >&6; }
  6422. fi
  6423. fi
  6424. if test -z "$ac_cv_prog_NMEDIT"; then
  6425. ac_ct_NMEDIT=$NMEDIT
  6426. # Extract the first word of "nmedit", so it can be a program name with args.
  6427. set dummy nmedit; ac_word=$2
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6429. $as_echo_n "checking for $ac_word... " >&6; }
  6430. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6431. $as_echo_n "(cached) " >&6
  6432. else
  6433. if test -n "$ac_ct_NMEDIT"; then
  6434. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6435. else
  6436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6437. for as_dir in $PATH
  6438. do
  6439. IFS=$as_save_IFS
  6440. test -z "$as_dir" && as_dir=.
  6441. for ac_exec_ext in '' $ac_executable_extensions; do
  6442. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6443. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6445. break 2
  6446. fi
  6447. done
  6448. done
  6449. IFS=$as_save_IFS
  6450. fi
  6451. fi
  6452. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6453. if test -n "$ac_ct_NMEDIT"; then
  6454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6455. $as_echo "$ac_ct_NMEDIT" >&6; }
  6456. else
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6458. $as_echo "no" >&6; }
  6459. fi
  6460. if test "x$ac_ct_NMEDIT" = x; then
  6461. NMEDIT=":"
  6462. else
  6463. case $cross_compiling:$ac_tool_warned in
  6464. yes:)
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6466. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6467. ac_tool_warned=yes ;;
  6468. esac
  6469. NMEDIT=$ac_ct_NMEDIT
  6470. fi
  6471. else
  6472. NMEDIT="$ac_cv_prog_NMEDIT"
  6473. fi
  6474. if test -n "$ac_tool_prefix"; then
  6475. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6476. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6478. $as_echo_n "checking for $ac_word... " >&6; }
  6479. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6480. $as_echo_n "(cached) " >&6
  6481. else
  6482. if test -n "$LIPO"; then
  6483. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6484. else
  6485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6486. for as_dir in $PATH
  6487. do
  6488. IFS=$as_save_IFS
  6489. test -z "$as_dir" && as_dir=.
  6490. for ac_exec_ext in '' $ac_executable_extensions; do
  6491. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6492. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6494. break 2
  6495. fi
  6496. done
  6497. done
  6498. IFS=$as_save_IFS
  6499. fi
  6500. fi
  6501. LIPO=$ac_cv_prog_LIPO
  6502. if test -n "$LIPO"; then
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6504. $as_echo "$LIPO" >&6; }
  6505. else
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6507. $as_echo "no" >&6; }
  6508. fi
  6509. fi
  6510. if test -z "$ac_cv_prog_LIPO"; then
  6511. ac_ct_LIPO=$LIPO
  6512. # Extract the first word of "lipo", so it can be a program name with args.
  6513. set dummy lipo; ac_word=$2
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6515. $as_echo_n "checking for $ac_word... " >&6; }
  6516. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6517. $as_echo_n "(cached) " >&6
  6518. else
  6519. if test -n "$ac_ct_LIPO"; then
  6520. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6521. else
  6522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6523. for as_dir in $PATH
  6524. do
  6525. IFS=$as_save_IFS
  6526. test -z "$as_dir" && as_dir=.
  6527. for ac_exec_ext in '' $ac_executable_extensions; do
  6528. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6529. ac_cv_prog_ac_ct_LIPO="lipo"
  6530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6531. break 2
  6532. fi
  6533. done
  6534. done
  6535. IFS=$as_save_IFS
  6536. fi
  6537. fi
  6538. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6539. if test -n "$ac_ct_LIPO"; then
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6541. $as_echo "$ac_ct_LIPO" >&6; }
  6542. else
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6544. $as_echo "no" >&6; }
  6545. fi
  6546. if test "x$ac_ct_LIPO" = x; then
  6547. LIPO=":"
  6548. else
  6549. case $cross_compiling:$ac_tool_warned in
  6550. yes:)
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6552. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6553. ac_tool_warned=yes ;;
  6554. esac
  6555. LIPO=$ac_ct_LIPO
  6556. fi
  6557. else
  6558. LIPO="$ac_cv_prog_LIPO"
  6559. fi
  6560. if test -n "$ac_tool_prefix"; then
  6561. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6562. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6564. $as_echo_n "checking for $ac_word... " >&6; }
  6565. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6566. $as_echo_n "(cached) " >&6
  6567. else
  6568. if test -n "$OTOOL"; then
  6569. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6570. else
  6571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6572. for as_dir in $PATH
  6573. do
  6574. IFS=$as_save_IFS
  6575. test -z "$as_dir" && as_dir=.
  6576. for ac_exec_ext in '' $ac_executable_extensions; do
  6577. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6578. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6580. break 2
  6581. fi
  6582. done
  6583. done
  6584. IFS=$as_save_IFS
  6585. fi
  6586. fi
  6587. OTOOL=$ac_cv_prog_OTOOL
  6588. if test -n "$OTOOL"; then
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6590. $as_echo "$OTOOL" >&6; }
  6591. else
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6593. $as_echo "no" >&6; }
  6594. fi
  6595. fi
  6596. if test -z "$ac_cv_prog_OTOOL"; then
  6597. ac_ct_OTOOL=$OTOOL
  6598. # Extract the first word of "otool", so it can be a program name with args.
  6599. set dummy otool; ac_word=$2
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6601. $as_echo_n "checking for $ac_word... " >&6; }
  6602. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6603. $as_echo_n "(cached) " >&6
  6604. else
  6605. if test -n "$ac_ct_OTOOL"; then
  6606. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6607. else
  6608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6609. for as_dir in $PATH
  6610. do
  6611. IFS=$as_save_IFS
  6612. test -z "$as_dir" && as_dir=.
  6613. for ac_exec_ext in '' $ac_executable_extensions; do
  6614. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6615. ac_cv_prog_ac_ct_OTOOL="otool"
  6616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6617. break 2
  6618. fi
  6619. done
  6620. done
  6621. IFS=$as_save_IFS
  6622. fi
  6623. fi
  6624. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6625. if test -n "$ac_ct_OTOOL"; then
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6627. $as_echo "$ac_ct_OTOOL" >&6; }
  6628. else
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6630. $as_echo "no" >&6; }
  6631. fi
  6632. if test "x$ac_ct_OTOOL" = x; then
  6633. OTOOL=":"
  6634. else
  6635. case $cross_compiling:$ac_tool_warned in
  6636. yes:)
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6639. ac_tool_warned=yes ;;
  6640. esac
  6641. OTOOL=$ac_ct_OTOOL
  6642. fi
  6643. else
  6644. OTOOL="$ac_cv_prog_OTOOL"
  6645. fi
  6646. if test -n "$ac_tool_prefix"; then
  6647. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6648. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6650. $as_echo_n "checking for $ac_word... " >&6; }
  6651. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6652. $as_echo_n "(cached) " >&6
  6653. else
  6654. if test -n "$OTOOL64"; then
  6655. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6656. else
  6657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6658. for as_dir in $PATH
  6659. do
  6660. IFS=$as_save_IFS
  6661. test -z "$as_dir" && as_dir=.
  6662. for ac_exec_ext in '' $ac_executable_extensions; do
  6663. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6664. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6666. break 2
  6667. fi
  6668. done
  6669. done
  6670. IFS=$as_save_IFS
  6671. fi
  6672. fi
  6673. OTOOL64=$ac_cv_prog_OTOOL64
  6674. if test -n "$OTOOL64"; then
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6676. $as_echo "$OTOOL64" >&6; }
  6677. else
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6679. $as_echo "no" >&6; }
  6680. fi
  6681. fi
  6682. if test -z "$ac_cv_prog_OTOOL64"; then
  6683. ac_ct_OTOOL64=$OTOOL64
  6684. # Extract the first word of "otool64", so it can be a program name with args.
  6685. set dummy otool64; ac_word=$2
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6687. $as_echo_n "checking for $ac_word... " >&6; }
  6688. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6689. $as_echo_n "(cached) " >&6
  6690. else
  6691. if test -n "$ac_ct_OTOOL64"; then
  6692. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6693. else
  6694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6695. for as_dir in $PATH
  6696. do
  6697. IFS=$as_save_IFS
  6698. test -z "$as_dir" && as_dir=.
  6699. for ac_exec_ext in '' $ac_executable_extensions; do
  6700. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6701. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6703. break 2
  6704. fi
  6705. done
  6706. done
  6707. IFS=$as_save_IFS
  6708. fi
  6709. fi
  6710. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6711. if test -n "$ac_ct_OTOOL64"; then
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6713. $as_echo "$ac_ct_OTOOL64" >&6; }
  6714. else
  6715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6716. $as_echo "no" >&6; }
  6717. fi
  6718. if test "x$ac_ct_OTOOL64" = x; then
  6719. OTOOL64=":"
  6720. else
  6721. case $cross_compiling:$ac_tool_warned in
  6722. yes:)
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6724. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6725. ac_tool_warned=yes ;;
  6726. esac
  6727. OTOOL64=$ac_ct_OTOOL64
  6728. fi
  6729. else
  6730. OTOOL64="$ac_cv_prog_OTOOL64"
  6731. fi
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6733. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6734. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6735. $as_echo_n "(cached) " >&6
  6736. else
  6737. lt_cv_apple_cc_single_mod=no
  6738. if test -z "${LT_MULTI_MODULE}"; then
  6739. # By default we will add the -single_module flag. You can override
  6740. # by either setting the environment variable LT_MULTI_MODULE
  6741. # non-empty at configure time, or by adding -multi_module to the
  6742. # link flags.
  6743. rm -rf libconftest.dylib*
  6744. echo "int foo(void){return 1;}" > conftest.c
  6745. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6746. -dynamiclib -Wl,-single_module conftest.c" >&5
  6747. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6748. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6749. _lt_result=$?
  6750. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6751. lt_cv_apple_cc_single_mod=yes
  6752. else
  6753. cat conftest.err >&5
  6754. fi
  6755. rm -rf libconftest.dylib*
  6756. rm -f conftest.*
  6757. fi
  6758. fi
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6760. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6762. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6763. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6764. $as_echo_n "(cached) " >&6
  6765. else
  6766. lt_cv_ld_exported_symbols_list=no
  6767. save_LDFLAGS=$LDFLAGS
  6768. echo "_main" > conftest.sym
  6769. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6771. /* end confdefs.h. */
  6772. int
  6773. main ()
  6774. {
  6775. ;
  6776. return 0;
  6777. }
  6778. _ACEOF
  6779. if ac_fn_c_try_link "$LINENO"; then :
  6780. lt_cv_ld_exported_symbols_list=yes
  6781. else
  6782. lt_cv_ld_exported_symbols_list=no
  6783. fi
  6784. rm -f core conftest.err conftest.$ac_objext \
  6785. conftest$ac_exeext conftest.$ac_ext
  6786. LDFLAGS="$save_LDFLAGS"
  6787. fi
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6789. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6791. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6792. if test "${lt_cv_ld_force_load+set}" = set; then :
  6793. $as_echo_n "(cached) " >&6
  6794. else
  6795. lt_cv_ld_force_load=no
  6796. cat > conftest.c << _LT_EOF
  6797. int forced_loaded() { return 2;}
  6798. _LT_EOF
  6799. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6800. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6801. echo "$AR cru libconftest.a conftest.o" >&5
  6802. $AR cru libconftest.a conftest.o 2>&5
  6803. cat > conftest.c << _LT_EOF
  6804. int main() { return 0;}
  6805. _LT_EOF
  6806. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6807. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6808. _lt_result=$?
  6809. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6810. lt_cv_ld_force_load=yes
  6811. else
  6812. cat conftest.err >&5
  6813. fi
  6814. rm -f conftest.err libconftest.a conftest conftest.c
  6815. rm -rf conftest.dSYM
  6816. fi
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6818. $as_echo "$lt_cv_ld_force_load" >&6; }
  6819. case $host_os in
  6820. rhapsody* | darwin1.[012])
  6821. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6822. darwin1.*)
  6823. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6824. darwin*) # darwin 5.x on
  6825. # if running on 10.5 or later, the deployment target defaults
  6826. # to the OS version, if on x86, and 10.4, the deployment
  6827. # target defaults to 10.4. Don't you love it?
  6828. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6829. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6830. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6831. 10.[012][,.]*)
  6832. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6833. 10.*)
  6834. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6835. esac
  6836. ;;
  6837. esac
  6838. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6839. _lt_dar_single_mod='$single_module'
  6840. fi
  6841. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6842. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6843. else
  6844. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6845. fi
  6846. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6847. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6848. else
  6849. _lt_dsymutil=
  6850. fi
  6851. ;;
  6852. esac
  6853. for ac_header in dlfcn.h
  6854. do :
  6855. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6856. "
  6857. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6858. cat >>confdefs.h <<_ACEOF
  6859. #define HAVE_DLFCN_H 1
  6860. _ACEOF
  6861. fi
  6862. done
  6863. # Set options
  6864. enable_win32_dll=no
  6865. # Check whether --enable-shared was given.
  6866. if test "${enable_shared+set}" = set; then :
  6867. enableval=$enable_shared; p=${PACKAGE-default}
  6868. case $enableval in
  6869. yes) enable_shared=yes ;;
  6870. no) enable_shared=no ;;
  6871. *)
  6872. enable_shared=no
  6873. # Look at the argument we got. We use all the common list separators.
  6874. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6875. for pkg in $enableval; do
  6876. IFS="$lt_save_ifs"
  6877. if test "X$pkg" = "X$p"; then
  6878. enable_shared=yes
  6879. fi
  6880. done
  6881. IFS="$lt_save_ifs"
  6882. ;;
  6883. esac
  6884. else
  6885. enable_shared=yes
  6886. fi
  6887. # Check whether --enable-static was given.
  6888. if test "${enable_static+set}" = set; then :
  6889. enableval=$enable_static; p=${PACKAGE-default}
  6890. case $enableval in
  6891. yes) enable_static=yes ;;
  6892. no) enable_static=no ;;
  6893. *)
  6894. enable_static=no
  6895. # Look at the argument we got. We use all the common list separators.
  6896. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6897. for pkg in $enableval; do
  6898. IFS="$lt_save_ifs"
  6899. if test "X$pkg" = "X$p"; then
  6900. enable_static=yes
  6901. fi
  6902. done
  6903. IFS="$lt_save_ifs"
  6904. ;;
  6905. esac
  6906. else
  6907. enable_static=yes
  6908. fi
  6909. # Check whether --with-pic was given.
  6910. if test "${with_pic+set}" = set; then :
  6911. withval=$with_pic; pic_mode="$withval"
  6912. else
  6913. pic_mode=default
  6914. fi
  6915. test -z "$pic_mode" && pic_mode=default
  6916. # Check whether --enable-fast-install was given.
  6917. if test "${enable_fast_install+set}" = set; then :
  6918. enableval=$enable_fast_install; p=${PACKAGE-default}
  6919. case $enableval in
  6920. yes) enable_fast_install=yes ;;
  6921. no) enable_fast_install=no ;;
  6922. *)
  6923. enable_fast_install=no
  6924. # Look at the argument we got. We use all the common list separators.
  6925. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6926. for pkg in $enableval; do
  6927. IFS="$lt_save_ifs"
  6928. if test "X$pkg" = "X$p"; then
  6929. enable_fast_install=yes
  6930. fi
  6931. done
  6932. IFS="$lt_save_ifs"
  6933. ;;
  6934. esac
  6935. else
  6936. enable_fast_install=yes
  6937. fi
  6938. # This can be used to rebuild libtool when needed
  6939. LIBTOOL_DEPS="$ltmain"
  6940. # Always use our own libtool.
  6941. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6942. test -z "$LN_S" && LN_S="ln -s"
  6943. if test -n "${ZSH_VERSION+set}" ; then
  6944. setopt NO_GLOB_SUBST
  6945. fi
  6946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6947. $as_echo_n "checking for objdir... " >&6; }
  6948. if test "${lt_cv_objdir+set}" = set; then :
  6949. $as_echo_n "(cached) " >&6
  6950. else
  6951. rm -f .libs 2>/dev/null
  6952. mkdir .libs 2>/dev/null
  6953. if test -d .libs; then
  6954. lt_cv_objdir=.libs
  6955. else
  6956. # MS-DOS does not allow filenames that begin with a dot.
  6957. lt_cv_objdir=_libs
  6958. fi
  6959. rmdir .libs 2>/dev/null
  6960. fi
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6962. $as_echo "$lt_cv_objdir" >&6; }
  6963. objdir=$lt_cv_objdir
  6964. cat >>confdefs.h <<_ACEOF
  6965. #define LT_OBJDIR "$lt_cv_objdir/"
  6966. _ACEOF
  6967. case $host_os in
  6968. aix3*)
  6969. # AIX sometimes has problems with the GCC collect2 program. For some
  6970. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6971. # vanish in a puff of smoke.
  6972. if test "X${COLLECT_NAMES+set}" != Xset; then
  6973. COLLECT_NAMES=
  6974. export COLLECT_NAMES
  6975. fi
  6976. ;;
  6977. esac
  6978. # Global variables:
  6979. ofile=libtool
  6980. can_build_shared=yes
  6981. # All known linkers require a `.a' archive for static linking (except MSVC,
  6982. # which needs '.lib').
  6983. libext=a
  6984. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6985. old_CC="$CC"
  6986. old_CFLAGS="$CFLAGS"
  6987. # Set sane defaults for various variables
  6988. test -z "$CC" && CC=cc
  6989. test -z "$LTCC" && LTCC=$CC
  6990. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6991. test -z "$LD" && LD=ld
  6992. test -z "$ac_objext" && ac_objext=o
  6993. for cc_temp in $compiler""; do
  6994. case $cc_temp in
  6995. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6996. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6997. \-*) ;;
  6998. *) break;;
  6999. esac
  7000. done
  7001. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7002. # Only perform the check for file, if the check method requires it
  7003. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7004. case $deplibs_check_method in
  7005. file_magic*)
  7006. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7008. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7009. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7010. $as_echo_n "(cached) " >&6
  7011. else
  7012. case $MAGIC_CMD in
  7013. [\\/*] | ?:[\\/]*)
  7014. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7015. ;;
  7016. *)
  7017. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7018. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7019. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7020. for ac_dir in $ac_dummy; do
  7021. IFS="$lt_save_ifs"
  7022. test -z "$ac_dir" && ac_dir=.
  7023. if test -f $ac_dir/${ac_tool_prefix}file; then
  7024. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7025. if test -n "$file_magic_test_file"; then
  7026. case $deplibs_check_method in
  7027. "file_magic "*)
  7028. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7029. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7030. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7031. $EGREP "$file_magic_regex" > /dev/null; then
  7032. :
  7033. else
  7034. cat <<_LT_EOF 1>&2
  7035. *** Warning: the command libtool uses to detect shared libraries,
  7036. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7037. *** The result is that libtool may fail to recognize shared libraries
  7038. *** as such. This will affect the creation of libtool libraries that
  7039. *** depend on shared libraries, but programs linked with such libtool
  7040. *** libraries will work regardless of this problem. Nevertheless, you
  7041. *** may want to report the problem to your system manager and/or to
  7042. *** bug-libtool@gnu.org
  7043. _LT_EOF
  7044. fi ;;
  7045. esac
  7046. fi
  7047. break
  7048. fi
  7049. done
  7050. IFS="$lt_save_ifs"
  7051. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7052. ;;
  7053. esac
  7054. fi
  7055. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7056. if test -n "$MAGIC_CMD"; then
  7057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7058. $as_echo "$MAGIC_CMD" >&6; }
  7059. else
  7060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7061. $as_echo "no" >&6; }
  7062. fi
  7063. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7064. if test -n "$ac_tool_prefix"; then
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7066. $as_echo_n "checking for file... " >&6; }
  7067. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7068. $as_echo_n "(cached) " >&6
  7069. else
  7070. case $MAGIC_CMD in
  7071. [\\/*] | ?:[\\/]*)
  7072. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7073. ;;
  7074. *)
  7075. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7076. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7077. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7078. for ac_dir in $ac_dummy; do
  7079. IFS="$lt_save_ifs"
  7080. test -z "$ac_dir" && ac_dir=.
  7081. if test -f $ac_dir/file; then
  7082. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7083. if test -n "$file_magic_test_file"; then
  7084. case $deplibs_check_method in
  7085. "file_magic "*)
  7086. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7087. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7088. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7089. $EGREP "$file_magic_regex" > /dev/null; then
  7090. :
  7091. else
  7092. cat <<_LT_EOF 1>&2
  7093. *** Warning: the command libtool uses to detect shared libraries,
  7094. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7095. *** The result is that libtool may fail to recognize shared libraries
  7096. *** as such. This will affect the creation of libtool libraries that
  7097. *** depend on shared libraries, but programs linked with such libtool
  7098. *** libraries will work regardless of this problem. Nevertheless, you
  7099. *** may want to report the problem to your system manager and/or to
  7100. *** bug-libtool@gnu.org
  7101. _LT_EOF
  7102. fi ;;
  7103. esac
  7104. fi
  7105. break
  7106. fi
  7107. done
  7108. IFS="$lt_save_ifs"
  7109. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7110. ;;
  7111. esac
  7112. fi
  7113. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7114. if test -n "$MAGIC_CMD"; then
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7116. $as_echo "$MAGIC_CMD" >&6; }
  7117. else
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7119. $as_echo "no" >&6; }
  7120. fi
  7121. else
  7122. MAGIC_CMD=:
  7123. fi
  7124. fi
  7125. fi
  7126. ;;
  7127. esac
  7128. # Use C for the default configuration in the libtool script
  7129. lt_save_CC="$CC"
  7130. ac_ext=c
  7131. ac_cpp='$CPP $CPPFLAGS'
  7132. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7133. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7134. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7135. # Source file extension for C test sources.
  7136. ac_ext=c
  7137. # Object file extension for compiled C test sources.
  7138. objext=o
  7139. objext=$objext
  7140. # Code to be used in simple compile tests
  7141. lt_simple_compile_test_code="int some_variable = 0;"
  7142. # Code to be used in simple link tests
  7143. lt_simple_link_test_code='int main(){return(0);}'
  7144. # If no C compiler was specified, use CC.
  7145. LTCC=${LTCC-"$CC"}
  7146. # If no C compiler flags were specified, use CFLAGS.
  7147. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7148. # Allow CC to be a program name with arguments.
  7149. compiler=$CC
  7150. # Save the default compiler, since it gets overwritten when the other
  7151. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7152. compiler_DEFAULT=$CC
  7153. # save warnings/boilerplate of simple test code
  7154. ac_outfile=conftest.$ac_objext
  7155. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7156. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7157. _lt_compiler_boilerplate=`cat conftest.err`
  7158. $RM conftest*
  7159. ac_outfile=conftest.$ac_objext
  7160. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7161. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7162. _lt_linker_boilerplate=`cat conftest.err`
  7163. $RM -r conftest*
  7164. ## CAVEAT EMPTOR:
  7165. ## There is no encapsulation within the following macros, do not change
  7166. ## the running order or otherwise move them around unless you know exactly
  7167. ## what you are doing...
  7168. if test -n "$compiler"; then
  7169. lt_prog_compiler_no_builtin_flag=
  7170. if test "$GCC" = yes; then
  7171. case $cc_basename in
  7172. nvcc*)
  7173. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7174. *)
  7175. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7176. esac
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7178. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7179. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7180. $as_echo_n "(cached) " >&6
  7181. else
  7182. lt_cv_prog_compiler_rtti_exceptions=no
  7183. ac_outfile=conftest.$ac_objext
  7184. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7185. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7186. # Insert the option either (1) after the last *FLAGS variable, or
  7187. # (2) before a word containing "conftest.", or (3) at the end.
  7188. # Note that $ac_compile itself does not contain backslashes and begins
  7189. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7190. # The option is referenced via a variable to avoid confusing sed.
  7191. lt_compile=`echo "$ac_compile" | $SED \
  7192. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7193. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7194. -e 's:$: $lt_compiler_flag:'`
  7195. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7196. (eval "$lt_compile" 2>conftest.err)
  7197. ac_status=$?
  7198. cat conftest.err >&5
  7199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7200. if (exit $ac_status) && test -s "$ac_outfile"; then
  7201. # The compiler can only warn and ignore the option if not recognized
  7202. # So say no if there are warnings other than the usual output.
  7203. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7204. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7205. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7206. lt_cv_prog_compiler_rtti_exceptions=yes
  7207. fi
  7208. fi
  7209. $RM conftest*
  7210. fi
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7212. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7213. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7214. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7215. else
  7216. :
  7217. fi
  7218. fi
  7219. lt_prog_compiler_wl=
  7220. lt_prog_compiler_pic=
  7221. lt_prog_compiler_static=
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7223. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7224. if test "$GCC" = yes; then
  7225. lt_prog_compiler_wl='-Wl,'
  7226. lt_prog_compiler_static='-static'
  7227. case $host_os in
  7228. aix*)
  7229. # All AIX code is PIC.
  7230. if test "$host_cpu" = ia64; then
  7231. # AIX 5 now supports IA64 processor
  7232. lt_prog_compiler_static='-Bstatic'
  7233. fi
  7234. lt_prog_compiler_pic='-fPIC'
  7235. ;;
  7236. amigaos*)
  7237. case $host_cpu in
  7238. powerpc)
  7239. # see comment about AmigaOS4 .so support
  7240. lt_prog_compiler_pic='-fPIC'
  7241. ;;
  7242. m68k)
  7243. # FIXME: we need at least 68020 code to build shared libraries, but
  7244. # adding the `-m68020' flag to GCC prevents building anything better,
  7245. # like `-m68040'.
  7246. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7247. ;;
  7248. esac
  7249. ;;
  7250. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7251. # PIC is the default for these OSes.
  7252. ;;
  7253. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7254. # This hack is so that the source file can tell whether it is being
  7255. # built for inclusion in a dll (and should export symbols for example).
  7256. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7257. # (--disable-auto-import) libraries
  7258. lt_prog_compiler_pic='-DDLL_EXPORT'
  7259. ;;
  7260. darwin* | rhapsody*)
  7261. # PIC is the default on this platform
  7262. # Common symbols not allowed in MH_DYLIB files
  7263. lt_prog_compiler_pic='-fno-common'
  7264. ;;
  7265. haiku*)
  7266. # PIC is the default for Haiku.
  7267. # The "-static" flag exists, but is broken.
  7268. lt_prog_compiler_static=
  7269. ;;
  7270. hpux*)
  7271. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7272. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7273. # sets the default TLS model and affects inlining.
  7274. case $host_cpu in
  7275. hppa*64*)
  7276. # +Z the default
  7277. ;;
  7278. *)
  7279. lt_prog_compiler_pic='-fPIC'
  7280. ;;
  7281. esac
  7282. ;;
  7283. interix[3-9]*)
  7284. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7285. # Instead, we relocate shared libraries at runtime.
  7286. ;;
  7287. msdosdjgpp*)
  7288. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7289. # on systems that don't support them.
  7290. lt_prog_compiler_can_build_shared=no
  7291. enable_shared=no
  7292. ;;
  7293. *nto* | *qnx*)
  7294. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7295. # it will coredump.
  7296. lt_prog_compiler_pic='-fPIC -shared'
  7297. ;;
  7298. sysv4*MP*)
  7299. if test -d /usr/nec; then
  7300. lt_prog_compiler_pic=-Kconform_pic
  7301. fi
  7302. ;;
  7303. *)
  7304. lt_prog_compiler_pic='-fPIC'
  7305. ;;
  7306. esac
  7307. case $cc_basename in
  7308. nvcc*) # Cuda Compiler Driver 2.2
  7309. lt_prog_compiler_wl='-Xlinker '
  7310. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7311. ;;
  7312. esac
  7313. else
  7314. # PORTME Check for flag to pass linker flags through the system compiler.
  7315. case $host_os in
  7316. aix*)
  7317. lt_prog_compiler_wl='-Wl,'
  7318. if test "$host_cpu" = ia64; then
  7319. # AIX 5 now supports IA64 processor
  7320. lt_prog_compiler_static='-Bstatic'
  7321. else
  7322. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7323. fi
  7324. ;;
  7325. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7326. # This hack is so that the source file can tell whether it is being
  7327. # built for inclusion in a dll (and should export symbols for example).
  7328. lt_prog_compiler_pic='-DDLL_EXPORT'
  7329. ;;
  7330. hpux9* | hpux10* | hpux11*)
  7331. lt_prog_compiler_wl='-Wl,'
  7332. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7333. # not for PA HP-UX.
  7334. case $host_cpu in
  7335. hppa*64*|ia64*)
  7336. # +Z the default
  7337. ;;
  7338. *)
  7339. lt_prog_compiler_pic='+Z'
  7340. ;;
  7341. esac
  7342. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7343. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7344. ;;
  7345. irix5* | irix6* | nonstopux*)
  7346. lt_prog_compiler_wl='-Wl,'
  7347. # PIC (with -KPIC) is the default.
  7348. lt_prog_compiler_static='-non_shared'
  7349. ;;
  7350. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7351. case $cc_basename in
  7352. # old Intel for x86_64 which still supported -KPIC.
  7353. ecc*)
  7354. lt_prog_compiler_wl='-Wl,'
  7355. lt_prog_compiler_pic='-KPIC'
  7356. lt_prog_compiler_static='-static'
  7357. ;;
  7358. # icc used to be incompatible with GCC.
  7359. # ICC 10 doesn't accept -KPIC any more.
  7360. icc* | ifort*)
  7361. lt_prog_compiler_wl='-Wl,'
  7362. lt_prog_compiler_pic='-fPIC'
  7363. lt_prog_compiler_static='-static'
  7364. ;;
  7365. # Lahey Fortran 8.1.
  7366. lf95*)
  7367. lt_prog_compiler_wl='-Wl,'
  7368. lt_prog_compiler_pic='--shared'
  7369. lt_prog_compiler_static='--static'
  7370. ;;
  7371. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7372. # Portland Group compilers (*not* the Pentium gcc compiler,
  7373. # which looks to be a dead project)
  7374. lt_prog_compiler_wl='-Wl,'
  7375. lt_prog_compiler_pic='-fpic'
  7376. lt_prog_compiler_static='-Bstatic'
  7377. ;;
  7378. ccc*)
  7379. lt_prog_compiler_wl='-Wl,'
  7380. # All Alpha code is PIC.
  7381. lt_prog_compiler_static='-non_shared'
  7382. ;;
  7383. xl* | bgxl* | bgf* | mpixl*)
  7384. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7385. lt_prog_compiler_wl='-Wl,'
  7386. lt_prog_compiler_pic='-qpic'
  7387. lt_prog_compiler_static='-qstaticlink'
  7388. ;;
  7389. *)
  7390. case `$CC -V 2>&1 | sed 5q` in
  7391. *Sun\ F* | *Sun*Fortran*)
  7392. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7393. lt_prog_compiler_pic='-KPIC'
  7394. lt_prog_compiler_static='-Bstatic'
  7395. lt_prog_compiler_wl=''
  7396. ;;
  7397. *Sun\ C*)
  7398. # Sun C 5.9
  7399. lt_prog_compiler_pic='-KPIC'
  7400. lt_prog_compiler_static='-Bstatic'
  7401. lt_prog_compiler_wl='-Wl,'
  7402. ;;
  7403. esac
  7404. ;;
  7405. esac
  7406. ;;
  7407. newsos6)
  7408. lt_prog_compiler_pic='-KPIC'
  7409. lt_prog_compiler_static='-Bstatic'
  7410. ;;
  7411. *nto* | *qnx*)
  7412. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7413. # it will coredump.
  7414. lt_prog_compiler_pic='-fPIC -shared'
  7415. ;;
  7416. osf3* | osf4* | osf5*)
  7417. lt_prog_compiler_wl='-Wl,'
  7418. # All OSF/1 code is PIC.
  7419. lt_prog_compiler_static='-non_shared'
  7420. ;;
  7421. rdos*)
  7422. lt_prog_compiler_static='-non_shared'
  7423. ;;
  7424. solaris*)
  7425. lt_prog_compiler_pic='-KPIC'
  7426. lt_prog_compiler_static='-Bstatic'
  7427. case $cc_basename in
  7428. f77* | f90* | f95*)
  7429. lt_prog_compiler_wl='-Qoption ld ';;
  7430. *)
  7431. lt_prog_compiler_wl='-Wl,';;
  7432. esac
  7433. ;;
  7434. sunos4*)
  7435. lt_prog_compiler_wl='-Qoption ld '
  7436. lt_prog_compiler_pic='-PIC'
  7437. lt_prog_compiler_static='-Bstatic'
  7438. ;;
  7439. sysv4 | sysv4.2uw2* | sysv4.3*)
  7440. lt_prog_compiler_wl='-Wl,'
  7441. lt_prog_compiler_pic='-KPIC'
  7442. lt_prog_compiler_static='-Bstatic'
  7443. ;;
  7444. sysv4*MP*)
  7445. if test -d /usr/nec ;then
  7446. lt_prog_compiler_pic='-Kconform_pic'
  7447. lt_prog_compiler_static='-Bstatic'
  7448. fi
  7449. ;;
  7450. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7451. lt_prog_compiler_wl='-Wl,'
  7452. lt_prog_compiler_pic='-KPIC'
  7453. lt_prog_compiler_static='-Bstatic'
  7454. ;;
  7455. unicos*)
  7456. lt_prog_compiler_wl='-Wl,'
  7457. lt_prog_compiler_can_build_shared=no
  7458. ;;
  7459. uts4*)
  7460. lt_prog_compiler_pic='-pic'
  7461. lt_prog_compiler_static='-Bstatic'
  7462. ;;
  7463. *)
  7464. lt_prog_compiler_can_build_shared=no
  7465. ;;
  7466. esac
  7467. fi
  7468. case $host_os in
  7469. # For platforms which do not support PIC, -DPIC is meaningless:
  7470. *djgpp*)
  7471. lt_prog_compiler_pic=
  7472. ;;
  7473. *)
  7474. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7475. ;;
  7476. esac
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7478. $as_echo "$lt_prog_compiler_pic" >&6; }
  7479. #
  7480. # Check to make sure the PIC flag actually works.
  7481. #
  7482. if test -n "$lt_prog_compiler_pic"; then
  7483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7484. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7485. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7486. $as_echo_n "(cached) " >&6
  7487. else
  7488. lt_cv_prog_compiler_pic_works=no
  7489. ac_outfile=conftest.$ac_objext
  7490. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7491. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7492. # Insert the option either (1) after the last *FLAGS variable, or
  7493. # (2) before a word containing "conftest.", or (3) at the end.
  7494. # Note that $ac_compile itself does not contain backslashes and begins
  7495. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7496. # The option is referenced via a variable to avoid confusing sed.
  7497. lt_compile=`echo "$ac_compile" | $SED \
  7498. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7499. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7500. -e 's:$: $lt_compiler_flag:'`
  7501. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7502. (eval "$lt_compile" 2>conftest.err)
  7503. ac_status=$?
  7504. cat conftest.err >&5
  7505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7506. if (exit $ac_status) && test -s "$ac_outfile"; then
  7507. # The compiler can only warn and ignore the option if not recognized
  7508. # So say no if there are warnings other than the usual output.
  7509. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7510. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7511. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7512. lt_cv_prog_compiler_pic_works=yes
  7513. fi
  7514. fi
  7515. $RM conftest*
  7516. fi
  7517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7518. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7519. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7520. case $lt_prog_compiler_pic in
  7521. "" | " "*) ;;
  7522. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7523. esac
  7524. else
  7525. lt_prog_compiler_pic=
  7526. lt_prog_compiler_can_build_shared=no
  7527. fi
  7528. fi
  7529. #
  7530. # Check to make sure the static flag actually works.
  7531. #
  7532. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7534. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7535. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7536. $as_echo_n "(cached) " >&6
  7537. else
  7538. lt_cv_prog_compiler_static_works=no
  7539. save_LDFLAGS="$LDFLAGS"
  7540. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7541. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7542. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7543. # The linker can only warn and ignore the option if not recognized
  7544. # So say no if there are warnings
  7545. if test -s conftest.err; then
  7546. # Append any errors to the config.log.
  7547. cat conftest.err 1>&5
  7548. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7549. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7550. if diff conftest.exp conftest.er2 >/dev/null; then
  7551. lt_cv_prog_compiler_static_works=yes
  7552. fi
  7553. else
  7554. lt_cv_prog_compiler_static_works=yes
  7555. fi
  7556. fi
  7557. $RM -r conftest*
  7558. LDFLAGS="$save_LDFLAGS"
  7559. fi
  7560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7561. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7562. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7563. :
  7564. else
  7565. lt_prog_compiler_static=
  7566. fi
  7567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7568. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7569. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7570. $as_echo_n "(cached) " >&6
  7571. else
  7572. lt_cv_prog_compiler_c_o=no
  7573. $RM -r conftest 2>/dev/null
  7574. mkdir conftest
  7575. cd conftest
  7576. mkdir out
  7577. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7578. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7579. # Insert the option either (1) after the last *FLAGS variable, or
  7580. # (2) before a word containing "conftest.", or (3) at the end.
  7581. # Note that $ac_compile itself does not contain backslashes and begins
  7582. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7583. lt_compile=`echo "$ac_compile" | $SED \
  7584. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7585. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7586. -e 's:$: $lt_compiler_flag:'`
  7587. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7588. (eval "$lt_compile" 2>out/conftest.err)
  7589. ac_status=$?
  7590. cat out/conftest.err >&5
  7591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7592. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7593. then
  7594. # The compiler can only warn and ignore the option if not recognized
  7595. # So say no if there are warnings
  7596. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7597. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7598. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7599. lt_cv_prog_compiler_c_o=yes
  7600. fi
  7601. fi
  7602. chmod u+w . 2>&5
  7603. $RM conftest*
  7604. # SGI C++ compiler will create directory out/ii_files/ for
  7605. # template instantiation
  7606. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7607. $RM out/* && rmdir out
  7608. cd ..
  7609. $RM -r conftest
  7610. $RM conftest*
  7611. fi
  7612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7613. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7615. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7616. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7617. $as_echo_n "(cached) " >&6
  7618. else
  7619. lt_cv_prog_compiler_c_o=no
  7620. $RM -r conftest 2>/dev/null
  7621. mkdir conftest
  7622. cd conftest
  7623. mkdir out
  7624. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7625. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7626. # Insert the option either (1) after the last *FLAGS variable, or
  7627. # (2) before a word containing "conftest.", or (3) at the end.
  7628. # Note that $ac_compile itself does not contain backslashes and begins
  7629. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7630. lt_compile=`echo "$ac_compile" | $SED \
  7631. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7632. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7633. -e 's:$: $lt_compiler_flag:'`
  7634. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7635. (eval "$lt_compile" 2>out/conftest.err)
  7636. ac_status=$?
  7637. cat out/conftest.err >&5
  7638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7639. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7640. then
  7641. # The compiler can only warn and ignore the option if not recognized
  7642. # So say no if there are warnings
  7643. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7644. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7645. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7646. lt_cv_prog_compiler_c_o=yes
  7647. fi
  7648. fi
  7649. chmod u+w . 2>&5
  7650. $RM conftest*
  7651. # SGI C++ compiler will create directory out/ii_files/ for
  7652. # template instantiation
  7653. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7654. $RM out/* && rmdir out
  7655. cd ..
  7656. $RM -r conftest
  7657. $RM conftest*
  7658. fi
  7659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7660. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7661. hard_links="nottested"
  7662. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7663. # do not overwrite the value of need_locks provided by the user
  7664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7665. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7666. hard_links=yes
  7667. $RM conftest*
  7668. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7669. touch conftest.a
  7670. ln conftest.a conftest.b 2>&5 || hard_links=no
  7671. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7673. $as_echo "$hard_links" >&6; }
  7674. if test "$hard_links" = no; then
  7675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7676. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7677. need_locks=warn
  7678. fi
  7679. else
  7680. need_locks=no
  7681. fi
  7682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7683. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7684. runpath_var=
  7685. allow_undefined_flag=
  7686. always_export_symbols=no
  7687. archive_cmds=
  7688. archive_expsym_cmds=
  7689. compiler_needs_object=no
  7690. enable_shared_with_static_runtimes=no
  7691. export_dynamic_flag_spec=
  7692. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7693. hardcode_automatic=no
  7694. hardcode_direct=no
  7695. hardcode_direct_absolute=no
  7696. hardcode_libdir_flag_spec=
  7697. hardcode_libdir_flag_spec_ld=
  7698. hardcode_libdir_separator=
  7699. hardcode_minus_L=no
  7700. hardcode_shlibpath_var=unsupported
  7701. inherit_rpath=no
  7702. link_all_deplibs=unknown
  7703. module_cmds=
  7704. module_expsym_cmds=
  7705. old_archive_from_new_cmds=
  7706. old_archive_from_expsyms_cmds=
  7707. thread_safe_flag_spec=
  7708. whole_archive_flag_spec=
  7709. # include_expsyms should be a list of space-separated symbols to be *always*
  7710. # included in the symbol list
  7711. include_expsyms=
  7712. # exclude_expsyms can be an extended regexp of symbols to exclude
  7713. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7714. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7715. # as well as any symbol that contains `d'.
  7716. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7717. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7718. # platforms (ab)use it in PIC code, but their linkers get confused if
  7719. # the symbol is explicitly referenced. Since portable code cannot
  7720. # rely on this symbol name, it's probably fine to never include it in
  7721. # preloaded symbol tables.
  7722. # Exclude shared library initialization/finalization symbols.
  7723. extract_expsyms_cmds=
  7724. case $host_os in
  7725. cygwin* | mingw* | pw32* | cegcc*)
  7726. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7727. # When not using gcc, we currently assume that we are using
  7728. # Microsoft Visual C++.
  7729. if test "$GCC" != yes; then
  7730. with_gnu_ld=no
  7731. fi
  7732. ;;
  7733. interix*)
  7734. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7735. with_gnu_ld=yes
  7736. ;;
  7737. openbsd*)
  7738. with_gnu_ld=no
  7739. ;;
  7740. esac
  7741. ld_shlibs=yes
  7742. # On some targets, GNU ld is compatible enough with the native linker
  7743. # that we're better off using the native interface for both.
  7744. lt_use_gnu_ld_interface=no
  7745. if test "$with_gnu_ld" = yes; then
  7746. case $host_os in
  7747. aix*)
  7748. # The AIX port of GNU ld has always aspired to compatibility
  7749. # with the native linker. However, as the warning in the GNU ld
  7750. # block says, versions before 2.19.5* couldn't really create working
  7751. # shared libraries, regardless of the interface used.
  7752. case `$LD -v 2>&1` in
  7753. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7754. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7755. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7756. *)
  7757. lt_use_gnu_ld_interface=yes
  7758. ;;
  7759. esac
  7760. ;;
  7761. *)
  7762. lt_use_gnu_ld_interface=yes
  7763. ;;
  7764. esac
  7765. fi
  7766. if test "$lt_use_gnu_ld_interface" = yes; then
  7767. # If archive_cmds runs LD, not CC, wlarc should be empty
  7768. wlarc='${wl}'
  7769. # Set some defaults for GNU ld with shared library support. These
  7770. # are reset later if shared libraries are not supported. Putting them
  7771. # here allows them to be overridden if necessary.
  7772. runpath_var=LD_RUN_PATH
  7773. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7774. export_dynamic_flag_spec='${wl}--export-dynamic'
  7775. # ancient GNU ld didn't support --whole-archive et. al.
  7776. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7777. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7778. else
  7779. whole_archive_flag_spec=
  7780. fi
  7781. supports_anon_versioning=no
  7782. case `$LD -v 2>&1` in
  7783. *GNU\ gold*) supports_anon_versioning=yes ;;
  7784. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7785. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7786. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7787. *\ 2.11.*) ;; # other 2.11 versions
  7788. *) supports_anon_versioning=yes ;;
  7789. esac
  7790. # See if GNU ld supports shared libraries.
  7791. case $host_os in
  7792. aix[3-9]*)
  7793. # On AIX/PPC, the GNU linker is very broken
  7794. if test "$host_cpu" != ia64; then
  7795. ld_shlibs=no
  7796. cat <<_LT_EOF 1>&2
  7797. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7798. *** to be unable to reliably create shared libraries on AIX.
  7799. *** Therefore, libtool is disabling shared libraries support. If you
  7800. *** really care for shared libraries, you may want to install binutils
  7801. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7802. *** You will then need to restart the configuration process.
  7803. _LT_EOF
  7804. fi
  7805. ;;
  7806. amigaos*)
  7807. case $host_cpu in
  7808. powerpc)
  7809. # see comment about AmigaOS4 .so support
  7810. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7811. archive_expsym_cmds=''
  7812. ;;
  7813. m68k)
  7814. 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)'
  7815. hardcode_libdir_flag_spec='-L$libdir'
  7816. hardcode_minus_L=yes
  7817. ;;
  7818. esac
  7819. ;;
  7820. beos*)
  7821. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7822. allow_undefined_flag=unsupported
  7823. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7824. # support --undefined. This deserves some investigation. FIXME
  7825. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7826. else
  7827. ld_shlibs=no
  7828. fi
  7829. ;;
  7830. cygwin* | mingw* | pw32* | cegcc*)
  7831. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7832. # as there is no search path for DLLs.
  7833. hardcode_libdir_flag_spec='-L$libdir'
  7834. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7835. allow_undefined_flag=unsupported
  7836. always_export_symbols=no
  7837. enable_shared_with_static_runtimes=yes
  7838. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7839. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7840. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7841. # If the export-symbols file already is a .def file (1st line
  7842. # is EXPORTS), use it as is; otherwise, prepend...
  7843. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7844. cp $export_symbols $output_objdir/$soname.def;
  7845. else
  7846. echo EXPORTS > $output_objdir/$soname.def;
  7847. cat $export_symbols >> $output_objdir/$soname.def;
  7848. fi~
  7849. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7850. else
  7851. ld_shlibs=no
  7852. fi
  7853. ;;
  7854. haiku*)
  7855. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7856. link_all_deplibs=yes
  7857. ;;
  7858. interix[3-9]*)
  7859. hardcode_direct=no
  7860. hardcode_shlibpath_var=no
  7861. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7862. export_dynamic_flag_spec='${wl}-E'
  7863. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7864. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7865. # default) and relocated if they conflict, which is a slow very memory
  7866. # consuming and fragmenting process. To avoid this, we pick a random,
  7867. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7868. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7869. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7870. 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'
  7871. ;;
  7872. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7873. tmp_diet=no
  7874. if test "$host_os" = linux-dietlibc; then
  7875. case $cc_basename in
  7876. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7877. esac
  7878. fi
  7879. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7880. && test "$tmp_diet" = no
  7881. then
  7882. tmp_addflag=' $pic_flag'
  7883. tmp_sharedflag='-shared'
  7884. case $cc_basename,$host_cpu in
  7885. pgcc*) # Portland Group C compiler
  7886. 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'
  7887. tmp_addflag=' $pic_flag'
  7888. ;;
  7889. pgf77* | pgf90* | pgf95* | pgfortran*)
  7890. # Portland Group f77 and f90 compilers
  7891. 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'
  7892. tmp_addflag=' $pic_flag -Mnomain' ;;
  7893. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7894. tmp_addflag=' -i_dynamic' ;;
  7895. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7896. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7897. ifc* | ifort*) # Intel Fortran compiler
  7898. tmp_addflag=' -nofor_main' ;;
  7899. lf95*) # Lahey Fortran 8.1
  7900. whole_archive_flag_spec=
  7901. tmp_sharedflag='--shared' ;;
  7902. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7903. tmp_sharedflag='-qmkshrobj'
  7904. tmp_addflag= ;;
  7905. nvcc*) # Cuda Compiler Driver 2.2
  7906. 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'
  7907. compiler_needs_object=yes
  7908. ;;
  7909. esac
  7910. case `$CC -V 2>&1 | sed 5q` in
  7911. *Sun\ C*) # Sun C 5.9
  7912. 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'
  7913. compiler_needs_object=yes
  7914. tmp_sharedflag='-G' ;;
  7915. *Sun\ F*) # Sun Fortran 8.3
  7916. tmp_sharedflag='-G' ;;
  7917. esac
  7918. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7919. if test "x$supports_anon_versioning" = xyes; then
  7920. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7921. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7922. echo "local: *; };" >> $output_objdir/$libname.ver~
  7923. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7924. fi
  7925. case $cc_basename in
  7926. xlf* | bgf* | bgxlf* | mpixlf*)
  7927. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7928. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7929. hardcode_libdir_flag_spec=
  7930. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7931. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7932. if test "x$supports_anon_versioning" = xyes; then
  7933. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7934. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7935. echo "local: *; };" >> $output_objdir/$libname.ver~
  7936. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7937. fi
  7938. ;;
  7939. esac
  7940. else
  7941. ld_shlibs=no
  7942. fi
  7943. ;;
  7944. netbsd*)
  7945. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7946. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7947. wlarc=
  7948. else
  7949. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7950. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7951. fi
  7952. ;;
  7953. solaris*)
  7954. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7955. ld_shlibs=no
  7956. cat <<_LT_EOF 1>&2
  7957. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7958. *** create shared libraries on Solaris systems. Therefore, libtool
  7959. *** is disabling shared libraries support. We urge you to upgrade GNU
  7960. *** binutils to release 2.9.1 or newer. Another option is to modify
  7961. *** your PATH or compiler configuration so that the native linker is
  7962. *** used, and then restart.
  7963. _LT_EOF
  7964. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7965. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7966. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7967. else
  7968. ld_shlibs=no
  7969. fi
  7970. ;;
  7971. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7972. case `$LD -v 2>&1` in
  7973. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7974. ld_shlibs=no
  7975. cat <<_LT_EOF 1>&2
  7976. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7977. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7978. *** is disabling shared libraries support. We urge you to upgrade GNU
  7979. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7980. *** your PATH or compiler configuration so that the native linker is
  7981. *** used, and then restart.
  7982. _LT_EOF
  7983. ;;
  7984. *)
  7985. # For security reasons, it is highly recommended that you always
  7986. # use absolute paths for naming shared libraries, and exclude the
  7987. # DT_RUNPATH tag from executables and libraries. But doing so
  7988. # requires that you compile everything twice, which is a pain.
  7989. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7990. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7991. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7992. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7993. else
  7994. ld_shlibs=no
  7995. fi
  7996. ;;
  7997. esac
  7998. ;;
  7999. sunos4*)
  8000. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8001. wlarc=
  8002. hardcode_direct=yes
  8003. hardcode_shlibpath_var=no
  8004. ;;
  8005. *)
  8006. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8007. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8008. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8009. else
  8010. ld_shlibs=no
  8011. fi
  8012. ;;
  8013. esac
  8014. if test "$ld_shlibs" = no; then
  8015. runpath_var=
  8016. hardcode_libdir_flag_spec=
  8017. export_dynamic_flag_spec=
  8018. whole_archive_flag_spec=
  8019. fi
  8020. else
  8021. # PORTME fill in a description of your system's linker (not GNU ld)
  8022. case $host_os in
  8023. aix3*)
  8024. allow_undefined_flag=unsupported
  8025. always_export_symbols=yes
  8026. 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'
  8027. # Note: this linker hardcodes the directories in LIBPATH if there
  8028. # are no directories specified by -L.
  8029. hardcode_minus_L=yes
  8030. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8031. # Neither direct hardcoding nor static linking is supported with a
  8032. # broken collect2.
  8033. hardcode_direct=unsupported
  8034. fi
  8035. ;;
  8036. aix[4-9]*)
  8037. if test "$host_cpu" = ia64; then
  8038. # On IA64, the linker does run time linking by default, so we don't
  8039. # have to do anything special.
  8040. aix_use_runtimelinking=no
  8041. exp_sym_flag='-Bexport'
  8042. no_entry_flag=""
  8043. else
  8044. # If we're using GNU nm, then we don't want the "-C" option.
  8045. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8046. # Also, AIX nm treats weak defined symbols like other global
  8047. # defined symbols, whereas GNU nm marks them as "W".
  8048. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8049. 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'
  8050. else
  8051. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8052. fi
  8053. aix_use_runtimelinking=no
  8054. # Test if we are trying to use run time linking or normal
  8055. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8056. # need to do runtime linking.
  8057. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8058. for ld_flag in $LDFLAGS; do
  8059. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8060. aix_use_runtimelinking=yes
  8061. break
  8062. fi
  8063. done
  8064. ;;
  8065. esac
  8066. exp_sym_flag='-bexport'
  8067. no_entry_flag='-bnoentry'
  8068. fi
  8069. # When large executables or shared objects are built, AIX ld can
  8070. # have problems creating the table of contents. If linking a library
  8071. # or program results in "error TOC overflow" add -mminimal-toc to
  8072. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8073. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8074. archive_cmds=''
  8075. hardcode_direct=yes
  8076. hardcode_direct_absolute=yes
  8077. hardcode_libdir_separator=':'
  8078. link_all_deplibs=yes
  8079. file_list_spec='${wl}-f,'
  8080. if test "$GCC" = yes; then
  8081. case $host_os in aix4.[012]|aix4.[012].*)
  8082. # We only want to do this on AIX 4.2 and lower, the check
  8083. # below for broken collect2 doesn't work under 4.3+
  8084. collect2name=`${CC} -print-prog-name=collect2`
  8085. if test -f "$collect2name" &&
  8086. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8087. then
  8088. # We have reworked collect2
  8089. :
  8090. else
  8091. # We have old collect2
  8092. hardcode_direct=unsupported
  8093. # It fails to find uninstalled libraries when the uninstalled
  8094. # path is not listed in the libpath. Setting hardcode_minus_L
  8095. # to unsupported forces relinking
  8096. hardcode_minus_L=yes
  8097. hardcode_libdir_flag_spec='-L$libdir'
  8098. hardcode_libdir_separator=
  8099. fi
  8100. ;;
  8101. esac
  8102. shared_flag='-shared'
  8103. if test "$aix_use_runtimelinking" = yes; then
  8104. shared_flag="$shared_flag "'${wl}-G'
  8105. fi
  8106. else
  8107. # not using gcc
  8108. if test "$host_cpu" = ia64; then
  8109. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8110. # chokes on -Wl,-G. The following line is correct:
  8111. shared_flag='-G'
  8112. else
  8113. if test "$aix_use_runtimelinking" = yes; then
  8114. shared_flag='${wl}-G'
  8115. else
  8116. shared_flag='${wl}-bM:SRE'
  8117. fi
  8118. fi
  8119. fi
  8120. export_dynamic_flag_spec='${wl}-bexpall'
  8121. # It seems that -bexpall does not export symbols beginning with
  8122. # underscore (_), so it is better to generate a list of symbols to export.
  8123. always_export_symbols=yes
  8124. if test "$aix_use_runtimelinking" = yes; then
  8125. # Warning - without using the other runtime loading flags (-brtl),
  8126. # -berok will link without error, but may produce a broken library.
  8127. allow_undefined_flag='-berok'
  8128. # Determine the default libpath from the value encoded in an
  8129. # empty executable.
  8130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8131. /* end confdefs.h. */
  8132. int
  8133. main ()
  8134. {
  8135. ;
  8136. return 0;
  8137. }
  8138. _ACEOF
  8139. if ac_fn_c_try_link "$LINENO"; then :
  8140. lt_aix_libpath_sed='
  8141. /Import File Strings/,/^$/ {
  8142. /^0/ {
  8143. s/^0 *\(.*\)$/\1/
  8144. p
  8145. }
  8146. }'
  8147. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8148. # Check for a 64-bit object if we didn't find anything.
  8149. if test -z "$aix_libpath"; then
  8150. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8151. fi
  8152. fi
  8153. rm -f core conftest.err conftest.$ac_objext \
  8154. conftest$ac_exeext conftest.$ac_ext
  8155. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8156. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8157. 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"
  8158. else
  8159. if test "$host_cpu" = ia64; then
  8160. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8161. allow_undefined_flag="-z nodefs"
  8162. 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"
  8163. else
  8164. # Determine the default libpath from the value encoded in an
  8165. # empty executable.
  8166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8167. /* end confdefs.h. */
  8168. int
  8169. main ()
  8170. {
  8171. ;
  8172. return 0;
  8173. }
  8174. _ACEOF
  8175. if ac_fn_c_try_link "$LINENO"; then :
  8176. lt_aix_libpath_sed='
  8177. /Import File Strings/,/^$/ {
  8178. /^0/ {
  8179. s/^0 *\(.*\)$/\1/
  8180. p
  8181. }
  8182. }'
  8183. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8184. # Check for a 64-bit object if we didn't find anything.
  8185. if test -z "$aix_libpath"; then
  8186. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8187. fi
  8188. fi
  8189. rm -f core conftest.err conftest.$ac_objext \
  8190. conftest$ac_exeext conftest.$ac_ext
  8191. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8192. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8193. # Warning - without using the other run time loading flags,
  8194. # -berok will link without error, but may produce a broken library.
  8195. no_undefined_flag=' ${wl}-bernotok'
  8196. allow_undefined_flag=' ${wl}-berok'
  8197. if test "$with_gnu_ld" = yes; then
  8198. # We only use this code for GNU lds that support --whole-archive.
  8199. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8200. else
  8201. # Exported symbols can be pulled into shared objects from archives
  8202. whole_archive_flag_spec='$convenience'
  8203. fi
  8204. archive_cmds_need_lc=yes
  8205. # This is similar to how AIX traditionally builds its shared libraries.
  8206. 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'
  8207. fi
  8208. fi
  8209. ;;
  8210. amigaos*)
  8211. case $host_cpu in
  8212. powerpc)
  8213. # see comment about AmigaOS4 .so support
  8214. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8215. archive_expsym_cmds=''
  8216. ;;
  8217. m68k)
  8218. 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)'
  8219. hardcode_libdir_flag_spec='-L$libdir'
  8220. hardcode_minus_L=yes
  8221. ;;
  8222. esac
  8223. ;;
  8224. bsdi[45]*)
  8225. export_dynamic_flag_spec=-rdynamic
  8226. ;;
  8227. cygwin* | mingw* | pw32* | cegcc*)
  8228. # When not using gcc, we currently assume that we are using
  8229. # Microsoft Visual C++.
  8230. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8231. # no search path for DLLs.
  8232. hardcode_libdir_flag_spec=' '
  8233. allow_undefined_flag=unsupported
  8234. # Tell ltmain to make .lib files, not .a files.
  8235. libext=lib
  8236. # Tell ltmain to make .dll files, not .so files.
  8237. shrext_cmds=".dll"
  8238. # FIXME: Setting linknames here is a bad hack.
  8239. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8240. # The linker will automatically build a .lib file if we build a DLL.
  8241. old_archive_from_new_cmds='true'
  8242. # FIXME: Should let the user specify the lib program.
  8243. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8244. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8245. enable_shared_with_static_runtimes=yes
  8246. ;;
  8247. darwin* | rhapsody*)
  8248. archive_cmds_need_lc=no
  8249. hardcode_direct=no
  8250. hardcode_automatic=yes
  8251. hardcode_shlibpath_var=unsupported
  8252. if test "$lt_cv_ld_force_load" = "yes"; then
  8253. 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\"`'
  8254. else
  8255. whole_archive_flag_spec=''
  8256. fi
  8257. link_all_deplibs=yes
  8258. allow_undefined_flag="$_lt_dar_allow_undefined"
  8259. case $cc_basename in
  8260. ifort*) _lt_dar_can_shared=yes ;;
  8261. *) _lt_dar_can_shared=$GCC ;;
  8262. esac
  8263. if test "$_lt_dar_can_shared" = "yes"; then
  8264. output_verbose_link_cmd=func_echo_all
  8265. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8266. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8267. 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}"
  8268. 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}"
  8269. else
  8270. ld_shlibs=no
  8271. fi
  8272. ;;
  8273. dgux*)
  8274. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8275. hardcode_libdir_flag_spec='-L$libdir'
  8276. hardcode_shlibpath_var=no
  8277. ;;
  8278. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8279. # support. Future versions do this automatically, but an explicit c++rt0.o
  8280. # does not break anything, and helps significantly (at the cost of a little
  8281. # extra space).
  8282. freebsd2.2*)
  8283. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8284. hardcode_libdir_flag_spec='-R$libdir'
  8285. hardcode_direct=yes
  8286. hardcode_shlibpath_var=no
  8287. ;;
  8288. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8289. freebsd2.*)
  8290. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8291. hardcode_direct=yes
  8292. hardcode_minus_L=yes
  8293. hardcode_shlibpath_var=no
  8294. ;;
  8295. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8296. freebsd* | dragonfly*)
  8297. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8298. hardcode_libdir_flag_spec='-R$libdir'
  8299. hardcode_direct=yes
  8300. hardcode_shlibpath_var=no
  8301. ;;
  8302. hpux9*)
  8303. if test "$GCC" = yes; then
  8304. 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'
  8305. else
  8306. 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'
  8307. fi
  8308. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8309. hardcode_libdir_separator=:
  8310. hardcode_direct=yes
  8311. # hardcode_minus_L: Not really in the search PATH,
  8312. # but as the default location of the library.
  8313. hardcode_minus_L=yes
  8314. export_dynamic_flag_spec='${wl}-E'
  8315. ;;
  8316. hpux10*)
  8317. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8318. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8319. else
  8320. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8321. fi
  8322. if test "$with_gnu_ld" = no; then
  8323. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8324. hardcode_libdir_flag_spec_ld='+b $libdir'
  8325. hardcode_libdir_separator=:
  8326. hardcode_direct=yes
  8327. hardcode_direct_absolute=yes
  8328. export_dynamic_flag_spec='${wl}-E'
  8329. # hardcode_minus_L: Not really in the search PATH,
  8330. # but as the default location of the library.
  8331. hardcode_minus_L=yes
  8332. fi
  8333. ;;
  8334. hpux11*)
  8335. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8336. case $host_cpu in
  8337. hppa*64*)
  8338. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8339. ;;
  8340. ia64*)
  8341. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8342. ;;
  8343. *)
  8344. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8345. ;;
  8346. esac
  8347. else
  8348. case $host_cpu in
  8349. hppa*64*)
  8350. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8351. ;;
  8352. ia64*)
  8353. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8354. ;;
  8355. *)
  8356. # Older versions of the 11.00 compiler do not understand -b yet
  8357. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8359. $as_echo_n "checking if $CC understands -b... " >&6; }
  8360. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8361. $as_echo_n "(cached) " >&6
  8362. else
  8363. lt_cv_prog_compiler__b=no
  8364. save_LDFLAGS="$LDFLAGS"
  8365. LDFLAGS="$LDFLAGS -b"
  8366. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8367. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8368. # The linker can only warn and ignore the option if not recognized
  8369. # So say no if there are warnings
  8370. if test -s conftest.err; then
  8371. # Append any errors to the config.log.
  8372. cat conftest.err 1>&5
  8373. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8374. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8375. if diff conftest.exp conftest.er2 >/dev/null; then
  8376. lt_cv_prog_compiler__b=yes
  8377. fi
  8378. else
  8379. lt_cv_prog_compiler__b=yes
  8380. fi
  8381. fi
  8382. $RM -r conftest*
  8383. LDFLAGS="$save_LDFLAGS"
  8384. fi
  8385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8386. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8387. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8388. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8389. else
  8390. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8391. fi
  8392. ;;
  8393. esac
  8394. fi
  8395. if test "$with_gnu_ld" = no; then
  8396. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8397. hardcode_libdir_separator=:
  8398. case $host_cpu in
  8399. hppa*64*|ia64*)
  8400. hardcode_direct=no
  8401. hardcode_shlibpath_var=no
  8402. ;;
  8403. *)
  8404. hardcode_direct=yes
  8405. hardcode_direct_absolute=yes
  8406. export_dynamic_flag_spec='${wl}-E'
  8407. # hardcode_minus_L: Not really in the search PATH,
  8408. # but as the default location of the library.
  8409. hardcode_minus_L=yes
  8410. ;;
  8411. esac
  8412. fi
  8413. ;;
  8414. irix5* | irix6* | nonstopux*)
  8415. if test "$GCC" = yes; then
  8416. 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'
  8417. # Try to use the -exported_symbol ld option, if it does not
  8418. # work, assume that -exports_file does not work either and
  8419. # implicitly export all symbols.
  8420. save_LDFLAGS="$LDFLAGS"
  8421. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8423. /* end confdefs.h. */
  8424. int foo(void) {}
  8425. _ACEOF
  8426. if ac_fn_c_try_link "$LINENO"; then :
  8427. 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'
  8428. fi
  8429. rm -f core conftest.err conftest.$ac_objext \
  8430. conftest$ac_exeext conftest.$ac_ext
  8431. LDFLAGS="$save_LDFLAGS"
  8432. else
  8433. 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'
  8434. 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'
  8435. fi
  8436. archive_cmds_need_lc='no'
  8437. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8438. hardcode_libdir_separator=:
  8439. inherit_rpath=yes
  8440. link_all_deplibs=yes
  8441. ;;
  8442. netbsd*)
  8443. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8444. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8445. else
  8446. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8447. fi
  8448. hardcode_libdir_flag_spec='-R$libdir'
  8449. hardcode_direct=yes
  8450. hardcode_shlibpath_var=no
  8451. ;;
  8452. newsos6)
  8453. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8454. hardcode_direct=yes
  8455. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8456. hardcode_libdir_separator=:
  8457. hardcode_shlibpath_var=no
  8458. ;;
  8459. *nto* | *qnx*)
  8460. ;;
  8461. openbsd*)
  8462. if test -f /usr/libexec/ld.so; then
  8463. hardcode_direct=yes
  8464. hardcode_shlibpath_var=no
  8465. hardcode_direct_absolute=yes
  8466. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8467. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8468. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8469. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8470. export_dynamic_flag_spec='${wl}-E'
  8471. else
  8472. case $host_os in
  8473. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8474. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8475. hardcode_libdir_flag_spec='-R$libdir'
  8476. ;;
  8477. *)
  8478. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8479. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8480. ;;
  8481. esac
  8482. fi
  8483. else
  8484. ld_shlibs=no
  8485. fi
  8486. ;;
  8487. os2*)
  8488. hardcode_libdir_flag_spec='-L$libdir'
  8489. hardcode_minus_L=yes
  8490. allow_undefined_flag=unsupported
  8491. 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'
  8492. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8493. ;;
  8494. osf3*)
  8495. if test "$GCC" = yes; then
  8496. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8497. 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'
  8498. else
  8499. allow_undefined_flag=' -expect_unresolved \*'
  8500. 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'
  8501. fi
  8502. archive_cmds_need_lc='no'
  8503. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8504. hardcode_libdir_separator=:
  8505. ;;
  8506. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8507. if test "$GCC" = yes; then
  8508. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8509. 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'
  8510. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8511. else
  8512. allow_undefined_flag=' -expect_unresolved \*'
  8513. 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'
  8514. 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~
  8515. $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'
  8516. # Both c and cxx compiler support -rpath directly
  8517. hardcode_libdir_flag_spec='-rpath $libdir'
  8518. fi
  8519. archive_cmds_need_lc='no'
  8520. hardcode_libdir_separator=:
  8521. ;;
  8522. solaris*)
  8523. no_undefined_flag=' -z defs'
  8524. if test "$GCC" = yes; then
  8525. wlarc='${wl}'
  8526. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8527. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8528. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8529. else
  8530. case `$CC -V 2>&1` in
  8531. *"Compilers 5.0"*)
  8532. wlarc=''
  8533. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8534. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8535. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8536. ;;
  8537. *)
  8538. wlarc='${wl}'
  8539. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8540. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8541. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8542. ;;
  8543. esac
  8544. fi
  8545. hardcode_libdir_flag_spec='-R$libdir'
  8546. hardcode_shlibpath_var=no
  8547. case $host_os in
  8548. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8549. *)
  8550. # The compiler driver will combine and reorder linker options,
  8551. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8552. # but is careful enough not to reorder.
  8553. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8554. if test "$GCC" = yes; then
  8555. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8556. else
  8557. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8558. fi
  8559. ;;
  8560. esac
  8561. link_all_deplibs=yes
  8562. ;;
  8563. sunos4*)
  8564. if test "x$host_vendor" = xsequent; then
  8565. # Use $CC to link under sequent, because it throws in some extra .o
  8566. # files that make .init and .fini sections work.
  8567. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8568. else
  8569. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8570. fi
  8571. hardcode_libdir_flag_spec='-L$libdir'
  8572. hardcode_direct=yes
  8573. hardcode_minus_L=yes
  8574. hardcode_shlibpath_var=no
  8575. ;;
  8576. sysv4)
  8577. case $host_vendor in
  8578. sni)
  8579. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8580. hardcode_direct=yes # is this really true???
  8581. ;;
  8582. siemens)
  8583. ## LD is ld it makes a PLAMLIB
  8584. ## CC just makes a GrossModule.
  8585. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8586. reload_cmds='$CC -r -o $output$reload_objs'
  8587. hardcode_direct=no
  8588. ;;
  8589. motorola)
  8590. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8591. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8592. ;;
  8593. esac
  8594. runpath_var='LD_RUN_PATH'
  8595. hardcode_shlibpath_var=no
  8596. ;;
  8597. sysv4.3*)
  8598. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8599. hardcode_shlibpath_var=no
  8600. export_dynamic_flag_spec='-Bexport'
  8601. ;;
  8602. sysv4*MP*)
  8603. if test -d /usr/nec; then
  8604. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8605. hardcode_shlibpath_var=no
  8606. runpath_var=LD_RUN_PATH
  8607. hardcode_runpath_var=yes
  8608. ld_shlibs=yes
  8609. fi
  8610. ;;
  8611. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8612. no_undefined_flag='${wl}-z,text'
  8613. archive_cmds_need_lc=no
  8614. hardcode_shlibpath_var=no
  8615. runpath_var='LD_RUN_PATH'
  8616. if test "$GCC" = yes; then
  8617. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8618. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8619. else
  8620. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8621. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8622. fi
  8623. ;;
  8624. sysv5* | sco3.2v5* | sco5v6*)
  8625. # Note: We can NOT use -z defs as we might desire, because we do not
  8626. # link with -lc, and that would cause any symbols used from libc to
  8627. # always be unresolved, which means just about no library would
  8628. # ever link correctly. If we're not using GNU ld we use -z text
  8629. # though, which does catch some bad symbols but isn't as heavy-handed
  8630. # as -z defs.
  8631. no_undefined_flag='${wl}-z,text'
  8632. allow_undefined_flag='${wl}-z,nodefs'
  8633. archive_cmds_need_lc=no
  8634. hardcode_shlibpath_var=no
  8635. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8636. hardcode_libdir_separator=':'
  8637. link_all_deplibs=yes
  8638. export_dynamic_flag_spec='${wl}-Bexport'
  8639. runpath_var='LD_RUN_PATH'
  8640. if test "$GCC" = yes; then
  8641. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8642. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8643. else
  8644. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8645. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8646. fi
  8647. ;;
  8648. uts4*)
  8649. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8650. hardcode_libdir_flag_spec='-L$libdir'
  8651. hardcode_shlibpath_var=no
  8652. ;;
  8653. *)
  8654. ld_shlibs=no
  8655. ;;
  8656. esac
  8657. if test x$host_vendor = xsni; then
  8658. case $host in
  8659. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8660. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8661. ;;
  8662. esac
  8663. fi
  8664. fi
  8665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8666. $as_echo "$ld_shlibs" >&6; }
  8667. test "$ld_shlibs" = no && can_build_shared=no
  8668. with_gnu_ld=$with_gnu_ld
  8669. #
  8670. # Do we need to explicitly link libc?
  8671. #
  8672. case "x$archive_cmds_need_lc" in
  8673. x|xyes)
  8674. # Assume -lc should be added
  8675. archive_cmds_need_lc=yes
  8676. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8677. case $archive_cmds in
  8678. *'~'*)
  8679. # FIXME: we may have to deal with multi-command sequences.
  8680. ;;
  8681. '$CC '*)
  8682. # Test whether the compiler implicitly links with -lc since on some
  8683. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8684. # to ld, don't add -lc before -lgcc.
  8685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8686. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8687. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8688. $as_echo_n "(cached) " >&6
  8689. else
  8690. $RM conftest*
  8691. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8692. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8693. (eval $ac_compile) 2>&5
  8694. ac_status=$?
  8695. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8696. test $ac_status = 0; } 2>conftest.err; then
  8697. soname=conftest
  8698. lib=conftest
  8699. libobjs=conftest.$ac_objext
  8700. deplibs=
  8701. wl=$lt_prog_compiler_wl
  8702. pic_flag=$lt_prog_compiler_pic
  8703. compiler_flags=-v
  8704. linker_flags=-v
  8705. verstring=
  8706. output_objdir=.
  8707. libname=conftest
  8708. lt_save_allow_undefined_flag=$allow_undefined_flag
  8709. allow_undefined_flag=
  8710. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8711. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8712. ac_status=$?
  8713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8714. test $ac_status = 0; }
  8715. then
  8716. lt_cv_archive_cmds_need_lc=no
  8717. else
  8718. lt_cv_archive_cmds_need_lc=yes
  8719. fi
  8720. allow_undefined_flag=$lt_save_allow_undefined_flag
  8721. else
  8722. cat conftest.err 1>&5
  8723. fi
  8724. $RM conftest*
  8725. fi
  8726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8727. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8728. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8729. ;;
  8730. esac
  8731. fi
  8732. ;;
  8733. esac
  8734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8735. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8736. if test "$GCC" = yes; then
  8737. case $host_os in
  8738. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8739. *) lt_awk_arg="/^libraries:/" ;;
  8740. esac
  8741. case $host_os in
  8742. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8743. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8744. esac
  8745. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8746. case $lt_search_path_spec in
  8747. *\;*)
  8748. # if the path contains ";" then we assume it to be the separator
  8749. # otherwise default to the standard path separator (i.e. ":") - it is
  8750. # assumed that no part of a normal pathname contains ";" but that should
  8751. # okay in the real world where ";" in dirpaths is itself problematic.
  8752. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8753. ;;
  8754. *)
  8755. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8756. ;;
  8757. esac
  8758. # Ok, now we have the path, separated by spaces, we can step through it
  8759. # and add multilib dir if necessary.
  8760. lt_tmp_lt_search_path_spec=
  8761. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8762. for lt_sys_path in $lt_search_path_spec; do
  8763. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8764. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8765. else
  8766. test -d "$lt_sys_path" && \
  8767. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8768. fi
  8769. done
  8770. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8771. BEGIN {RS=" "; FS="/|\n";} {
  8772. lt_foo="";
  8773. lt_count=0;
  8774. for (lt_i = NF; lt_i > 0; lt_i--) {
  8775. if ($lt_i != "" && $lt_i != ".") {
  8776. if ($lt_i == "..") {
  8777. lt_count++;
  8778. } else {
  8779. if (lt_count == 0) {
  8780. lt_foo="/" $lt_i lt_foo;
  8781. } else {
  8782. lt_count--;
  8783. }
  8784. }
  8785. }
  8786. }
  8787. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8788. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8789. }'`
  8790. # AWK program above erroneously prepends '/' to C:/dos/paths
  8791. # for these hosts.
  8792. case $host_os in
  8793. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8794. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8795. esac
  8796. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8797. else
  8798. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8799. fi
  8800. library_names_spec=
  8801. libname_spec='lib$name'
  8802. soname_spec=
  8803. shrext_cmds=".so"
  8804. postinstall_cmds=
  8805. postuninstall_cmds=
  8806. finish_cmds=
  8807. finish_eval=
  8808. shlibpath_var=
  8809. shlibpath_overrides_runpath=unknown
  8810. version_type=none
  8811. dynamic_linker="$host_os ld.so"
  8812. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8813. need_lib_prefix=unknown
  8814. hardcode_into_libs=no
  8815. # when you set need_version to no, make sure it does not cause -set_version
  8816. # flags to be left without arguments
  8817. need_version=unknown
  8818. case $host_os in
  8819. aix3*)
  8820. version_type=linux
  8821. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8822. shlibpath_var=LIBPATH
  8823. # AIX 3 has no versioning support, so we append a major version to the name.
  8824. soname_spec='${libname}${release}${shared_ext}$major'
  8825. ;;
  8826. aix[4-9]*)
  8827. version_type=linux
  8828. need_lib_prefix=no
  8829. need_version=no
  8830. hardcode_into_libs=yes
  8831. if test "$host_cpu" = ia64; then
  8832. # AIX 5 supports IA64
  8833. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8834. shlibpath_var=LD_LIBRARY_PATH
  8835. else
  8836. # With GCC up to 2.95.x, collect2 would create an import file
  8837. # for dependence libraries. The import file would start with
  8838. # the line `#! .'. This would cause the generated library to
  8839. # depend on `.', always an invalid library. This was fixed in
  8840. # development snapshots of GCC prior to 3.0.
  8841. case $host_os in
  8842. aix4 | aix4.[01] | aix4.[01].*)
  8843. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8844. echo ' yes '
  8845. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8846. :
  8847. else
  8848. can_build_shared=no
  8849. fi
  8850. ;;
  8851. esac
  8852. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8853. # soname into executable. Probably we can add versioning support to
  8854. # collect2, so additional links can be useful in future.
  8855. if test "$aix_use_runtimelinking" = yes; then
  8856. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8857. # instead of lib<name>.a to let people know that these are not
  8858. # typical AIX shared libraries.
  8859. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8860. else
  8861. # We preserve .a as extension for shared libraries through AIX4.2
  8862. # and later when we are not doing run time linking.
  8863. library_names_spec='${libname}${release}.a $libname.a'
  8864. soname_spec='${libname}${release}${shared_ext}$major'
  8865. fi
  8866. shlibpath_var=LIBPATH
  8867. fi
  8868. ;;
  8869. amigaos*)
  8870. case $host_cpu in
  8871. powerpc)
  8872. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8873. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8874. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8875. ;;
  8876. m68k)
  8877. library_names_spec='$libname.ixlibrary $libname.a'
  8878. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8879. 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'
  8880. ;;
  8881. esac
  8882. ;;
  8883. beos*)
  8884. library_names_spec='${libname}${shared_ext}'
  8885. dynamic_linker="$host_os ld.so"
  8886. shlibpath_var=LIBRARY_PATH
  8887. ;;
  8888. bsdi[45]*)
  8889. version_type=linux
  8890. need_version=no
  8891. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8892. soname_spec='${libname}${release}${shared_ext}$major'
  8893. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8894. shlibpath_var=LD_LIBRARY_PATH
  8895. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8896. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8897. # the default ld.so.conf also contains /usr/contrib/lib and
  8898. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8899. # libtool to hard-code these into programs
  8900. ;;
  8901. cygwin* | mingw* | pw32* | cegcc*)
  8902. version_type=windows
  8903. shrext_cmds=".dll"
  8904. need_version=no
  8905. need_lib_prefix=no
  8906. case $GCC,$host_os in
  8907. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8908. library_names_spec='$libname.dll.a'
  8909. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8910. postinstall_cmds='base_file=`basename \${file}`~
  8911. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8912. dldir=$destdir/`dirname \$dlpath`~
  8913. test -d \$dldir || mkdir -p \$dldir~
  8914. $install_prog $dir/$dlname \$dldir/$dlname~
  8915. chmod a+x \$dldir/$dlname~
  8916. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8917. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8918. fi'
  8919. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8920. dlpath=$dir/\$dldll~
  8921. $RM \$dlpath'
  8922. shlibpath_overrides_runpath=yes
  8923. case $host_os in
  8924. cygwin*)
  8925. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8926. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8927. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8928. ;;
  8929. mingw* | cegcc*)
  8930. # MinGW DLLs use traditional 'lib' prefix
  8931. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8932. ;;
  8933. pw32*)
  8934. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8935. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8936. ;;
  8937. esac
  8938. ;;
  8939. *)
  8940. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8941. ;;
  8942. esac
  8943. dynamic_linker='Win32 ld.exe'
  8944. # FIXME: first we should search . and the directory the executable is in
  8945. shlibpath_var=PATH
  8946. ;;
  8947. darwin* | rhapsody*)
  8948. dynamic_linker="$host_os dyld"
  8949. version_type=darwin
  8950. need_lib_prefix=no
  8951. need_version=no
  8952. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8953. soname_spec='${libname}${release}${major}$shared_ext'
  8954. shlibpath_overrides_runpath=yes
  8955. shlibpath_var=DYLD_LIBRARY_PATH
  8956. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8957. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8958. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8959. ;;
  8960. dgux*)
  8961. version_type=linux
  8962. need_lib_prefix=no
  8963. need_version=no
  8964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8965. soname_spec='${libname}${release}${shared_ext}$major'
  8966. shlibpath_var=LD_LIBRARY_PATH
  8967. ;;
  8968. freebsd* | dragonfly*)
  8969. # DragonFly does not have aout. When/if they implement a new
  8970. # versioning mechanism, adjust this.
  8971. if test -x /usr/bin/objformat; then
  8972. objformat=`/usr/bin/objformat`
  8973. else
  8974. case $host_os in
  8975. freebsd[23].*) objformat=aout ;;
  8976. *) objformat=elf ;;
  8977. esac
  8978. fi
  8979. version_type=freebsd-$objformat
  8980. case $version_type in
  8981. freebsd-elf*)
  8982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8983. need_version=no
  8984. need_lib_prefix=no
  8985. ;;
  8986. freebsd-*)
  8987. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8988. need_version=yes
  8989. ;;
  8990. esac
  8991. shlibpath_var=LD_LIBRARY_PATH
  8992. case $host_os in
  8993. freebsd2.*)
  8994. shlibpath_overrides_runpath=yes
  8995. ;;
  8996. freebsd3.[01]* | freebsdelf3.[01]*)
  8997. shlibpath_overrides_runpath=yes
  8998. hardcode_into_libs=yes
  8999. ;;
  9000. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9001. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9002. shlibpath_overrides_runpath=no
  9003. hardcode_into_libs=yes
  9004. ;;
  9005. *) # from 4.6 on, and DragonFly
  9006. shlibpath_overrides_runpath=yes
  9007. hardcode_into_libs=yes
  9008. ;;
  9009. esac
  9010. ;;
  9011. gnu*)
  9012. version_type=linux
  9013. need_lib_prefix=no
  9014. need_version=no
  9015. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9016. soname_spec='${libname}${release}${shared_ext}$major'
  9017. shlibpath_var=LD_LIBRARY_PATH
  9018. hardcode_into_libs=yes
  9019. ;;
  9020. haiku*)
  9021. version_type=linux
  9022. need_lib_prefix=no
  9023. need_version=no
  9024. dynamic_linker="$host_os runtime_loader"
  9025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9026. soname_spec='${libname}${release}${shared_ext}$major'
  9027. shlibpath_var=LIBRARY_PATH
  9028. shlibpath_overrides_runpath=yes
  9029. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9030. hardcode_into_libs=yes
  9031. ;;
  9032. hpux9* | hpux10* | hpux11*)
  9033. # Give a soname corresponding to the major version so that dld.sl refuses to
  9034. # link against other versions.
  9035. version_type=sunos
  9036. need_lib_prefix=no
  9037. need_version=no
  9038. case $host_cpu in
  9039. ia64*)
  9040. shrext_cmds='.so'
  9041. hardcode_into_libs=yes
  9042. dynamic_linker="$host_os dld.so"
  9043. shlibpath_var=LD_LIBRARY_PATH
  9044. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9046. soname_spec='${libname}${release}${shared_ext}$major'
  9047. if test "X$HPUX_IA64_MODE" = X32; then
  9048. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9049. else
  9050. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9051. fi
  9052. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9053. ;;
  9054. hppa*64*)
  9055. shrext_cmds='.sl'
  9056. hardcode_into_libs=yes
  9057. dynamic_linker="$host_os dld.sl"
  9058. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9059. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9060. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9061. soname_spec='${libname}${release}${shared_ext}$major'
  9062. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9063. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9064. ;;
  9065. *)
  9066. shrext_cmds='.sl'
  9067. dynamic_linker="$host_os dld.sl"
  9068. shlibpath_var=SHLIB_PATH
  9069. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9070. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9071. soname_spec='${libname}${release}${shared_ext}$major'
  9072. ;;
  9073. esac
  9074. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9075. postinstall_cmds='chmod 555 $lib'
  9076. # or fails outright, so override atomically:
  9077. install_override_mode=555
  9078. ;;
  9079. interix[3-9]*)
  9080. version_type=linux
  9081. need_lib_prefix=no
  9082. need_version=no
  9083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9084. soname_spec='${libname}${release}${shared_ext}$major'
  9085. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9086. shlibpath_var=LD_LIBRARY_PATH
  9087. shlibpath_overrides_runpath=no
  9088. hardcode_into_libs=yes
  9089. ;;
  9090. irix5* | irix6* | nonstopux*)
  9091. case $host_os in
  9092. nonstopux*) version_type=nonstopux ;;
  9093. *)
  9094. if test "$lt_cv_prog_gnu_ld" = yes; then
  9095. version_type=linux
  9096. else
  9097. version_type=irix
  9098. fi ;;
  9099. esac
  9100. need_lib_prefix=no
  9101. need_version=no
  9102. soname_spec='${libname}${release}${shared_ext}$major'
  9103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9104. case $host_os in
  9105. irix5* | nonstopux*)
  9106. libsuff= shlibsuff=
  9107. ;;
  9108. *)
  9109. case $LD in # libtool.m4 will add one of these switches to LD
  9110. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9111. libsuff= shlibsuff= libmagic=32-bit;;
  9112. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9113. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9114. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9115. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9116. *) libsuff= shlibsuff= libmagic=never-match;;
  9117. esac
  9118. ;;
  9119. esac
  9120. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9121. shlibpath_overrides_runpath=no
  9122. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9123. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9124. hardcode_into_libs=yes
  9125. ;;
  9126. # No shared lib support for Linux oldld, aout, or coff.
  9127. linux*oldld* | linux*aout* | linux*coff*)
  9128. dynamic_linker=no
  9129. ;;
  9130. # This must be Linux ELF.
  9131. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9132. version_type=linux
  9133. need_lib_prefix=no
  9134. need_version=no
  9135. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9136. soname_spec='${libname}${release}${shared_ext}$major'
  9137. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9138. shlibpath_var=LD_LIBRARY_PATH
  9139. shlibpath_overrides_runpath=no
  9140. # Some binutils ld are patched to set DT_RUNPATH
  9141. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9142. $as_echo_n "(cached) " >&6
  9143. else
  9144. lt_cv_shlibpath_overrides_runpath=no
  9145. save_LDFLAGS=$LDFLAGS
  9146. save_libdir=$libdir
  9147. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9148. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9150. /* end confdefs.h. */
  9151. int
  9152. main ()
  9153. {
  9154. ;
  9155. return 0;
  9156. }
  9157. _ACEOF
  9158. if ac_fn_c_try_link "$LINENO"; then :
  9159. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9160. lt_cv_shlibpath_overrides_runpath=yes
  9161. fi
  9162. fi
  9163. rm -f core conftest.err conftest.$ac_objext \
  9164. conftest$ac_exeext conftest.$ac_ext
  9165. LDFLAGS=$save_LDFLAGS
  9166. libdir=$save_libdir
  9167. fi
  9168. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9169. # This implies no fast_install, which is unacceptable.
  9170. # Some rework will be needed to allow for fast_install
  9171. # before this can be enabled.
  9172. hardcode_into_libs=yes
  9173. # Append ld.so.conf contents to the search path
  9174. if test -f /etc/ld.so.conf; then
  9175. 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' ' '`
  9176. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9177. fi
  9178. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9179. # powerpc, because MkLinux only supported shared libraries with the
  9180. # GNU dynamic linker. Since this was broken with cross compilers,
  9181. # most powerpc-linux boxes support dynamic linking these days and
  9182. # people can always --disable-shared, the test was removed, and we
  9183. # assume the GNU/Linux dynamic linker is in use.
  9184. dynamic_linker='GNU/Linux ld.so'
  9185. ;;
  9186. netbsd*)
  9187. version_type=sunos
  9188. need_lib_prefix=no
  9189. need_version=no
  9190. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9192. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9193. dynamic_linker='NetBSD (a.out) ld.so'
  9194. else
  9195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9196. soname_spec='${libname}${release}${shared_ext}$major'
  9197. dynamic_linker='NetBSD ld.elf_so'
  9198. fi
  9199. shlibpath_var=LD_LIBRARY_PATH
  9200. shlibpath_overrides_runpath=yes
  9201. hardcode_into_libs=yes
  9202. ;;
  9203. newsos6)
  9204. version_type=linux
  9205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9206. shlibpath_var=LD_LIBRARY_PATH
  9207. shlibpath_overrides_runpath=yes
  9208. ;;
  9209. *nto* | *qnx*)
  9210. version_type=qnx
  9211. need_lib_prefix=no
  9212. need_version=no
  9213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9214. soname_spec='${libname}${release}${shared_ext}$major'
  9215. shlibpath_var=LD_LIBRARY_PATH
  9216. shlibpath_overrides_runpath=no
  9217. hardcode_into_libs=yes
  9218. dynamic_linker='ldqnx.so'
  9219. ;;
  9220. openbsd*)
  9221. version_type=sunos
  9222. sys_lib_dlsearch_path_spec="/usr/lib"
  9223. need_lib_prefix=no
  9224. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9225. case $host_os in
  9226. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9227. *) need_version=no ;;
  9228. esac
  9229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9230. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9231. shlibpath_var=LD_LIBRARY_PATH
  9232. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9233. case $host_os in
  9234. openbsd2.[89] | openbsd2.[89].*)
  9235. shlibpath_overrides_runpath=no
  9236. ;;
  9237. *)
  9238. shlibpath_overrides_runpath=yes
  9239. ;;
  9240. esac
  9241. else
  9242. shlibpath_overrides_runpath=yes
  9243. fi
  9244. ;;
  9245. os2*)
  9246. libname_spec='$name'
  9247. shrext_cmds=".dll"
  9248. need_lib_prefix=no
  9249. library_names_spec='$libname${shared_ext} $libname.a'
  9250. dynamic_linker='OS/2 ld.exe'
  9251. shlibpath_var=LIBPATH
  9252. ;;
  9253. osf3* | osf4* | osf5*)
  9254. version_type=osf
  9255. need_lib_prefix=no
  9256. need_version=no
  9257. soname_spec='${libname}${release}${shared_ext}$major'
  9258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9259. shlibpath_var=LD_LIBRARY_PATH
  9260. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9261. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9262. ;;
  9263. rdos*)
  9264. dynamic_linker=no
  9265. ;;
  9266. solaris*)
  9267. version_type=linux
  9268. need_lib_prefix=no
  9269. need_version=no
  9270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9271. soname_spec='${libname}${release}${shared_ext}$major'
  9272. shlibpath_var=LD_LIBRARY_PATH
  9273. shlibpath_overrides_runpath=yes
  9274. hardcode_into_libs=yes
  9275. # ldd complains unless libraries are executable
  9276. postinstall_cmds='chmod +x $lib'
  9277. ;;
  9278. sunos4*)
  9279. version_type=sunos
  9280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9281. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9282. shlibpath_var=LD_LIBRARY_PATH
  9283. shlibpath_overrides_runpath=yes
  9284. if test "$with_gnu_ld" = yes; then
  9285. need_lib_prefix=no
  9286. fi
  9287. need_version=yes
  9288. ;;
  9289. sysv4 | sysv4.3*)
  9290. version_type=linux
  9291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9292. soname_spec='${libname}${release}${shared_ext}$major'
  9293. shlibpath_var=LD_LIBRARY_PATH
  9294. case $host_vendor in
  9295. sni)
  9296. shlibpath_overrides_runpath=no
  9297. need_lib_prefix=no
  9298. runpath_var=LD_RUN_PATH
  9299. ;;
  9300. siemens)
  9301. need_lib_prefix=no
  9302. ;;
  9303. motorola)
  9304. need_lib_prefix=no
  9305. need_version=no
  9306. shlibpath_overrides_runpath=no
  9307. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9308. ;;
  9309. esac
  9310. ;;
  9311. sysv4*MP*)
  9312. if test -d /usr/nec ;then
  9313. version_type=linux
  9314. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9315. soname_spec='$libname${shared_ext}.$major'
  9316. shlibpath_var=LD_LIBRARY_PATH
  9317. fi
  9318. ;;
  9319. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9320. version_type=freebsd-elf
  9321. need_lib_prefix=no
  9322. need_version=no
  9323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9324. soname_spec='${libname}${release}${shared_ext}$major'
  9325. shlibpath_var=LD_LIBRARY_PATH
  9326. shlibpath_overrides_runpath=yes
  9327. hardcode_into_libs=yes
  9328. if test "$with_gnu_ld" = yes; then
  9329. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9330. else
  9331. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9332. case $host_os in
  9333. sco3.2v5*)
  9334. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9335. ;;
  9336. esac
  9337. fi
  9338. sys_lib_dlsearch_path_spec='/usr/lib'
  9339. ;;
  9340. tpf*)
  9341. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9342. version_type=linux
  9343. need_lib_prefix=no
  9344. need_version=no
  9345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9346. shlibpath_var=LD_LIBRARY_PATH
  9347. shlibpath_overrides_runpath=no
  9348. hardcode_into_libs=yes
  9349. ;;
  9350. uts4*)
  9351. version_type=linux
  9352. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9353. soname_spec='${libname}${release}${shared_ext}$major'
  9354. shlibpath_var=LD_LIBRARY_PATH
  9355. ;;
  9356. *)
  9357. dynamic_linker=no
  9358. ;;
  9359. esac
  9360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9361. $as_echo "$dynamic_linker" >&6; }
  9362. test "$dynamic_linker" = no && can_build_shared=no
  9363. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9364. if test "$GCC" = yes; then
  9365. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9366. fi
  9367. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9368. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9369. fi
  9370. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9371. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9372. fi
  9373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9374. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9375. hardcode_action=
  9376. if test -n "$hardcode_libdir_flag_spec" ||
  9377. test -n "$runpath_var" ||
  9378. test "X$hardcode_automatic" = "Xyes" ; then
  9379. # We can hardcode non-existent directories.
  9380. if test "$hardcode_direct" != no &&
  9381. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9382. # have to relink, otherwise we might link with an installed library
  9383. # when we should be linking with a yet-to-be-installed one
  9384. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9385. test "$hardcode_minus_L" != no; then
  9386. # Linking always hardcodes the temporary library directory.
  9387. hardcode_action=relink
  9388. else
  9389. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9390. hardcode_action=immediate
  9391. fi
  9392. else
  9393. # We cannot hardcode anything, or else we can only hardcode existing
  9394. # directories.
  9395. hardcode_action=unsupported
  9396. fi
  9397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9398. $as_echo "$hardcode_action" >&6; }
  9399. if test "$hardcode_action" = relink ||
  9400. test "$inherit_rpath" = yes; then
  9401. # Fast installation is not supported
  9402. enable_fast_install=no
  9403. elif test "$shlibpath_overrides_runpath" = yes ||
  9404. test "$enable_shared" = no; then
  9405. # Fast installation is not necessary
  9406. enable_fast_install=needless
  9407. fi
  9408. if test "x$enable_dlopen" != xyes; then
  9409. enable_dlopen=unknown
  9410. enable_dlopen_self=unknown
  9411. enable_dlopen_self_static=unknown
  9412. else
  9413. lt_cv_dlopen=no
  9414. lt_cv_dlopen_libs=
  9415. case $host_os in
  9416. beos*)
  9417. lt_cv_dlopen="load_add_on"
  9418. lt_cv_dlopen_libs=
  9419. lt_cv_dlopen_self=yes
  9420. ;;
  9421. mingw* | pw32* | cegcc*)
  9422. lt_cv_dlopen="LoadLibrary"
  9423. lt_cv_dlopen_libs=
  9424. ;;
  9425. cygwin*)
  9426. lt_cv_dlopen="dlopen"
  9427. lt_cv_dlopen_libs=
  9428. ;;
  9429. darwin*)
  9430. # if libdl is installed we need to link against it
  9431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9432. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9433. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9434. $as_echo_n "(cached) " >&6
  9435. else
  9436. ac_check_lib_save_LIBS=$LIBS
  9437. LIBS="-ldl $LIBS"
  9438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9439. /* end confdefs.h. */
  9440. /* Override any GCC internal prototype to avoid an error.
  9441. Use char because int might match the return type of a GCC
  9442. builtin and then its argument prototype would still apply. */
  9443. #ifdef __cplusplus
  9444. extern "C"
  9445. #endif
  9446. char dlopen ();
  9447. int
  9448. main ()
  9449. {
  9450. return dlopen ();
  9451. ;
  9452. return 0;
  9453. }
  9454. _ACEOF
  9455. if ac_fn_c_try_link "$LINENO"; then :
  9456. ac_cv_lib_dl_dlopen=yes
  9457. else
  9458. ac_cv_lib_dl_dlopen=no
  9459. fi
  9460. rm -f core conftest.err conftest.$ac_objext \
  9461. conftest$ac_exeext conftest.$ac_ext
  9462. LIBS=$ac_check_lib_save_LIBS
  9463. fi
  9464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9465. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9466. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9467. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9468. else
  9469. lt_cv_dlopen="dyld"
  9470. lt_cv_dlopen_libs=
  9471. lt_cv_dlopen_self=yes
  9472. fi
  9473. ;;
  9474. *)
  9475. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9476. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9477. lt_cv_dlopen="shl_load"
  9478. else
  9479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9480. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9481. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9482. $as_echo_n "(cached) " >&6
  9483. else
  9484. ac_check_lib_save_LIBS=$LIBS
  9485. LIBS="-ldld $LIBS"
  9486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9487. /* end confdefs.h. */
  9488. /* Override any GCC internal prototype to avoid an error.
  9489. Use char because int might match the return type of a GCC
  9490. builtin and then its argument prototype would still apply. */
  9491. #ifdef __cplusplus
  9492. extern "C"
  9493. #endif
  9494. char shl_load ();
  9495. int
  9496. main ()
  9497. {
  9498. return shl_load ();
  9499. ;
  9500. return 0;
  9501. }
  9502. _ACEOF
  9503. if ac_fn_c_try_link "$LINENO"; then :
  9504. ac_cv_lib_dld_shl_load=yes
  9505. else
  9506. ac_cv_lib_dld_shl_load=no
  9507. fi
  9508. rm -f core conftest.err conftest.$ac_objext \
  9509. conftest$ac_exeext conftest.$ac_ext
  9510. LIBS=$ac_check_lib_save_LIBS
  9511. fi
  9512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9513. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9514. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9515. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9516. else
  9517. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9518. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9519. lt_cv_dlopen="dlopen"
  9520. else
  9521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9522. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9523. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9524. $as_echo_n "(cached) " >&6
  9525. else
  9526. ac_check_lib_save_LIBS=$LIBS
  9527. LIBS="-ldl $LIBS"
  9528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9529. /* end confdefs.h. */
  9530. /* Override any GCC internal prototype to avoid an error.
  9531. Use char because int might match the return type of a GCC
  9532. builtin and then its argument prototype would still apply. */
  9533. #ifdef __cplusplus
  9534. extern "C"
  9535. #endif
  9536. char dlopen ();
  9537. int
  9538. main ()
  9539. {
  9540. return dlopen ();
  9541. ;
  9542. return 0;
  9543. }
  9544. _ACEOF
  9545. if ac_fn_c_try_link "$LINENO"; then :
  9546. ac_cv_lib_dl_dlopen=yes
  9547. else
  9548. ac_cv_lib_dl_dlopen=no
  9549. fi
  9550. rm -f core conftest.err conftest.$ac_objext \
  9551. conftest$ac_exeext conftest.$ac_ext
  9552. LIBS=$ac_check_lib_save_LIBS
  9553. fi
  9554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9555. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9556. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9557. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9558. else
  9559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9560. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9561. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9562. $as_echo_n "(cached) " >&6
  9563. else
  9564. ac_check_lib_save_LIBS=$LIBS
  9565. LIBS="-lsvld $LIBS"
  9566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9567. /* end confdefs.h. */
  9568. /* Override any GCC internal prototype to avoid an error.
  9569. Use char because int might match the return type of a GCC
  9570. builtin and then its argument prototype would still apply. */
  9571. #ifdef __cplusplus
  9572. extern "C"
  9573. #endif
  9574. char dlopen ();
  9575. int
  9576. main ()
  9577. {
  9578. return dlopen ();
  9579. ;
  9580. return 0;
  9581. }
  9582. _ACEOF
  9583. if ac_fn_c_try_link "$LINENO"; then :
  9584. ac_cv_lib_svld_dlopen=yes
  9585. else
  9586. ac_cv_lib_svld_dlopen=no
  9587. fi
  9588. rm -f core conftest.err conftest.$ac_objext \
  9589. conftest$ac_exeext conftest.$ac_ext
  9590. LIBS=$ac_check_lib_save_LIBS
  9591. fi
  9592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9593. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9594. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9595. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9596. else
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9598. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9599. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9600. $as_echo_n "(cached) " >&6
  9601. else
  9602. ac_check_lib_save_LIBS=$LIBS
  9603. LIBS="-ldld $LIBS"
  9604. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9605. /* end confdefs.h. */
  9606. /* Override any GCC internal prototype to avoid an error.
  9607. Use char because int might match the return type of a GCC
  9608. builtin and then its argument prototype would still apply. */
  9609. #ifdef __cplusplus
  9610. extern "C"
  9611. #endif
  9612. char dld_link ();
  9613. int
  9614. main ()
  9615. {
  9616. return dld_link ();
  9617. ;
  9618. return 0;
  9619. }
  9620. _ACEOF
  9621. if ac_fn_c_try_link "$LINENO"; then :
  9622. ac_cv_lib_dld_dld_link=yes
  9623. else
  9624. ac_cv_lib_dld_dld_link=no
  9625. fi
  9626. rm -f core conftest.err conftest.$ac_objext \
  9627. conftest$ac_exeext conftest.$ac_ext
  9628. LIBS=$ac_check_lib_save_LIBS
  9629. fi
  9630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9631. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9632. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9633. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9634. fi
  9635. fi
  9636. fi
  9637. fi
  9638. fi
  9639. fi
  9640. ;;
  9641. esac
  9642. if test "x$lt_cv_dlopen" != xno; then
  9643. enable_dlopen=yes
  9644. else
  9645. enable_dlopen=no
  9646. fi
  9647. case $lt_cv_dlopen in
  9648. dlopen)
  9649. save_CPPFLAGS="$CPPFLAGS"
  9650. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9651. save_LDFLAGS="$LDFLAGS"
  9652. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9653. save_LIBS="$LIBS"
  9654. LIBS="$lt_cv_dlopen_libs $LIBS"
  9655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9656. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9657. if test "${lt_cv_dlopen_self+set}" = set; then :
  9658. $as_echo_n "(cached) " >&6
  9659. else
  9660. if test "$cross_compiling" = yes; then :
  9661. lt_cv_dlopen_self=cross
  9662. else
  9663. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9664. lt_status=$lt_dlunknown
  9665. cat > conftest.$ac_ext <<_LT_EOF
  9666. #line 11253 "configure"
  9667. #include "confdefs.h"
  9668. #if HAVE_DLFCN_H
  9669. #include <dlfcn.h>
  9670. #endif
  9671. #include <stdio.h>
  9672. #ifdef RTLD_GLOBAL
  9673. # define LT_DLGLOBAL RTLD_GLOBAL
  9674. #else
  9675. # ifdef DL_GLOBAL
  9676. # define LT_DLGLOBAL DL_GLOBAL
  9677. # else
  9678. # define LT_DLGLOBAL 0
  9679. # endif
  9680. #endif
  9681. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9682. find out it does not work in some platform. */
  9683. #ifndef LT_DLLAZY_OR_NOW
  9684. # ifdef RTLD_LAZY
  9685. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9686. # else
  9687. # ifdef DL_LAZY
  9688. # define LT_DLLAZY_OR_NOW DL_LAZY
  9689. # else
  9690. # ifdef RTLD_NOW
  9691. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9692. # else
  9693. # ifdef DL_NOW
  9694. # define LT_DLLAZY_OR_NOW DL_NOW
  9695. # else
  9696. # define LT_DLLAZY_OR_NOW 0
  9697. # endif
  9698. # endif
  9699. # endif
  9700. # endif
  9701. #endif
  9702. /* When -fvisbility=hidden is used, assume the code has been annotated
  9703. correspondingly for the symbols needed. */
  9704. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9705. void fnord () __attribute__((visibility("default")));
  9706. #endif
  9707. void fnord () { int i=42; }
  9708. int main ()
  9709. {
  9710. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9711. int status = $lt_dlunknown;
  9712. if (self)
  9713. {
  9714. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9715. else
  9716. {
  9717. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9718. else puts (dlerror ());
  9719. }
  9720. /* dlclose (self); */
  9721. }
  9722. else
  9723. puts (dlerror ());
  9724. return status;
  9725. }
  9726. _LT_EOF
  9727. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9728. (eval $ac_link) 2>&5
  9729. ac_status=$?
  9730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9731. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9732. (./conftest; exit; ) >&5 2>/dev/null
  9733. lt_status=$?
  9734. case x$lt_status in
  9735. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9736. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9737. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9738. esac
  9739. else :
  9740. # compilation failed
  9741. lt_cv_dlopen_self=no
  9742. fi
  9743. fi
  9744. rm -fr conftest*
  9745. fi
  9746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9747. $as_echo "$lt_cv_dlopen_self" >&6; }
  9748. if test "x$lt_cv_dlopen_self" = xyes; then
  9749. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9751. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9752. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9753. $as_echo_n "(cached) " >&6
  9754. else
  9755. if test "$cross_compiling" = yes; then :
  9756. lt_cv_dlopen_self_static=cross
  9757. else
  9758. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9759. lt_status=$lt_dlunknown
  9760. cat > conftest.$ac_ext <<_LT_EOF
  9761. #line 11359 "configure"
  9762. #include "confdefs.h"
  9763. #if HAVE_DLFCN_H
  9764. #include <dlfcn.h>
  9765. #endif
  9766. #include <stdio.h>
  9767. #ifdef RTLD_GLOBAL
  9768. # define LT_DLGLOBAL RTLD_GLOBAL
  9769. #else
  9770. # ifdef DL_GLOBAL
  9771. # define LT_DLGLOBAL DL_GLOBAL
  9772. # else
  9773. # define LT_DLGLOBAL 0
  9774. # endif
  9775. #endif
  9776. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9777. find out it does not work in some platform. */
  9778. #ifndef LT_DLLAZY_OR_NOW
  9779. # ifdef RTLD_LAZY
  9780. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9781. # else
  9782. # ifdef DL_LAZY
  9783. # define LT_DLLAZY_OR_NOW DL_LAZY
  9784. # else
  9785. # ifdef RTLD_NOW
  9786. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9787. # else
  9788. # ifdef DL_NOW
  9789. # define LT_DLLAZY_OR_NOW DL_NOW
  9790. # else
  9791. # define LT_DLLAZY_OR_NOW 0
  9792. # endif
  9793. # endif
  9794. # endif
  9795. # endif
  9796. #endif
  9797. /* When -fvisbility=hidden is used, assume the code has been annotated
  9798. correspondingly for the symbols needed. */
  9799. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9800. void fnord () __attribute__((visibility("default")));
  9801. #endif
  9802. void fnord () { int i=42; }
  9803. int main ()
  9804. {
  9805. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9806. int status = $lt_dlunknown;
  9807. if (self)
  9808. {
  9809. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9810. else
  9811. {
  9812. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9813. else puts (dlerror ());
  9814. }
  9815. /* dlclose (self); */
  9816. }
  9817. else
  9818. puts (dlerror ());
  9819. return status;
  9820. }
  9821. _LT_EOF
  9822. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9823. (eval $ac_link) 2>&5
  9824. ac_status=$?
  9825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9826. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9827. (./conftest; exit; ) >&5 2>/dev/null
  9828. lt_status=$?
  9829. case x$lt_status in
  9830. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9831. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9832. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9833. esac
  9834. else :
  9835. # compilation failed
  9836. lt_cv_dlopen_self_static=no
  9837. fi
  9838. fi
  9839. rm -fr conftest*
  9840. fi
  9841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9842. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9843. fi
  9844. CPPFLAGS="$save_CPPFLAGS"
  9845. LDFLAGS="$save_LDFLAGS"
  9846. LIBS="$save_LIBS"
  9847. ;;
  9848. esac
  9849. case $lt_cv_dlopen_self in
  9850. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9851. *) enable_dlopen_self=unknown ;;
  9852. esac
  9853. case $lt_cv_dlopen_self_static in
  9854. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9855. *) enable_dlopen_self_static=unknown ;;
  9856. esac
  9857. fi
  9858. striplib=
  9859. old_striplib=
  9860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9861. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9862. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9863. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9864. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9866. $as_echo "yes" >&6; }
  9867. else
  9868. # FIXME - insert some real tests, host_os isn't really good enough
  9869. case $host_os in
  9870. darwin*)
  9871. if test -n "$STRIP" ; then
  9872. striplib="$STRIP -x"
  9873. old_striplib="$STRIP -S"
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9875. $as_echo "yes" >&6; }
  9876. else
  9877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9878. $as_echo "no" >&6; }
  9879. fi
  9880. ;;
  9881. *)
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9883. $as_echo "no" >&6; }
  9884. ;;
  9885. esac
  9886. fi
  9887. # Report which library types will actually be built
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9889. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9891. $as_echo "$can_build_shared" >&6; }
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9893. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9894. test "$can_build_shared" = "no" && enable_shared=no
  9895. # On AIX, shared libraries and static libraries use the same namespace, and
  9896. # are all built from PIC.
  9897. case $host_os in
  9898. aix3*)
  9899. test "$enable_shared" = yes && enable_static=no
  9900. if test -n "$RANLIB"; then
  9901. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9902. postinstall_cmds='$RANLIB $lib'
  9903. fi
  9904. ;;
  9905. aix[4-9]*)
  9906. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9907. test "$enable_shared" = yes && enable_static=no
  9908. fi
  9909. ;;
  9910. esac
  9911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9912. $as_echo "$enable_shared" >&6; }
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9914. $as_echo_n "checking whether to build static libraries... " >&6; }
  9915. # Make sure either enable_shared or enable_static is yes.
  9916. test "$enable_shared" = yes || enable_static=yes
  9917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9918. $as_echo "$enable_static" >&6; }
  9919. fi
  9920. ac_ext=c
  9921. ac_cpp='$CPP $CPPFLAGS'
  9922. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9923. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9924. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9925. CC="$lt_save_CC"
  9926. ac_config_commands="$ac_config_commands libtool"
  9927. # Only expand once:
  9928. XCFLAGS="-Wall -Wextra"
  9929. if test "${multilib}" = "yes"; then
  9930. multilib_arg="--enable-multilib"
  9931. else
  9932. multilib_arg=
  9933. fi
  9934. ac_config_files="$ac_config_files Makefile libmpx.spec"
  9935. ac_config_headers="$ac_config_headers config.h"
  9936. ac_config_files="$ac_config_files mpxrt/Makefile mpxwrap/Makefile"
  9937. cat >confcache <<\_ACEOF
  9938. # This file is a shell script that caches the results of configure
  9939. # tests run on this system so they can be shared between configure
  9940. # scripts and configure runs, see configure's option --config-cache.
  9941. # It is not useful on other systems. If it contains results you don't
  9942. # want to keep, you may remove or edit it.
  9943. #
  9944. # config.status only pays attention to the cache file if you give it
  9945. # the --recheck option to rerun configure.
  9946. #
  9947. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9948. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9949. # following values.
  9950. _ACEOF
  9951. # The following way of writing the cache mishandles newlines in values,
  9952. # but we know of no workaround that is simple, portable, and efficient.
  9953. # So, we kill variables containing newlines.
  9954. # Ultrix sh set writes to stderr and can't be redirected directly,
  9955. # and sets the high bit in the cache file unless we assign to the vars.
  9956. (
  9957. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9958. eval ac_val=\$$ac_var
  9959. case $ac_val in #(
  9960. *${as_nl}*)
  9961. case $ac_var in #(
  9962. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9963. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9964. esac
  9965. case $ac_var in #(
  9966. _ | IFS | as_nl) ;; #(
  9967. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9968. *) { eval $ac_var=; unset $ac_var;} ;;
  9969. esac ;;
  9970. esac
  9971. done
  9972. (set) 2>&1 |
  9973. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9974. *${as_nl}ac_space=\ *)
  9975. # `set' does not quote correctly, so add quotes: double-quote
  9976. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9977. sed -n \
  9978. "s/'/'\\\\''/g;
  9979. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9980. ;; #(
  9981. *)
  9982. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9983. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9984. ;;
  9985. esac |
  9986. sort
  9987. ) |
  9988. sed '
  9989. /^ac_cv_env_/b end
  9990. t clear
  9991. :clear
  9992. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9993. t end
  9994. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9995. :end' >>confcache
  9996. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9997. if test -w "$cache_file"; then
  9998. test "x$cache_file" != "x/dev/null" &&
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10000. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10001. cat confcache >$cache_file
  10002. else
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10004. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10005. fi
  10006. fi
  10007. rm -f confcache
  10008. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10009. # Let make expand exec_prefix.
  10010. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10011. DEFS=-DHAVE_CONFIG_H
  10012. ac_libobjs=
  10013. ac_ltlibobjs=
  10014. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10015. # 1. Remove the extension, and $U if already installed.
  10016. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10017. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10018. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10019. # will be set to the directory where LIBOBJS objects are built.
  10020. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10021. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10022. done
  10023. LIBOBJS=$ac_libobjs
  10024. LTLIBOBJS=$ac_ltlibobjs
  10025. if test -z "${LIBMPX_SUPPORTED_TRUE}" && test -z "${LIBMPX_SUPPORTED_FALSE}"; then
  10026. as_fn_error "conditional \"LIBMPX_SUPPORTED\" was never defined.
  10027. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10028. fi
  10029. if test -n "$EXEEXT"; then
  10030. am__EXEEXT_TRUE=
  10031. am__EXEEXT_FALSE='#'
  10032. else
  10033. am__EXEEXT_TRUE='#'
  10034. am__EXEEXT_FALSE=
  10035. fi
  10036. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10037. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  10038. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10039. fi
  10040. if test -z "${MPX_AS_SUPPORTED_TRUE}" && test -z "${MPX_AS_SUPPORTED_FALSE}"; then
  10041. as_fn_error "conditional \"MPX_AS_SUPPORTED\" was never defined.
  10042. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10043. fi
  10044. : ${CONFIG_STATUS=./config.status}
  10045. ac_write_fail=0
  10046. ac_clean_files_save=$ac_clean_files
  10047. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10048. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10049. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10050. as_write_fail=0
  10051. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10052. #! $SHELL
  10053. # Generated by $as_me.
  10054. # Run this file to recreate the current configuration.
  10055. # Compiler output produced by configure, useful for debugging
  10056. # configure, is in config.log if it exists.
  10057. debug=false
  10058. ac_cs_recheck=false
  10059. ac_cs_silent=false
  10060. SHELL=\${CONFIG_SHELL-$SHELL}
  10061. export SHELL
  10062. _ASEOF
  10063. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10064. ## -------------------- ##
  10065. ## M4sh Initialization. ##
  10066. ## -------------------- ##
  10067. # Be more Bourne compatible
  10068. DUALCASE=1; export DUALCASE # for MKS sh
  10069. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10070. emulate sh
  10071. NULLCMD=:
  10072. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10073. # is contrary to our usage. Disable this feature.
  10074. alias -g '${1+"$@"}'='"$@"'
  10075. setopt NO_GLOB_SUBST
  10076. else
  10077. case `(set -o) 2>/dev/null` in #(
  10078. *posix*) :
  10079. set -o posix ;; #(
  10080. *) :
  10081. ;;
  10082. esac
  10083. fi
  10084. as_nl='
  10085. '
  10086. export as_nl
  10087. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10088. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10089. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10090. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10091. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10092. # but without wasting forks for bash or zsh.
  10093. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10094. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10095. as_echo='print -r --'
  10096. as_echo_n='print -rn --'
  10097. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10098. as_echo='printf %s\n'
  10099. as_echo_n='printf %s'
  10100. else
  10101. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10102. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10103. as_echo_n='/usr/ucb/echo -n'
  10104. else
  10105. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10106. as_echo_n_body='eval
  10107. arg=$1;
  10108. case $arg in #(
  10109. *"$as_nl"*)
  10110. expr "X$arg" : "X\\(.*\\)$as_nl";
  10111. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10112. esac;
  10113. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10114. '
  10115. export as_echo_n_body
  10116. as_echo_n='sh -c $as_echo_n_body as_echo'
  10117. fi
  10118. export as_echo_body
  10119. as_echo='sh -c $as_echo_body as_echo'
  10120. fi
  10121. # The user is always right.
  10122. if test "${PATH_SEPARATOR+set}" != set; then
  10123. PATH_SEPARATOR=:
  10124. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10125. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10126. PATH_SEPARATOR=';'
  10127. }
  10128. fi
  10129. # IFS
  10130. # We need space, tab and new line, in precisely that order. Quoting is
  10131. # there to prevent editors from complaining about space-tab.
  10132. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10133. # splitting by setting IFS to empty value.)
  10134. IFS=" "" $as_nl"
  10135. # Find who we are. Look in the path if we contain no directory separator.
  10136. case $0 in #((
  10137. *[\\/]* ) as_myself=$0 ;;
  10138. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10139. for as_dir in $PATH
  10140. do
  10141. IFS=$as_save_IFS
  10142. test -z "$as_dir" && as_dir=.
  10143. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10144. done
  10145. IFS=$as_save_IFS
  10146. ;;
  10147. esac
  10148. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10149. # in which case we are not to be found in the path.
  10150. if test "x$as_myself" = x; then
  10151. as_myself=$0
  10152. fi
  10153. if test ! -f "$as_myself"; then
  10154. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10155. exit 1
  10156. fi
  10157. # Unset variables that we do not need and which cause bugs (e.g. in
  10158. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10159. # suppresses any "Segmentation fault" message there. '((' could
  10160. # trigger a bug in pdksh 5.2.14.
  10161. for as_var in BASH_ENV ENV MAIL MAILPATH
  10162. do eval test x\${$as_var+set} = xset \
  10163. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10164. done
  10165. PS1='$ '
  10166. PS2='> '
  10167. PS4='+ '
  10168. # NLS nuisances.
  10169. LC_ALL=C
  10170. export LC_ALL
  10171. LANGUAGE=C
  10172. export LANGUAGE
  10173. # CDPATH.
  10174. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10175. # as_fn_error ERROR [LINENO LOG_FD]
  10176. # ---------------------------------
  10177. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10178. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10179. # script with status $?, using 1 if that was 0.
  10180. as_fn_error ()
  10181. {
  10182. as_status=$?; test $as_status -eq 0 && as_status=1
  10183. if test "$3"; then
  10184. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10185. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  10186. fi
  10187. $as_echo "$as_me: error: $1" >&2
  10188. as_fn_exit $as_status
  10189. } # as_fn_error
  10190. # as_fn_set_status STATUS
  10191. # -----------------------
  10192. # Set $? to STATUS, without forking.
  10193. as_fn_set_status ()
  10194. {
  10195. return $1
  10196. } # as_fn_set_status
  10197. # as_fn_exit STATUS
  10198. # -----------------
  10199. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10200. as_fn_exit ()
  10201. {
  10202. set +e
  10203. as_fn_set_status $1
  10204. exit $1
  10205. } # as_fn_exit
  10206. # as_fn_unset VAR
  10207. # ---------------
  10208. # Portably unset VAR.
  10209. as_fn_unset ()
  10210. {
  10211. { eval $1=; unset $1;}
  10212. }
  10213. as_unset=as_fn_unset
  10214. # as_fn_append VAR VALUE
  10215. # ----------------------
  10216. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10217. # advantage of any shell optimizations that allow amortized linear growth over
  10218. # repeated appends, instead of the typical quadratic growth present in naive
  10219. # implementations.
  10220. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10221. eval 'as_fn_append ()
  10222. {
  10223. eval $1+=\$2
  10224. }'
  10225. else
  10226. as_fn_append ()
  10227. {
  10228. eval $1=\$$1\$2
  10229. }
  10230. fi # as_fn_append
  10231. # as_fn_arith ARG...
  10232. # ------------------
  10233. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10234. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10235. # must be portable across $(()) and expr.
  10236. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10237. eval 'as_fn_arith ()
  10238. {
  10239. as_val=$(( $* ))
  10240. }'
  10241. else
  10242. as_fn_arith ()
  10243. {
  10244. as_val=`expr "$@" || test $? -eq 1`
  10245. }
  10246. fi # as_fn_arith
  10247. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10248. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10249. as_expr=expr
  10250. else
  10251. as_expr=false
  10252. fi
  10253. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10254. as_basename=basename
  10255. else
  10256. as_basename=false
  10257. fi
  10258. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10259. as_dirname=dirname
  10260. else
  10261. as_dirname=false
  10262. fi
  10263. as_me=`$as_basename -- "$0" ||
  10264. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10265. X"$0" : 'X\(//\)$' \| \
  10266. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10267. $as_echo X/"$0" |
  10268. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10269. s//\1/
  10270. q
  10271. }
  10272. /^X\/\(\/\/\)$/{
  10273. s//\1/
  10274. q
  10275. }
  10276. /^X\/\(\/\).*/{
  10277. s//\1/
  10278. q
  10279. }
  10280. s/.*/./; q'`
  10281. # Avoid depending upon Character Ranges.
  10282. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10283. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10284. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10285. as_cr_digits='0123456789'
  10286. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10287. ECHO_C= ECHO_N= ECHO_T=
  10288. case `echo -n x` in #(((((
  10289. -n*)
  10290. case `echo 'xy\c'` in
  10291. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10292. xy) ECHO_C='\c';;
  10293. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10294. ECHO_T=' ';;
  10295. esac;;
  10296. *)
  10297. ECHO_N='-n';;
  10298. esac
  10299. rm -f conf$$ conf$$.exe conf$$.file
  10300. if test -d conf$$.dir; then
  10301. rm -f conf$$.dir/conf$$.file
  10302. else
  10303. rm -f conf$$.dir
  10304. mkdir conf$$.dir 2>/dev/null
  10305. fi
  10306. if (echo >conf$$.file) 2>/dev/null; then
  10307. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10308. as_ln_s='ln -s'
  10309. # ... but there are two gotchas:
  10310. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10311. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10312. # In both cases, we have to default to `cp -p'.
  10313. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10314. as_ln_s='cp -p'
  10315. elif ln conf$$.file conf$$ 2>/dev/null; then
  10316. as_ln_s=ln
  10317. else
  10318. as_ln_s='cp -p'
  10319. fi
  10320. else
  10321. as_ln_s='cp -p'
  10322. fi
  10323. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10324. rmdir conf$$.dir 2>/dev/null
  10325. # as_fn_mkdir_p
  10326. # -------------
  10327. # Create "$as_dir" as a directory, including parents if necessary.
  10328. as_fn_mkdir_p ()
  10329. {
  10330. case $as_dir in #(
  10331. -*) as_dir=./$as_dir;;
  10332. esac
  10333. test -d "$as_dir" || eval $as_mkdir_p || {
  10334. as_dirs=
  10335. while :; do
  10336. case $as_dir in #(
  10337. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10338. *) as_qdir=$as_dir;;
  10339. esac
  10340. as_dirs="'$as_qdir' $as_dirs"
  10341. as_dir=`$as_dirname -- "$as_dir" ||
  10342. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10343. X"$as_dir" : 'X\(//\)[^/]' \| \
  10344. X"$as_dir" : 'X\(//\)$' \| \
  10345. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10346. $as_echo X"$as_dir" |
  10347. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10348. s//\1/
  10349. q
  10350. }
  10351. /^X\(\/\/\)[^/].*/{
  10352. s//\1/
  10353. q
  10354. }
  10355. /^X\(\/\/\)$/{
  10356. s//\1/
  10357. q
  10358. }
  10359. /^X\(\/\).*/{
  10360. s//\1/
  10361. q
  10362. }
  10363. s/.*/./; q'`
  10364. test -d "$as_dir" && break
  10365. done
  10366. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10367. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  10368. } # as_fn_mkdir_p
  10369. if mkdir -p . 2>/dev/null; then
  10370. as_mkdir_p='mkdir -p "$as_dir"'
  10371. else
  10372. test -d ./-p && rmdir ./-p
  10373. as_mkdir_p=false
  10374. fi
  10375. if test -x / >/dev/null 2>&1; then
  10376. as_test_x='test -x'
  10377. else
  10378. if ls -dL / >/dev/null 2>&1; then
  10379. as_ls_L_option=L
  10380. else
  10381. as_ls_L_option=
  10382. fi
  10383. as_test_x='
  10384. eval sh -c '\''
  10385. if test -d "$1"; then
  10386. test -d "$1/.";
  10387. else
  10388. case $1 in #(
  10389. -*)set "./$1";;
  10390. esac;
  10391. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  10392. ???[sx]*):;;*)false;;esac;fi
  10393. '\'' sh
  10394. '
  10395. fi
  10396. as_executable_p=$as_test_x
  10397. # Sed expression to map a string onto a valid CPP name.
  10398. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10399. # Sed expression to map a string onto a valid variable name.
  10400. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10401. exec 6>&1
  10402. ## ----------------------------------- ##
  10403. ## Main body of $CONFIG_STATUS script. ##
  10404. ## ----------------------------------- ##
  10405. _ASEOF
  10406. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10407. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10408. # Save the log message, to keep $0 and so on meaningful, and to
  10409. # report actual input values of CONFIG_FILES etc. instead of their
  10410. # values after options handling.
  10411. ac_log="
  10412. This file was extended by package-unused $as_me version-unused, which was
  10413. generated by GNU Autoconf 2.64. Invocation command line was
  10414. CONFIG_FILES = $CONFIG_FILES
  10415. CONFIG_HEADERS = $CONFIG_HEADERS
  10416. CONFIG_LINKS = $CONFIG_LINKS
  10417. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10418. $ $0 $@
  10419. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10420. "
  10421. _ACEOF
  10422. case $ac_config_files in *"
  10423. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10424. esac
  10425. case $ac_config_headers in *"
  10426. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10427. esac
  10428. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10429. # Files that config.status was made for.
  10430. config_files="$ac_config_files"
  10431. config_headers="$ac_config_headers"
  10432. config_commands="$ac_config_commands"
  10433. _ACEOF
  10434. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10435. ac_cs_usage="\
  10436. \`$as_me' instantiates files and other configuration actions
  10437. from templates according to the current configuration. Unless the files
  10438. and actions are specified as TAGs, all are instantiated by default.
  10439. Usage: $0 [OPTION]... [TAG]...
  10440. -h, --help print this help, then exit
  10441. -V, --version print version number and configuration settings, then exit
  10442. -q, --quiet, --silent
  10443. do not print progress messages
  10444. -d, --debug don't remove temporary files
  10445. --recheck update $as_me by reconfiguring in the same conditions
  10446. --file=FILE[:TEMPLATE]
  10447. instantiate the configuration file FILE
  10448. --header=FILE[:TEMPLATE]
  10449. instantiate the configuration header FILE
  10450. Configuration files:
  10451. $config_files
  10452. Configuration headers:
  10453. $config_headers
  10454. Configuration commands:
  10455. $config_commands
  10456. Report bugs to <libmpx>."
  10457. _ACEOF
  10458. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10459. ac_cs_version="\\
  10460. package-unused config.status version-unused
  10461. configured by $0, generated by GNU Autoconf 2.64,
  10462. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  10463. Copyright (C) 2009 Free Software Foundation, Inc.
  10464. This config.status script is free software; the Free Software Foundation
  10465. gives unlimited permission to copy, distribute and modify it."
  10466. ac_pwd='$ac_pwd'
  10467. srcdir='$srcdir'
  10468. INSTALL='$INSTALL'
  10469. MKDIR_P='$MKDIR_P'
  10470. AWK='$AWK'
  10471. test -n "\$AWK" || AWK=awk
  10472. _ACEOF
  10473. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10474. # The default lists apply if the user does not specify any file.
  10475. ac_need_defaults=:
  10476. while test $# != 0
  10477. do
  10478. case $1 in
  10479. --*=*)
  10480. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10481. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10482. ac_shift=:
  10483. ;;
  10484. *)
  10485. ac_option=$1
  10486. ac_optarg=$2
  10487. ac_shift=shift
  10488. ;;
  10489. esac
  10490. case $ac_option in
  10491. # Handling of the options.
  10492. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10493. ac_cs_recheck=: ;;
  10494. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10495. $as_echo "$ac_cs_version"; exit ;;
  10496. --debug | --debu | --deb | --de | --d | -d )
  10497. debug=: ;;
  10498. --file | --fil | --fi | --f )
  10499. $ac_shift
  10500. case $ac_optarg in
  10501. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10502. esac
  10503. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10504. ac_need_defaults=false;;
  10505. --header | --heade | --head | --hea )
  10506. $ac_shift
  10507. case $ac_optarg in
  10508. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10509. esac
  10510. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10511. ac_need_defaults=false;;
  10512. --he | --h)
  10513. # Conflict between --help and --header
  10514. as_fn_error "ambiguous option: \`$1'
  10515. Try \`$0 --help' for more information.";;
  10516. --help | --hel | -h )
  10517. $as_echo "$ac_cs_usage"; exit ;;
  10518. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10519. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10520. ac_cs_silent=: ;;
  10521. # This is an error.
  10522. -*) as_fn_error "unrecognized option: \`$1'
  10523. Try \`$0 --help' for more information." ;;
  10524. *) as_fn_append ac_config_targets " $1"
  10525. ac_need_defaults=false ;;
  10526. esac
  10527. shift
  10528. done
  10529. ac_configure_extra_args=
  10530. if $ac_cs_silent; then
  10531. exec 6>/dev/null
  10532. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10533. fi
  10534. _ACEOF
  10535. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10536. if \$ac_cs_recheck; then
  10537. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10538. shift
  10539. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10540. CONFIG_SHELL='$SHELL'
  10541. export CONFIG_SHELL
  10542. exec "\$@"
  10543. fi
  10544. _ACEOF
  10545. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10546. exec 5>>config.log
  10547. {
  10548. echo
  10549. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10550. ## Running $as_me. ##
  10551. _ASBOX
  10552. $as_echo "$ac_log"
  10553. } >&5
  10554. _ACEOF
  10555. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10556. #
  10557. # INIT-COMMANDS
  10558. #
  10559. srcdir="$srcdir"
  10560. host="$host"
  10561. target="$target"
  10562. with_multisubdir="$with_multisubdir"
  10563. with_multisrctop="$with_multisrctop"
  10564. with_target_subdir="$with_target_subdir"
  10565. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  10566. multi_basedir="$multi_basedir"
  10567. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  10568. CC="$CC"
  10569. CXX="$CXX"
  10570. GFORTRAN="$GFORTRAN"
  10571. GCJ="$GCJ"
  10572. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10573. # if CDPATH is set.
  10574. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10575. sed_quote_subst='$sed_quote_subst'
  10576. double_quote_subst='$double_quote_subst'
  10577. delay_variable_subst='$delay_variable_subst'
  10578. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10579. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10580. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10581. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10582. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10583. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10584. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10585. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10586. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10587. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10588. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10589. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10590. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10591. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10592. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10593. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10594. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10595. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10596. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10597. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10598. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10599. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10600. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10601. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10602. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10603. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10604. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10605. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10606. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10607. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10608. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10609. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10610. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10611. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10612. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10613. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10614. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10615. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10616. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10617. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10618. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10619. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10620. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10621. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10622. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10623. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10624. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10625. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10626. 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"`'
  10627. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10628. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10629. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10630. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10631. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10632. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10633. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10634. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10635. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10636. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10637. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10638. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10639. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10640. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10641. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10642. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10643. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10644. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10645. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10646. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10647. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10648. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10649. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10650. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10651. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10652. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10653. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10654. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10655. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10656. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10657. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10658. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  10659. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10660. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10661. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10662. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10663. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10664. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10665. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10666. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10667. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  10668. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10669. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10670. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10671. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10672. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10673. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10674. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10675. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10676. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10677. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10678. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10679. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10680. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10681. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10682. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10683. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10684. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10685. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10686. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10687. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10688. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10689. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10690. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10691. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10692. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10693. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10694. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10695. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10696. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10697. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10698. LTCC='$LTCC'
  10699. LTCFLAGS='$LTCFLAGS'
  10700. compiler='$compiler_DEFAULT'
  10701. # A function that is used when there is no print builtin or printf.
  10702. func_fallback_echo ()
  10703. {
  10704. eval 'cat <<_LTECHO_EOF
  10705. \$1
  10706. _LTECHO_EOF'
  10707. }
  10708. # Quote evaled strings.
  10709. for var in SHELL \
  10710. ECHO \
  10711. SED \
  10712. GREP \
  10713. EGREP \
  10714. FGREP \
  10715. LD \
  10716. NM \
  10717. LN_S \
  10718. lt_SP2NL \
  10719. lt_NL2SP \
  10720. reload_flag \
  10721. OBJDUMP \
  10722. deplibs_check_method \
  10723. file_magic_cmd \
  10724. AR \
  10725. AR_FLAGS \
  10726. STRIP \
  10727. RANLIB \
  10728. CC \
  10729. CFLAGS \
  10730. compiler \
  10731. lt_cv_sys_global_symbol_pipe \
  10732. lt_cv_sys_global_symbol_to_cdecl \
  10733. lt_cv_sys_global_symbol_to_c_name_address \
  10734. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10735. lt_prog_compiler_no_builtin_flag \
  10736. lt_prog_compiler_wl \
  10737. lt_prog_compiler_pic \
  10738. lt_prog_compiler_static \
  10739. lt_cv_prog_compiler_c_o \
  10740. need_locks \
  10741. DSYMUTIL \
  10742. NMEDIT \
  10743. LIPO \
  10744. OTOOL \
  10745. OTOOL64 \
  10746. shrext_cmds \
  10747. export_dynamic_flag_spec \
  10748. whole_archive_flag_spec \
  10749. compiler_needs_object \
  10750. with_gnu_ld \
  10751. allow_undefined_flag \
  10752. no_undefined_flag \
  10753. hardcode_libdir_flag_spec \
  10754. hardcode_libdir_flag_spec_ld \
  10755. hardcode_libdir_separator \
  10756. fix_srcfile_path \
  10757. exclude_expsyms \
  10758. include_expsyms \
  10759. file_list_spec \
  10760. variables_saved_for_relink \
  10761. libname_spec \
  10762. library_names_spec \
  10763. soname_spec \
  10764. install_override_mode \
  10765. finish_eval \
  10766. old_striplib \
  10767. striplib; do
  10768. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10769. *[\\\\\\\`\\"\\\$]*)
  10770. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10771. ;;
  10772. *)
  10773. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10774. ;;
  10775. esac
  10776. done
  10777. # Double-quote double-evaled strings.
  10778. for var in reload_cmds \
  10779. old_postinstall_cmds \
  10780. old_postuninstall_cmds \
  10781. old_archive_cmds \
  10782. extract_expsyms_cmds \
  10783. old_archive_from_new_cmds \
  10784. old_archive_from_expsyms_cmds \
  10785. archive_cmds \
  10786. archive_expsym_cmds \
  10787. module_cmds \
  10788. module_expsym_cmds \
  10789. export_symbols_cmds \
  10790. prelink_cmds \
  10791. postinstall_cmds \
  10792. postuninstall_cmds \
  10793. finish_cmds \
  10794. sys_lib_search_path_spec \
  10795. sys_lib_dlsearch_path_spec; do
  10796. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10797. *[\\\\\\\`\\"\\\$]*)
  10798. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10799. ;;
  10800. *)
  10801. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10802. ;;
  10803. esac
  10804. done
  10805. ac_aux_dir='$ac_aux_dir'
  10806. xsi_shell='$xsi_shell'
  10807. lt_shell_append='$lt_shell_append'
  10808. # See if we are running on zsh, and set the options which allow our
  10809. # commands through without removal of \ escapes INIT.
  10810. if test -n "\${ZSH_VERSION+set}" ; then
  10811. setopt NO_GLOB_SUBST
  10812. fi
  10813. PACKAGE='$PACKAGE'
  10814. VERSION='$VERSION'
  10815. TIMESTAMP='$TIMESTAMP'
  10816. RM='$RM'
  10817. ofile='$ofile'
  10818. _ACEOF
  10819. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10820. # Handling of arguments.
  10821. for ac_config_target in $ac_config_targets
  10822. do
  10823. case $ac_config_target in
  10824. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10825. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10826. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10827. "libmpx.spec") CONFIG_FILES="$CONFIG_FILES libmpx.spec" ;;
  10828. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10829. "mpxrt/Makefile") CONFIG_FILES="$CONFIG_FILES mpxrt/Makefile" ;;
  10830. "mpxwrap/Makefile") CONFIG_FILES="$CONFIG_FILES mpxwrap/Makefile" ;;
  10831. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10832. esac
  10833. done
  10834. # If the user did not use the arguments to specify the items to instantiate,
  10835. # then the envvar interface is used. Set only those that are not.
  10836. # We use the long form for the default assignment because of an extremely
  10837. # bizarre bug on SunOS 4.1.3.
  10838. if $ac_need_defaults; then
  10839. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10840. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10841. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10842. fi
  10843. # Have a temporary directory for convenience. Make it in the build tree
  10844. # simply because there is no reason against having it here, and in addition,
  10845. # creating and moving files from /tmp can sometimes cause problems.
  10846. # Hook for its removal unless debugging.
  10847. # Note that there is a small window in which the directory will not be cleaned:
  10848. # after its creation but before its name has been assigned to `$tmp'.
  10849. $debug ||
  10850. {
  10851. tmp=
  10852. trap 'exit_status=$?
  10853. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  10854. ' 0
  10855. trap 'as_fn_exit 1' 1 2 13 15
  10856. }
  10857. # Create a (secure) tmp directory for tmp files.
  10858. {
  10859. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10860. test -n "$tmp" && test -d "$tmp"
  10861. } ||
  10862. {
  10863. tmp=./conf$$-$RANDOM
  10864. (umask 077 && mkdir "$tmp")
  10865. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  10866. # Set up the scripts for CONFIG_FILES section.
  10867. # No need to generate them if there are no CONFIG_FILES.
  10868. # This happens for instance with `./config.status config.h'.
  10869. if test -n "$CONFIG_FILES"; then
  10870. ac_cr=`echo X | tr X '\015'`
  10871. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10872. # But we know of no other shell where ac_cr would be empty at this
  10873. # point, so we can use a bashism as a fallback.
  10874. if test "x$ac_cr" = x; then
  10875. eval ac_cr=\$\'\\r\'
  10876. fi
  10877. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10878. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10879. ac_cs_awk_cr='\r'
  10880. else
  10881. ac_cs_awk_cr=$ac_cr
  10882. fi
  10883. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  10884. _ACEOF
  10885. {
  10886. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10887. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10888. echo "_ACEOF"
  10889. } >conf$$subs.sh ||
  10890. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10891. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  10892. ac_delim='%!_!# '
  10893. for ac_last_try in false false false false false :; do
  10894. . ./conf$$subs.sh ||
  10895. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10896. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10897. if test $ac_delim_n = $ac_delim_num; then
  10898. break
  10899. elif $ac_last_try; then
  10900. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  10901. else
  10902. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10903. fi
  10904. done
  10905. rm -f conf$$subs.sh
  10906. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10907. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  10908. _ACEOF
  10909. sed -n '
  10910. h
  10911. s/^/S["/; s/!.*/"]=/
  10912. p
  10913. g
  10914. s/^[^!]*!//
  10915. :repl
  10916. t repl
  10917. s/'"$ac_delim"'$//
  10918. t delim
  10919. :nl
  10920. h
  10921. s/\(.\{148\}\).*/\1/
  10922. t more1
  10923. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10924. p
  10925. n
  10926. b repl
  10927. :more1
  10928. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10929. p
  10930. g
  10931. s/.\{148\}//
  10932. t nl
  10933. :delim
  10934. h
  10935. s/\(.\{148\}\).*/\1/
  10936. t more2
  10937. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10938. p
  10939. b
  10940. :more2
  10941. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10942. p
  10943. g
  10944. s/.\{148\}//
  10945. t delim
  10946. ' <conf$$subs.awk | sed '
  10947. /^[^""]/{
  10948. N
  10949. s/\n//
  10950. }
  10951. ' >>$CONFIG_STATUS || ac_write_fail=1
  10952. rm -f conf$$subs.awk
  10953. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10954. _ACAWK
  10955. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  10956. for (key in S) S_is_set[key] = 1
  10957. FS = ""
  10958. }
  10959. {
  10960. line = $ 0
  10961. nfields = split(line, field, "@")
  10962. substed = 0
  10963. len = length(field[1])
  10964. for (i = 2; i < nfields; i++) {
  10965. key = field[i]
  10966. keylen = length(key)
  10967. if (S_is_set[key]) {
  10968. value = S[key]
  10969. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10970. len += length(value) + length(field[++i])
  10971. substed = 1
  10972. } else
  10973. len += 1 + keylen
  10974. }
  10975. print line
  10976. }
  10977. _ACAWK
  10978. _ACEOF
  10979. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10980. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10981. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10982. else
  10983. cat
  10984. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  10985. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  10986. _ACEOF
  10987. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10988. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10989. # trailing colons and then remove the whole line if VPATH becomes empty
  10990. # (actually we leave an empty line to preserve line numbers).
  10991. if test "x$srcdir" = x.; then
  10992. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10993. s/:*\$(srcdir):*/:/
  10994. s/:*\${srcdir}:*/:/
  10995. s/:*@srcdir@:*/:/
  10996. s/^\([^=]*=[ ]*\):*/\1/
  10997. s/:*$//
  10998. s/^[^=]*=[ ]*$//
  10999. }'
  11000. fi
  11001. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11002. fi # test -n "$CONFIG_FILES"
  11003. # Set up the scripts for CONFIG_HEADERS section.
  11004. # No need to generate them if there are no CONFIG_HEADERS.
  11005. # This happens for instance with `./config.status Makefile'.
  11006. if test -n "$CONFIG_HEADERS"; then
  11007. cat >"$tmp/defines.awk" <<\_ACAWK ||
  11008. BEGIN {
  11009. _ACEOF
  11010. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11011. # here-document in config.status, that substitutes the proper values into
  11012. # config.h.in to produce config.h.
  11013. # Create a delimiter string that does not exist in confdefs.h, to ease
  11014. # handling of long lines.
  11015. ac_delim='%!_!# '
  11016. for ac_last_try in false false :; do
  11017. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  11018. if test -z "$ac_t"; then
  11019. break
  11020. elif $ac_last_try; then
  11021. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  11022. else
  11023. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11024. fi
  11025. done
  11026. # For the awk script, D is an array of macro values keyed by name,
  11027. # likewise P contains macro parameters if any. Preserve backslash
  11028. # newline sequences.
  11029. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11030. sed -n '
  11031. s/.\{148\}/&'"$ac_delim"'/g
  11032. t rset
  11033. :rset
  11034. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11035. t def
  11036. d
  11037. :def
  11038. s/\\$//
  11039. t bsnl
  11040. s/["\\]/\\&/g
  11041. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11042. D["\1"]=" \3"/p
  11043. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11044. d
  11045. :bsnl
  11046. s/["\\]/\\&/g
  11047. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11048. D["\1"]=" \3\\\\\\n"\\/p
  11049. t cont
  11050. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11051. t cont
  11052. d
  11053. :cont
  11054. n
  11055. s/.\{148\}/&'"$ac_delim"'/g
  11056. t clear
  11057. :clear
  11058. s/\\$//
  11059. t bsnlc
  11060. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11061. d
  11062. :bsnlc
  11063. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11064. b cont
  11065. ' <confdefs.h | sed '
  11066. s/'"$ac_delim"'/"\\\
  11067. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11068. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11069. for (key in D) D_is_set[key] = 1
  11070. FS = ""
  11071. }
  11072. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11073. line = \$ 0
  11074. split(line, arg, " ")
  11075. if (arg[1] == "#") {
  11076. defundef = arg[2]
  11077. mac1 = arg[3]
  11078. } else {
  11079. defundef = substr(arg[1], 2)
  11080. mac1 = arg[2]
  11081. }
  11082. split(mac1, mac2, "(") #)
  11083. macro = mac2[1]
  11084. prefix = substr(line, 1, index(line, defundef) - 1)
  11085. if (D_is_set[macro]) {
  11086. # Preserve the white space surrounding the "#".
  11087. print prefix "define", macro P[macro] D[macro]
  11088. next
  11089. } else {
  11090. # Replace #undef with comments. This is necessary, for example,
  11091. # in the case of _POSIX_SOURCE, which is predefined and required
  11092. # on some systems where configure will not decide to define it.
  11093. if (defundef == "undef") {
  11094. print "/*", prefix defundef, macro, "*/"
  11095. next
  11096. }
  11097. }
  11098. }
  11099. { print }
  11100. _ACAWK
  11101. _ACEOF
  11102. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11103. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  11104. fi # test -n "$CONFIG_HEADERS"
  11105. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11106. shift
  11107. for ac_tag
  11108. do
  11109. case $ac_tag in
  11110. :[FHLC]) ac_mode=$ac_tag; continue;;
  11111. esac
  11112. case $ac_mode$ac_tag in
  11113. :[FHL]*:*);;
  11114. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11115. :[FH]-) ac_tag=-:-;;
  11116. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11117. esac
  11118. ac_save_IFS=$IFS
  11119. IFS=:
  11120. set x $ac_tag
  11121. IFS=$ac_save_IFS
  11122. shift
  11123. ac_file=$1
  11124. shift
  11125. case $ac_mode in
  11126. :L) ac_source=$1;;
  11127. :[FH])
  11128. ac_file_inputs=
  11129. for ac_f
  11130. do
  11131. case $ac_f in
  11132. -) ac_f="$tmp/stdin";;
  11133. *) # Look for the file first in the build tree, then in the source tree
  11134. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11135. # because $ac_f cannot contain `:'.
  11136. test -f "$ac_f" ||
  11137. case $ac_f in
  11138. [\\/$]*) false;;
  11139. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11140. esac ||
  11141. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11142. esac
  11143. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11144. as_fn_append ac_file_inputs " '$ac_f'"
  11145. done
  11146. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11147. # use $as_me), people would be surprised to read:
  11148. # /* config.h. Generated by config.status. */
  11149. configure_input='Generated from '`
  11150. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11151. `' by configure.'
  11152. if test x"$ac_file" != x-; then
  11153. configure_input="$ac_file. $configure_input"
  11154. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11155. $as_echo "$as_me: creating $ac_file" >&6;}
  11156. fi
  11157. # Neutralize special characters interpreted by sed in replacement strings.
  11158. case $configure_input in #(
  11159. *\&* | *\|* | *\\* )
  11160. ac_sed_conf_input=`$as_echo "$configure_input" |
  11161. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11162. *) ac_sed_conf_input=$configure_input;;
  11163. esac
  11164. case $ac_tag in
  11165. *:-:* | *:-) cat >"$tmp/stdin" \
  11166. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  11167. esac
  11168. ;;
  11169. esac
  11170. ac_dir=`$as_dirname -- "$ac_file" ||
  11171. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11172. X"$ac_file" : 'X\(//\)[^/]' \| \
  11173. X"$ac_file" : 'X\(//\)$' \| \
  11174. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11175. $as_echo X"$ac_file" |
  11176. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11177. s//\1/
  11178. q
  11179. }
  11180. /^X\(\/\/\)[^/].*/{
  11181. s//\1/
  11182. q
  11183. }
  11184. /^X\(\/\/\)$/{
  11185. s//\1/
  11186. q
  11187. }
  11188. /^X\(\/\).*/{
  11189. s//\1/
  11190. q
  11191. }
  11192. s/.*/./; q'`
  11193. as_dir="$ac_dir"; as_fn_mkdir_p
  11194. ac_builddir=.
  11195. case "$ac_dir" in
  11196. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11197. *)
  11198. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11199. # A ".." for each directory in $ac_dir_suffix.
  11200. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11201. case $ac_top_builddir_sub in
  11202. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11203. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11204. esac ;;
  11205. esac
  11206. ac_abs_top_builddir=$ac_pwd
  11207. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11208. # for backward compatibility:
  11209. ac_top_builddir=$ac_top_build_prefix
  11210. case $srcdir in
  11211. .) # We are building in place.
  11212. ac_srcdir=.
  11213. ac_top_srcdir=$ac_top_builddir_sub
  11214. ac_abs_top_srcdir=$ac_pwd ;;
  11215. [\\/]* | ?:[\\/]* ) # Absolute name.
  11216. ac_srcdir=$srcdir$ac_dir_suffix;
  11217. ac_top_srcdir=$srcdir
  11218. ac_abs_top_srcdir=$srcdir ;;
  11219. *) # Relative name.
  11220. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11221. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11222. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11223. esac
  11224. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11225. case $ac_mode in
  11226. :F)
  11227. #
  11228. # CONFIG_FILE
  11229. #
  11230. case $INSTALL in
  11231. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11232. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11233. esac
  11234. ac_MKDIR_P=$MKDIR_P
  11235. case $MKDIR_P in
  11236. [\\/$]* | ?:[\\/]* ) ;;
  11237. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11238. esac
  11239. _ACEOF
  11240. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11241. # If the template does not know about datarootdir, expand it.
  11242. # FIXME: This hack should be removed a few years after 2.60.
  11243. ac_datarootdir_hack=; ac_datarootdir_seen=
  11244. ac_sed_dataroot='
  11245. /datarootdir/ {
  11246. p
  11247. q
  11248. }
  11249. /@datadir@/p
  11250. /@docdir@/p
  11251. /@infodir@/p
  11252. /@localedir@/p
  11253. /@mandir@/p'
  11254. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11255. *datarootdir*) ac_datarootdir_seen=yes;;
  11256. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11257. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11258. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11259. _ACEOF
  11260. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11261. ac_datarootdir_hack='
  11262. s&@datadir@&$datadir&g
  11263. s&@docdir@&$docdir&g
  11264. s&@infodir@&$infodir&g
  11265. s&@localedir@&$localedir&g
  11266. s&@mandir@&$mandir&g
  11267. s&\\\${datarootdir}&$datarootdir&g' ;;
  11268. esac
  11269. _ACEOF
  11270. # Neutralize VPATH when `$srcdir' = `.'.
  11271. # Shell code in configure.ac might set extrasub.
  11272. # FIXME: do we really want to maintain this feature?
  11273. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11274. ac_sed_extra="$ac_vpsub
  11275. $extrasub
  11276. _ACEOF
  11277. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11278. :t
  11279. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11280. s|@configure_input@|$ac_sed_conf_input|;t t
  11281. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11282. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11283. s&@srcdir@&$ac_srcdir&;t t
  11284. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11285. s&@top_srcdir@&$ac_top_srcdir&;t t
  11286. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11287. s&@builddir@&$ac_builddir&;t t
  11288. s&@abs_builddir@&$ac_abs_builddir&;t t
  11289. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11290. s&@INSTALL@&$ac_INSTALL&;t t
  11291. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11292. $ac_datarootdir_hack
  11293. "
  11294. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  11295. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11296. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11297. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  11298. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  11299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11300. which seems to be undefined. Please make sure it is defined." >&5
  11301. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11302. which seems to be undefined. Please make sure it is defined." >&2;}
  11303. rm -f "$tmp/stdin"
  11304. case $ac_file in
  11305. -) cat "$tmp/out" && rm -f "$tmp/out";;
  11306. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  11307. esac \
  11308. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11309. ;;
  11310. :H)
  11311. #
  11312. # CONFIG_HEADER
  11313. #
  11314. if test x"$ac_file" != x-; then
  11315. {
  11316. $as_echo "/* $configure_input */" \
  11317. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  11318. } >"$tmp/config.h" \
  11319. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11320. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  11321. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11322. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11323. else
  11324. rm -f "$ac_file"
  11325. mv "$tmp/config.h" "$ac_file" \
  11326. || as_fn_error "could not create $ac_file" "$LINENO" 5
  11327. fi
  11328. else
  11329. $as_echo "/* $configure_input */" \
  11330. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  11331. || as_fn_error "could not create -" "$LINENO" 5
  11332. fi
  11333. # Compute "$ac_file"'s index in $config_headers.
  11334. _am_arg="$ac_file"
  11335. _am_stamp_count=1
  11336. for _am_header in $config_headers :; do
  11337. case $_am_header in
  11338. $_am_arg | $_am_arg:* )
  11339. break ;;
  11340. * )
  11341. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11342. esac
  11343. done
  11344. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11345. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11346. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11347. X"$_am_arg" : 'X\(//\)$' \| \
  11348. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11349. $as_echo X"$_am_arg" |
  11350. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11351. s//\1/
  11352. q
  11353. }
  11354. /^X\(\/\/\)[^/].*/{
  11355. s//\1/
  11356. q
  11357. }
  11358. /^X\(\/\/\)$/{
  11359. s//\1/
  11360. q
  11361. }
  11362. /^X\(\/\).*/{
  11363. s//\1/
  11364. q
  11365. }
  11366. s/.*/./; q'`/stamp-h$_am_stamp_count
  11367. ;;
  11368. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11369. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11370. ;;
  11371. esac
  11372. case $ac_file$ac_mode in
  11373. "default-1":C)
  11374. # Only add multilib support code if we just rebuilt the top-level
  11375. # Makefile.
  11376. case " $CONFIG_FILES " in
  11377. *" Makefile "*)
  11378. ac_file=Makefile . ${multi_basedir}/config-ml.in
  11379. ;;
  11380. esac ;;
  11381. "libtool":C)
  11382. # See if we are running on zsh, and set the options which allow our
  11383. # commands through without removal of \ escapes.
  11384. if test -n "${ZSH_VERSION+set}" ; then
  11385. setopt NO_GLOB_SUBST
  11386. fi
  11387. cfgfile="${ofile}T"
  11388. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11389. $RM "$cfgfile"
  11390. cat <<_LT_EOF >> "$cfgfile"
  11391. #! $SHELL
  11392. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11393. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11394. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11395. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11396. #
  11397. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11398. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  11399. # Written by Gordon Matzigkeit, 1996
  11400. #
  11401. # This file is part of GNU Libtool.
  11402. #
  11403. # GNU Libtool is free software; you can redistribute it and/or
  11404. # modify it under the terms of the GNU General Public License as
  11405. # published by the Free Software Foundation; either version 2 of
  11406. # the License, or (at your option) any later version.
  11407. #
  11408. # As a special exception to the GNU General Public License,
  11409. # if you distribute this file as part of a program or library that
  11410. # is built using GNU Libtool, you may include this file under the
  11411. # same distribution terms that you use for the rest of that program.
  11412. #
  11413. # GNU Libtool is distributed in the hope that it will be useful,
  11414. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11415. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11416. # GNU General Public License for more details.
  11417. #
  11418. # You should have received a copy of the GNU General Public License
  11419. # along with GNU Libtool; see the file COPYING. If not, a copy
  11420. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11421. # obtained by writing to the Free Software Foundation, Inc.,
  11422. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11423. # The names of the tagged configurations supported by this script.
  11424. available_tags=""
  11425. # ### BEGIN LIBTOOL CONFIG
  11426. # Which release of libtool.m4 was used?
  11427. macro_version=$macro_version
  11428. macro_revision=$macro_revision
  11429. # Whether or not to build shared libraries.
  11430. build_libtool_libs=$enable_shared
  11431. # Whether or not to build static libraries.
  11432. build_old_libs=$enable_static
  11433. # What type of objects to build.
  11434. pic_mode=$pic_mode
  11435. # Whether or not to optimize for fast installation.
  11436. fast_install=$enable_fast_install
  11437. # Shell to use when invoking shell scripts.
  11438. SHELL=$lt_SHELL
  11439. # An echo program that protects backslashes.
  11440. ECHO=$lt_ECHO
  11441. # The host system.
  11442. host_alias=$host_alias
  11443. host=$host
  11444. host_os=$host_os
  11445. # The build system.
  11446. build_alias=$build_alias
  11447. build=$build
  11448. build_os=$build_os
  11449. # A sed program that does not truncate output.
  11450. SED=$lt_SED
  11451. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11452. Xsed="\$SED -e 1s/^X//"
  11453. # A grep program that handles long lines.
  11454. GREP=$lt_GREP
  11455. # An ERE matcher.
  11456. EGREP=$lt_EGREP
  11457. # A literal string matcher.
  11458. FGREP=$lt_FGREP
  11459. # A BSD- or MS-compatible name lister.
  11460. NM=$lt_NM
  11461. # Whether we need soft or hard links.
  11462. LN_S=$lt_LN_S
  11463. # What is the maximum length of a command?
  11464. max_cmd_len=$max_cmd_len
  11465. # Object file suffix (normally "o").
  11466. objext=$ac_objext
  11467. # Executable file suffix (normally "").
  11468. exeext=$exeext
  11469. # whether the shell understands "unset".
  11470. lt_unset=$lt_unset
  11471. # turn spaces into newlines.
  11472. SP2NL=$lt_lt_SP2NL
  11473. # turn newlines into spaces.
  11474. NL2SP=$lt_lt_NL2SP
  11475. # An object symbol dumper.
  11476. OBJDUMP=$lt_OBJDUMP
  11477. # Method to check whether dependent libraries are shared objects.
  11478. deplibs_check_method=$lt_deplibs_check_method
  11479. # Command to use when deplibs_check_method == "file_magic".
  11480. file_magic_cmd=$lt_file_magic_cmd
  11481. # The archiver.
  11482. AR=$lt_AR
  11483. AR_FLAGS=$lt_AR_FLAGS
  11484. # A symbol stripping program.
  11485. STRIP=$lt_STRIP
  11486. # Commands used to install an old-style archive.
  11487. RANLIB=$lt_RANLIB
  11488. old_postinstall_cmds=$lt_old_postinstall_cmds
  11489. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11490. # Whether to use a lock for old archive extraction.
  11491. lock_old_archive_extraction=$lock_old_archive_extraction
  11492. # A C compiler.
  11493. LTCC=$lt_CC
  11494. # LTCC compiler flags.
  11495. LTCFLAGS=$lt_CFLAGS
  11496. # Take the output of nm and produce a listing of raw symbols and C names.
  11497. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11498. # Transform the output of nm in a proper C declaration.
  11499. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11500. # Transform the output of nm in a C name address pair.
  11501. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11502. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11503. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11504. # The name of the directory that contains temporary libtool files.
  11505. objdir=$objdir
  11506. # Used to examine libraries when file_magic_cmd begins with "file".
  11507. MAGIC_CMD=$MAGIC_CMD
  11508. # Must we lock files when doing compilation?
  11509. need_locks=$lt_need_locks
  11510. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11511. DSYMUTIL=$lt_DSYMUTIL
  11512. # Tool to change global to local symbols on Mac OS X.
  11513. NMEDIT=$lt_NMEDIT
  11514. # Tool to manipulate fat objects and archives on Mac OS X.
  11515. LIPO=$lt_LIPO
  11516. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11517. OTOOL=$lt_OTOOL
  11518. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11519. OTOOL64=$lt_OTOOL64
  11520. # Old archive suffix (normally "a").
  11521. libext=$libext
  11522. # Shared library suffix (normally ".so").
  11523. shrext_cmds=$lt_shrext_cmds
  11524. # The commands to extract the exported symbol list from a shared archive.
  11525. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11526. # Variables whose values should be saved in libtool wrapper scripts and
  11527. # restored at link time.
  11528. variables_saved_for_relink=$lt_variables_saved_for_relink
  11529. # Do we need the "lib" prefix for modules?
  11530. need_lib_prefix=$need_lib_prefix
  11531. # Do we need a version for libraries?
  11532. need_version=$need_version
  11533. # Library versioning type.
  11534. version_type=$version_type
  11535. # Shared library runtime path variable.
  11536. runpath_var=$runpath_var
  11537. # Shared library path variable.
  11538. shlibpath_var=$shlibpath_var
  11539. # Is shlibpath searched before the hard-coded library search path?
  11540. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11541. # Format of library name prefix.
  11542. libname_spec=$lt_libname_spec
  11543. # List of archive names. First name is the real one, the rest are links.
  11544. # The last name is the one that the linker finds with -lNAME
  11545. library_names_spec=$lt_library_names_spec
  11546. # The coded name of the library, if different from the real name.
  11547. soname_spec=$lt_soname_spec
  11548. # Permission mode override for installation of shared libraries.
  11549. install_override_mode=$lt_install_override_mode
  11550. # Command to use after installation of a shared archive.
  11551. postinstall_cmds=$lt_postinstall_cmds
  11552. # Command to use after uninstallation of a shared archive.
  11553. postuninstall_cmds=$lt_postuninstall_cmds
  11554. # Commands used to finish a libtool library installation in a directory.
  11555. finish_cmds=$lt_finish_cmds
  11556. # As "finish_cmds", except a single script fragment to be evaled but
  11557. # not shown.
  11558. finish_eval=$lt_finish_eval
  11559. # Whether we should hardcode library paths into libraries.
  11560. hardcode_into_libs=$hardcode_into_libs
  11561. # Compile-time system search path for libraries.
  11562. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11563. # Run-time system search path for libraries.
  11564. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11565. # Whether dlopen is supported.
  11566. dlopen_support=$enable_dlopen
  11567. # Whether dlopen of programs is supported.
  11568. dlopen_self=$enable_dlopen_self
  11569. # Whether dlopen of statically linked programs is supported.
  11570. dlopen_self_static=$enable_dlopen_self_static
  11571. # Commands to strip libraries.
  11572. old_striplib=$lt_old_striplib
  11573. striplib=$lt_striplib
  11574. # The linker used to build libraries.
  11575. LD=$lt_LD
  11576. # How to create reloadable object files.
  11577. reload_flag=$lt_reload_flag
  11578. reload_cmds=$lt_reload_cmds
  11579. # Commands used to build an old-style archive.
  11580. old_archive_cmds=$lt_old_archive_cmds
  11581. # A language specific compiler.
  11582. CC=$lt_compiler
  11583. # Is the compiler the GNU compiler?
  11584. with_gcc=$GCC
  11585. # Compiler flag to turn off builtin functions.
  11586. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11587. # How to pass a linker flag through the compiler.
  11588. wl=$lt_lt_prog_compiler_wl
  11589. # Additional compiler flags for building library objects.
  11590. pic_flag=$lt_lt_prog_compiler_pic
  11591. # Compiler flag to prevent dynamic linking.
  11592. link_static_flag=$lt_lt_prog_compiler_static
  11593. # Does compiler simultaneously support -c and -o options?
  11594. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11595. # Whether or not to add -lc for building shared libraries.
  11596. build_libtool_need_lc=$archive_cmds_need_lc
  11597. # Whether or not to disallow shared libs when runtime libs are static.
  11598. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11599. # Compiler flag to allow reflexive dlopens.
  11600. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11601. # Compiler flag to generate shared objects directly from archives.
  11602. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11603. # Whether the compiler copes with passing no objects directly.
  11604. compiler_needs_object=$lt_compiler_needs_object
  11605. # Create an old-style archive from a shared archive.
  11606. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11607. # Create a temporary old-style archive to link instead of a shared archive.
  11608. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11609. # Commands used to build a shared archive.
  11610. archive_cmds=$lt_archive_cmds
  11611. archive_expsym_cmds=$lt_archive_expsym_cmds
  11612. # Commands used to build a loadable module if different from building
  11613. # a shared archive.
  11614. module_cmds=$lt_module_cmds
  11615. module_expsym_cmds=$lt_module_expsym_cmds
  11616. # Whether we are building with GNU ld or not.
  11617. with_gnu_ld=$lt_with_gnu_ld
  11618. # Flag that allows shared libraries with undefined symbols to be built.
  11619. allow_undefined_flag=$lt_allow_undefined_flag
  11620. # Flag that enforces no undefined symbols.
  11621. no_undefined_flag=$lt_no_undefined_flag
  11622. # Flag to hardcode \$libdir into a binary during linking.
  11623. # This must work even if \$libdir does not exist
  11624. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11625. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11626. # during linking. This must work even if \$libdir does not exist.
  11627. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11628. # Whether we need a single "-rpath" flag with a separated argument.
  11629. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11630. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11631. # DIR into the resulting binary.
  11632. hardcode_direct=$hardcode_direct
  11633. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11634. # DIR into the resulting binary and the resulting library dependency is
  11635. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11636. # library is relocated.
  11637. hardcode_direct_absolute=$hardcode_direct_absolute
  11638. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11639. # into the resulting binary.
  11640. hardcode_minus_L=$hardcode_minus_L
  11641. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11642. # into the resulting binary.
  11643. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11644. # Set to "yes" if building a shared library automatically hardcodes DIR
  11645. # into the library and all subsequent libraries and executables linked
  11646. # against it.
  11647. hardcode_automatic=$hardcode_automatic
  11648. # Set to yes if linker adds runtime paths of dependent libraries
  11649. # to runtime path list.
  11650. inherit_rpath=$inherit_rpath
  11651. # Whether libtool must link a program against all its dependency libraries.
  11652. link_all_deplibs=$link_all_deplibs
  11653. # Fix the shell variable \$srcfile for the compiler.
  11654. fix_srcfile_path=$lt_fix_srcfile_path
  11655. # Set to "yes" if exported symbols are required.
  11656. always_export_symbols=$always_export_symbols
  11657. # The commands to list exported symbols.
  11658. export_symbols_cmds=$lt_export_symbols_cmds
  11659. # Symbols that should not be listed in the preloaded symbols.
  11660. exclude_expsyms=$lt_exclude_expsyms
  11661. # Symbols that must always be exported.
  11662. include_expsyms=$lt_include_expsyms
  11663. # Commands necessary for linking programs (against libraries) with templates.
  11664. prelink_cmds=$lt_prelink_cmds
  11665. # Specify filename containing input files.
  11666. file_list_spec=$lt_file_list_spec
  11667. # How to hardcode a shared library path into an executable.
  11668. hardcode_action=$hardcode_action
  11669. # ### END LIBTOOL CONFIG
  11670. _LT_EOF
  11671. case $host_os in
  11672. aix3*)
  11673. cat <<\_LT_EOF >> "$cfgfile"
  11674. # AIX sometimes has problems with the GCC collect2 program. For some
  11675. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11676. # vanish in a puff of smoke.
  11677. if test "X${COLLECT_NAMES+set}" != Xset; then
  11678. COLLECT_NAMES=
  11679. export COLLECT_NAMES
  11680. fi
  11681. _LT_EOF
  11682. ;;
  11683. esac
  11684. ltmain="$ac_aux_dir/ltmain.sh"
  11685. # We use sed instead of cat because bash on DJGPP gets confused if
  11686. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11687. # text mode, it properly converts lines to CR/LF. This bash problem
  11688. # is reportedly fixed, but why not run on old versions too?
  11689. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11690. || (rm -f "$cfgfile"; exit 1)
  11691. case $xsi_shell in
  11692. yes)
  11693. cat << \_LT_EOF >> "$cfgfile"
  11694. # func_dirname file append nondir_replacement
  11695. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11696. # otherwise set result to NONDIR_REPLACEMENT.
  11697. func_dirname ()
  11698. {
  11699. case ${1} in
  11700. */*) func_dirname_result="${1%/*}${2}" ;;
  11701. * ) func_dirname_result="${3}" ;;
  11702. esac
  11703. }
  11704. # func_basename file
  11705. func_basename ()
  11706. {
  11707. func_basename_result="${1##*/}"
  11708. }
  11709. # func_dirname_and_basename file append nondir_replacement
  11710. # perform func_basename and func_dirname in a single function
  11711. # call:
  11712. # dirname: Compute the dirname of FILE. If nonempty,
  11713. # add APPEND to the result, otherwise set result
  11714. # to NONDIR_REPLACEMENT.
  11715. # value returned in "$func_dirname_result"
  11716. # basename: Compute filename of FILE.
  11717. # value retuned in "$func_basename_result"
  11718. # Implementation must be kept synchronized with func_dirname
  11719. # and func_basename. For efficiency, we do not delegate to
  11720. # those functions but instead duplicate the functionality here.
  11721. func_dirname_and_basename ()
  11722. {
  11723. case ${1} in
  11724. */*) func_dirname_result="${1%/*}${2}" ;;
  11725. * ) func_dirname_result="${3}" ;;
  11726. esac
  11727. func_basename_result="${1##*/}"
  11728. }
  11729. # func_stripname prefix suffix name
  11730. # strip PREFIX and SUFFIX off of NAME.
  11731. # PREFIX and SUFFIX must not contain globbing or regex special
  11732. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11733. # dot (in which case that matches only a dot).
  11734. func_stripname ()
  11735. {
  11736. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11737. # positional parameters, so assign one to ordinary parameter first.
  11738. func_stripname_result=${3}
  11739. func_stripname_result=${func_stripname_result#"${1}"}
  11740. func_stripname_result=${func_stripname_result%"${2}"}
  11741. }
  11742. # func_opt_split
  11743. func_opt_split ()
  11744. {
  11745. func_opt_split_opt=${1%%=*}
  11746. func_opt_split_arg=${1#*=}
  11747. }
  11748. # func_lo2o object
  11749. func_lo2o ()
  11750. {
  11751. case ${1} in
  11752. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11753. *) func_lo2o_result=${1} ;;
  11754. esac
  11755. }
  11756. # func_xform libobj-or-source
  11757. func_xform ()
  11758. {
  11759. func_xform_result=${1%.*}.lo
  11760. }
  11761. # func_arith arithmetic-term...
  11762. func_arith ()
  11763. {
  11764. func_arith_result=$(( $* ))
  11765. }
  11766. # func_len string
  11767. # STRING may not start with a hyphen.
  11768. func_len ()
  11769. {
  11770. func_len_result=${#1}
  11771. }
  11772. _LT_EOF
  11773. ;;
  11774. *) # Bourne compatible functions.
  11775. cat << \_LT_EOF >> "$cfgfile"
  11776. # func_dirname file append nondir_replacement
  11777. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11778. # otherwise set result to NONDIR_REPLACEMENT.
  11779. func_dirname ()
  11780. {
  11781. # Extract subdirectory from the argument.
  11782. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  11783. if test "X$func_dirname_result" = "X${1}"; then
  11784. func_dirname_result="${3}"
  11785. else
  11786. func_dirname_result="$func_dirname_result${2}"
  11787. fi
  11788. }
  11789. # func_basename file
  11790. func_basename ()
  11791. {
  11792. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  11793. }
  11794. # func_stripname prefix suffix name
  11795. # strip PREFIX and SUFFIX off of NAME.
  11796. # PREFIX and SUFFIX must not contain globbing or regex special
  11797. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11798. # dot (in which case that matches only a dot).
  11799. # func_strip_suffix prefix name
  11800. func_stripname ()
  11801. {
  11802. case ${2} in
  11803. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  11804. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  11805. esac
  11806. }
  11807. # sed scripts:
  11808. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11809. my_sed_long_arg='1s/^-[^=]*=//'
  11810. # func_opt_split
  11811. func_opt_split ()
  11812. {
  11813. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  11814. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  11815. }
  11816. # func_lo2o object
  11817. func_lo2o ()
  11818. {
  11819. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  11820. }
  11821. # func_xform libobj-or-source
  11822. func_xform ()
  11823. {
  11824. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  11825. }
  11826. # func_arith arithmetic-term...
  11827. func_arith ()
  11828. {
  11829. func_arith_result=`expr "$@"`
  11830. }
  11831. # func_len string
  11832. # STRING may not start with a hyphen.
  11833. func_len ()
  11834. {
  11835. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11836. }
  11837. _LT_EOF
  11838. esac
  11839. case $lt_shell_append in
  11840. yes)
  11841. cat << \_LT_EOF >> "$cfgfile"
  11842. # func_append var value
  11843. # Append VALUE to the end of shell variable VAR.
  11844. func_append ()
  11845. {
  11846. eval "$1+=\$2"
  11847. }
  11848. _LT_EOF
  11849. ;;
  11850. *)
  11851. cat << \_LT_EOF >> "$cfgfile"
  11852. # func_append var value
  11853. # Append VALUE to the end of shell variable VAR.
  11854. func_append ()
  11855. {
  11856. eval "$1=\$$1\$2"
  11857. }
  11858. _LT_EOF
  11859. ;;
  11860. esac
  11861. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11862. || (rm -f "$cfgfile"; exit 1)
  11863. mv -f "$cfgfile" "$ofile" ||
  11864. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11865. chmod +x "$ofile"
  11866. ;;
  11867. "mpxrt/Makefile":F) cat > vpsed$$ << \_EOF
  11868. s!`test -f '$<' || echo '$(srcdir)/'`!!
  11869. _EOF
  11870. sed -f vpsed$$ $ac_file > tmp$$
  11871. mv tmp$$ $ac_file
  11872. rm vpsed$$
  11873. echo 'MULTISUBDIR =' >> $ac_file
  11874. ml_norecursion=yes
  11875. . ${multi_basedir}/config-ml.in
  11876. { ml_norecursion=; unset ml_norecursion;}
  11877. ;;
  11878. "mpxwrap/Makefile":F) cat > vpsed$$ << \_EOF
  11879. s!`test -f '$<' || echo '$(srcdir)/'`!!
  11880. _EOF
  11881. sed -f vpsed$$ $ac_file > tmp$$
  11882. mv tmp$$ $ac_file
  11883. rm vpsed$$
  11884. echo 'MULTISUBDIR =' >> $ac_file
  11885. ml_norecursion=yes
  11886. . ${multi_basedir}/config-ml.in
  11887. { ml_norecursion=; unset ml_norecursion;}
  11888. ;;
  11889. esac
  11890. done # for ac_tag
  11891. as_fn_exit 0
  11892. _ACEOF
  11893. ac_clean_files=$ac_clean_files_save
  11894. test $ac_write_fail = 0 ||
  11895. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11896. # configure is writing to config.log, and then calls config.status.
  11897. # config.status does its own redirection, appending to config.log.
  11898. # Unfortunately, on DOS this fails, as config.log is still kept open
  11899. # by configure, so config.status won't be able to write to it; its
  11900. # output is simply discarded. So we exec the FD to /dev/null,
  11901. # effectively closing config.log, so it can be properly (re)opened and
  11902. # appended to by config.status. When coming back to configure, we
  11903. # need to make the FD available again.
  11904. if test "$no_create" != yes; then
  11905. ac_cs_success=:
  11906. ac_config_status_args=
  11907. test "$silent" = yes &&
  11908. ac_config_status_args="$ac_config_status_args --quiet"
  11909. exec 5>/dev/null
  11910. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11911. exec 5>>config.log
  11912. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11913. # would make configure fail if this is the last instruction.
  11914. $ac_cs_success || as_fn_exit $?
  11915. fi
  11916. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11917. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11918. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11919. fi