configure 477 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for gas 2.25.51.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1
  159. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  160. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. PATH=/empty FPATH=/empty; export PATH FPATH
  164. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  165. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='gas'
  509. PACKAGE_TARNAME='gas'
  510. PACKAGE_VERSION='2.25.51'
  511. PACKAGE_STRING='gas 2.25.51'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. ac_unique_file="as.h"
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. zlibinc
  555. zlibdir
  556. LIBM
  557. ALLOCA
  558. GENINSRC_NEVER_FALSE
  559. GENINSRC_NEVER_TRUE
  560. MAINT
  561. MAINTAINER_MODE_FALSE
  562. MAINTAINER_MODE_TRUE
  563. MSGMERGE
  564. MSGFMT
  565. MKINSTALLDIRS
  566. CATOBJEXT
  567. GENCAT
  568. INSTOBJEXT
  569. DATADIRNAME
  570. CATALOGS
  571. POSUB
  572. GMSGFMT
  573. XGETTEXT
  574. INCINTL
  575. LIBINTL_DEP
  576. LIBINTL
  577. USE_NLS
  578. LEXLIB
  579. LEX_OUTPUT_ROOT
  580. LEX
  581. YFLAGS
  582. YACC
  583. OPCODES_LIB
  584. atof
  585. install_tooldir
  586. te_file
  587. obj_format
  588. target_cpu_type
  589. extra_objects
  590. cgen_cpu_prefix
  591. GDBINIT
  592. NO_WERROR
  593. WARN_CFLAGS
  594. OTOOL64
  595. OTOOL
  596. LIPO
  597. NMEDIT
  598. DSYMUTIL
  599. RANLIB
  600. AR
  601. OBJDUMP
  602. LN_S
  603. NM
  604. ac_ct_DUMPBIN
  605. DUMPBIN
  606. LD
  607. FGREP
  608. SED
  609. LIBTOOL
  610. EGREP
  611. GREP
  612. CPP
  613. am__fastdepCC_FALSE
  614. am__fastdepCC_TRUE
  615. CCDEPMODE
  616. AMDEPBACKSLASH
  617. AMDEP_FALSE
  618. AMDEP_TRUE
  619. am__quote
  620. am__include
  621. DEPDIR
  622. am__untar
  623. am__tar
  624. AMTAR
  625. am__leading_dot
  626. SET_MAKE
  627. AWK
  628. mkdir_p
  629. MKDIR_P
  630. INSTALL_STRIP_PROGRAM
  631. STRIP
  632. install_sh
  633. MAKEINFO
  634. AUTOHEADER
  635. AUTOMAKE
  636. AUTOCONF
  637. ACLOCAL
  638. VERSION
  639. PACKAGE
  640. CYGPATH_W
  641. am__isrc
  642. INSTALL_DATA
  643. INSTALL_SCRIPT
  644. INSTALL_PROGRAM
  645. OBJEXT
  646. EXEEXT
  647. ac_ct_CC
  648. CPPFLAGS
  649. LDFLAGS
  650. CFLAGS
  651. CC
  652. target_os
  653. target_vendor
  654. target_cpu
  655. target
  656. host_os
  657. host_vendor
  658. host_cpu
  659. host
  660. build_os
  661. build_vendor
  662. build_cpu
  663. build
  664. target_alias
  665. host_alias
  666. build_alias
  667. LIBS
  668. ECHO_T
  669. ECHO_N
  670. ECHO_C
  671. DEFS
  672. mandir
  673. localedir
  674. libdir
  675. psdir
  676. pdfdir
  677. dvidir
  678. htmldir
  679. infodir
  680. docdir
  681. oldincludedir
  682. includedir
  683. localstatedir
  684. sharedstatedir
  685. sysconfdir
  686. datadir
  687. datarootdir
  688. libexecdir
  689. sbindir
  690. bindir
  691. program_transform_name
  692. prefix
  693. exec_prefix
  694. PACKAGE_URL
  695. PACKAGE_BUGREPORT
  696. PACKAGE_STRING
  697. PACKAGE_VERSION
  698. PACKAGE_TARNAME
  699. PACKAGE_NAME
  700. PATH_SEPARATOR
  701. SHELL'
  702. ac_subst_files=''
  703. ac_user_opts='
  704. enable_option_checking
  705. enable_dependency_tracking
  706. enable_shared
  707. enable_static
  708. with_pic
  709. enable_fast_install
  710. with_gnu_ld
  711. enable_libtool_lock
  712. enable_plugins
  713. enable_largefile
  714. enable_targets
  715. enable_checking
  716. enable_compressed_debug_sections
  717. enable_werror
  718. enable_build_warnings
  719. enable_nls
  720. enable_maintainer_mode
  721. with_system_zlib
  722. '
  723. ac_precious_vars='build_alias
  724. host_alias
  725. target_alias
  726. CC
  727. CFLAGS
  728. LDFLAGS
  729. LIBS
  730. CPPFLAGS
  731. CPP
  732. YACC
  733. YFLAGS'
  734. # Initialize some variables set by options.
  735. ac_init_help=
  736. ac_init_version=false
  737. ac_unrecognized_opts=
  738. ac_unrecognized_sep=
  739. # The variables have the same names as the options, with
  740. # dashes changed to underlines.
  741. cache_file=/dev/null
  742. exec_prefix=NONE
  743. no_create=
  744. no_recursion=
  745. prefix=NONE
  746. program_prefix=NONE
  747. program_suffix=NONE
  748. program_transform_name=s,x,x,
  749. silent=
  750. site=
  751. srcdir=
  752. verbose=
  753. x_includes=NONE
  754. x_libraries=NONE
  755. # Installation directory options.
  756. # These are left unexpanded so users can "make install exec_prefix=/foo"
  757. # and all the variables that are supposed to be based on exec_prefix
  758. # by default will actually change.
  759. # Use braces instead of parens because sh, perl, etc. also accept them.
  760. # (The list follows the same order as the GNU Coding Standards.)
  761. bindir='${exec_prefix}/bin'
  762. sbindir='${exec_prefix}/sbin'
  763. libexecdir='${exec_prefix}/libexec'
  764. datarootdir='${prefix}/share'
  765. datadir='${datarootdir}'
  766. sysconfdir='${prefix}/etc'
  767. sharedstatedir='${prefix}/com'
  768. localstatedir='${prefix}/var'
  769. includedir='${prefix}/include'
  770. oldincludedir='/usr/include'
  771. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  772. infodir='${datarootdir}/info'
  773. htmldir='${docdir}'
  774. dvidir='${docdir}'
  775. pdfdir='${docdir}'
  776. psdir='${docdir}'
  777. libdir='${exec_prefix}/lib'
  778. localedir='${datarootdir}/locale'
  779. mandir='${datarootdir}/man'
  780. ac_prev=
  781. ac_dashdash=
  782. for ac_option
  783. do
  784. # If the previous option needs an argument, assign it.
  785. if test -n "$ac_prev"; then
  786. eval $ac_prev=\$ac_option
  787. ac_prev=
  788. continue
  789. fi
  790. case $ac_option in
  791. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  792. *) ac_optarg=yes ;;
  793. esac
  794. # Accept the important Cygnus configure options, so we can diagnose typos.
  795. case $ac_dashdash$ac_option in
  796. --)
  797. ac_dashdash=yes ;;
  798. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  799. ac_prev=bindir ;;
  800. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  801. bindir=$ac_optarg ;;
  802. -build | --build | --buil | --bui | --bu)
  803. ac_prev=build_alias ;;
  804. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  805. build_alias=$ac_optarg ;;
  806. -cache-file | --cache-file | --cache-fil | --cache-fi \
  807. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  808. ac_prev=cache_file ;;
  809. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  810. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  811. cache_file=$ac_optarg ;;
  812. --config-cache | -C)
  813. cache_file=config.cache ;;
  814. -datadir | --datadir | --datadi | --datad)
  815. ac_prev=datadir ;;
  816. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  817. datadir=$ac_optarg ;;
  818. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  819. | --dataroo | --dataro | --datar)
  820. ac_prev=datarootdir ;;
  821. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  822. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  823. datarootdir=$ac_optarg ;;
  824. -disable-* | --disable-*)
  825. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  826. # Reject names that are not valid shell variable names.
  827. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  828. as_fn_error "invalid feature name: $ac_useropt"
  829. ac_useropt_orig=$ac_useropt
  830. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  831. case $ac_user_opts in
  832. *"
  833. "enable_$ac_useropt"
  834. "*) ;;
  835. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  836. ac_unrecognized_sep=', ';;
  837. esac
  838. eval enable_$ac_useropt=no ;;
  839. -docdir | --docdir | --docdi | --doc | --do)
  840. ac_prev=docdir ;;
  841. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  842. docdir=$ac_optarg ;;
  843. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  844. ac_prev=dvidir ;;
  845. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  846. dvidir=$ac_optarg ;;
  847. -enable-* | --enable-*)
  848. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  849. # Reject names that are not valid shell variable names.
  850. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  851. as_fn_error "invalid feature name: $ac_useropt"
  852. ac_useropt_orig=$ac_useropt
  853. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  854. case $ac_user_opts in
  855. *"
  856. "enable_$ac_useropt"
  857. "*) ;;
  858. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  859. ac_unrecognized_sep=', ';;
  860. esac
  861. eval enable_$ac_useropt=\$ac_optarg ;;
  862. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  863. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  864. | --exec | --exe | --ex)
  865. ac_prev=exec_prefix ;;
  866. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  867. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  868. | --exec=* | --exe=* | --ex=*)
  869. exec_prefix=$ac_optarg ;;
  870. -gas | --gas | --ga | --g)
  871. # Obsolete; use --with-gas.
  872. with_gas=yes ;;
  873. -help | --help | --hel | --he | -h)
  874. ac_init_help=long ;;
  875. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  876. ac_init_help=recursive ;;
  877. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  878. ac_init_help=short ;;
  879. -host | --host | --hos | --ho)
  880. ac_prev=host_alias ;;
  881. -host=* | --host=* | --hos=* | --ho=*)
  882. host_alias=$ac_optarg ;;
  883. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  884. ac_prev=htmldir ;;
  885. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  886. | --ht=*)
  887. htmldir=$ac_optarg ;;
  888. -includedir | --includedir | --includedi | --included | --include \
  889. | --includ | --inclu | --incl | --inc)
  890. ac_prev=includedir ;;
  891. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  892. | --includ=* | --inclu=* | --incl=* | --inc=*)
  893. includedir=$ac_optarg ;;
  894. -infodir | --infodir | --infodi | --infod | --info | --inf)
  895. ac_prev=infodir ;;
  896. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  897. infodir=$ac_optarg ;;
  898. -libdir | --libdir | --libdi | --libd)
  899. ac_prev=libdir ;;
  900. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  901. libdir=$ac_optarg ;;
  902. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  903. | --libexe | --libex | --libe)
  904. ac_prev=libexecdir ;;
  905. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  906. | --libexe=* | --libex=* | --libe=*)
  907. libexecdir=$ac_optarg ;;
  908. -localedir | --localedir | --localedi | --localed | --locale)
  909. ac_prev=localedir ;;
  910. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  911. localedir=$ac_optarg ;;
  912. -localstatedir | --localstatedir | --localstatedi | --localstated \
  913. | --localstate | --localstat | --localsta | --localst | --locals)
  914. ac_prev=localstatedir ;;
  915. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  916. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  917. localstatedir=$ac_optarg ;;
  918. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  919. ac_prev=mandir ;;
  920. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  921. mandir=$ac_optarg ;;
  922. -nfp | --nfp | --nf)
  923. # Obsolete; use --without-fp.
  924. with_fp=no ;;
  925. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  926. | --no-cr | --no-c | -n)
  927. no_create=yes ;;
  928. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  929. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  930. no_recursion=yes ;;
  931. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  932. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  933. | --oldin | --oldi | --old | --ol | --o)
  934. ac_prev=oldincludedir ;;
  935. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  936. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  937. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  938. oldincludedir=$ac_optarg ;;
  939. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  940. ac_prev=prefix ;;
  941. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  942. prefix=$ac_optarg ;;
  943. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  944. | --program-pre | --program-pr | --program-p)
  945. ac_prev=program_prefix ;;
  946. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  947. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  948. program_prefix=$ac_optarg ;;
  949. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  950. | --program-suf | --program-su | --program-s)
  951. ac_prev=program_suffix ;;
  952. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  953. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  954. program_suffix=$ac_optarg ;;
  955. -program-transform-name | --program-transform-name \
  956. | --program-transform-nam | --program-transform-na \
  957. | --program-transform-n | --program-transform- \
  958. | --program-transform | --program-transfor \
  959. | --program-transfo | --program-transf \
  960. | --program-trans | --program-tran \
  961. | --progr-tra | --program-tr | --program-t)
  962. ac_prev=program_transform_name ;;
  963. -program-transform-name=* | --program-transform-name=* \
  964. | --program-transform-nam=* | --program-transform-na=* \
  965. | --program-transform-n=* | --program-transform-=* \
  966. | --program-transform=* | --program-transfor=* \
  967. | --program-transfo=* | --program-transf=* \
  968. | --program-trans=* | --program-tran=* \
  969. | --progr-tra=* | --program-tr=* | --program-t=*)
  970. program_transform_name=$ac_optarg ;;
  971. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  972. ac_prev=pdfdir ;;
  973. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  974. pdfdir=$ac_optarg ;;
  975. -psdir | --psdir | --psdi | --psd | --ps)
  976. ac_prev=psdir ;;
  977. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  978. psdir=$ac_optarg ;;
  979. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  980. | -silent | --silent | --silen | --sile | --sil)
  981. silent=yes ;;
  982. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  983. ac_prev=sbindir ;;
  984. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  985. | --sbi=* | --sb=*)
  986. sbindir=$ac_optarg ;;
  987. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  988. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  989. | --sharedst | --shareds | --shared | --share | --shar \
  990. | --sha | --sh)
  991. ac_prev=sharedstatedir ;;
  992. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  993. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  994. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  995. | --sha=* | --sh=*)
  996. sharedstatedir=$ac_optarg ;;
  997. -site | --site | --sit)
  998. ac_prev=site ;;
  999. -site=* | --site=* | --sit=*)
  1000. site=$ac_optarg ;;
  1001. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1002. ac_prev=srcdir ;;
  1003. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1004. srcdir=$ac_optarg ;;
  1005. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1006. | --syscon | --sysco | --sysc | --sys | --sy)
  1007. ac_prev=sysconfdir ;;
  1008. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1009. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1010. sysconfdir=$ac_optarg ;;
  1011. -target | --target | --targe | --targ | --tar | --ta | --t)
  1012. ac_prev=target_alias ;;
  1013. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1014. target_alias=$ac_optarg ;;
  1015. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1016. verbose=yes ;;
  1017. -version | --version | --versio | --versi | --vers | -V)
  1018. ac_init_version=: ;;
  1019. -with-* | --with-*)
  1020. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1023. as_fn_error "invalid package name: $ac_useropt"
  1024. ac_useropt_orig=$ac_useropt
  1025. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1026. case $ac_user_opts in
  1027. *"
  1028. "with_$ac_useropt"
  1029. "*) ;;
  1030. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1031. ac_unrecognized_sep=', ';;
  1032. esac
  1033. eval with_$ac_useropt=\$ac_optarg ;;
  1034. -without-* | --without-*)
  1035. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1036. # Reject names that are not valid shell variable names.
  1037. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1038. as_fn_error "invalid package name: $ac_useropt"
  1039. ac_useropt_orig=$ac_useropt
  1040. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1041. case $ac_user_opts in
  1042. *"
  1043. "with_$ac_useropt"
  1044. "*) ;;
  1045. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1046. ac_unrecognized_sep=', ';;
  1047. esac
  1048. eval with_$ac_useropt=no ;;
  1049. --x)
  1050. # Obsolete; use --with-x.
  1051. with_x=yes ;;
  1052. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1053. | --x-incl | --x-inc | --x-in | --x-i)
  1054. ac_prev=x_includes ;;
  1055. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1056. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1057. x_includes=$ac_optarg ;;
  1058. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1059. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1060. ac_prev=x_libraries ;;
  1061. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1062. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1063. x_libraries=$ac_optarg ;;
  1064. -*) as_fn_error "unrecognized option: \`$ac_option'
  1065. Try \`$0 --help' for more information."
  1066. ;;
  1067. *=*)
  1068. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1069. # Reject names that are not valid shell variable names.
  1070. case $ac_envvar in #(
  1071. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1072. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1073. esac
  1074. eval $ac_envvar=\$ac_optarg
  1075. export $ac_envvar ;;
  1076. *)
  1077. # FIXME: should be removed in autoconf 3.0.
  1078. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1079. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1080. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1081. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1082. ;;
  1083. esac
  1084. done
  1085. if test -n "$ac_prev"; then
  1086. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1087. as_fn_error "missing argument to $ac_option"
  1088. fi
  1089. if test -n "$ac_unrecognized_opts"; then
  1090. case $enable_option_checking in
  1091. no) ;;
  1092. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1093. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1094. esac
  1095. fi
  1096. # Check all directory arguments for consistency.
  1097. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1098. datadir sysconfdir sharedstatedir localstatedir includedir \
  1099. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1100. libdir localedir mandir
  1101. do
  1102. eval ac_val=\$$ac_var
  1103. # Remove trailing slashes.
  1104. case $ac_val in
  1105. */ )
  1106. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1107. eval $ac_var=\$ac_val;;
  1108. esac
  1109. # Be sure to have absolute directory names.
  1110. case $ac_val in
  1111. [\\/$]* | ?:[\\/]* ) continue;;
  1112. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1113. esac
  1114. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1115. done
  1116. # There might be people who depend on the old broken behavior: `$host'
  1117. # used to hold the argument of --host etc.
  1118. # FIXME: To remove some day.
  1119. build=$build_alias
  1120. host=$host_alias
  1121. target=$target_alias
  1122. # FIXME: To remove some day.
  1123. if test "x$host_alias" != x; then
  1124. if test "x$build_alias" = x; then
  1125. cross_compiling=maybe
  1126. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1127. If a cross compiler is detected then cross compile mode will be used." >&2
  1128. elif test "x$build_alias" != "x$host_alias"; then
  1129. cross_compiling=yes
  1130. fi
  1131. fi
  1132. ac_tool_prefix=
  1133. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1134. test "$silent" = yes && exec 6>/dev/null
  1135. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1136. ac_ls_di=`ls -di .` &&
  1137. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1138. as_fn_error "working directory cannot be determined"
  1139. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1140. as_fn_error "pwd does not report name of working directory"
  1141. # Find the source files, if location was not specified.
  1142. if test -z "$srcdir"; then
  1143. ac_srcdir_defaulted=yes
  1144. # Try the directory containing this script, then the parent directory.
  1145. ac_confdir=`$as_dirname -- "$as_myself" ||
  1146. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1147. X"$as_myself" : 'X\(//\)[^/]' \| \
  1148. X"$as_myself" : 'X\(//\)$' \| \
  1149. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1150. $as_echo X"$as_myself" |
  1151. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1152. s//\1/
  1153. q
  1154. }
  1155. /^X\(\/\/\)[^/].*/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\/\)$/{
  1160. s//\1/
  1161. q
  1162. }
  1163. /^X\(\/\).*/{
  1164. s//\1/
  1165. q
  1166. }
  1167. s/.*/./; q'`
  1168. srcdir=$ac_confdir
  1169. if test ! -r "$srcdir/$ac_unique_file"; then
  1170. srcdir=..
  1171. fi
  1172. else
  1173. ac_srcdir_defaulted=no
  1174. fi
  1175. if test ! -r "$srcdir/$ac_unique_file"; then
  1176. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1177. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1178. fi
  1179. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1180. ac_abs_confdir=`(
  1181. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1182. pwd)`
  1183. # When building in place, set srcdir=.
  1184. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1185. srcdir=.
  1186. fi
  1187. # Remove unnecessary trailing slashes from srcdir.
  1188. # Double slashes in file names in object file debugging info
  1189. # mess up M-x gdb in Emacs.
  1190. case $srcdir in
  1191. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1192. esac
  1193. for ac_var in $ac_precious_vars; do
  1194. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1195. eval ac_env_${ac_var}_value=\$${ac_var}
  1196. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1197. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1198. done
  1199. #
  1200. # Report the --help message.
  1201. #
  1202. if test "$ac_init_help" = "long"; then
  1203. # Omit some internal or obsolete options to make the list less imposing.
  1204. # This message is too long to be a string in the A/UX 3.1 sh.
  1205. cat <<_ACEOF
  1206. \`configure' configures gas 2.25.51 to adapt to many kinds of systems.
  1207. Usage: $0 [OPTION]... [VAR=VALUE]...
  1208. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1209. VAR=VALUE. See below for descriptions of some of the useful variables.
  1210. Defaults for the options are specified in brackets.
  1211. Configuration:
  1212. -h, --help display this help and exit
  1213. --help=short display options specific to this package
  1214. --help=recursive display the short help of all the included packages
  1215. -V, --version display version information and exit
  1216. -q, --quiet, --silent do not print \`checking...' messages
  1217. --cache-file=FILE cache test results in FILE [disabled]
  1218. -C, --config-cache alias for \`--cache-file=config.cache'
  1219. -n, --no-create do not create output files
  1220. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1221. Installation directories:
  1222. --prefix=PREFIX install architecture-independent files in PREFIX
  1223. [$ac_default_prefix]
  1224. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1225. [PREFIX]
  1226. By default, \`make install' will install all the files in
  1227. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1228. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1229. for instance \`--prefix=\$HOME'.
  1230. For better control, use the options below.
  1231. Fine tuning of the installation directories:
  1232. --bindir=DIR user executables [EPREFIX/bin]
  1233. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1234. --libexecdir=DIR program executables [EPREFIX/libexec]
  1235. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1236. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1237. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1238. --libdir=DIR object code libraries [EPREFIX/lib]
  1239. --includedir=DIR C header files [PREFIX/include]
  1240. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1241. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1242. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1243. --infodir=DIR info documentation [DATAROOTDIR/info]
  1244. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1245. --mandir=DIR man documentation [DATAROOTDIR/man]
  1246. --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
  1247. --htmldir=DIR html documentation [DOCDIR]
  1248. --dvidir=DIR dvi documentation [DOCDIR]
  1249. --pdfdir=DIR pdf documentation [DOCDIR]
  1250. --psdir=DIR ps documentation [DOCDIR]
  1251. _ACEOF
  1252. cat <<\_ACEOF
  1253. Program names:
  1254. --program-prefix=PREFIX prepend PREFIX to installed program names
  1255. --program-suffix=SUFFIX append SUFFIX to installed program names
  1256. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1257. System types:
  1258. --build=BUILD configure for building on BUILD [guessed]
  1259. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1260. --target=TARGET configure for building compilers for TARGET [HOST]
  1261. _ACEOF
  1262. fi
  1263. if test -n "$ac_init_help"; then
  1264. case $ac_init_help in
  1265. short | recursive ) echo "Configuration of gas 2.25.51:";;
  1266. esac
  1267. cat <<\_ACEOF
  1268. Optional Features:
  1269. --disable-option-checking ignore unrecognized --enable/--with options
  1270. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1271. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1272. --disable-dependency-tracking speeds up one-time build
  1273. --enable-dependency-tracking do not reject slow dependency extractors
  1274. --enable-shared[=PKGS] build shared libraries [default=yes]
  1275. --enable-static[=PKGS] build static libraries [default=yes]
  1276. --enable-fast-install[=PKGS]
  1277. optimize for fast installation [default=yes]
  1278. --disable-libtool-lock avoid locking (might break parallel builds)
  1279. --enable-plugins Enable support for plugins
  1280. --disable-largefile omit support for large files
  1281. --enable-targets alternative target configurations besides the primary
  1282. --enable-checking enable run-time checks
  1283. --enable-compressed-debug-sections={all,gas,none} compress debug sections by default
  1284. --enable-werror treat compile warnings as errors
  1285. --enable-build-warnings enable build-time compiler warnings
  1286. --disable-nls do not use Native Language Support
  1287. --enable-maintainer-mode enable make rules and dependencies not useful
  1288. (and sometimes confusing) to the casual installer
  1289. Optional Packages:
  1290. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1291. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1292. --with-pic try to use only PIC/non-PIC objects [default=use
  1293. both]
  1294. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1295. --with-system-zlib use installed libz
  1296. Some influential environment variables:
  1297. CC C compiler command
  1298. CFLAGS C compiler flags
  1299. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1300. nonstandard directory <lib dir>
  1301. LIBS libraries to pass to the linker, e.g. -l<library>
  1302. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1303. you have headers in a nonstandard directory <include dir>
  1304. CPP C preprocessor
  1305. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1306. the first program found out of: `bison -y', `byacc', `yacc'.
  1307. YFLAGS The list of arguments that will be passed by default to $YACC.
  1308. This script will default YFLAGS to the empty string to avoid a
  1309. default value of `-d' given by some make applications.
  1310. Use these variables to override the choices made by `configure' or to help
  1311. it to find libraries and programs with nonstandard names/locations.
  1312. Report bugs to the package provider.
  1313. _ACEOF
  1314. ac_status=$?
  1315. fi
  1316. if test "$ac_init_help" = "recursive"; then
  1317. # If there are subdirs, report their specific --help.
  1318. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1319. test -d "$ac_dir" ||
  1320. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1321. continue
  1322. ac_builddir=.
  1323. case "$ac_dir" in
  1324. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1325. *)
  1326. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1327. # A ".." for each directory in $ac_dir_suffix.
  1328. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1329. case $ac_top_builddir_sub in
  1330. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1331. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1332. esac ;;
  1333. esac
  1334. ac_abs_top_builddir=$ac_pwd
  1335. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1336. # for backward compatibility:
  1337. ac_top_builddir=$ac_top_build_prefix
  1338. case $srcdir in
  1339. .) # We are building in place.
  1340. ac_srcdir=.
  1341. ac_top_srcdir=$ac_top_builddir_sub
  1342. ac_abs_top_srcdir=$ac_pwd ;;
  1343. [\\/]* | ?:[\\/]* ) # Absolute name.
  1344. ac_srcdir=$srcdir$ac_dir_suffix;
  1345. ac_top_srcdir=$srcdir
  1346. ac_abs_top_srcdir=$srcdir ;;
  1347. *) # Relative name.
  1348. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1349. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1350. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1351. esac
  1352. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1353. cd "$ac_dir" || { ac_status=$?; continue; }
  1354. # Check for guested configure.
  1355. if test -f "$ac_srcdir/configure.gnu"; then
  1356. echo &&
  1357. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1358. elif test -f "$ac_srcdir/configure"; then
  1359. echo &&
  1360. $SHELL "$ac_srcdir/configure" --help=recursive
  1361. else
  1362. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1363. fi || ac_status=$?
  1364. cd "$ac_pwd" || { ac_status=$?; break; }
  1365. done
  1366. fi
  1367. test -n "$ac_init_help" && exit $ac_status
  1368. if $ac_init_version; then
  1369. cat <<\_ACEOF
  1370. gas configure 2.25.51
  1371. generated by GNU Autoconf 2.64
  1372. Copyright (C) 2009 Free Software Foundation, Inc.
  1373. This configure script is free software; the Free Software Foundation
  1374. gives unlimited permission to copy, distribute and modify it.
  1375. _ACEOF
  1376. exit
  1377. fi
  1378. ## ------------------------ ##
  1379. ## Autoconf initialization. ##
  1380. ## ------------------------ ##
  1381. # ac_fn_c_try_compile LINENO
  1382. # --------------------------
  1383. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1384. ac_fn_c_try_compile ()
  1385. {
  1386. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1387. rm -f conftest.$ac_objext
  1388. if { { ac_try="$ac_compile"
  1389. case "(($ac_try" in
  1390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1391. *) ac_try_echo=$ac_try;;
  1392. esac
  1393. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1394. $as_echo "$ac_try_echo"; } >&5
  1395. (eval "$ac_compile") 2>conftest.err
  1396. ac_status=$?
  1397. if test -s conftest.err; then
  1398. grep -v '^ *+' conftest.err >conftest.er1
  1399. cat conftest.er1 >&5
  1400. mv -f conftest.er1 conftest.err
  1401. fi
  1402. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1403. test $ac_status = 0; } && {
  1404. test -z "$ac_c_werror_flag" ||
  1405. test ! -s conftest.err
  1406. } && test -s conftest.$ac_objext; then :
  1407. ac_retval=0
  1408. else
  1409. $as_echo "$as_me: failed program was:" >&5
  1410. sed 's/^/| /' conftest.$ac_ext >&5
  1411. ac_retval=1
  1412. fi
  1413. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1414. return $ac_retval
  1415. } # ac_fn_c_try_compile
  1416. # ac_fn_c_try_link LINENO
  1417. # -----------------------
  1418. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1419. ac_fn_c_try_link ()
  1420. {
  1421. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1422. rm -f conftest.$ac_objext conftest$ac_exeext
  1423. if { { ac_try="$ac_link"
  1424. case "(($ac_try" in
  1425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1426. *) ac_try_echo=$ac_try;;
  1427. esac
  1428. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1429. $as_echo "$ac_try_echo"; } >&5
  1430. (eval "$ac_link") 2>conftest.err
  1431. ac_status=$?
  1432. if test -s conftest.err; then
  1433. grep -v '^ *+' conftest.err >conftest.er1
  1434. cat conftest.er1 >&5
  1435. mv -f conftest.er1 conftest.err
  1436. fi
  1437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1438. test $ac_status = 0; } && {
  1439. test -z "$ac_c_werror_flag" ||
  1440. test ! -s conftest.err
  1441. } && test -s conftest$ac_exeext && {
  1442. test "$cross_compiling" = yes ||
  1443. $as_test_x conftest$ac_exeext
  1444. }; then :
  1445. ac_retval=0
  1446. else
  1447. $as_echo "$as_me: failed program was:" >&5
  1448. sed 's/^/| /' conftest.$ac_ext >&5
  1449. ac_retval=1
  1450. fi
  1451. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1452. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1453. # interfere with the next link command; also delete a directory that is
  1454. # left behind by Apple's compiler. We do this before executing the actions.
  1455. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1456. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1457. return $ac_retval
  1458. } # ac_fn_c_try_link
  1459. # ac_fn_c_try_cpp LINENO
  1460. # ----------------------
  1461. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1462. ac_fn_c_try_cpp ()
  1463. {
  1464. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1465. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1466. case "(($ac_try" in
  1467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1468. *) ac_try_echo=$ac_try;;
  1469. esac
  1470. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1471. $as_echo "$ac_try_echo"; } >&5
  1472. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1473. ac_status=$?
  1474. if test -s conftest.err; then
  1475. grep -v '^ *+' conftest.err >conftest.er1
  1476. cat conftest.er1 >&5
  1477. mv -f conftest.er1 conftest.err
  1478. fi
  1479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1480. test $ac_status = 0; } >/dev/null && {
  1481. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1482. test ! -s conftest.err
  1483. }; then :
  1484. ac_retval=0
  1485. else
  1486. $as_echo "$as_me: failed program was:" >&5
  1487. sed 's/^/| /' conftest.$ac_ext >&5
  1488. ac_retval=1
  1489. fi
  1490. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1491. return $ac_retval
  1492. } # ac_fn_c_try_cpp
  1493. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1494. # -------------------------------------------------------
  1495. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1496. # the include files in INCLUDES and setting the cache variable VAR
  1497. # accordingly.
  1498. ac_fn_c_check_header_mongrel ()
  1499. {
  1500. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1501. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1503. $as_echo_n "checking for $2... " >&6; }
  1504. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1505. $as_echo_n "(cached) " >&6
  1506. fi
  1507. eval ac_res=\$$3
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1509. $as_echo "$ac_res" >&6; }
  1510. else
  1511. # Is the header compilable?
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1513. $as_echo_n "checking $2 usability... " >&6; }
  1514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1515. /* end confdefs.h. */
  1516. $4
  1517. #include <$2>
  1518. _ACEOF
  1519. if ac_fn_c_try_compile "$LINENO"; then :
  1520. ac_header_compiler=yes
  1521. else
  1522. ac_header_compiler=no
  1523. fi
  1524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1526. $as_echo "$ac_header_compiler" >&6; }
  1527. # Is the header present?
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1529. $as_echo_n "checking $2 presence... " >&6; }
  1530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1531. /* end confdefs.h. */
  1532. #include <$2>
  1533. _ACEOF
  1534. if ac_fn_c_try_cpp "$LINENO"; then :
  1535. ac_header_preproc=yes
  1536. else
  1537. ac_header_preproc=no
  1538. fi
  1539. rm -f conftest.err conftest.$ac_ext
  1540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1541. $as_echo "$ac_header_preproc" >&6; }
  1542. # So? What about this header?
  1543. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1544. yes:no: )
  1545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1546. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1548. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1549. ;;
  1550. no:yes:* )
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1552. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1554. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1556. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1558. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1560. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1561. ;;
  1562. esac
  1563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1564. $as_echo_n "checking for $2... " >&6; }
  1565. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1566. $as_echo_n "(cached) " >&6
  1567. else
  1568. eval "$3=\$ac_header_compiler"
  1569. fi
  1570. eval ac_res=\$$3
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1572. $as_echo "$ac_res" >&6; }
  1573. fi
  1574. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1575. } # ac_fn_c_check_header_mongrel
  1576. # ac_fn_c_try_run LINENO
  1577. # ----------------------
  1578. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1579. # that executables *can* be run.
  1580. ac_fn_c_try_run ()
  1581. {
  1582. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1583. if { { ac_try="$ac_link"
  1584. case "(($ac_try" in
  1585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1586. *) ac_try_echo=$ac_try;;
  1587. esac
  1588. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1589. $as_echo "$ac_try_echo"; } >&5
  1590. (eval "$ac_link") 2>&5
  1591. ac_status=$?
  1592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1593. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1594. { { case "(($ac_try" in
  1595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1596. *) ac_try_echo=$ac_try;;
  1597. esac
  1598. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1599. $as_echo "$ac_try_echo"; } >&5
  1600. (eval "$ac_try") 2>&5
  1601. ac_status=$?
  1602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1603. test $ac_status = 0; }; }; then :
  1604. ac_retval=0
  1605. else
  1606. $as_echo "$as_me: program exited with status $ac_status" >&5
  1607. $as_echo "$as_me: failed program was:" >&5
  1608. sed 's/^/| /' conftest.$ac_ext >&5
  1609. ac_retval=$ac_status
  1610. fi
  1611. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1612. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1613. return $ac_retval
  1614. } # ac_fn_c_try_run
  1615. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1616. # -------------------------------------------------------
  1617. # Tests whether HEADER exists and can be compiled using the include files in
  1618. # INCLUDES, setting the cache variable VAR accordingly.
  1619. ac_fn_c_check_header_compile ()
  1620. {
  1621. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1623. $as_echo_n "checking for $2... " >&6; }
  1624. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1625. $as_echo_n "(cached) " >&6
  1626. else
  1627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1628. /* end confdefs.h. */
  1629. $4
  1630. #include <$2>
  1631. _ACEOF
  1632. if ac_fn_c_try_compile "$LINENO"; then :
  1633. eval "$3=yes"
  1634. else
  1635. eval "$3=no"
  1636. fi
  1637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1638. fi
  1639. eval ac_res=\$$3
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1641. $as_echo "$ac_res" >&6; }
  1642. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1643. } # ac_fn_c_check_header_compile
  1644. # ac_fn_c_check_func LINENO FUNC VAR
  1645. # ----------------------------------
  1646. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1647. ac_fn_c_check_func ()
  1648. {
  1649. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1651. $as_echo_n "checking for $2... " >&6; }
  1652. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1653. $as_echo_n "(cached) " >&6
  1654. else
  1655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1656. /* end confdefs.h. */
  1657. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1658. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1659. #define $2 innocuous_$2
  1660. /* System header to define __stub macros and hopefully few prototypes,
  1661. which can conflict with char $2 (); below.
  1662. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1663. <limits.h> exists even on freestanding compilers. */
  1664. #ifdef __STDC__
  1665. # include <limits.h>
  1666. #else
  1667. # include <assert.h>
  1668. #endif
  1669. #undef $2
  1670. /* Override any GCC internal prototype to avoid an error.
  1671. Use char because int might match the return type of a GCC
  1672. builtin and then its argument prototype would still apply. */
  1673. #ifdef __cplusplus
  1674. extern "C"
  1675. #endif
  1676. char $2 ();
  1677. /* The GNU C library defines this for functions which it implements
  1678. to always fail with ENOSYS. Some functions are actually named
  1679. something starting with __ and the normal name is an alias. */
  1680. #if defined __stub_$2 || defined __stub___$2
  1681. choke me
  1682. #endif
  1683. int
  1684. main ()
  1685. {
  1686. return $2 ();
  1687. ;
  1688. return 0;
  1689. }
  1690. _ACEOF
  1691. if ac_fn_c_try_link "$LINENO"; then :
  1692. eval "$3=yes"
  1693. else
  1694. eval "$3=no"
  1695. fi
  1696. rm -f core conftest.err conftest.$ac_objext \
  1697. conftest$ac_exeext conftest.$ac_ext
  1698. fi
  1699. eval ac_res=\$$3
  1700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1701. $as_echo "$ac_res" >&6; }
  1702. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1703. } # ac_fn_c_check_func
  1704. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1705. # ------------------------------------
  1706. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1707. ac_fn_c_check_decl ()
  1708. {
  1709. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1710. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1711. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1713. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1714. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1715. $as_echo_n "(cached) " >&6
  1716. else
  1717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1718. /* end confdefs.h. */
  1719. $4
  1720. int
  1721. main ()
  1722. {
  1723. #ifndef $as_decl_name
  1724. #ifdef __cplusplus
  1725. (void) $as_decl_use;
  1726. #else
  1727. (void) $as_decl_name;
  1728. #endif
  1729. #endif
  1730. ;
  1731. return 0;
  1732. }
  1733. _ACEOF
  1734. if ac_fn_c_try_compile "$LINENO"; then :
  1735. eval "$3=yes"
  1736. else
  1737. eval "$3=no"
  1738. fi
  1739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1740. fi
  1741. eval ac_res=\$$3
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1743. $as_echo "$ac_res" >&6; }
  1744. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1745. } # ac_fn_c_check_decl
  1746. cat >config.log <<_ACEOF
  1747. This file contains any messages produced by compilers while
  1748. running configure, to aid debugging if configure makes a mistake.
  1749. It was created by gas $as_me 2.25.51, which was
  1750. generated by GNU Autoconf 2.64. Invocation command line was
  1751. $ $0 $@
  1752. _ACEOF
  1753. exec 5>>config.log
  1754. {
  1755. cat <<_ASUNAME
  1756. ## --------- ##
  1757. ## Platform. ##
  1758. ## --------- ##
  1759. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1760. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1761. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1762. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1763. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1764. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1765. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1766. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1767. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1768. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1769. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1770. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1771. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1772. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1773. _ASUNAME
  1774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1775. for as_dir in $PATH
  1776. do
  1777. IFS=$as_save_IFS
  1778. test -z "$as_dir" && as_dir=.
  1779. $as_echo "PATH: $as_dir"
  1780. done
  1781. IFS=$as_save_IFS
  1782. } >&5
  1783. cat >&5 <<_ACEOF
  1784. ## ----------- ##
  1785. ## Core tests. ##
  1786. ## ----------- ##
  1787. _ACEOF
  1788. # Keep a trace of the command line.
  1789. # Strip out --no-create and --no-recursion so they do not pile up.
  1790. # Strip out --silent because we don't want to record it for future runs.
  1791. # Also quote any args containing shell meta-characters.
  1792. # Make two passes to allow for proper duplicate-argument suppression.
  1793. ac_configure_args=
  1794. ac_configure_args0=
  1795. ac_configure_args1=
  1796. ac_must_keep_next=false
  1797. for ac_pass in 1 2
  1798. do
  1799. for ac_arg
  1800. do
  1801. case $ac_arg in
  1802. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1803. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1804. | -silent | --silent | --silen | --sile | --sil)
  1805. continue ;;
  1806. *\'*)
  1807. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1808. esac
  1809. case $ac_pass in
  1810. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1811. 2)
  1812. as_fn_append ac_configure_args1 " '$ac_arg'"
  1813. if test $ac_must_keep_next = true; then
  1814. ac_must_keep_next=false # Got value, back to normal.
  1815. else
  1816. case $ac_arg in
  1817. *=* | --config-cache | -C | -disable-* | --disable-* \
  1818. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1819. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1820. | -with-* | --with-* | -without-* | --without-* | --x)
  1821. case "$ac_configure_args0 " in
  1822. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1823. esac
  1824. ;;
  1825. -* ) ac_must_keep_next=true ;;
  1826. esac
  1827. fi
  1828. as_fn_append ac_configure_args " '$ac_arg'"
  1829. ;;
  1830. esac
  1831. done
  1832. done
  1833. { ac_configure_args0=; unset ac_configure_args0;}
  1834. { ac_configure_args1=; unset ac_configure_args1;}
  1835. # When interrupted or exit'd, cleanup temporary files, and complete
  1836. # config.log. We remove comments because anyway the quotes in there
  1837. # would cause problems or look ugly.
  1838. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1839. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1840. trap 'exit_status=$?
  1841. # Save into config.log some information that might help in debugging.
  1842. {
  1843. echo
  1844. cat <<\_ASBOX
  1845. ## ---------------- ##
  1846. ## Cache variables. ##
  1847. ## ---------------- ##
  1848. _ASBOX
  1849. echo
  1850. # The following way of writing the cache mishandles newlines in values,
  1851. (
  1852. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1853. eval ac_val=\$$ac_var
  1854. case $ac_val in #(
  1855. *${as_nl}*)
  1856. case $ac_var in #(
  1857. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1858. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1859. esac
  1860. case $ac_var in #(
  1861. _ | IFS | as_nl) ;; #(
  1862. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1863. *) { eval $ac_var=; unset $ac_var;} ;;
  1864. esac ;;
  1865. esac
  1866. done
  1867. (set) 2>&1 |
  1868. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1869. *${as_nl}ac_space=\ *)
  1870. sed -n \
  1871. "s/'\''/'\''\\\\'\'''\''/g;
  1872. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1873. ;; #(
  1874. *)
  1875. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1876. ;;
  1877. esac |
  1878. sort
  1879. )
  1880. echo
  1881. cat <<\_ASBOX
  1882. ## ----------------- ##
  1883. ## Output variables. ##
  1884. ## ----------------- ##
  1885. _ASBOX
  1886. echo
  1887. for ac_var in $ac_subst_vars
  1888. do
  1889. eval ac_val=\$$ac_var
  1890. case $ac_val in
  1891. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1892. esac
  1893. $as_echo "$ac_var='\''$ac_val'\''"
  1894. done | sort
  1895. echo
  1896. if test -n "$ac_subst_files"; then
  1897. cat <<\_ASBOX
  1898. ## ------------------- ##
  1899. ## File substitutions. ##
  1900. ## ------------------- ##
  1901. _ASBOX
  1902. echo
  1903. for ac_var in $ac_subst_files
  1904. do
  1905. eval ac_val=\$$ac_var
  1906. case $ac_val in
  1907. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1908. esac
  1909. $as_echo "$ac_var='\''$ac_val'\''"
  1910. done | sort
  1911. echo
  1912. fi
  1913. if test -s confdefs.h; then
  1914. cat <<\_ASBOX
  1915. ## ----------- ##
  1916. ## confdefs.h. ##
  1917. ## ----------- ##
  1918. _ASBOX
  1919. echo
  1920. cat confdefs.h
  1921. echo
  1922. fi
  1923. test "$ac_signal" != 0 &&
  1924. $as_echo "$as_me: caught signal $ac_signal"
  1925. $as_echo "$as_me: exit $exit_status"
  1926. } >&5
  1927. rm -f core *.core core.conftest.* &&
  1928. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1929. exit $exit_status
  1930. ' 0
  1931. for ac_signal in 1 2 13 15; do
  1932. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1933. done
  1934. ac_signal=0
  1935. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1936. rm -f -r conftest* confdefs.h
  1937. $as_echo "/* confdefs.h */" > confdefs.h
  1938. # Predefined preprocessor variables.
  1939. cat >>confdefs.h <<_ACEOF
  1940. #define PACKAGE_NAME "$PACKAGE_NAME"
  1941. _ACEOF
  1942. cat >>confdefs.h <<_ACEOF
  1943. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1944. _ACEOF
  1945. cat >>confdefs.h <<_ACEOF
  1946. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1947. _ACEOF
  1948. cat >>confdefs.h <<_ACEOF
  1949. #define PACKAGE_STRING "$PACKAGE_STRING"
  1950. _ACEOF
  1951. cat >>confdefs.h <<_ACEOF
  1952. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1953. _ACEOF
  1954. cat >>confdefs.h <<_ACEOF
  1955. #define PACKAGE_URL "$PACKAGE_URL"
  1956. _ACEOF
  1957. # Let the site file select an alternate cache file if it wants to.
  1958. # Prefer an explicitly selected file to automatically selected ones.
  1959. ac_site_file1=NONE
  1960. ac_site_file2=NONE
  1961. if test -n "$CONFIG_SITE"; then
  1962. ac_site_file1=$CONFIG_SITE
  1963. elif test "x$prefix" != xNONE; then
  1964. ac_site_file1=$prefix/share/config.site
  1965. ac_site_file2=$prefix/etc/config.site
  1966. else
  1967. ac_site_file1=$ac_default_prefix/share/config.site
  1968. ac_site_file2=$ac_default_prefix/etc/config.site
  1969. fi
  1970. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1971. do
  1972. test "x$ac_site_file" = xNONE && continue
  1973. if test -r "$ac_site_file"; then
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1975. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1976. sed 's/^/| /' "$ac_site_file" >&5
  1977. . "$ac_site_file"
  1978. fi
  1979. done
  1980. if test -r "$cache_file"; then
  1981. # Some versions of bash will fail to source /dev/null (special
  1982. # files actually), so we avoid doing that.
  1983. if test -f "$cache_file"; then
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1985. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1986. case $cache_file in
  1987. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1988. *) . "./$cache_file";;
  1989. esac
  1990. fi
  1991. else
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1993. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1994. >$cache_file
  1995. fi
  1996. # Check that the precious variables saved in the cache have kept the same
  1997. # value.
  1998. ac_cache_corrupted=false
  1999. for ac_var in $ac_precious_vars; do
  2000. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2001. eval ac_new_set=\$ac_env_${ac_var}_set
  2002. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2003. eval ac_new_val=\$ac_env_${ac_var}_value
  2004. case $ac_old_set,$ac_new_set in
  2005. set,)
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2007. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2008. ac_cache_corrupted=: ;;
  2009. ,set)
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2011. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2012. ac_cache_corrupted=: ;;
  2013. ,);;
  2014. *)
  2015. if test "x$ac_old_val" != "x$ac_new_val"; then
  2016. # differences in whitespace do not lead to failure.
  2017. ac_old_val_w=`echo x $ac_old_val`
  2018. ac_new_val_w=`echo x $ac_new_val`
  2019. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2020. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2021. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2022. ac_cache_corrupted=:
  2023. else
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2025. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2026. eval $ac_var=\$ac_old_val
  2027. fi
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2029. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2031. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2032. fi;;
  2033. esac
  2034. # Pass precious variables to config.status.
  2035. if test "$ac_new_set" = set; then
  2036. case $ac_new_val in
  2037. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2038. *) ac_arg=$ac_var=$ac_new_val ;;
  2039. esac
  2040. case " $ac_configure_args " in
  2041. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2042. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2043. esac
  2044. fi
  2045. done
  2046. if $ac_cache_corrupted; then
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2048. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2049. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2050. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2051. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2052. fi
  2053. ## -------------------- ##
  2054. ## Main body of script. ##
  2055. ## -------------------- ##
  2056. ac_ext=c
  2057. ac_cpp='$CPP $CPPFLAGS'
  2058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2061. ac_aux_dir=
  2062. for ac_dir in .. "$srcdir"/..; do
  2063. for ac_t in install-sh install.sh shtool; do
  2064. if test -f "$ac_dir/$ac_t"; then
  2065. ac_aux_dir=$ac_dir
  2066. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2067. break 2
  2068. fi
  2069. done
  2070. done
  2071. if test -z "$ac_aux_dir"; then
  2072. as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
  2073. fi
  2074. # These three variables are undocumented and unsupported,
  2075. # and are intended to be withdrawn in a future Autoconf release.
  2076. # They can cause serious problems if a builder's source tree is in a directory
  2077. # whose full name contains unusual characters.
  2078. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2079. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2080. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2081. # Make sure we can run config.sub.
  2082. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2083. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2085. $as_echo_n "checking build system type... " >&6; }
  2086. if test "${ac_cv_build+set}" = set; then :
  2087. $as_echo_n "(cached) " >&6
  2088. else
  2089. ac_build_alias=$build_alias
  2090. test "x$ac_build_alias" = x &&
  2091. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2092. test "x$ac_build_alias" = x &&
  2093. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2094. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2095. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2096. fi
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2098. $as_echo "$ac_cv_build" >&6; }
  2099. case $ac_cv_build in
  2100. *-*-*) ;;
  2101. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2102. esac
  2103. build=$ac_cv_build
  2104. ac_save_IFS=$IFS; IFS='-'
  2105. set x $ac_cv_build
  2106. shift
  2107. build_cpu=$1
  2108. build_vendor=$2
  2109. shift; shift
  2110. # Remember, the first character of IFS is used to create $*,
  2111. # except with old shells:
  2112. build_os=$*
  2113. IFS=$ac_save_IFS
  2114. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2116. $as_echo_n "checking host system type... " >&6; }
  2117. if test "${ac_cv_host+set}" = set; then :
  2118. $as_echo_n "(cached) " >&6
  2119. else
  2120. if test "x$host_alias" = x; then
  2121. ac_cv_host=$ac_cv_build
  2122. else
  2123. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2124. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2125. fi
  2126. fi
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2128. $as_echo "$ac_cv_host" >&6; }
  2129. case $ac_cv_host in
  2130. *-*-*) ;;
  2131. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2132. esac
  2133. host=$ac_cv_host
  2134. ac_save_IFS=$IFS; IFS='-'
  2135. set x $ac_cv_host
  2136. shift
  2137. host_cpu=$1
  2138. host_vendor=$2
  2139. shift; shift
  2140. # Remember, the first character of IFS is used to create $*,
  2141. # except with old shells:
  2142. host_os=$*
  2143. IFS=$ac_save_IFS
  2144. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2146. $as_echo_n "checking target system type... " >&6; }
  2147. if test "${ac_cv_target+set}" = set; then :
  2148. $as_echo_n "(cached) " >&6
  2149. else
  2150. if test "x$target_alias" = x; then
  2151. ac_cv_target=$ac_cv_host
  2152. else
  2153. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2154. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2155. fi
  2156. fi
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2158. $as_echo "$ac_cv_target" >&6; }
  2159. case $ac_cv_target in
  2160. *-*-*) ;;
  2161. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2162. esac
  2163. target=$ac_cv_target
  2164. ac_save_IFS=$IFS; IFS='-'
  2165. set x $ac_cv_target
  2166. shift
  2167. target_cpu=$1
  2168. target_vendor=$2
  2169. shift; shift
  2170. # Remember, the first character of IFS is used to create $*,
  2171. # except with old shells:
  2172. target_os=$*
  2173. IFS=$ac_save_IFS
  2174. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2175. # The aliases save the names the user supplied, while $host etc.
  2176. # will get canonicalized.
  2177. test -n "$target_alias" &&
  2178. test "$program_prefix$program_suffix$program_transform_name" = \
  2179. NONENONEs,x,x, &&
  2180. program_prefix=${target_alias}-
  2181. ac_ext=c
  2182. ac_cpp='$CPP $CPPFLAGS'
  2183. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2184. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2185. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2186. if test -n "$ac_tool_prefix"; then
  2187. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2188. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2190. $as_echo_n "checking for $ac_word... " >&6; }
  2191. if test "${ac_cv_prog_CC+set}" = set; then :
  2192. $as_echo_n "(cached) " >&6
  2193. else
  2194. if test -n "$CC"; then
  2195. ac_cv_prog_CC="$CC" # Let the user override the test.
  2196. else
  2197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2198. for as_dir in $PATH
  2199. do
  2200. IFS=$as_save_IFS
  2201. test -z "$as_dir" && as_dir=.
  2202. for ac_exec_ext in '' $ac_executable_extensions; do
  2203. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2204. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2205. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2206. break 2
  2207. fi
  2208. done
  2209. done
  2210. IFS=$as_save_IFS
  2211. fi
  2212. fi
  2213. CC=$ac_cv_prog_CC
  2214. if test -n "$CC"; then
  2215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2216. $as_echo "$CC" >&6; }
  2217. else
  2218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2219. $as_echo "no" >&6; }
  2220. fi
  2221. fi
  2222. if test -z "$ac_cv_prog_CC"; then
  2223. ac_ct_CC=$CC
  2224. # Extract the first word of "gcc", so it can be a program name with args.
  2225. set dummy gcc; ac_word=$2
  2226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2227. $as_echo_n "checking for $ac_word... " >&6; }
  2228. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2229. $as_echo_n "(cached) " >&6
  2230. else
  2231. if test -n "$ac_ct_CC"; then
  2232. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2233. else
  2234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2235. for as_dir in $PATH
  2236. do
  2237. IFS=$as_save_IFS
  2238. test -z "$as_dir" && as_dir=.
  2239. for ac_exec_ext in '' $ac_executable_extensions; do
  2240. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2241. ac_cv_prog_ac_ct_CC="gcc"
  2242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2243. break 2
  2244. fi
  2245. done
  2246. done
  2247. IFS=$as_save_IFS
  2248. fi
  2249. fi
  2250. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2251. if test -n "$ac_ct_CC"; then
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2253. $as_echo "$ac_ct_CC" >&6; }
  2254. else
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2256. $as_echo "no" >&6; }
  2257. fi
  2258. if test "x$ac_ct_CC" = x; then
  2259. CC=""
  2260. else
  2261. case $cross_compiling:$ac_tool_warned in
  2262. yes:)
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2264. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2265. ac_tool_warned=yes ;;
  2266. esac
  2267. CC=$ac_ct_CC
  2268. fi
  2269. else
  2270. CC="$ac_cv_prog_CC"
  2271. fi
  2272. if test -z "$CC"; then
  2273. if test -n "$ac_tool_prefix"; then
  2274. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2275. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2277. $as_echo_n "checking for $ac_word... " >&6; }
  2278. if test "${ac_cv_prog_CC+set}" = set; then :
  2279. $as_echo_n "(cached) " >&6
  2280. else
  2281. if test -n "$CC"; then
  2282. ac_cv_prog_CC="$CC" # Let the user override the test.
  2283. else
  2284. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2285. for as_dir in $PATH
  2286. do
  2287. IFS=$as_save_IFS
  2288. test -z "$as_dir" && as_dir=.
  2289. for ac_exec_ext in '' $ac_executable_extensions; do
  2290. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2291. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2292. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2293. break 2
  2294. fi
  2295. done
  2296. done
  2297. IFS=$as_save_IFS
  2298. fi
  2299. fi
  2300. CC=$ac_cv_prog_CC
  2301. if test -n "$CC"; then
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2303. $as_echo "$CC" >&6; }
  2304. else
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2306. $as_echo "no" >&6; }
  2307. fi
  2308. fi
  2309. fi
  2310. if test -z "$CC"; then
  2311. # Extract the first word of "cc", so it can be a program name with args.
  2312. set dummy cc; ac_word=$2
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2314. $as_echo_n "checking for $ac_word... " >&6; }
  2315. if test "${ac_cv_prog_CC+set}" = set; then :
  2316. $as_echo_n "(cached) " >&6
  2317. else
  2318. if test -n "$CC"; then
  2319. ac_cv_prog_CC="$CC" # Let the user override the test.
  2320. else
  2321. ac_prog_rejected=no
  2322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2323. for as_dir in $PATH
  2324. do
  2325. IFS=$as_save_IFS
  2326. test -z "$as_dir" && as_dir=.
  2327. for ac_exec_ext in '' $ac_executable_extensions; do
  2328. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2329. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2330. ac_prog_rejected=yes
  2331. continue
  2332. fi
  2333. ac_cv_prog_CC="cc"
  2334. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2335. break 2
  2336. fi
  2337. done
  2338. done
  2339. IFS=$as_save_IFS
  2340. if test $ac_prog_rejected = yes; then
  2341. # We found a bogon in the path, so make sure we never use it.
  2342. set dummy $ac_cv_prog_CC
  2343. shift
  2344. if test $# != 0; then
  2345. # We chose a different compiler from the bogus one.
  2346. # However, it has the same basename, so the bogon will be chosen
  2347. # first if we set CC to just the basename; use the full file name.
  2348. shift
  2349. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2350. fi
  2351. fi
  2352. fi
  2353. fi
  2354. CC=$ac_cv_prog_CC
  2355. if test -n "$CC"; then
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2357. $as_echo "$CC" >&6; }
  2358. else
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2360. $as_echo "no" >&6; }
  2361. fi
  2362. fi
  2363. if test -z "$CC"; then
  2364. if test -n "$ac_tool_prefix"; then
  2365. for ac_prog in cl.exe
  2366. do
  2367. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2368. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2370. $as_echo_n "checking for $ac_word... " >&6; }
  2371. if test "${ac_cv_prog_CC+set}" = set; then :
  2372. $as_echo_n "(cached) " >&6
  2373. else
  2374. if test -n "$CC"; then
  2375. ac_cv_prog_CC="$CC" # Let the user override the test.
  2376. else
  2377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2378. for as_dir in $PATH
  2379. do
  2380. IFS=$as_save_IFS
  2381. test -z "$as_dir" && as_dir=.
  2382. for ac_exec_ext in '' $ac_executable_extensions; do
  2383. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2384. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2386. break 2
  2387. fi
  2388. done
  2389. done
  2390. IFS=$as_save_IFS
  2391. fi
  2392. fi
  2393. CC=$ac_cv_prog_CC
  2394. if test -n "$CC"; then
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2396. $as_echo "$CC" >&6; }
  2397. else
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2399. $as_echo "no" >&6; }
  2400. fi
  2401. test -n "$CC" && break
  2402. done
  2403. fi
  2404. if test -z "$CC"; then
  2405. ac_ct_CC=$CC
  2406. for ac_prog in cl.exe
  2407. do
  2408. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2409. set dummy $ac_prog; ac_word=$2
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2411. $as_echo_n "checking for $ac_word... " >&6; }
  2412. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2413. $as_echo_n "(cached) " >&6
  2414. else
  2415. if test -n "$ac_ct_CC"; then
  2416. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2417. else
  2418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2419. for as_dir in $PATH
  2420. do
  2421. IFS=$as_save_IFS
  2422. test -z "$as_dir" && as_dir=.
  2423. for ac_exec_ext in '' $ac_executable_extensions; do
  2424. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2425. ac_cv_prog_ac_ct_CC="$ac_prog"
  2426. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2427. break 2
  2428. fi
  2429. done
  2430. done
  2431. IFS=$as_save_IFS
  2432. fi
  2433. fi
  2434. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2435. if test -n "$ac_ct_CC"; then
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2437. $as_echo "$ac_ct_CC" >&6; }
  2438. else
  2439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2440. $as_echo "no" >&6; }
  2441. fi
  2442. test -n "$ac_ct_CC" && break
  2443. done
  2444. if test "x$ac_ct_CC" = x; then
  2445. CC=""
  2446. else
  2447. case $cross_compiling:$ac_tool_warned in
  2448. yes:)
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2450. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2451. ac_tool_warned=yes ;;
  2452. esac
  2453. CC=$ac_ct_CC
  2454. fi
  2455. fi
  2456. fi
  2457. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2458. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2459. as_fn_error "no acceptable C compiler found in \$PATH
  2460. See \`config.log' for more details." "$LINENO" 5; }
  2461. # Provide some information about the compiler.
  2462. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2463. set X $ac_compile
  2464. ac_compiler=$2
  2465. for ac_option in --version -v -V -qversion; do
  2466. { { ac_try="$ac_compiler $ac_option >&5"
  2467. case "(($ac_try" in
  2468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2469. *) ac_try_echo=$ac_try;;
  2470. esac
  2471. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2472. $as_echo "$ac_try_echo"; } >&5
  2473. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2474. ac_status=$?
  2475. if test -s conftest.err; then
  2476. sed '10a\
  2477. ... rest of stderr output deleted ...
  2478. 10q' conftest.err >conftest.er1
  2479. cat conftest.er1 >&5
  2480. rm -f conftest.er1 conftest.err
  2481. fi
  2482. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2483. test $ac_status = 0; }
  2484. done
  2485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2486. /* end confdefs.h. */
  2487. int
  2488. main ()
  2489. {
  2490. ;
  2491. return 0;
  2492. }
  2493. _ACEOF
  2494. ac_clean_files_save=$ac_clean_files
  2495. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2496. # Try to create an executable without -o first, disregard a.out.
  2497. # It will help us diagnose broken compilers, and finding out an intuition
  2498. # of exeext.
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2500. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2501. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2502. # The possible output files:
  2503. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2504. ac_rmfiles=
  2505. for ac_file in $ac_files
  2506. do
  2507. case $ac_file in
  2508. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2509. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2510. esac
  2511. done
  2512. rm -f $ac_rmfiles
  2513. if { { ac_try="$ac_link_default"
  2514. case "(($ac_try" in
  2515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2516. *) ac_try_echo=$ac_try;;
  2517. esac
  2518. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2519. $as_echo "$ac_try_echo"; } >&5
  2520. (eval "$ac_link_default") 2>&5
  2521. ac_status=$?
  2522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2523. test $ac_status = 0; }; then :
  2524. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2525. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2526. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2527. # so that the user can short-circuit this test for compilers unknown to
  2528. # Autoconf.
  2529. for ac_file in $ac_files ''
  2530. do
  2531. test -f "$ac_file" || continue
  2532. case $ac_file in
  2533. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2534. ;;
  2535. [ab].out )
  2536. # We found the default executable, but exeext='' is most
  2537. # certainly right.
  2538. break;;
  2539. *.* )
  2540. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2541. then :; else
  2542. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2543. fi
  2544. # We set ac_cv_exeext here because the later test for it is not
  2545. # safe: cross compilers may not add the suffix if given an `-o'
  2546. # argument, so we may need to know it at that point already.
  2547. # Even if this section looks crufty: it has the advantage of
  2548. # actually working.
  2549. break;;
  2550. * )
  2551. break;;
  2552. esac
  2553. done
  2554. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2555. else
  2556. ac_file=''
  2557. fi
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2559. $as_echo "$ac_file" >&6; }
  2560. if test -z "$ac_file"; then :
  2561. $as_echo "$as_me: failed program was:" >&5
  2562. sed 's/^/| /' conftest.$ac_ext >&5
  2563. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2564. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2565. { as_fn_set_status 77
  2566. as_fn_error "C compiler cannot create executables
  2567. See \`config.log' for more details." "$LINENO" 5; }; }
  2568. fi
  2569. ac_exeext=$ac_cv_exeext
  2570. # Check that the compiler produces executables we can run. If not, either
  2571. # the compiler is broken, or we cross compile.
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2573. $as_echo_n "checking whether the C compiler works... " >&6; }
  2574. # If not cross compiling, check that we can run a simple program.
  2575. if test "$cross_compiling" != yes; then
  2576. if { ac_try='./$ac_file'
  2577. { { case "(($ac_try" in
  2578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2579. *) ac_try_echo=$ac_try;;
  2580. esac
  2581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2582. $as_echo "$ac_try_echo"; } >&5
  2583. (eval "$ac_try") 2>&5
  2584. ac_status=$?
  2585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2586. test $ac_status = 0; }; }; then
  2587. cross_compiling=no
  2588. else
  2589. if test "$cross_compiling" = maybe; then
  2590. cross_compiling=yes
  2591. else
  2592. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2593. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2594. as_fn_error "cannot run C compiled programs.
  2595. If you meant to cross compile, use \`--host'.
  2596. See \`config.log' for more details." "$LINENO" 5; }
  2597. fi
  2598. fi
  2599. fi
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2601. $as_echo "yes" >&6; }
  2602. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2603. ac_clean_files=$ac_clean_files_save
  2604. # Check that the compiler produces executables we can run. If not, either
  2605. # the compiler is broken, or we cross compile.
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2607. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2609. $as_echo "$cross_compiling" >&6; }
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2611. $as_echo_n "checking for suffix of executables... " >&6; }
  2612. if { { ac_try="$ac_link"
  2613. case "(($ac_try" in
  2614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2615. *) ac_try_echo=$ac_try;;
  2616. esac
  2617. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2618. $as_echo "$ac_try_echo"; } >&5
  2619. (eval "$ac_link") 2>&5
  2620. ac_status=$?
  2621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2622. test $ac_status = 0; }; then :
  2623. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2624. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2625. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2626. # `rm'.
  2627. for ac_file in conftest.exe conftest conftest.*; do
  2628. test -f "$ac_file" || continue
  2629. case $ac_file in
  2630. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2631. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2632. break;;
  2633. * ) break;;
  2634. esac
  2635. done
  2636. else
  2637. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2638. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2639. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2640. See \`config.log' for more details." "$LINENO" 5; }
  2641. fi
  2642. rm -f conftest$ac_cv_exeext
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2644. $as_echo "$ac_cv_exeext" >&6; }
  2645. rm -f conftest.$ac_ext
  2646. EXEEXT=$ac_cv_exeext
  2647. ac_exeext=$EXEEXT
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2649. $as_echo_n "checking for suffix of object files... " >&6; }
  2650. if test "${ac_cv_objext+set}" = set; then :
  2651. $as_echo_n "(cached) " >&6
  2652. else
  2653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2654. /* end confdefs.h. */
  2655. int
  2656. main ()
  2657. {
  2658. ;
  2659. return 0;
  2660. }
  2661. _ACEOF
  2662. rm -f conftest.o conftest.obj
  2663. if { { ac_try="$ac_compile"
  2664. case "(($ac_try" in
  2665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2666. *) ac_try_echo=$ac_try;;
  2667. esac
  2668. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2669. $as_echo "$ac_try_echo"; } >&5
  2670. (eval "$ac_compile") 2>&5
  2671. ac_status=$?
  2672. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2673. test $ac_status = 0; }; then :
  2674. for ac_file in conftest.o conftest.obj conftest.*; do
  2675. test -f "$ac_file" || continue;
  2676. case $ac_file in
  2677. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2678. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2679. break;;
  2680. esac
  2681. done
  2682. else
  2683. $as_echo "$as_me: failed program was:" >&5
  2684. sed 's/^/| /' conftest.$ac_ext >&5
  2685. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2686. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2687. as_fn_error "cannot compute suffix of object files: cannot compile
  2688. See \`config.log' for more details." "$LINENO" 5; }
  2689. fi
  2690. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2691. fi
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2693. $as_echo "$ac_cv_objext" >&6; }
  2694. OBJEXT=$ac_cv_objext
  2695. ac_objext=$OBJEXT
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2697. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2698. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2699. $as_echo_n "(cached) " >&6
  2700. else
  2701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2702. /* end confdefs.h. */
  2703. int
  2704. main ()
  2705. {
  2706. #ifndef __GNUC__
  2707. choke me
  2708. #endif
  2709. ;
  2710. return 0;
  2711. }
  2712. _ACEOF
  2713. if ac_fn_c_try_compile "$LINENO"; then :
  2714. ac_compiler_gnu=yes
  2715. else
  2716. ac_compiler_gnu=no
  2717. fi
  2718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2719. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2720. fi
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2722. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2723. if test $ac_compiler_gnu = yes; then
  2724. GCC=yes
  2725. else
  2726. GCC=
  2727. fi
  2728. ac_test_CFLAGS=${CFLAGS+set}
  2729. ac_save_CFLAGS=$CFLAGS
  2730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2731. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2732. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2733. $as_echo_n "(cached) " >&6
  2734. else
  2735. ac_save_c_werror_flag=$ac_c_werror_flag
  2736. ac_c_werror_flag=yes
  2737. ac_cv_prog_cc_g=no
  2738. CFLAGS="-g"
  2739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2740. /* end confdefs.h. */
  2741. int
  2742. main ()
  2743. {
  2744. ;
  2745. return 0;
  2746. }
  2747. _ACEOF
  2748. if ac_fn_c_try_compile "$LINENO"; then :
  2749. ac_cv_prog_cc_g=yes
  2750. else
  2751. CFLAGS=""
  2752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2753. /* end confdefs.h. */
  2754. int
  2755. main ()
  2756. {
  2757. ;
  2758. return 0;
  2759. }
  2760. _ACEOF
  2761. if ac_fn_c_try_compile "$LINENO"; then :
  2762. else
  2763. ac_c_werror_flag=$ac_save_c_werror_flag
  2764. CFLAGS="-g"
  2765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2766. /* end confdefs.h. */
  2767. int
  2768. main ()
  2769. {
  2770. ;
  2771. return 0;
  2772. }
  2773. _ACEOF
  2774. if ac_fn_c_try_compile "$LINENO"; then :
  2775. ac_cv_prog_cc_g=yes
  2776. fi
  2777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2778. fi
  2779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2780. fi
  2781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2782. ac_c_werror_flag=$ac_save_c_werror_flag
  2783. fi
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2785. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2786. if test "$ac_test_CFLAGS" = set; then
  2787. CFLAGS=$ac_save_CFLAGS
  2788. elif test $ac_cv_prog_cc_g = yes; then
  2789. if test "$GCC" = yes; then
  2790. CFLAGS="-g -O2"
  2791. else
  2792. CFLAGS="-g"
  2793. fi
  2794. else
  2795. if test "$GCC" = yes; then
  2796. CFLAGS="-O2"
  2797. else
  2798. CFLAGS=
  2799. fi
  2800. fi
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2802. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2803. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  2804. $as_echo_n "(cached) " >&6
  2805. else
  2806. ac_cv_prog_cc_c89=no
  2807. ac_save_CC=$CC
  2808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2809. /* end confdefs.h. */
  2810. #include <stdarg.h>
  2811. #include <stdio.h>
  2812. #include <sys/types.h>
  2813. #include <sys/stat.h>
  2814. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2815. struct buf { int x; };
  2816. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2817. static char *e (p, i)
  2818. char **p;
  2819. int i;
  2820. {
  2821. return p[i];
  2822. }
  2823. static char *f (char * (*g) (char **, int), char **p, ...)
  2824. {
  2825. char *s;
  2826. va_list v;
  2827. va_start (v,p);
  2828. s = g (p, va_arg (v,int));
  2829. va_end (v);
  2830. return s;
  2831. }
  2832. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2833. function prototypes and stuff, but not '\xHH' hex character constants.
  2834. These don't provoke an error unfortunately, instead are silently treated
  2835. as 'x'. The following induces an error, until -std is added to get
  2836. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2837. array size at least. It's necessary to write '\x00'==0 to get something
  2838. that's true only with -std. */
  2839. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2840. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2841. inside strings and character constants. */
  2842. #define FOO(x) 'x'
  2843. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2844. int test (int i, double x);
  2845. struct s1 {int (*f) (int a);};
  2846. struct s2 {int (*f) (double a);};
  2847. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2848. int argc;
  2849. char **argv;
  2850. int
  2851. main ()
  2852. {
  2853. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2854. ;
  2855. return 0;
  2856. }
  2857. _ACEOF
  2858. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2859. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2860. do
  2861. CC="$ac_save_CC $ac_arg"
  2862. if ac_fn_c_try_compile "$LINENO"; then :
  2863. ac_cv_prog_cc_c89=$ac_arg
  2864. fi
  2865. rm -f core conftest.err conftest.$ac_objext
  2866. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2867. done
  2868. rm -f conftest.$ac_ext
  2869. CC=$ac_save_CC
  2870. fi
  2871. # AC_CACHE_VAL
  2872. case "x$ac_cv_prog_cc_c89" in
  2873. x)
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2875. $as_echo "none needed" >&6; } ;;
  2876. xno)
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2878. $as_echo "unsupported" >&6; } ;;
  2879. *)
  2880. CC="$CC $ac_cv_prog_cc_c89"
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2882. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2883. esac
  2884. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2885. fi
  2886. ac_ext=c
  2887. ac_cpp='$CPP $CPPFLAGS'
  2888. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2889. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2890. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  2892. $as_echo_n "checking for library containing strerror... " >&6; }
  2893. if test "${ac_cv_search_strerror+set}" = set; then :
  2894. $as_echo_n "(cached) " >&6
  2895. else
  2896. ac_func_search_save_LIBS=$LIBS
  2897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2898. /* end confdefs.h. */
  2899. /* Override any GCC internal prototype to avoid an error.
  2900. Use char because int might match the return type of a GCC
  2901. builtin and then its argument prototype would still apply. */
  2902. #ifdef __cplusplus
  2903. extern "C"
  2904. #endif
  2905. char strerror ();
  2906. int
  2907. main ()
  2908. {
  2909. return strerror ();
  2910. ;
  2911. return 0;
  2912. }
  2913. _ACEOF
  2914. for ac_lib in '' cposix; do
  2915. if test -z "$ac_lib"; then
  2916. ac_res="none required"
  2917. else
  2918. ac_res=-l$ac_lib
  2919. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2920. fi
  2921. if ac_fn_c_try_link "$LINENO"; then :
  2922. ac_cv_search_strerror=$ac_res
  2923. fi
  2924. rm -f core conftest.err conftest.$ac_objext \
  2925. conftest$ac_exeext
  2926. if test "${ac_cv_search_strerror+set}" = set; then :
  2927. break
  2928. fi
  2929. done
  2930. if test "${ac_cv_search_strerror+set}" = set; then :
  2931. else
  2932. ac_cv_search_strerror=no
  2933. fi
  2934. rm conftest.$ac_ext
  2935. LIBS=$ac_func_search_save_LIBS
  2936. fi
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  2938. $as_echo "$ac_cv_search_strerror" >&6; }
  2939. ac_res=$ac_cv_search_strerror
  2940. if test "$ac_res" != no; then :
  2941. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  2942. fi
  2943. am__api_version='1.11'
  2944. # Find a good install program. We prefer a C program (faster),
  2945. # so one script is as good as another. But avoid the broken or
  2946. # incompatible versions:
  2947. # SysV /etc/install, /usr/sbin/install
  2948. # SunOS /usr/etc/install
  2949. # IRIX /sbin/install
  2950. # AIX /bin/install
  2951. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2952. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2953. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2954. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2955. # OS/2's system install, which has a completely different semantic
  2956. # ./install, which can be erroneously created by make from ./install.sh.
  2957. # Reject install programs that cannot install multiple files.
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2959. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2960. if test -z "$INSTALL"; then
  2961. if test "${ac_cv_path_install+set}" = set; then :
  2962. $as_echo_n "(cached) " >&6
  2963. else
  2964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2965. for as_dir in $PATH
  2966. do
  2967. IFS=$as_save_IFS
  2968. test -z "$as_dir" && as_dir=.
  2969. # Account for people who put trailing slashes in PATH elements.
  2970. case $as_dir/ in #((
  2971. ./ | .// | /[cC]/* | \
  2972. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2973. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2974. /usr/ucb/* ) ;;
  2975. *)
  2976. # OSF1 and SCO ODT 3.0 have their own names for install.
  2977. # Don't use installbsd from OSF since it installs stuff as root
  2978. # by default.
  2979. for ac_prog in ginstall scoinst install; do
  2980. for ac_exec_ext in '' $ac_executable_extensions; do
  2981. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2982. if test $ac_prog = install &&
  2983. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2984. # AIX install. It has an incompatible calling convention.
  2985. :
  2986. elif test $ac_prog = install &&
  2987. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2988. # program-specific install script used by HP pwplus--don't use.
  2989. :
  2990. else
  2991. rm -rf conftest.one conftest.two conftest.dir
  2992. echo one > conftest.one
  2993. echo two > conftest.two
  2994. mkdir conftest.dir
  2995. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2996. test -s conftest.one && test -s conftest.two &&
  2997. test -s conftest.dir/conftest.one &&
  2998. test -s conftest.dir/conftest.two
  2999. then
  3000. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3001. break 3
  3002. fi
  3003. fi
  3004. fi
  3005. done
  3006. done
  3007. ;;
  3008. esac
  3009. done
  3010. IFS=$as_save_IFS
  3011. rm -rf conftest.one conftest.two conftest.dir
  3012. fi
  3013. if test "${ac_cv_path_install+set}" = set; then
  3014. INSTALL=$ac_cv_path_install
  3015. else
  3016. # As a last resort, use the slow shell script. Don't cache a
  3017. # value for INSTALL within a source directory, because that will
  3018. # break other packages using the cache if that directory is
  3019. # removed, or if the value is a relative name.
  3020. INSTALL=$ac_install_sh
  3021. fi
  3022. fi
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3024. $as_echo "$INSTALL" >&6; }
  3025. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3026. # It thinks the first close brace ends the variable substitution.
  3027. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3028. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3029. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3031. $as_echo_n "checking whether build environment is sane... " >&6; }
  3032. # Just in case
  3033. sleep 1
  3034. echo timestamp > conftest.file
  3035. # Reject unsafe characters in $srcdir or the absolute working directory
  3036. # name. Accept space and tab only in the latter.
  3037. am_lf='
  3038. '
  3039. case `pwd` in
  3040. *[\\\"\#\$\&\'\`$am_lf]*)
  3041. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  3042. esac
  3043. case $srcdir in
  3044. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3045. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3046. esac
  3047. # Do `set' in a subshell so we don't clobber the current shell's
  3048. # arguments. Must try -L first in case configure is actually a
  3049. # symlink; some systems play weird games with the mod time of symlinks
  3050. # (eg FreeBSD returns the mod time of the symlink's containing
  3051. # directory).
  3052. if (
  3053. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3054. if test "$*" = "X"; then
  3055. # -L didn't work.
  3056. set X `ls -t "$srcdir/configure" conftest.file`
  3057. fi
  3058. rm -f conftest.file
  3059. if test "$*" != "X $srcdir/configure conftest.file" \
  3060. && test "$*" != "X conftest.file $srcdir/configure"; then
  3061. # If neither matched, then we have a broken ls. This can happen
  3062. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3063. # broken ls alias from the environment. This has actually
  3064. # happened. Such a system could not be considered "sane".
  3065. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  3066. alias in your environment" "$LINENO" 5
  3067. fi
  3068. test "$2" = conftest.file
  3069. )
  3070. then
  3071. # Ok.
  3072. :
  3073. else
  3074. as_fn_error "newly created file is older than distributed files!
  3075. Check your system clock" "$LINENO" 5
  3076. fi
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3078. $as_echo "yes" >&6; }
  3079. test "$program_prefix" != NONE &&
  3080. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3081. # Use a double $ so make ignores it.
  3082. test "$program_suffix" != NONE &&
  3083. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3084. # Double any \ or $.
  3085. # By default was `s,x,x', remove it if useless.
  3086. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3087. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3088. # expand $ac_aux_dir to an absolute path
  3089. am_aux_dir=`cd $ac_aux_dir && pwd`
  3090. if test x"${MISSING+set}" != xset; then
  3091. case $am_aux_dir in
  3092. *\ * | *\ *)
  3093. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3094. *)
  3095. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3096. esac
  3097. fi
  3098. # Use eval to expand $SHELL
  3099. if eval "$MISSING --run true"; then
  3100. am_missing_run="$MISSING --run "
  3101. else
  3102. am_missing_run=
  3103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3104. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3105. fi
  3106. if test x"${install_sh}" != xset; then
  3107. case $am_aux_dir in
  3108. *\ * | *\ *)
  3109. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3110. *)
  3111. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3112. esac
  3113. fi
  3114. # Installed binaries are usually stripped using `strip' when the user
  3115. # run `make install-strip'. However `strip' might not be the right
  3116. # tool to use in cross-compilation environments, therefore Automake
  3117. # will honor the `STRIP' environment variable to overrule this program.
  3118. if test "$cross_compiling" != no; then
  3119. if test -n "$ac_tool_prefix"; then
  3120. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3121. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3123. $as_echo_n "checking for $ac_word... " >&6; }
  3124. if test "${ac_cv_prog_STRIP+set}" = set; then :
  3125. $as_echo_n "(cached) " >&6
  3126. else
  3127. if test -n "$STRIP"; then
  3128. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3129. else
  3130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3131. for as_dir in $PATH
  3132. do
  3133. IFS=$as_save_IFS
  3134. test -z "$as_dir" && as_dir=.
  3135. for ac_exec_ext in '' $ac_executable_extensions; do
  3136. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3137. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3138. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3139. break 2
  3140. fi
  3141. done
  3142. done
  3143. IFS=$as_save_IFS
  3144. fi
  3145. fi
  3146. STRIP=$ac_cv_prog_STRIP
  3147. if test -n "$STRIP"; then
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3149. $as_echo "$STRIP" >&6; }
  3150. else
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3152. $as_echo "no" >&6; }
  3153. fi
  3154. fi
  3155. if test -z "$ac_cv_prog_STRIP"; then
  3156. ac_ct_STRIP=$STRIP
  3157. # Extract the first word of "strip", so it can be a program name with args.
  3158. set dummy strip; ac_word=$2
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3160. $as_echo_n "checking for $ac_word... " >&6; }
  3161. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3162. $as_echo_n "(cached) " >&6
  3163. else
  3164. if test -n "$ac_ct_STRIP"; then
  3165. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3166. else
  3167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3168. for as_dir in $PATH
  3169. do
  3170. IFS=$as_save_IFS
  3171. test -z "$as_dir" && as_dir=.
  3172. for ac_exec_ext in '' $ac_executable_extensions; do
  3173. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3174. ac_cv_prog_ac_ct_STRIP="strip"
  3175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3176. break 2
  3177. fi
  3178. done
  3179. done
  3180. IFS=$as_save_IFS
  3181. fi
  3182. fi
  3183. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3184. if test -n "$ac_ct_STRIP"; then
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3186. $as_echo "$ac_ct_STRIP" >&6; }
  3187. else
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3189. $as_echo "no" >&6; }
  3190. fi
  3191. if test "x$ac_ct_STRIP" = x; then
  3192. STRIP=":"
  3193. else
  3194. case $cross_compiling:$ac_tool_warned in
  3195. yes:)
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3197. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3198. ac_tool_warned=yes ;;
  3199. esac
  3200. STRIP=$ac_ct_STRIP
  3201. fi
  3202. else
  3203. STRIP="$ac_cv_prog_STRIP"
  3204. fi
  3205. fi
  3206. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3208. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3209. if test -z "$MKDIR_P"; then
  3210. if test "${ac_cv_path_mkdir+set}" = set; then :
  3211. $as_echo_n "(cached) " >&6
  3212. else
  3213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3214. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3215. do
  3216. IFS=$as_save_IFS
  3217. test -z "$as_dir" && as_dir=.
  3218. for ac_prog in mkdir gmkdir; do
  3219. for ac_exec_ext in '' $ac_executable_extensions; do
  3220. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3221. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3222. 'mkdir (GNU coreutils) '* | \
  3223. 'mkdir (coreutils) '* | \
  3224. 'mkdir (fileutils) '4.1*)
  3225. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3226. break 3;;
  3227. esac
  3228. done
  3229. done
  3230. done
  3231. IFS=$as_save_IFS
  3232. fi
  3233. if test "${ac_cv_path_mkdir+set}" = set; then
  3234. MKDIR_P="$ac_cv_path_mkdir -p"
  3235. else
  3236. # As a last resort, use the slow shell script. Don't cache a
  3237. # value for MKDIR_P within a source directory, because that will
  3238. # break other packages using the cache if that directory is
  3239. # removed, or if the value is a relative name.
  3240. test -d ./--version && rmdir ./--version
  3241. MKDIR_P="$ac_install_sh -d"
  3242. fi
  3243. fi
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3245. $as_echo "$MKDIR_P" >&6; }
  3246. mkdir_p="$MKDIR_P"
  3247. case $mkdir_p in
  3248. [\\/$]* | ?:[\\/]*) ;;
  3249. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3250. esac
  3251. for ac_prog in gawk mawk nawk awk
  3252. do
  3253. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3254. set dummy $ac_prog; ac_word=$2
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3256. $as_echo_n "checking for $ac_word... " >&6; }
  3257. if test "${ac_cv_prog_AWK+set}" = set; then :
  3258. $as_echo_n "(cached) " >&6
  3259. else
  3260. if test -n "$AWK"; then
  3261. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3262. else
  3263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3264. for as_dir in $PATH
  3265. do
  3266. IFS=$as_save_IFS
  3267. test -z "$as_dir" && as_dir=.
  3268. for ac_exec_ext in '' $ac_executable_extensions; do
  3269. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3270. ac_cv_prog_AWK="$ac_prog"
  3271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3272. break 2
  3273. fi
  3274. done
  3275. done
  3276. IFS=$as_save_IFS
  3277. fi
  3278. fi
  3279. AWK=$ac_cv_prog_AWK
  3280. if test -n "$AWK"; then
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3282. $as_echo "$AWK" >&6; }
  3283. else
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3285. $as_echo "no" >&6; }
  3286. fi
  3287. test -n "$AWK" && break
  3288. done
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3290. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3291. set x ${MAKE-make}
  3292. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3293. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3294. $as_echo_n "(cached) " >&6
  3295. else
  3296. cat >conftest.make <<\_ACEOF
  3297. SHELL = /bin/sh
  3298. all:
  3299. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3300. _ACEOF
  3301. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3302. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3303. *@@@%%%=?*=@@@%%%*)
  3304. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3305. *)
  3306. eval ac_cv_prog_make_${ac_make}_set=no;;
  3307. esac
  3308. rm -f conftest.make
  3309. fi
  3310. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3312. $as_echo "yes" >&6; }
  3313. SET_MAKE=
  3314. else
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3316. $as_echo "no" >&6; }
  3317. SET_MAKE="MAKE=${MAKE-make}"
  3318. fi
  3319. rm -rf .tst 2>/dev/null
  3320. mkdir .tst 2>/dev/null
  3321. if test -d .tst; then
  3322. am__leading_dot=.
  3323. else
  3324. am__leading_dot=_
  3325. fi
  3326. rmdir .tst 2>/dev/null
  3327. DEPDIR="${am__leading_dot}deps"
  3328. ac_config_commands="$ac_config_commands depfiles"
  3329. am_make=${MAKE-make}
  3330. cat > confinc << 'END'
  3331. am__doit:
  3332. @echo this is the am__doit target
  3333. .PHONY: am__doit
  3334. END
  3335. # If we don't find an include directive, just comment out the code.
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3337. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3338. am__include="#"
  3339. am__quote=
  3340. _am_result=none
  3341. # First try GNU make style include.
  3342. echo "include confinc" > confmf
  3343. # Ignore all kinds of additional output from `make'.
  3344. case `$am_make -s -f confmf 2> /dev/null` in #(
  3345. *the\ am__doit\ target*)
  3346. am__include=include
  3347. am__quote=
  3348. _am_result=GNU
  3349. ;;
  3350. esac
  3351. # Now try BSD make style include.
  3352. if test "$am__include" = "#"; then
  3353. echo '.include "confinc"' > confmf
  3354. case `$am_make -s -f confmf 2> /dev/null` in #(
  3355. *the\ am__doit\ target*)
  3356. am__include=.include
  3357. am__quote="\""
  3358. _am_result=BSD
  3359. ;;
  3360. esac
  3361. fi
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3363. $as_echo "$_am_result" >&6; }
  3364. rm -f confinc confmf
  3365. # Check whether --enable-dependency-tracking was given.
  3366. if test "${enable_dependency_tracking+set}" = set; then :
  3367. enableval=$enable_dependency_tracking;
  3368. fi
  3369. if test "x$enable_dependency_tracking" != xno; then
  3370. am_depcomp="$ac_aux_dir/depcomp"
  3371. AMDEPBACKSLASH='\'
  3372. fi
  3373. if test "x$enable_dependency_tracking" != xno; then
  3374. AMDEP_TRUE=
  3375. AMDEP_FALSE='#'
  3376. else
  3377. AMDEP_TRUE='#'
  3378. AMDEP_FALSE=
  3379. fi
  3380. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3381. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3382. # is not polluted with repeated "-I."
  3383. am__isrc=' -I$(srcdir)'
  3384. # test to see if srcdir already configured
  3385. if test -f $srcdir/config.status; then
  3386. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3387. fi
  3388. fi
  3389. # test whether we have cygpath
  3390. if test -z "$CYGPATH_W"; then
  3391. if (cygpath --version) >/dev/null 2>/dev/null; then
  3392. CYGPATH_W='cygpath -w'
  3393. else
  3394. CYGPATH_W=echo
  3395. fi
  3396. fi
  3397. # Define the identity of the package.
  3398. PACKAGE='gas'
  3399. VERSION='2.25.51'
  3400. cat >>confdefs.h <<_ACEOF
  3401. #define PACKAGE "$PACKAGE"
  3402. _ACEOF
  3403. cat >>confdefs.h <<_ACEOF
  3404. #define VERSION "$VERSION"
  3405. _ACEOF
  3406. # Some tools Automake needs.
  3407. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3408. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3409. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3410. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3411. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3412. # We need awk for the "check" target. The system "awk" is bad on
  3413. # some platforms.
  3414. # Always define AMTAR for backward compatibility.
  3415. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3416. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3417. depcc="$CC" am_compiler_list=
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3419. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3420. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3421. $as_echo_n "(cached) " >&6
  3422. else
  3423. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3424. # We make a subdir and do the tests there. Otherwise we can end up
  3425. # making bogus files that we don't know about and never remove. For
  3426. # instance it was reported that on HP-UX the gcc test will end up
  3427. # making a dummy file named `D' -- because `-MD' means `put the output
  3428. # in D'.
  3429. mkdir conftest.dir
  3430. # Copy depcomp to subdir because otherwise we won't find it if we're
  3431. # using a relative directory.
  3432. cp "$am_depcomp" conftest.dir
  3433. cd conftest.dir
  3434. # We will build objects and dependencies in a subdirectory because
  3435. # it helps to detect inapplicable dependency modes. For instance
  3436. # both Tru64's cc and ICC support -MD to output dependencies as a
  3437. # side effect of compilation, but ICC will put the dependencies in
  3438. # the current directory while Tru64 will put them in the object
  3439. # directory.
  3440. mkdir sub
  3441. am_cv_CC_dependencies_compiler_type=none
  3442. if test "$am_compiler_list" = ""; then
  3443. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3444. fi
  3445. am__universal=false
  3446. case " $depcc " in #(
  3447. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3448. esac
  3449. for depmode in $am_compiler_list; do
  3450. # Setup a source with many dependencies, because some compilers
  3451. # like to wrap large dependency lists on column 80 (with \), and
  3452. # we should not choose a depcomp mode which is confused by this.
  3453. #
  3454. # We need to recreate these files for each test, as the compiler may
  3455. # overwrite some of them when testing with obscure command lines.
  3456. # This happens at least with the AIX C compiler.
  3457. : > sub/conftest.c
  3458. for i in 1 2 3 4 5 6; do
  3459. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3460. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3461. # Solaris 8's {/usr,}/bin/sh.
  3462. touch sub/conftst$i.h
  3463. done
  3464. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3465. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3466. # mode. It turns out that the SunPro C++ compiler does not properly
  3467. # handle `-M -o', and we need to detect this. Also, some Intel
  3468. # versions had trouble with output in subdirs
  3469. am__obj=sub/conftest.${OBJEXT-o}
  3470. am__minus_obj="-o $am__obj"
  3471. case $depmode in
  3472. gcc)
  3473. # This depmode causes a compiler race in universal mode.
  3474. test "$am__universal" = false || continue
  3475. ;;
  3476. nosideeffect)
  3477. # after this tag, mechanisms are not by side-effect, so they'll
  3478. # only be used when explicitly requested
  3479. if test "x$enable_dependency_tracking" = xyes; then
  3480. continue
  3481. else
  3482. break
  3483. fi
  3484. ;;
  3485. msvisualcpp | msvcmsys)
  3486. # This compiler won't grok `-c -o', but also, the minuso test has
  3487. # not run yet. These depmodes are late enough in the game, and
  3488. # so weak that their functioning should not be impacted.
  3489. am__obj=conftest.${OBJEXT-o}
  3490. am__minus_obj=
  3491. ;;
  3492. none) break ;;
  3493. esac
  3494. if depmode=$depmode \
  3495. source=sub/conftest.c object=$am__obj \
  3496. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3497. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3498. >/dev/null 2>conftest.err &&
  3499. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3500. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3501. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3502. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3503. # icc doesn't choke on unknown options, it will just issue warnings
  3504. # or remarks (even with -Werror). So we grep stderr for any message
  3505. # that says an option was ignored or not supported.
  3506. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3507. # icc: Command line warning: ignoring option '-M'; no argument required
  3508. # The diagnosis changed in icc 8.0:
  3509. # icc: Command line remark: option '-MP' not supported
  3510. if (grep 'ignoring option' conftest.err ||
  3511. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3512. am_cv_CC_dependencies_compiler_type=$depmode
  3513. break
  3514. fi
  3515. fi
  3516. done
  3517. cd ..
  3518. rm -rf conftest.dir
  3519. else
  3520. am_cv_CC_dependencies_compiler_type=none
  3521. fi
  3522. fi
  3523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3524. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3525. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3526. if
  3527. test "x$enable_dependency_tracking" != xno \
  3528. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3529. am__fastdepCC_TRUE=
  3530. am__fastdepCC_FALSE='#'
  3531. else
  3532. am__fastdepCC_TRUE='#'
  3533. am__fastdepCC_FALSE=
  3534. fi
  3535. ac_ext=c
  3536. ac_cpp='$CPP $CPPFLAGS'
  3537. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3538. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3539. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3540. if test -n "$ac_tool_prefix"; then
  3541. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3542. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3544. $as_echo_n "checking for $ac_word... " >&6; }
  3545. if test "${ac_cv_prog_CC+set}" = set; then :
  3546. $as_echo_n "(cached) " >&6
  3547. else
  3548. if test -n "$CC"; then
  3549. ac_cv_prog_CC="$CC" # Let the user override the test.
  3550. else
  3551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3552. for as_dir in $PATH
  3553. do
  3554. IFS=$as_save_IFS
  3555. test -z "$as_dir" && as_dir=.
  3556. for ac_exec_ext in '' $ac_executable_extensions; do
  3557. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3558. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3560. break 2
  3561. fi
  3562. done
  3563. done
  3564. IFS=$as_save_IFS
  3565. fi
  3566. fi
  3567. CC=$ac_cv_prog_CC
  3568. if test -n "$CC"; then
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3570. $as_echo "$CC" >&6; }
  3571. else
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3573. $as_echo "no" >&6; }
  3574. fi
  3575. fi
  3576. if test -z "$ac_cv_prog_CC"; then
  3577. ac_ct_CC=$CC
  3578. # Extract the first word of "gcc", so it can be a program name with args.
  3579. set dummy gcc; ac_word=$2
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3581. $as_echo_n "checking for $ac_word... " >&6; }
  3582. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3583. $as_echo_n "(cached) " >&6
  3584. else
  3585. if test -n "$ac_ct_CC"; then
  3586. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3587. else
  3588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3589. for as_dir in $PATH
  3590. do
  3591. IFS=$as_save_IFS
  3592. test -z "$as_dir" && as_dir=.
  3593. for ac_exec_ext in '' $ac_executable_extensions; do
  3594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3595. ac_cv_prog_ac_ct_CC="gcc"
  3596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3597. break 2
  3598. fi
  3599. done
  3600. done
  3601. IFS=$as_save_IFS
  3602. fi
  3603. fi
  3604. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3605. if test -n "$ac_ct_CC"; then
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3607. $as_echo "$ac_ct_CC" >&6; }
  3608. else
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3610. $as_echo "no" >&6; }
  3611. fi
  3612. if test "x$ac_ct_CC" = x; then
  3613. CC=""
  3614. else
  3615. case $cross_compiling:$ac_tool_warned in
  3616. yes:)
  3617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3618. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3619. ac_tool_warned=yes ;;
  3620. esac
  3621. CC=$ac_ct_CC
  3622. fi
  3623. else
  3624. CC="$ac_cv_prog_CC"
  3625. fi
  3626. if test -z "$CC"; then
  3627. if test -n "$ac_tool_prefix"; then
  3628. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3629. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3631. $as_echo_n "checking for $ac_word... " >&6; }
  3632. if test "${ac_cv_prog_CC+set}" = set; then :
  3633. $as_echo_n "(cached) " >&6
  3634. else
  3635. if test -n "$CC"; then
  3636. ac_cv_prog_CC="$CC" # Let the user override the test.
  3637. else
  3638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3639. for as_dir in $PATH
  3640. do
  3641. IFS=$as_save_IFS
  3642. test -z "$as_dir" && as_dir=.
  3643. for ac_exec_ext in '' $ac_executable_extensions; do
  3644. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3645. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3647. break 2
  3648. fi
  3649. done
  3650. done
  3651. IFS=$as_save_IFS
  3652. fi
  3653. fi
  3654. CC=$ac_cv_prog_CC
  3655. if test -n "$CC"; then
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3657. $as_echo "$CC" >&6; }
  3658. else
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3660. $as_echo "no" >&6; }
  3661. fi
  3662. fi
  3663. fi
  3664. if test -z "$CC"; then
  3665. # Extract the first word of "cc", so it can be a program name with args.
  3666. set dummy cc; ac_word=$2
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3668. $as_echo_n "checking for $ac_word... " >&6; }
  3669. if test "${ac_cv_prog_CC+set}" = set; then :
  3670. $as_echo_n "(cached) " >&6
  3671. else
  3672. if test -n "$CC"; then
  3673. ac_cv_prog_CC="$CC" # Let the user override the test.
  3674. else
  3675. ac_prog_rejected=no
  3676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3677. for as_dir in $PATH
  3678. do
  3679. IFS=$as_save_IFS
  3680. test -z "$as_dir" && as_dir=.
  3681. for ac_exec_ext in '' $ac_executable_extensions; do
  3682. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3683. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3684. ac_prog_rejected=yes
  3685. continue
  3686. fi
  3687. ac_cv_prog_CC="cc"
  3688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3689. break 2
  3690. fi
  3691. done
  3692. done
  3693. IFS=$as_save_IFS
  3694. if test $ac_prog_rejected = yes; then
  3695. # We found a bogon in the path, so make sure we never use it.
  3696. set dummy $ac_cv_prog_CC
  3697. shift
  3698. if test $# != 0; then
  3699. # We chose a different compiler from the bogus one.
  3700. # However, it has the same basename, so the bogon will be chosen
  3701. # first if we set CC to just the basename; use the full file name.
  3702. shift
  3703. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3704. fi
  3705. fi
  3706. fi
  3707. fi
  3708. CC=$ac_cv_prog_CC
  3709. if test -n "$CC"; then
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3711. $as_echo "$CC" >&6; }
  3712. else
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3714. $as_echo "no" >&6; }
  3715. fi
  3716. fi
  3717. if test -z "$CC"; then
  3718. if test -n "$ac_tool_prefix"; then
  3719. for ac_prog in cl.exe
  3720. do
  3721. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3722. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3724. $as_echo_n "checking for $ac_word... " >&6; }
  3725. if test "${ac_cv_prog_CC+set}" = set; then :
  3726. $as_echo_n "(cached) " >&6
  3727. else
  3728. if test -n "$CC"; then
  3729. ac_cv_prog_CC="$CC" # Let the user override the test.
  3730. else
  3731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3732. for as_dir in $PATH
  3733. do
  3734. IFS=$as_save_IFS
  3735. test -z "$as_dir" && as_dir=.
  3736. for ac_exec_ext in '' $ac_executable_extensions; do
  3737. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3738. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3740. break 2
  3741. fi
  3742. done
  3743. done
  3744. IFS=$as_save_IFS
  3745. fi
  3746. fi
  3747. CC=$ac_cv_prog_CC
  3748. if test -n "$CC"; then
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3750. $as_echo "$CC" >&6; }
  3751. else
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3753. $as_echo "no" >&6; }
  3754. fi
  3755. test -n "$CC" && break
  3756. done
  3757. fi
  3758. if test -z "$CC"; then
  3759. ac_ct_CC=$CC
  3760. for ac_prog in cl.exe
  3761. do
  3762. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3763. set dummy $ac_prog; ac_word=$2
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3765. $as_echo_n "checking for $ac_word... " >&6; }
  3766. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3767. $as_echo_n "(cached) " >&6
  3768. else
  3769. if test -n "$ac_ct_CC"; then
  3770. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3771. else
  3772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3773. for as_dir in $PATH
  3774. do
  3775. IFS=$as_save_IFS
  3776. test -z "$as_dir" && as_dir=.
  3777. for ac_exec_ext in '' $ac_executable_extensions; do
  3778. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3779. ac_cv_prog_ac_ct_CC="$ac_prog"
  3780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3781. break 2
  3782. fi
  3783. done
  3784. done
  3785. IFS=$as_save_IFS
  3786. fi
  3787. fi
  3788. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3789. if test -n "$ac_ct_CC"; then
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3791. $as_echo "$ac_ct_CC" >&6; }
  3792. else
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3794. $as_echo "no" >&6; }
  3795. fi
  3796. test -n "$ac_ct_CC" && break
  3797. done
  3798. if test "x$ac_ct_CC" = x; then
  3799. CC=""
  3800. else
  3801. case $cross_compiling:$ac_tool_warned in
  3802. yes:)
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3804. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3805. ac_tool_warned=yes ;;
  3806. esac
  3807. CC=$ac_ct_CC
  3808. fi
  3809. fi
  3810. fi
  3811. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3812. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3813. as_fn_error "no acceptable C compiler found in \$PATH
  3814. See \`config.log' for more details." "$LINENO" 5; }
  3815. # Provide some information about the compiler.
  3816. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3817. set X $ac_compile
  3818. ac_compiler=$2
  3819. for ac_option in --version -v -V -qversion; do
  3820. { { ac_try="$ac_compiler $ac_option >&5"
  3821. case "(($ac_try" in
  3822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3823. *) ac_try_echo=$ac_try;;
  3824. esac
  3825. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3826. $as_echo "$ac_try_echo"; } >&5
  3827. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3828. ac_status=$?
  3829. if test -s conftest.err; then
  3830. sed '10a\
  3831. ... rest of stderr output deleted ...
  3832. 10q' conftest.err >conftest.er1
  3833. cat conftest.er1 >&5
  3834. rm -f conftest.er1 conftest.err
  3835. fi
  3836. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3837. test $ac_status = 0; }
  3838. done
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3840. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3841. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3842. $as_echo_n "(cached) " >&6
  3843. else
  3844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3845. /* end confdefs.h. */
  3846. int
  3847. main ()
  3848. {
  3849. #ifndef __GNUC__
  3850. choke me
  3851. #endif
  3852. ;
  3853. return 0;
  3854. }
  3855. _ACEOF
  3856. if ac_fn_c_try_compile "$LINENO"; then :
  3857. ac_compiler_gnu=yes
  3858. else
  3859. ac_compiler_gnu=no
  3860. fi
  3861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3862. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3863. fi
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3865. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3866. if test $ac_compiler_gnu = yes; then
  3867. GCC=yes
  3868. else
  3869. GCC=
  3870. fi
  3871. ac_test_CFLAGS=${CFLAGS+set}
  3872. ac_save_CFLAGS=$CFLAGS
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3874. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3875. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3876. $as_echo_n "(cached) " >&6
  3877. else
  3878. ac_save_c_werror_flag=$ac_c_werror_flag
  3879. ac_c_werror_flag=yes
  3880. ac_cv_prog_cc_g=no
  3881. CFLAGS="-g"
  3882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3883. /* end confdefs.h. */
  3884. int
  3885. main ()
  3886. {
  3887. ;
  3888. return 0;
  3889. }
  3890. _ACEOF
  3891. if ac_fn_c_try_compile "$LINENO"; then :
  3892. ac_cv_prog_cc_g=yes
  3893. else
  3894. CFLAGS=""
  3895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3896. /* end confdefs.h. */
  3897. int
  3898. main ()
  3899. {
  3900. ;
  3901. return 0;
  3902. }
  3903. _ACEOF
  3904. if ac_fn_c_try_compile "$LINENO"; then :
  3905. else
  3906. ac_c_werror_flag=$ac_save_c_werror_flag
  3907. CFLAGS="-g"
  3908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3909. /* end confdefs.h. */
  3910. int
  3911. main ()
  3912. {
  3913. ;
  3914. return 0;
  3915. }
  3916. _ACEOF
  3917. if ac_fn_c_try_compile "$LINENO"; then :
  3918. ac_cv_prog_cc_g=yes
  3919. fi
  3920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3921. fi
  3922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3923. fi
  3924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3925. ac_c_werror_flag=$ac_save_c_werror_flag
  3926. fi
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3928. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3929. if test "$ac_test_CFLAGS" = set; then
  3930. CFLAGS=$ac_save_CFLAGS
  3931. elif test $ac_cv_prog_cc_g = yes; then
  3932. if test "$GCC" = yes; then
  3933. CFLAGS="-g -O2"
  3934. else
  3935. CFLAGS="-g"
  3936. fi
  3937. else
  3938. if test "$GCC" = yes; then
  3939. CFLAGS="-O2"
  3940. else
  3941. CFLAGS=
  3942. fi
  3943. fi
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3945. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3946. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3947. $as_echo_n "(cached) " >&6
  3948. else
  3949. ac_cv_prog_cc_c89=no
  3950. ac_save_CC=$CC
  3951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3952. /* end confdefs.h. */
  3953. #include <stdarg.h>
  3954. #include <stdio.h>
  3955. #include <sys/types.h>
  3956. #include <sys/stat.h>
  3957. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3958. struct buf { int x; };
  3959. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3960. static char *e (p, i)
  3961. char **p;
  3962. int i;
  3963. {
  3964. return p[i];
  3965. }
  3966. static char *f (char * (*g) (char **, int), char **p, ...)
  3967. {
  3968. char *s;
  3969. va_list v;
  3970. va_start (v,p);
  3971. s = g (p, va_arg (v,int));
  3972. va_end (v);
  3973. return s;
  3974. }
  3975. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3976. function prototypes and stuff, but not '\xHH' hex character constants.
  3977. These don't provoke an error unfortunately, instead are silently treated
  3978. as 'x'. The following induces an error, until -std is added to get
  3979. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3980. array size at least. It's necessary to write '\x00'==0 to get something
  3981. that's true only with -std. */
  3982. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3983. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3984. inside strings and character constants. */
  3985. #define FOO(x) 'x'
  3986. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3987. int test (int i, double x);
  3988. struct s1 {int (*f) (int a);};
  3989. struct s2 {int (*f) (double a);};
  3990. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3991. int argc;
  3992. char **argv;
  3993. int
  3994. main ()
  3995. {
  3996. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3997. ;
  3998. return 0;
  3999. }
  4000. _ACEOF
  4001. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4002. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4003. do
  4004. CC="$ac_save_CC $ac_arg"
  4005. if ac_fn_c_try_compile "$LINENO"; then :
  4006. ac_cv_prog_cc_c89=$ac_arg
  4007. fi
  4008. rm -f core conftest.err conftest.$ac_objext
  4009. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4010. done
  4011. rm -f conftest.$ac_ext
  4012. CC=$ac_save_CC
  4013. fi
  4014. # AC_CACHE_VAL
  4015. case "x$ac_cv_prog_cc_c89" in
  4016. x)
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4018. $as_echo "none needed" >&6; } ;;
  4019. xno)
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4021. $as_echo "unsupported" >&6; } ;;
  4022. *)
  4023. CC="$CC $ac_cv_prog_cc_c89"
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4025. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4026. esac
  4027. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4028. fi
  4029. ac_ext=c
  4030. ac_cpp='$CPP $CPPFLAGS'
  4031. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4032. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4033. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4034. ac_ext=c
  4035. ac_cpp='$CPP $CPPFLAGS'
  4036. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4037. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4038. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4040. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4041. # On Suns, sometimes $CPP names a directory.
  4042. if test -n "$CPP" && test -d "$CPP"; then
  4043. CPP=
  4044. fi
  4045. if test -z "$CPP"; then
  4046. if test "${ac_cv_prog_CPP+set}" = set; then :
  4047. $as_echo_n "(cached) " >&6
  4048. else
  4049. # Double quotes because CPP needs to be expanded
  4050. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4051. do
  4052. ac_preproc_ok=false
  4053. for ac_c_preproc_warn_flag in '' yes
  4054. do
  4055. # Use a header file that comes with gcc, so configuring glibc
  4056. # with a fresh cross-compiler works.
  4057. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4058. # <limits.h> exists even on freestanding compilers.
  4059. # On the NeXT, cc -E runs the code through the compiler's parser,
  4060. # not just through cpp. "Syntax error" is here to catch this case.
  4061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4062. /* end confdefs.h. */
  4063. #ifdef __STDC__
  4064. # include <limits.h>
  4065. #else
  4066. # include <assert.h>
  4067. #endif
  4068. Syntax error
  4069. _ACEOF
  4070. if ac_fn_c_try_cpp "$LINENO"; then :
  4071. else
  4072. # Broken: fails on valid input.
  4073. continue
  4074. fi
  4075. rm -f conftest.err conftest.$ac_ext
  4076. # OK, works on sane cases. Now check whether nonexistent headers
  4077. # can be detected and how.
  4078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4079. /* end confdefs.h. */
  4080. #include <ac_nonexistent.h>
  4081. _ACEOF
  4082. if ac_fn_c_try_cpp "$LINENO"; then :
  4083. # Broken: success on invalid input.
  4084. continue
  4085. else
  4086. # Passes both tests.
  4087. ac_preproc_ok=:
  4088. break
  4089. fi
  4090. rm -f conftest.err conftest.$ac_ext
  4091. done
  4092. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4093. rm -f conftest.err conftest.$ac_ext
  4094. if $ac_preproc_ok; then :
  4095. break
  4096. fi
  4097. done
  4098. ac_cv_prog_CPP=$CPP
  4099. fi
  4100. CPP=$ac_cv_prog_CPP
  4101. else
  4102. ac_cv_prog_CPP=$CPP
  4103. fi
  4104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4105. $as_echo "$CPP" >&6; }
  4106. ac_preproc_ok=false
  4107. for ac_c_preproc_warn_flag in '' yes
  4108. do
  4109. # Use a header file that comes with gcc, so configuring glibc
  4110. # with a fresh cross-compiler works.
  4111. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4112. # <limits.h> exists even on freestanding compilers.
  4113. # On the NeXT, cc -E runs the code through the compiler's parser,
  4114. # not just through cpp. "Syntax error" is here to catch this case.
  4115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4116. /* end confdefs.h. */
  4117. #ifdef __STDC__
  4118. # include <limits.h>
  4119. #else
  4120. # include <assert.h>
  4121. #endif
  4122. Syntax error
  4123. _ACEOF
  4124. if ac_fn_c_try_cpp "$LINENO"; then :
  4125. else
  4126. # Broken: fails on valid input.
  4127. continue
  4128. fi
  4129. rm -f conftest.err conftest.$ac_ext
  4130. # OK, works on sane cases. Now check whether nonexistent headers
  4131. # can be detected and how.
  4132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4133. /* end confdefs.h. */
  4134. #include <ac_nonexistent.h>
  4135. _ACEOF
  4136. if ac_fn_c_try_cpp "$LINENO"; then :
  4137. # Broken: success on invalid input.
  4138. continue
  4139. else
  4140. # Passes both tests.
  4141. ac_preproc_ok=:
  4142. break
  4143. fi
  4144. rm -f conftest.err conftest.$ac_ext
  4145. done
  4146. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4147. rm -f conftest.err conftest.$ac_ext
  4148. if $ac_preproc_ok; then :
  4149. else
  4150. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4151. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4152. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4153. See \`config.log' for more details." "$LINENO" 5; }
  4154. fi
  4155. ac_ext=c
  4156. ac_cpp='$CPP $CPPFLAGS'
  4157. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4158. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4159. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4161. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4162. if test "${ac_cv_path_GREP+set}" = set; then :
  4163. $as_echo_n "(cached) " >&6
  4164. else
  4165. if test -z "$GREP"; then
  4166. ac_path_GREP_found=false
  4167. # Loop through the user's path and test for each of PROGNAME-LIST
  4168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4169. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4170. do
  4171. IFS=$as_save_IFS
  4172. test -z "$as_dir" && as_dir=.
  4173. for ac_prog in grep ggrep; do
  4174. for ac_exec_ext in '' $ac_executable_extensions; do
  4175. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4176. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4177. # Check for GNU ac_path_GREP and select it if it is found.
  4178. # Check for GNU $ac_path_GREP
  4179. case `"$ac_path_GREP" --version 2>&1` in
  4180. *GNU*)
  4181. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4182. *)
  4183. ac_count=0
  4184. $as_echo_n 0123456789 >"conftest.in"
  4185. while :
  4186. do
  4187. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4188. mv "conftest.tmp" "conftest.in"
  4189. cp "conftest.in" "conftest.nl"
  4190. $as_echo 'GREP' >> "conftest.nl"
  4191. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4192. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4193. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4194. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4195. # Best one so far, save it but keep looking for a better one
  4196. ac_cv_path_GREP="$ac_path_GREP"
  4197. ac_path_GREP_max=$ac_count
  4198. fi
  4199. # 10*(2^10) chars as input seems more than enough
  4200. test $ac_count -gt 10 && break
  4201. done
  4202. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4203. esac
  4204. $ac_path_GREP_found && break 3
  4205. done
  4206. done
  4207. done
  4208. IFS=$as_save_IFS
  4209. if test -z "$ac_cv_path_GREP"; then
  4210. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4211. fi
  4212. else
  4213. ac_cv_path_GREP=$GREP
  4214. fi
  4215. fi
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4217. $as_echo "$ac_cv_path_GREP" >&6; }
  4218. GREP="$ac_cv_path_GREP"
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4220. $as_echo_n "checking for egrep... " >&6; }
  4221. if test "${ac_cv_path_EGREP+set}" = set; then :
  4222. $as_echo_n "(cached) " >&6
  4223. else
  4224. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4225. then ac_cv_path_EGREP="$GREP -E"
  4226. else
  4227. if test -z "$EGREP"; then
  4228. ac_path_EGREP_found=false
  4229. # Loop through the user's path and test for each of PROGNAME-LIST
  4230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4231. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4232. do
  4233. IFS=$as_save_IFS
  4234. test -z "$as_dir" && as_dir=.
  4235. for ac_prog in egrep; do
  4236. for ac_exec_ext in '' $ac_executable_extensions; do
  4237. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4238. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4239. # Check for GNU ac_path_EGREP and select it if it is found.
  4240. # Check for GNU $ac_path_EGREP
  4241. case `"$ac_path_EGREP" --version 2>&1` in
  4242. *GNU*)
  4243. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4244. *)
  4245. ac_count=0
  4246. $as_echo_n 0123456789 >"conftest.in"
  4247. while :
  4248. do
  4249. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4250. mv "conftest.tmp" "conftest.in"
  4251. cp "conftest.in" "conftest.nl"
  4252. $as_echo 'EGREP' >> "conftest.nl"
  4253. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4254. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4255. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4256. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4257. # Best one so far, save it but keep looking for a better one
  4258. ac_cv_path_EGREP="$ac_path_EGREP"
  4259. ac_path_EGREP_max=$ac_count
  4260. fi
  4261. # 10*(2^10) chars as input seems more than enough
  4262. test $ac_count -gt 10 && break
  4263. done
  4264. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4265. esac
  4266. $ac_path_EGREP_found && break 3
  4267. done
  4268. done
  4269. done
  4270. IFS=$as_save_IFS
  4271. if test -z "$ac_cv_path_EGREP"; then
  4272. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4273. fi
  4274. else
  4275. ac_cv_path_EGREP=$EGREP
  4276. fi
  4277. fi
  4278. fi
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4280. $as_echo "$ac_cv_path_EGREP" >&6; }
  4281. EGREP="$ac_cv_path_EGREP"
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4283. $as_echo_n "checking for ANSI C header files... " >&6; }
  4284. if test "${ac_cv_header_stdc+set}" = set; then :
  4285. $as_echo_n "(cached) " >&6
  4286. else
  4287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4288. /* end confdefs.h. */
  4289. #include <stdlib.h>
  4290. #include <stdarg.h>
  4291. #include <string.h>
  4292. #include <float.h>
  4293. int
  4294. main ()
  4295. {
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. if ac_fn_c_try_compile "$LINENO"; then :
  4301. ac_cv_header_stdc=yes
  4302. else
  4303. ac_cv_header_stdc=no
  4304. fi
  4305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4306. if test $ac_cv_header_stdc = yes; then
  4307. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4309. /* end confdefs.h. */
  4310. #include <string.h>
  4311. _ACEOF
  4312. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4313. $EGREP "memchr" >/dev/null 2>&1; then :
  4314. else
  4315. ac_cv_header_stdc=no
  4316. fi
  4317. rm -f conftest*
  4318. fi
  4319. if test $ac_cv_header_stdc = yes; then
  4320. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4322. /* end confdefs.h. */
  4323. #include <stdlib.h>
  4324. _ACEOF
  4325. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4326. $EGREP "free" >/dev/null 2>&1; then :
  4327. else
  4328. ac_cv_header_stdc=no
  4329. fi
  4330. rm -f conftest*
  4331. fi
  4332. if test $ac_cv_header_stdc = yes; then
  4333. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4334. if test "$cross_compiling" = yes; then :
  4335. :
  4336. else
  4337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4338. /* end confdefs.h. */
  4339. #include <ctype.h>
  4340. #include <stdlib.h>
  4341. #if ((' ' & 0x0FF) == 0x020)
  4342. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4343. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4344. #else
  4345. # define ISLOWER(c) \
  4346. (('a' <= (c) && (c) <= 'i') \
  4347. || ('j' <= (c) && (c) <= 'r') \
  4348. || ('s' <= (c) && (c) <= 'z'))
  4349. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4350. #endif
  4351. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4352. int
  4353. main ()
  4354. {
  4355. int i;
  4356. for (i = 0; i < 256; i++)
  4357. if (XOR (islower (i), ISLOWER (i))
  4358. || toupper (i) != TOUPPER (i))
  4359. return 2;
  4360. return 0;
  4361. }
  4362. _ACEOF
  4363. if ac_fn_c_try_run "$LINENO"; then :
  4364. else
  4365. ac_cv_header_stdc=no
  4366. fi
  4367. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4368. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4369. fi
  4370. fi
  4371. fi
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4373. $as_echo "$ac_cv_header_stdc" >&6; }
  4374. if test $ac_cv_header_stdc = yes; then
  4375. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4376. fi
  4377. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4378. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4379. inttypes.h stdint.h unistd.h
  4380. do :
  4381. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4382. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4383. "
  4384. eval as_val=\$$as_ac_Header
  4385. if test "x$as_val" = x""yes; then :
  4386. cat >>confdefs.h <<_ACEOF
  4387. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4388. _ACEOF
  4389. fi
  4390. done
  4391. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4392. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4393. MINIX=yes
  4394. else
  4395. MINIX=
  4396. fi
  4397. if test "$MINIX" = yes; then
  4398. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4399. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4400. $as_echo "#define _MINIX 1" >>confdefs.h
  4401. fi
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4403. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4404. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4405. $as_echo_n "(cached) " >&6
  4406. else
  4407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4408. /* end confdefs.h. */
  4409. # define __EXTENSIONS__ 1
  4410. $ac_includes_default
  4411. int
  4412. main ()
  4413. {
  4414. ;
  4415. return 0;
  4416. }
  4417. _ACEOF
  4418. if ac_fn_c_try_compile "$LINENO"; then :
  4419. ac_cv_safe_to_define___extensions__=yes
  4420. else
  4421. ac_cv_safe_to_define___extensions__=no
  4422. fi
  4423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4424. fi
  4425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4426. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4427. test $ac_cv_safe_to_define___extensions__ = yes &&
  4428. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4429. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4430. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4431. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4432. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4433. case `pwd` in
  4434. *\ * | *\ *)
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4436. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4437. esac
  4438. macro_version='2.2.7a'
  4439. macro_revision='1.3134'
  4440. ltmain="$ac_aux_dir/ltmain.sh"
  4441. # Backslashify metacharacters that are still active within
  4442. # double-quoted strings.
  4443. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4444. # Same as above, but do not quote variable references.
  4445. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4446. # Sed substitution to delay expansion of an escaped shell variable in a
  4447. # double_quote_subst'ed string.
  4448. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4449. # Sed substitution to delay expansion of an escaped single quote.
  4450. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4451. # Sed substitution to avoid accidental globbing in evaled expressions
  4452. no_glob_subst='s/\*/\\\*/g'
  4453. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4454. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4455. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4457. $as_echo_n "checking how to print strings... " >&6; }
  4458. # Test print first, because it will be a builtin if present.
  4459. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4460. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4461. ECHO='print -r --'
  4462. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4463. ECHO='printf %s\n'
  4464. else
  4465. # Use this function as a fallback that always works.
  4466. func_fallback_echo ()
  4467. {
  4468. eval 'cat <<_LTECHO_EOF
  4469. $1
  4470. _LTECHO_EOF'
  4471. }
  4472. ECHO='func_fallback_echo'
  4473. fi
  4474. # func_echo_all arg...
  4475. # Invoke $ECHO with all args, space-separated.
  4476. func_echo_all ()
  4477. {
  4478. $ECHO ""
  4479. }
  4480. case "$ECHO" in
  4481. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4482. $as_echo "printf" >&6; } ;;
  4483. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4484. $as_echo "print -r" >&6; } ;;
  4485. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4486. $as_echo "cat" >&6; } ;;
  4487. esac
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4489. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4490. if test "${ac_cv_path_SED+set}" = set; then :
  4491. $as_echo_n "(cached) " >&6
  4492. else
  4493. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4494. for ac_i in 1 2 3 4 5 6 7; do
  4495. ac_script="$ac_script$as_nl$ac_script"
  4496. done
  4497. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4498. { ac_script=; unset ac_script;}
  4499. if test -z "$SED"; then
  4500. ac_path_SED_found=false
  4501. # Loop through the user's path and test for each of PROGNAME-LIST
  4502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4503. for as_dir in $PATH
  4504. do
  4505. IFS=$as_save_IFS
  4506. test -z "$as_dir" && as_dir=.
  4507. for ac_prog in sed gsed; do
  4508. for ac_exec_ext in '' $ac_executable_extensions; do
  4509. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4510. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4511. # Check for GNU ac_path_SED and select it if it is found.
  4512. # Check for GNU $ac_path_SED
  4513. case `"$ac_path_SED" --version 2>&1` in
  4514. *GNU*)
  4515. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4516. *)
  4517. ac_count=0
  4518. $as_echo_n 0123456789 >"conftest.in"
  4519. while :
  4520. do
  4521. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4522. mv "conftest.tmp" "conftest.in"
  4523. cp "conftest.in" "conftest.nl"
  4524. $as_echo '' >> "conftest.nl"
  4525. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4526. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4527. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4528. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4529. # Best one so far, save it but keep looking for a better one
  4530. ac_cv_path_SED="$ac_path_SED"
  4531. ac_path_SED_max=$ac_count
  4532. fi
  4533. # 10*(2^10) chars as input seems more than enough
  4534. test $ac_count -gt 10 && break
  4535. done
  4536. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4537. esac
  4538. $ac_path_SED_found && break 3
  4539. done
  4540. done
  4541. done
  4542. IFS=$as_save_IFS
  4543. if test -z "$ac_cv_path_SED"; then
  4544. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4545. fi
  4546. else
  4547. ac_cv_path_SED=$SED
  4548. fi
  4549. fi
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4551. $as_echo "$ac_cv_path_SED" >&6; }
  4552. SED="$ac_cv_path_SED"
  4553. rm -f conftest.sed
  4554. test -z "$SED" && SED=sed
  4555. Xsed="$SED -e 1s/^X//"
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4557. $as_echo_n "checking for fgrep... " >&6; }
  4558. if test "${ac_cv_path_FGREP+set}" = set; then :
  4559. $as_echo_n "(cached) " >&6
  4560. else
  4561. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4562. then ac_cv_path_FGREP="$GREP -F"
  4563. else
  4564. if test -z "$FGREP"; then
  4565. ac_path_FGREP_found=false
  4566. # Loop through the user's path and test for each of PROGNAME-LIST
  4567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4568. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4569. do
  4570. IFS=$as_save_IFS
  4571. test -z "$as_dir" && as_dir=.
  4572. for ac_prog in fgrep; do
  4573. for ac_exec_ext in '' $ac_executable_extensions; do
  4574. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4575. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4576. # Check for GNU ac_path_FGREP and select it if it is found.
  4577. # Check for GNU $ac_path_FGREP
  4578. case `"$ac_path_FGREP" --version 2>&1` in
  4579. *GNU*)
  4580. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4581. *)
  4582. ac_count=0
  4583. $as_echo_n 0123456789 >"conftest.in"
  4584. while :
  4585. do
  4586. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4587. mv "conftest.tmp" "conftest.in"
  4588. cp "conftest.in" "conftest.nl"
  4589. $as_echo 'FGREP' >> "conftest.nl"
  4590. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4591. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4592. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4593. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4594. # Best one so far, save it but keep looking for a better one
  4595. ac_cv_path_FGREP="$ac_path_FGREP"
  4596. ac_path_FGREP_max=$ac_count
  4597. fi
  4598. # 10*(2^10) chars as input seems more than enough
  4599. test $ac_count -gt 10 && break
  4600. done
  4601. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4602. esac
  4603. $ac_path_FGREP_found && break 3
  4604. done
  4605. done
  4606. done
  4607. IFS=$as_save_IFS
  4608. if test -z "$ac_cv_path_FGREP"; then
  4609. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4610. fi
  4611. else
  4612. ac_cv_path_FGREP=$FGREP
  4613. fi
  4614. fi
  4615. fi
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4617. $as_echo "$ac_cv_path_FGREP" >&6; }
  4618. FGREP="$ac_cv_path_FGREP"
  4619. test -z "$GREP" && GREP=grep
  4620. # Check whether --with-gnu-ld was given.
  4621. if test "${with_gnu_ld+set}" = set; then :
  4622. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4623. else
  4624. with_gnu_ld=no
  4625. fi
  4626. ac_prog=ld
  4627. if test "$GCC" = yes; then
  4628. # Check if gcc -print-prog-name=ld gives a path.
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4630. $as_echo_n "checking for ld used by $CC... " >&6; }
  4631. case $host in
  4632. *-*-mingw*)
  4633. # gcc leaves a trailing carriage return which upsets mingw
  4634. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4635. *)
  4636. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4637. esac
  4638. case $ac_prog in
  4639. # Accept absolute paths.
  4640. [\\/]* | ?:[\\/]*)
  4641. re_direlt='/[^/][^/]*/\.\./'
  4642. # Canonicalize the pathname of ld
  4643. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4644. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4645. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4646. done
  4647. test -z "$LD" && LD="$ac_prog"
  4648. ;;
  4649. "")
  4650. # If it fails, then pretend we aren't using GCC.
  4651. ac_prog=ld
  4652. ;;
  4653. *)
  4654. # If it is relative, then search for the first ld in PATH.
  4655. with_gnu_ld=unknown
  4656. ;;
  4657. esac
  4658. elif test "$with_gnu_ld" = yes; then
  4659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4660. $as_echo_n "checking for GNU ld... " >&6; }
  4661. else
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4663. $as_echo_n "checking for non-GNU ld... " >&6; }
  4664. fi
  4665. if test "${lt_cv_path_LD+set}" = set; then :
  4666. $as_echo_n "(cached) " >&6
  4667. else
  4668. if test -z "$LD"; then
  4669. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4670. for ac_dir in $PATH; do
  4671. IFS="$lt_save_ifs"
  4672. test -z "$ac_dir" && ac_dir=.
  4673. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4674. lt_cv_path_LD="$ac_dir/$ac_prog"
  4675. # Check to see if the program is GNU ld. I'd rather use --version,
  4676. # but apparently some variants of GNU ld only accept -v.
  4677. # Break only if it was the GNU/non-GNU ld that we prefer.
  4678. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4679. *GNU* | *'with BFD'*)
  4680. test "$with_gnu_ld" != no && break
  4681. ;;
  4682. *)
  4683. test "$with_gnu_ld" != yes && break
  4684. ;;
  4685. esac
  4686. fi
  4687. done
  4688. IFS="$lt_save_ifs"
  4689. else
  4690. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4691. fi
  4692. fi
  4693. LD="$lt_cv_path_LD"
  4694. if test -n "$LD"; then
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4696. $as_echo "$LD" >&6; }
  4697. else
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4699. $as_echo "no" >&6; }
  4700. fi
  4701. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4703. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4704. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4705. $as_echo_n "(cached) " >&6
  4706. else
  4707. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4708. case `$LD -v 2>&1 </dev/null` in
  4709. *GNU* | *'with BFD'*)
  4710. lt_cv_prog_gnu_ld=yes
  4711. ;;
  4712. *)
  4713. lt_cv_prog_gnu_ld=no
  4714. ;;
  4715. esac
  4716. fi
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4718. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4719. with_gnu_ld=$lt_cv_prog_gnu_ld
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4721. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4722. if test "${lt_cv_path_NM+set}" = set; then :
  4723. $as_echo_n "(cached) " >&6
  4724. else
  4725. if test -n "$NM"; then
  4726. # Let the user override the test.
  4727. lt_cv_path_NM="$NM"
  4728. else
  4729. lt_nm_to_check="${ac_tool_prefix}nm"
  4730. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4731. lt_nm_to_check="$lt_nm_to_check nm"
  4732. fi
  4733. for lt_tmp_nm in $lt_nm_to_check; do
  4734. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4735. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4736. IFS="$lt_save_ifs"
  4737. test -z "$ac_dir" && ac_dir=.
  4738. tmp_nm="$ac_dir/$lt_tmp_nm"
  4739. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4740. # Check to see if the nm accepts a BSD-compat flag.
  4741. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4742. # nm: unknown option "B" ignored
  4743. # Tru64's nm complains that /dev/null is an invalid object file
  4744. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4745. */dev/null* | *'Invalid file or object type'*)
  4746. lt_cv_path_NM="$tmp_nm -B"
  4747. break
  4748. ;;
  4749. *)
  4750. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4751. */dev/null*)
  4752. lt_cv_path_NM="$tmp_nm -p"
  4753. break
  4754. ;;
  4755. *)
  4756. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4757. continue # so that we can try to find one that supports BSD flags
  4758. ;;
  4759. esac
  4760. ;;
  4761. esac
  4762. fi
  4763. done
  4764. IFS="$lt_save_ifs"
  4765. done
  4766. : ${lt_cv_path_NM=no}
  4767. fi
  4768. fi
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4770. $as_echo "$lt_cv_path_NM" >&6; }
  4771. if test "$lt_cv_path_NM" != "no"; then
  4772. NM="$lt_cv_path_NM"
  4773. else
  4774. # Didn't find any BSD compatible name lister, look for dumpbin.
  4775. if test -n "$DUMPBIN"; then :
  4776. # Let the user override the test.
  4777. else
  4778. if test -n "$ac_tool_prefix"; then
  4779. for ac_prog in dumpbin "link -dump"
  4780. do
  4781. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4782. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4784. $as_echo_n "checking for $ac_word... " >&6; }
  4785. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4786. $as_echo_n "(cached) " >&6
  4787. else
  4788. if test -n "$DUMPBIN"; then
  4789. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4790. else
  4791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4792. for as_dir in $PATH
  4793. do
  4794. IFS=$as_save_IFS
  4795. test -z "$as_dir" && as_dir=.
  4796. for ac_exec_ext in '' $ac_executable_extensions; do
  4797. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4798. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4799. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4800. break 2
  4801. fi
  4802. done
  4803. done
  4804. IFS=$as_save_IFS
  4805. fi
  4806. fi
  4807. DUMPBIN=$ac_cv_prog_DUMPBIN
  4808. if test -n "$DUMPBIN"; then
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4810. $as_echo "$DUMPBIN" >&6; }
  4811. else
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4813. $as_echo "no" >&6; }
  4814. fi
  4815. test -n "$DUMPBIN" && break
  4816. done
  4817. fi
  4818. if test -z "$DUMPBIN"; then
  4819. ac_ct_DUMPBIN=$DUMPBIN
  4820. for ac_prog in dumpbin "link -dump"
  4821. do
  4822. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4823. set dummy $ac_prog; ac_word=$2
  4824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4825. $as_echo_n "checking for $ac_word... " >&6; }
  4826. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4827. $as_echo_n "(cached) " >&6
  4828. else
  4829. if test -n "$ac_ct_DUMPBIN"; then
  4830. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4831. else
  4832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4833. for as_dir in $PATH
  4834. do
  4835. IFS=$as_save_IFS
  4836. test -z "$as_dir" && as_dir=.
  4837. for ac_exec_ext in '' $ac_executable_extensions; do
  4838. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4839. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4841. break 2
  4842. fi
  4843. done
  4844. done
  4845. IFS=$as_save_IFS
  4846. fi
  4847. fi
  4848. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4849. if test -n "$ac_ct_DUMPBIN"; then
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4851. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4852. else
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4854. $as_echo "no" >&6; }
  4855. fi
  4856. test -n "$ac_ct_DUMPBIN" && break
  4857. done
  4858. if test "x$ac_ct_DUMPBIN" = x; then
  4859. DUMPBIN=":"
  4860. else
  4861. case $cross_compiling:$ac_tool_warned in
  4862. yes:)
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4864. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4865. ac_tool_warned=yes ;;
  4866. esac
  4867. DUMPBIN=$ac_ct_DUMPBIN
  4868. fi
  4869. fi
  4870. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4871. *COFF*)
  4872. DUMPBIN="$DUMPBIN -symbols"
  4873. ;;
  4874. *)
  4875. DUMPBIN=:
  4876. ;;
  4877. esac
  4878. fi
  4879. if test "$DUMPBIN" != ":"; then
  4880. NM="$DUMPBIN"
  4881. fi
  4882. fi
  4883. test -z "$NM" && NM=nm
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4885. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4886. if test "${lt_cv_nm_interface+set}" = set; then :
  4887. $as_echo_n "(cached) " >&6
  4888. else
  4889. lt_cv_nm_interface="BSD nm"
  4890. echo "int some_variable = 0;" > conftest.$ac_ext
  4891. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4892. (eval "$ac_compile" 2>conftest.err)
  4893. cat conftest.err >&5
  4894. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4895. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4896. cat conftest.err >&5
  4897. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4898. cat conftest.out >&5
  4899. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4900. lt_cv_nm_interface="MS dumpbin"
  4901. fi
  4902. rm -f conftest*
  4903. fi
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4905. $as_echo "$lt_cv_nm_interface" >&6; }
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4907. $as_echo_n "checking whether ln -s works... " >&6; }
  4908. LN_S=$as_ln_s
  4909. if test "$LN_S" = "ln -s"; then
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4911. $as_echo "yes" >&6; }
  4912. else
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4914. $as_echo "no, using $LN_S" >&6; }
  4915. fi
  4916. # find the maximum length of command line arguments
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4918. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4919. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4920. $as_echo_n "(cached) " >&6
  4921. else
  4922. i=0
  4923. teststring="ABCD"
  4924. case $build_os in
  4925. msdosdjgpp*)
  4926. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4927. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4928. # during glob expansion). Even if it were fixed, the result of this
  4929. # check would be larger than it should be.
  4930. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4931. ;;
  4932. gnu*)
  4933. # Under GNU Hurd, this test is not required because there is
  4934. # no limit to the length of command line arguments.
  4935. # Libtool will interpret -1 as no limit whatsoever
  4936. lt_cv_sys_max_cmd_len=-1;
  4937. ;;
  4938. cygwin* | mingw* | cegcc*)
  4939. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4940. # about 5 minutes as the teststring grows exponentially.
  4941. # Worse, since 9x/ME are not pre-emptively multitasking,
  4942. # you end up with a "frozen" computer, even though with patience
  4943. # the test eventually succeeds (with a max line length of 256k).
  4944. # Instead, let's just punt: use the minimum linelength reported by
  4945. # all of the supported platforms: 8192 (on NT/2K/XP).
  4946. lt_cv_sys_max_cmd_len=8192;
  4947. ;;
  4948. mint*)
  4949. # On MiNT this can take a long time and run out of memory.
  4950. lt_cv_sys_max_cmd_len=8192;
  4951. ;;
  4952. amigaos*)
  4953. # On AmigaOS with pdksh, this test takes hours, literally.
  4954. # So we just punt and use a minimum line length of 8192.
  4955. lt_cv_sys_max_cmd_len=8192;
  4956. ;;
  4957. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4958. # This has been around since 386BSD, at least. Likely further.
  4959. if test -x /sbin/sysctl; then
  4960. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4961. elif test -x /usr/sbin/sysctl; then
  4962. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4963. else
  4964. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4965. fi
  4966. # And add a safety zone
  4967. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4968. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4969. ;;
  4970. interix*)
  4971. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4972. lt_cv_sys_max_cmd_len=196608
  4973. ;;
  4974. osf*)
  4975. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4976. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4977. # nice to cause kernel panics so lets avoid the loop below.
  4978. # First set a reasonable default.
  4979. lt_cv_sys_max_cmd_len=16384
  4980. #
  4981. if test -x /sbin/sysconfig; then
  4982. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4983. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4984. esac
  4985. fi
  4986. ;;
  4987. sco3.2v5*)
  4988. lt_cv_sys_max_cmd_len=102400
  4989. ;;
  4990. sysv5* | sco5v6* | sysv4.2uw2*)
  4991. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4992. if test -n "$kargmax"; then
  4993. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4994. else
  4995. lt_cv_sys_max_cmd_len=32768
  4996. fi
  4997. ;;
  4998. *)
  4999. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5000. if test -n "$lt_cv_sys_max_cmd_len"; then
  5001. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5002. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5003. else
  5004. # Make teststring a little bigger before we do anything with it.
  5005. # a 1K string should be a reasonable start.
  5006. for i in 1 2 3 4 5 6 7 8 ; do
  5007. teststring=$teststring$teststring
  5008. done
  5009. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5010. # If test is not a shell built-in, we'll probably end up computing a
  5011. # maximum length that is only half of the actual maximum length, but
  5012. # we can't tell.
  5013. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5014. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5015. test $i != 17 # 1/2 MB should be enough
  5016. do
  5017. i=`expr $i + 1`
  5018. teststring=$teststring$teststring
  5019. done
  5020. # Only check the string length outside the loop.
  5021. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5022. teststring=
  5023. # Add a significant safety factor because C++ compilers can tack on
  5024. # massive amounts of additional arguments before passing them to the
  5025. # linker. It appears as though 1/2 is a usable value.
  5026. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5027. fi
  5028. ;;
  5029. esac
  5030. fi
  5031. if test -n $lt_cv_sys_max_cmd_len ; then
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5033. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5034. else
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5036. $as_echo "none" >&6; }
  5037. fi
  5038. max_cmd_len=$lt_cv_sys_max_cmd_len
  5039. : ${CP="cp -f"}
  5040. : ${MV="mv -f"}
  5041. : ${RM="rm -f"}
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5043. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5044. # Try some XSI features
  5045. xsi_shell=no
  5046. ( _lt_dummy="a/b/c"
  5047. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5048. = c,a/b,, \
  5049. && eval 'test $(( 1 + 1 )) -eq 2 \
  5050. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5051. && xsi_shell=yes
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5053. $as_echo "$xsi_shell" >&6; }
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5055. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5056. lt_shell_append=no
  5057. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5058. >/dev/null 2>&1 \
  5059. && lt_shell_append=yes
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5061. $as_echo "$lt_shell_append" >&6; }
  5062. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5063. lt_unset=unset
  5064. else
  5065. lt_unset=false
  5066. fi
  5067. # test EBCDIC or ASCII
  5068. case `echo X|tr X '\101'` in
  5069. A) # ASCII based system
  5070. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5071. lt_SP2NL='tr \040 \012'
  5072. lt_NL2SP='tr \015\012 \040\040'
  5073. ;;
  5074. *) # EBCDIC based system
  5075. lt_SP2NL='tr \100 \n'
  5076. lt_NL2SP='tr \r\n \100\100'
  5077. ;;
  5078. esac
  5079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5080. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5081. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5082. $as_echo_n "(cached) " >&6
  5083. else
  5084. lt_cv_ld_reload_flag='-r'
  5085. fi
  5086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5087. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5088. reload_flag=$lt_cv_ld_reload_flag
  5089. case $reload_flag in
  5090. "" | " "*) ;;
  5091. *) reload_flag=" $reload_flag" ;;
  5092. esac
  5093. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5094. case $host_os in
  5095. darwin*)
  5096. if test "$GCC" = yes; then
  5097. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5098. else
  5099. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5100. fi
  5101. ;;
  5102. esac
  5103. if test -n "$ac_tool_prefix"; then
  5104. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5105. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5107. $as_echo_n "checking for $ac_word... " >&6; }
  5108. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5109. $as_echo_n "(cached) " >&6
  5110. else
  5111. if test -n "$OBJDUMP"; then
  5112. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5113. else
  5114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5115. for as_dir in $PATH
  5116. do
  5117. IFS=$as_save_IFS
  5118. test -z "$as_dir" && as_dir=.
  5119. for ac_exec_ext in '' $ac_executable_extensions; do
  5120. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5121. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5123. break 2
  5124. fi
  5125. done
  5126. done
  5127. IFS=$as_save_IFS
  5128. fi
  5129. fi
  5130. OBJDUMP=$ac_cv_prog_OBJDUMP
  5131. if test -n "$OBJDUMP"; then
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5133. $as_echo "$OBJDUMP" >&6; }
  5134. else
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5136. $as_echo "no" >&6; }
  5137. fi
  5138. fi
  5139. if test -z "$ac_cv_prog_OBJDUMP"; then
  5140. ac_ct_OBJDUMP=$OBJDUMP
  5141. # Extract the first word of "objdump", so it can be a program name with args.
  5142. set dummy objdump; ac_word=$2
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5144. $as_echo_n "checking for $ac_word... " >&6; }
  5145. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5146. $as_echo_n "(cached) " >&6
  5147. else
  5148. if test -n "$ac_ct_OBJDUMP"; then
  5149. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5150. else
  5151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5152. for as_dir in $PATH
  5153. do
  5154. IFS=$as_save_IFS
  5155. test -z "$as_dir" && as_dir=.
  5156. for ac_exec_ext in '' $ac_executable_extensions; do
  5157. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5158. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5159. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5160. break 2
  5161. fi
  5162. done
  5163. done
  5164. IFS=$as_save_IFS
  5165. fi
  5166. fi
  5167. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5168. if test -n "$ac_ct_OBJDUMP"; then
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5170. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5171. else
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5173. $as_echo "no" >&6; }
  5174. fi
  5175. if test "x$ac_ct_OBJDUMP" = x; then
  5176. OBJDUMP="false"
  5177. else
  5178. case $cross_compiling:$ac_tool_warned in
  5179. yes:)
  5180. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5181. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5182. ac_tool_warned=yes ;;
  5183. esac
  5184. OBJDUMP=$ac_ct_OBJDUMP
  5185. fi
  5186. else
  5187. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5188. fi
  5189. test -z "$OBJDUMP" && OBJDUMP=objdump
  5190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5191. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5192. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5193. $as_echo_n "(cached) " >&6
  5194. else
  5195. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5196. lt_cv_file_magic_test_file=
  5197. lt_cv_deplibs_check_method='unknown'
  5198. # Need to set the preceding variable on all platforms that support
  5199. # interlibrary dependencies.
  5200. # 'none' -- dependencies not supported.
  5201. # `unknown' -- same as none, but documents that we really don't know.
  5202. # 'pass_all' -- all dependencies passed with no checks.
  5203. # 'test_compile' -- check by making test program.
  5204. # 'file_magic [[regex]]' -- check by looking for files in library path
  5205. # which responds to the $file_magic_cmd with a given extended regex.
  5206. # If you have `file' or equivalent on your system and you're not sure
  5207. # whether `pass_all' will *always* work, you probably want this one.
  5208. case $host_os in
  5209. aix[4-9]*)
  5210. lt_cv_deplibs_check_method=pass_all
  5211. ;;
  5212. beos*)
  5213. lt_cv_deplibs_check_method=pass_all
  5214. ;;
  5215. bsdi[45]*)
  5216. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5217. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5218. lt_cv_file_magic_test_file=/shlib/libc.so
  5219. ;;
  5220. cygwin*)
  5221. # func_win32_libid is a shell function defined in ltmain.sh
  5222. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5223. lt_cv_file_magic_cmd='func_win32_libid'
  5224. ;;
  5225. mingw* | pw32*)
  5226. # Base MSYS/MinGW do not provide the 'file' command needed by
  5227. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5228. # unless we find 'file', for example because we are cross-compiling.
  5229. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5230. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5231. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5232. lt_cv_file_magic_cmd='func_win32_libid'
  5233. else
  5234. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5235. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5236. fi
  5237. ;;
  5238. cegcc*)
  5239. # use the weaker test based on 'objdump'. See mingw*.
  5240. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5241. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5242. ;;
  5243. darwin* | rhapsody*)
  5244. lt_cv_deplibs_check_method=pass_all
  5245. ;;
  5246. freebsd* | dragonfly*)
  5247. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5248. case $host_cpu in
  5249. i*86 )
  5250. # Not sure whether the presence of OpenBSD here was a mistake.
  5251. # Let's accept both of them until this is cleared up.
  5252. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5253. lt_cv_file_magic_cmd=/usr/bin/file
  5254. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5255. ;;
  5256. esac
  5257. else
  5258. lt_cv_deplibs_check_method=pass_all
  5259. fi
  5260. ;;
  5261. gnu*)
  5262. lt_cv_deplibs_check_method=pass_all
  5263. ;;
  5264. haiku*)
  5265. lt_cv_deplibs_check_method=pass_all
  5266. ;;
  5267. hpux10.20* | hpux11*)
  5268. lt_cv_file_magic_cmd=/usr/bin/file
  5269. case $host_cpu in
  5270. ia64*)
  5271. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5272. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5273. ;;
  5274. hppa*64*)
  5275. 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]'
  5276. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5277. ;;
  5278. *)
  5279. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5280. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5281. ;;
  5282. esac
  5283. ;;
  5284. interix[3-9]*)
  5285. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5286. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5287. ;;
  5288. irix5* | irix6* | nonstopux*)
  5289. case $LD in
  5290. *-32|*"-32 ") libmagic=32-bit;;
  5291. *-n32|*"-n32 ") libmagic=N32;;
  5292. *-64|*"-64 ") libmagic=64-bit;;
  5293. *) libmagic=never-match;;
  5294. esac
  5295. lt_cv_deplibs_check_method=pass_all
  5296. ;;
  5297. # This must be Linux ELF.
  5298. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5299. lt_cv_deplibs_check_method=pass_all
  5300. ;;
  5301. netbsd*)
  5302. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5303. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5304. else
  5305. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5306. fi
  5307. ;;
  5308. newos6*)
  5309. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5310. lt_cv_file_magic_cmd=/usr/bin/file
  5311. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5312. ;;
  5313. *nto* | *qnx*)
  5314. lt_cv_deplibs_check_method=pass_all
  5315. ;;
  5316. openbsd*)
  5317. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5318. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5319. else
  5320. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5321. fi
  5322. ;;
  5323. osf3* | osf4* | osf5*)
  5324. lt_cv_deplibs_check_method=pass_all
  5325. ;;
  5326. rdos*)
  5327. lt_cv_deplibs_check_method=pass_all
  5328. ;;
  5329. solaris*)
  5330. lt_cv_deplibs_check_method=pass_all
  5331. ;;
  5332. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5333. lt_cv_deplibs_check_method=pass_all
  5334. ;;
  5335. sysv4 | sysv4.3*)
  5336. case $host_vendor in
  5337. motorola)
  5338. 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]'
  5339. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5340. ;;
  5341. ncr)
  5342. lt_cv_deplibs_check_method=pass_all
  5343. ;;
  5344. sequent)
  5345. lt_cv_file_magic_cmd='/bin/file'
  5346. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5347. ;;
  5348. sni)
  5349. lt_cv_file_magic_cmd='/bin/file'
  5350. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5351. lt_cv_file_magic_test_file=/lib/libc.so
  5352. ;;
  5353. siemens)
  5354. lt_cv_deplibs_check_method=pass_all
  5355. ;;
  5356. pc)
  5357. lt_cv_deplibs_check_method=pass_all
  5358. ;;
  5359. esac
  5360. ;;
  5361. tpf*)
  5362. lt_cv_deplibs_check_method=pass_all
  5363. ;;
  5364. esac
  5365. fi
  5366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5367. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5368. file_magic_cmd=$lt_cv_file_magic_cmd
  5369. deplibs_check_method=$lt_cv_deplibs_check_method
  5370. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5371. if test -n "$ac_tool_prefix"; then
  5372. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5373. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5375. $as_echo_n "checking for $ac_word... " >&6; }
  5376. if test "${ac_cv_prog_AR+set}" = set; then :
  5377. $as_echo_n "(cached) " >&6
  5378. else
  5379. if test -n "$AR"; then
  5380. ac_cv_prog_AR="$AR" # Let the user override the test.
  5381. else
  5382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5383. for as_dir in $PATH
  5384. do
  5385. IFS=$as_save_IFS
  5386. test -z "$as_dir" && as_dir=.
  5387. for ac_exec_ext in '' $ac_executable_extensions; do
  5388. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5389. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5391. break 2
  5392. fi
  5393. done
  5394. done
  5395. IFS=$as_save_IFS
  5396. fi
  5397. fi
  5398. AR=$ac_cv_prog_AR
  5399. if test -n "$AR"; then
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5401. $as_echo "$AR" >&6; }
  5402. else
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5404. $as_echo "no" >&6; }
  5405. fi
  5406. fi
  5407. if test -z "$ac_cv_prog_AR"; then
  5408. ac_ct_AR=$AR
  5409. # Extract the first word of "ar", so it can be a program name with args.
  5410. set dummy ar; ac_word=$2
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5412. $as_echo_n "checking for $ac_word... " >&6; }
  5413. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5414. $as_echo_n "(cached) " >&6
  5415. else
  5416. if test -n "$ac_ct_AR"; then
  5417. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5418. else
  5419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5420. for as_dir in $PATH
  5421. do
  5422. IFS=$as_save_IFS
  5423. test -z "$as_dir" && as_dir=.
  5424. for ac_exec_ext in '' $ac_executable_extensions; do
  5425. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5426. ac_cv_prog_ac_ct_AR="ar"
  5427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5428. break 2
  5429. fi
  5430. done
  5431. done
  5432. IFS=$as_save_IFS
  5433. fi
  5434. fi
  5435. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5436. if test -n "$ac_ct_AR"; then
  5437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5438. $as_echo "$ac_ct_AR" >&6; }
  5439. else
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5441. $as_echo "no" >&6; }
  5442. fi
  5443. if test "x$ac_ct_AR" = x; then
  5444. AR="false"
  5445. else
  5446. case $cross_compiling:$ac_tool_warned in
  5447. yes:)
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5449. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5450. ac_tool_warned=yes ;;
  5451. esac
  5452. AR=$ac_ct_AR
  5453. fi
  5454. else
  5455. AR="$ac_cv_prog_AR"
  5456. fi
  5457. test -z "$AR" && AR=ar
  5458. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5459. if test -n "$ac_tool_prefix"; then
  5460. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5461. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5463. $as_echo_n "checking for $ac_word... " >&6; }
  5464. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5465. $as_echo_n "(cached) " >&6
  5466. else
  5467. if test -n "$STRIP"; then
  5468. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5469. else
  5470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5471. for as_dir in $PATH
  5472. do
  5473. IFS=$as_save_IFS
  5474. test -z "$as_dir" && as_dir=.
  5475. for ac_exec_ext in '' $ac_executable_extensions; do
  5476. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5477. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5479. break 2
  5480. fi
  5481. done
  5482. done
  5483. IFS=$as_save_IFS
  5484. fi
  5485. fi
  5486. STRIP=$ac_cv_prog_STRIP
  5487. if test -n "$STRIP"; then
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5489. $as_echo "$STRIP" >&6; }
  5490. else
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5492. $as_echo "no" >&6; }
  5493. fi
  5494. fi
  5495. if test -z "$ac_cv_prog_STRIP"; then
  5496. ac_ct_STRIP=$STRIP
  5497. # Extract the first word of "strip", so it can be a program name with args.
  5498. set dummy strip; ac_word=$2
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5500. $as_echo_n "checking for $ac_word... " >&6; }
  5501. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. if test -n "$ac_ct_STRIP"; then
  5505. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5506. else
  5507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5508. for as_dir in $PATH
  5509. do
  5510. IFS=$as_save_IFS
  5511. test -z "$as_dir" && as_dir=.
  5512. for ac_exec_ext in '' $ac_executable_extensions; do
  5513. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5514. ac_cv_prog_ac_ct_STRIP="strip"
  5515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5516. break 2
  5517. fi
  5518. done
  5519. done
  5520. IFS=$as_save_IFS
  5521. fi
  5522. fi
  5523. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5524. if test -n "$ac_ct_STRIP"; then
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5526. $as_echo "$ac_ct_STRIP" >&6; }
  5527. else
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5529. $as_echo "no" >&6; }
  5530. fi
  5531. if test "x$ac_ct_STRIP" = x; then
  5532. STRIP=":"
  5533. else
  5534. case $cross_compiling:$ac_tool_warned in
  5535. yes:)
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5537. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5538. ac_tool_warned=yes ;;
  5539. esac
  5540. STRIP=$ac_ct_STRIP
  5541. fi
  5542. else
  5543. STRIP="$ac_cv_prog_STRIP"
  5544. fi
  5545. test -z "$STRIP" && STRIP=:
  5546. if test -n "$ac_tool_prefix"; then
  5547. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5548. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5550. $as_echo_n "checking for $ac_word... " >&6; }
  5551. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5552. $as_echo_n "(cached) " >&6
  5553. else
  5554. if test -n "$RANLIB"; then
  5555. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5556. else
  5557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5558. for as_dir in $PATH
  5559. do
  5560. IFS=$as_save_IFS
  5561. test -z "$as_dir" && as_dir=.
  5562. for ac_exec_ext in '' $ac_executable_extensions; do
  5563. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5564. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5566. break 2
  5567. fi
  5568. done
  5569. done
  5570. IFS=$as_save_IFS
  5571. fi
  5572. fi
  5573. RANLIB=$ac_cv_prog_RANLIB
  5574. if test -n "$RANLIB"; then
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5576. $as_echo "$RANLIB" >&6; }
  5577. else
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5579. $as_echo "no" >&6; }
  5580. fi
  5581. fi
  5582. if test -z "$ac_cv_prog_RANLIB"; then
  5583. ac_ct_RANLIB=$RANLIB
  5584. # Extract the first word of "ranlib", so it can be a program name with args.
  5585. set dummy ranlib; ac_word=$2
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5587. $as_echo_n "checking for $ac_word... " >&6; }
  5588. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. if test -n "$ac_ct_RANLIB"; then
  5592. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5593. else
  5594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5595. for as_dir in $PATH
  5596. do
  5597. IFS=$as_save_IFS
  5598. test -z "$as_dir" && as_dir=.
  5599. for ac_exec_ext in '' $ac_executable_extensions; do
  5600. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5601. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5603. break 2
  5604. fi
  5605. done
  5606. done
  5607. IFS=$as_save_IFS
  5608. fi
  5609. fi
  5610. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5611. if test -n "$ac_ct_RANLIB"; then
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5613. $as_echo "$ac_ct_RANLIB" >&6; }
  5614. else
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5616. $as_echo "no" >&6; }
  5617. fi
  5618. if test "x$ac_ct_RANLIB" = x; then
  5619. RANLIB=":"
  5620. else
  5621. case $cross_compiling:$ac_tool_warned in
  5622. yes:)
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5624. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5625. ac_tool_warned=yes ;;
  5626. esac
  5627. RANLIB=$ac_ct_RANLIB
  5628. fi
  5629. else
  5630. RANLIB="$ac_cv_prog_RANLIB"
  5631. fi
  5632. test -z "$RANLIB" && RANLIB=:
  5633. # Determine commands to create old-style static archives.
  5634. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5635. old_postinstall_cmds='chmod 644 $oldlib'
  5636. old_postuninstall_cmds=
  5637. if test -n "$RANLIB"; then
  5638. case $host_os in
  5639. openbsd*)
  5640. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5641. ;;
  5642. *)
  5643. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5644. ;;
  5645. esac
  5646. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5647. fi
  5648. case $host_os in
  5649. darwin*)
  5650. lock_old_archive_extraction=yes ;;
  5651. *)
  5652. lock_old_archive_extraction=no ;;
  5653. esac
  5654. # If no C compiler was specified, use CC.
  5655. LTCC=${LTCC-"$CC"}
  5656. # If no C compiler flags were specified, use CFLAGS.
  5657. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5658. # Allow CC to be a program name with arguments.
  5659. compiler=$CC
  5660. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5662. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5663. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5664. $as_echo_n "(cached) " >&6
  5665. else
  5666. # These are sane defaults that work on at least a few old systems.
  5667. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5668. # Character class describing NM global symbol codes.
  5669. symcode='[BCDEGRST]'
  5670. # Regexp to match symbols that can be accessed directly from C.
  5671. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5672. # Define system-specific variables.
  5673. case $host_os in
  5674. aix*)
  5675. symcode='[BCDT]'
  5676. ;;
  5677. cygwin* | mingw* | pw32* | cegcc*)
  5678. symcode='[ABCDGISTW]'
  5679. ;;
  5680. hpux*)
  5681. if test "$host_cpu" = ia64; then
  5682. symcode='[ABCDEGRST]'
  5683. fi
  5684. ;;
  5685. irix* | nonstopux*)
  5686. symcode='[BCDEGRST]'
  5687. ;;
  5688. osf*)
  5689. symcode='[BCDEGQRST]'
  5690. ;;
  5691. solaris*)
  5692. symcode='[BDRT]'
  5693. ;;
  5694. sco3.2v5*)
  5695. symcode='[DT]'
  5696. ;;
  5697. sysv4.2uw2*)
  5698. symcode='[DT]'
  5699. ;;
  5700. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5701. symcode='[ABDT]'
  5702. ;;
  5703. sysv4)
  5704. symcode='[DFNSTU]'
  5705. ;;
  5706. esac
  5707. # If we're using GNU nm, then use its standard symbol codes.
  5708. case `$NM -V 2>&1` in
  5709. *GNU* | *'with BFD'*)
  5710. symcode='[ABCDGIRSTW]' ;;
  5711. esac
  5712. # Transform an extracted symbol line into a proper C declaration.
  5713. # Some systems (esp. on ia64) link data and code symbols differently,
  5714. # so use this general approach.
  5715. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5716. # Transform an extracted symbol line into symbol name and symbol address
  5717. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5718. 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'"
  5719. # Handle CRLF in mingw tool chain
  5720. opt_cr=
  5721. case $build_os in
  5722. mingw*)
  5723. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5724. ;;
  5725. esac
  5726. # Try without a prefix underscore, then with it.
  5727. for ac_symprfx in "" "_"; do
  5728. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5729. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5730. # Write the raw and C identifiers.
  5731. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5732. # Fake it for dumpbin and say T for any non-static function
  5733. # and D for any global variable.
  5734. # Also find C++ and __fastcall symbols from MSVC++,
  5735. # which start with @ or ?.
  5736. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5737. " {last_section=section; section=\$ 3};"\
  5738. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5739. " \$ 0!~/External *\|/{next};"\
  5740. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5741. " {if(hide[section]) next};"\
  5742. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5743. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5744. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5745. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5746. " ' prfx=^$ac_symprfx"
  5747. else
  5748. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5749. fi
  5750. # Check to see that the pipe works correctly.
  5751. pipe_works=no
  5752. rm -f conftest*
  5753. cat > conftest.$ac_ext <<_LT_EOF
  5754. #ifdef __cplusplus
  5755. extern "C" {
  5756. #endif
  5757. char nm_test_var;
  5758. void nm_test_func(void);
  5759. void nm_test_func(void){}
  5760. #ifdef __cplusplus
  5761. }
  5762. #endif
  5763. int main(){nm_test_var='a';nm_test_func();return(0);}
  5764. _LT_EOF
  5765. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5766. (eval $ac_compile) 2>&5
  5767. ac_status=$?
  5768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5769. test $ac_status = 0; }; then
  5770. # Now try to grab the symbols.
  5771. nlist=conftest.nm
  5772. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5773. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5774. ac_status=$?
  5775. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5776. test $ac_status = 0; } && test -s "$nlist"; then
  5777. # Try sorting and uniquifying the output.
  5778. if sort "$nlist" | uniq > "$nlist"T; then
  5779. mv -f "$nlist"T "$nlist"
  5780. else
  5781. rm -f "$nlist"T
  5782. fi
  5783. # Make sure that we snagged all the symbols we need.
  5784. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5785. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5786. cat <<_LT_EOF > conftest.$ac_ext
  5787. #ifdef __cplusplus
  5788. extern "C" {
  5789. #endif
  5790. _LT_EOF
  5791. # Now generate the symbol file.
  5792. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5793. cat <<_LT_EOF >> conftest.$ac_ext
  5794. /* The mapping between symbol names and symbols. */
  5795. const struct {
  5796. const char *name;
  5797. void *address;
  5798. }
  5799. lt__PROGRAM__LTX_preloaded_symbols[] =
  5800. {
  5801. { "@PROGRAM@", (void *) 0 },
  5802. _LT_EOF
  5803. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5804. cat <<\_LT_EOF >> conftest.$ac_ext
  5805. {0, (void *) 0}
  5806. };
  5807. /* This works around a problem in FreeBSD linker */
  5808. #ifdef FREEBSD_WORKAROUND
  5809. static const void *lt_preloaded_setup() {
  5810. return lt__PROGRAM__LTX_preloaded_symbols;
  5811. }
  5812. #endif
  5813. #ifdef __cplusplus
  5814. }
  5815. #endif
  5816. _LT_EOF
  5817. # Now try linking the two files.
  5818. mv conftest.$ac_objext conftstm.$ac_objext
  5819. lt_save_LIBS="$LIBS"
  5820. lt_save_CFLAGS="$CFLAGS"
  5821. LIBS="conftstm.$ac_objext"
  5822. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5823. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5824. (eval $ac_link) 2>&5
  5825. ac_status=$?
  5826. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5827. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5828. pipe_works=yes
  5829. fi
  5830. LIBS="$lt_save_LIBS"
  5831. CFLAGS="$lt_save_CFLAGS"
  5832. else
  5833. echo "cannot find nm_test_func in $nlist" >&5
  5834. fi
  5835. else
  5836. echo "cannot find nm_test_var in $nlist" >&5
  5837. fi
  5838. else
  5839. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5840. fi
  5841. else
  5842. echo "$progname: failed program was:" >&5
  5843. cat conftest.$ac_ext >&5
  5844. fi
  5845. rm -rf conftest* conftst*
  5846. # Do not use the global_symbol_pipe unless it works.
  5847. if test "$pipe_works" = yes; then
  5848. break
  5849. else
  5850. lt_cv_sys_global_symbol_pipe=
  5851. fi
  5852. done
  5853. fi
  5854. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5855. lt_cv_sys_global_symbol_to_cdecl=
  5856. fi
  5857. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5859. $as_echo "failed" >&6; }
  5860. else
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5862. $as_echo "ok" >&6; }
  5863. fi
  5864. # Check whether --enable-libtool-lock was given.
  5865. if test "${enable_libtool_lock+set}" = set; then :
  5866. enableval=$enable_libtool_lock;
  5867. fi
  5868. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5869. # Some flags need to be propagated to the compiler or linker for good
  5870. # libtool support.
  5871. case $host in
  5872. ia64-*-hpux*)
  5873. # Find out which ABI we are using.
  5874. echo 'int i;' > conftest.$ac_ext
  5875. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5876. (eval $ac_compile) 2>&5
  5877. ac_status=$?
  5878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5879. test $ac_status = 0; }; then
  5880. case `/usr/bin/file conftest.$ac_objext` in
  5881. *ELF-32*)
  5882. HPUX_IA64_MODE="32"
  5883. ;;
  5884. *ELF-64*)
  5885. HPUX_IA64_MODE="64"
  5886. ;;
  5887. esac
  5888. fi
  5889. rm -rf conftest*
  5890. ;;
  5891. *-*-irix6*)
  5892. # Find out which ABI we are using.
  5893. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5894. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5895. (eval $ac_compile) 2>&5
  5896. ac_status=$?
  5897. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5898. test $ac_status = 0; }; then
  5899. if test "$lt_cv_prog_gnu_ld" = yes; then
  5900. case `/usr/bin/file conftest.$ac_objext` in
  5901. *32-bit*)
  5902. LD="${LD-ld} -melf32bsmip"
  5903. ;;
  5904. *N32*)
  5905. LD="${LD-ld} -melf32bmipn32"
  5906. ;;
  5907. *64-bit*)
  5908. LD="${LD-ld} -melf64bmip"
  5909. ;;
  5910. esac
  5911. else
  5912. case `/usr/bin/file conftest.$ac_objext` in
  5913. *32-bit*)
  5914. LD="${LD-ld} -32"
  5915. ;;
  5916. *N32*)
  5917. LD="${LD-ld} -n32"
  5918. ;;
  5919. *64-bit*)
  5920. LD="${LD-ld} -64"
  5921. ;;
  5922. esac
  5923. fi
  5924. fi
  5925. rm -rf conftest*
  5926. ;;
  5927. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5928. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5929. # Find out which ABI we are using.
  5930. echo 'int i;' > conftest.$ac_ext
  5931. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5932. (eval $ac_compile) 2>&5
  5933. ac_status=$?
  5934. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5935. test $ac_status = 0; }; then
  5936. case `/usr/bin/file conftest.o` in
  5937. *32-bit*)
  5938. case $host in
  5939. x86_64-*kfreebsd*-gnu)
  5940. LD="${LD-ld} -m elf_i386_fbsd"
  5941. ;;
  5942. x86_64-*linux*)
  5943. case `/usr/bin/file conftest.o` in
  5944. *x86-64*)
  5945. LD="${LD-ld} -m elf32_x86_64"
  5946. ;;
  5947. *)
  5948. LD="${LD-ld} -m elf_i386"
  5949. ;;
  5950. esac
  5951. ;;
  5952. powerpc64le-*linux*)
  5953. LD="${LD-ld} -m elf32lppclinux"
  5954. ;;
  5955. powerpc64-*linux*)
  5956. LD="${LD-ld} -m elf32ppclinux"
  5957. ;;
  5958. s390x-*linux*)
  5959. LD="${LD-ld} -m elf_s390"
  5960. ;;
  5961. sparc64-*linux*)
  5962. LD="${LD-ld} -m elf32_sparc"
  5963. ;;
  5964. esac
  5965. ;;
  5966. *64-bit*)
  5967. case $host in
  5968. x86_64-*kfreebsd*-gnu)
  5969. LD="${LD-ld} -m elf_x86_64_fbsd"
  5970. ;;
  5971. x86_64-*linux*)
  5972. LD="${LD-ld} -m elf_x86_64"
  5973. ;;
  5974. powerpcle-*linux*)
  5975. LD="${LD-ld} -m elf64lppc"
  5976. ;;
  5977. powerpc-*linux*)
  5978. LD="${LD-ld} -m elf64ppc"
  5979. ;;
  5980. s390*-*linux*|s390*-*tpf*)
  5981. LD="${LD-ld} -m elf64_s390"
  5982. ;;
  5983. sparc*-*linux*)
  5984. LD="${LD-ld} -m elf64_sparc"
  5985. ;;
  5986. esac
  5987. ;;
  5988. esac
  5989. fi
  5990. rm -rf conftest*
  5991. ;;
  5992. *-*-sco3.2v5*)
  5993. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5994. SAVE_CFLAGS="$CFLAGS"
  5995. CFLAGS="$CFLAGS -belf"
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5997. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5998. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5999. $as_echo_n "(cached) " >&6
  6000. else
  6001. ac_ext=c
  6002. ac_cpp='$CPP $CPPFLAGS'
  6003. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6004. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6005. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6007. /* end confdefs.h. */
  6008. int
  6009. main ()
  6010. {
  6011. ;
  6012. return 0;
  6013. }
  6014. _ACEOF
  6015. if ac_fn_c_try_link "$LINENO"; then :
  6016. lt_cv_cc_needs_belf=yes
  6017. else
  6018. lt_cv_cc_needs_belf=no
  6019. fi
  6020. rm -f core conftest.err conftest.$ac_objext \
  6021. conftest$ac_exeext conftest.$ac_ext
  6022. ac_ext=c
  6023. ac_cpp='$CPP $CPPFLAGS'
  6024. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6025. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6026. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6027. fi
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6029. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6030. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6031. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6032. CFLAGS="$SAVE_CFLAGS"
  6033. fi
  6034. ;;
  6035. sparc*-*solaris*)
  6036. # Find out which ABI we are using.
  6037. echo 'int i;' > conftest.$ac_ext
  6038. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6039. (eval $ac_compile) 2>&5
  6040. ac_status=$?
  6041. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6042. test $ac_status = 0; }; then
  6043. case `/usr/bin/file conftest.o` in
  6044. *64-bit*)
  6045. case $lt_cv_prog_gnu_ld in
  6046. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6047. *)
  6048. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6049. LD="${LD-ld} -64"
  6050. fi
  6051. ;;
  6052. esac
  6053. ;;
  6054. esac
  6055. fi
  6056. rm -rf conftest*
  6057. ;;
  6058. esac
  6059. need_locks="$enable_libtool_lock"
  6060. case $host_os in
  6061. rhapsody* | darwin*)
  6062. if test -n "$ac_tool_prefix"; then
  6063. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6064. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6066. $as_echo_n "checking for $ac_word... " >&6; }
  6067. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6068. $as_echo_n "(cached) " >&6
  6069. else
  6070. if test -n "$DSYMUTIL"; then
  6071. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6072. else
  6073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6074. for as_dir in $PATH
  6075. do
  6076. IFS=$as_save_IFS
  6077. test -z "$as_dir" && as_dir=.
  6078. for ac_exec_ext in '' $ac_executable_extensions; do
  6079. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6080. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6081. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6082. break 2
  6083. fi
  6084. done
  6085. done
  6086. IFS=$as_save_IFS
  6087. fi
  6088. fi
  6089. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6090. if test -n "$DSYMUTIL"; then
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6092. $as_echo "$DSYMUTIL" >&6; }
  6093. else
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6095. $as_echo "no" >&6; }
  6096. fi
  6097. fi
  6098. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6099. ac_ct_DSYMUTIL=$DSYMUTIL
  6100. # Extract the first word of "dsymutil", so it can be a program name with args.
  6101. set dummy dsymutil; ac_word=$2
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6103. $as_echo_n "checking for $ac_word... " >&6; }
  6104. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6105. $as_echo_n "(cached) " >&6
  6106. else
  6107. if test -n "$ac_ct_DSYMUTIL"; then
  6108. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6109. else
  6110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6111. for as_dir in $PATH
  6112. do
  6113. IFS=$as_save_IFS
  6114. test -z "$as_dir" && as_dir=.
  6115. for ac_exec_ext in '' $ac_executable_extensions; do
  6116. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6117. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6118. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6119. break 2
  6120. fi
  6121. done
  6122. done
  6123. IFS=$as_save_IFS
  6124. fi
  6125. fi
  6126. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6127. if test -n "$ac_ct_DSYMUTIL"; then
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6129. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6130. else
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6132. $as_echo "no" >&6; }
  6133. fi
  6134. if test "x$ac_ct_DSYMUTIL" = x; then
  6135. DSYMUTIL=":"
  6136. else
  6137. case $cross_compiling:$ac_tool_warned in
  6138. yes:)
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6140. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6141. ac_tool_warned=yes ;;
  6142. esac
  6143. DSYMUTIL=$ac_ct_DSYMUTIL
  6144. fi
  6145. else
  6146. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6147. fi
  6148. if test -n "$ac_tool_prefix"; then
  6149. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6150. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6152. $as_echo_n "checking for $ac_word... " >&6; }
  6153. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6154. $as_echo_n "(cached) " >&6
  6155. else
  6156. if test -n "$NMEDIT"; then
  6157. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6158. else
  6159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6160. for as_dir in $PATH
  6161. do
  6162. IFS=$as_save_IFS
  6163. test -z "$as_dir" && as_dir=.
  6164. for ac_exec_ext in '' $ac_executable_extensions; do
  6165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6166. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6168. break 2
  6169. fi
  6170. done
  6171. done
  6172. IFS=$as_save_IFS
  6173. fi
  6174. fi
  6175. NMEDIT=$ac_cv_prog_NMEDIT
  6176. if test -n "$NMEDIT"; then
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6178. $as_echo "$NMEDIT" >&6; }
  6179. else
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6181. $as_echo "no" >&6; }
  6182. fi
  6183. fi
  6184. if test -z "$ac_cv_prog_NMEDIT"; then
  6185. ac_ct_NMEDIT=$NMEDIT
  6186. # Extract the first word of "nmedit", so it can be a program name with args.
  6187. set dummy nmedit; ac_word=$2
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6189. $as_echo_n "checking for $ac_word... " >&6; }
  6190. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6191. $as_echo_n "(cached) " >&6
  6192. else
  6193. if test -n "$ac_ct_NMEDIT"; then
  6194. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6195. else
  6196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6197. for as_dir in $PATH
  6198. do
  6199. IFS=$as_save_IFS
  6200. test -z "$as_dir" && as_dir=.
  6201. for ac_exec_ext in '' $ac_executable_extensions; do
  6202. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6203. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6204. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6205. break 2
  6206. fi
  6207. done
  6208. done
  6209. IFS=$as_save_IFS
  6210. fi
  6211. fi
  6212. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6213. if test -n "$ac_ct_NMEDIT"; then
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6215. $as_echo "$ac_ct_NMEDIT" >&6; }
  6216. else
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6218. $as_echo "no" >&6; }
  6219. fi
  6220. if test "x$ac_ct_NMEDIT" = x; then
  6221. NMEDIT=":"
  6222. else
  6223. case $cross_compiling:$ac_tool_warned in
  6224. yes:)
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6226. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6227. ac_tool_warned=yes ;;
  6228. esac
  6229. NMEDIT=$ac_ct_NMEDIT
  6230. fi
  6231. else
  6232. NMEDIT="$ac_cv_prog_NMEDIT"
  6233. fi
  6234. if test -n "$ac_tool_prefix"; then
  6235. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6236. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6238. $as_echo_n "checking for $ac_word... " >&6; }
  6239. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6240. $as_echo_n "(cached) " >&6
  6241. else
  6242. if test -n "$LIPO"; then
  6243. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6244. else
  6245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6246. for as_dir in $PATH
  6247. do
  6248. IFS=$as_save_IFS
  6249. test -z "$as_dir" && as_dir=.
  6250. for ac_exec_ext in '' $ac_executable_extensions; do
  6251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6252. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6253. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6254. break 2
  6255. fi
  6256. done
  6257. done
  6258. IFS=$as_save_IFS
  6259. fi
  6260. fi
  6261. LIPO=$ac_cv_prog_LIPO
  6262. if test -n "$LIPO"; then
  6263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6264. $as_echo "$LIPO" >&6; }
  6265. else
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6267. $as_echo "no" >&6; }
  6268. fi
  6269. fi
  6270. if test -z "$ac_cv_prog_LIPO"; then
  6271. ac_ct_LIPO=$LIPO
  6272. # Extract the first word of "lipo", so it can be a program name with args.
  6273. set dummy lipo; ac_word=$2
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6275. $as_echo_n "checking for $ac_word... " >&6; }
  6276. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6277. $as_echo_n "(cached) " >&6
  6278. else
  6279. if test -n "$ac_ct_LIPO"; then
  6280. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6281. else
  6282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6283. for as_dir in $PATH
  6284. do
  6285. IFS=$as_save_IFS
  6286. test -z "$as_dir" && as_dir=.
  6287. for ac_exec_ext in '' $ac_executable_extensions; do
  6288. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6289. ac_cv_prog_ac_ct_LIPO="lipo"
  6290. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6291. break 2
  6292. fi
  6293. done
  6294. done
  6295. IFS=$as_save_IFS
  6296. fi
  6297. fi
  6298. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6299. if test -n "$ac_ct_LIPO"; then
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6301. $as_echo "$ac_ct_LIPO" >&6; }
  6302. else
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6304. $as_echo "no" >&6; }
  6305. fi
  6306. if test "x$ac_ct_LIPO" = x; then
  6307. LIPO=":"
  6308. else
  6309. case $cross_compiling:$ac_tool_warned in
  6310. yes:)
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6312. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6313. ac_tool_warned=yes ;;
  6314. esac
  6315. LIPO=$ac_ct_LIPO
  6316. fi
  6317. else
  6318. LIPO="$ac_cv_prog_LIPO"
  6319. fi
  6320. if test -n "$ac_tool_prefix"; then
  6321. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6322. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6324. $as_echo_n "checking for $ac_word... " >&6; }
  6325. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6326. $as_echo_n "(cached) " >&6
  6327. else
  6328. if test -n "$OTOOL"; then
  6329. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6330. else
  6331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6332. for as_dir in $PATH
  6333. do
  6334. IFS=$as_save_IFS
  6335. test -z "$as_dir" && as_dir=.
  6336. for ac_exec_ext in '' $ac_executable_extensions; do
  6337. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6338. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6340. break 2
  6341. fi
  6342. done
  6343. done
  6344. IFS=$as_save_IFS
  6345. fi
  6346. fi
  6347. OTOOL=$ac_cv_prog_OTOOL
  6348. if test -n "$OTOOL"; then
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6350. $as_echo "$OTOOL" >&6; }
  6351. else
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6353. $as_echo "no" >&6; }
  6354. fi
  6355. fi
  6356. if test -z "$ac_cv_prog_OTOOL"; then
  6357. ac_ct_OTOOL=$OTOOL
  6358. # Extract the first word of "otool", so it can be a program name with args.
  6359. set dummy otool; ac_word=$2
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6361. $as_echo_n "checking for $ac_word... " >&6; }
  6362. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6363. $as_echo_n "(cached) " >&6
  6364. else
  6365. if test -n "$ac_ct_OTOOL"; then
  6366. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6367. else
  6368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6369. for as_dir in $PATH
  6370. do
  6371. IFS=$as_save_IFS
  6372. test -z "$as_dir" && as_dir=.
  6373. for ac_exec_ext in '' $ac_executable_extensions; do
  6374. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6375. ac_cv_prog_ac_ct_OTOOL="otool"
  6376. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6377. break 2
  6378. fi
  6379. done
  6380. done
  6381. IFS=$as_save_IFS
  6382. fi
  6383. fi
  6384. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6385. if test -n "$ac_ct_OTOOL"; then
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6387. $as_echo "$ac_ct_OTOOL" >&6; }
  6388. else
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6390. $as_echo "no" >&6; }
  6391. fi
  6392. if test "x$ac_ct_OTOOL" = x; then
  6393. OTOOL=":"
  6394. else
  6395. case $cross_compiling:$ac_tool_warned in
  6396. yes:)
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6398. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6399. ac_tool_warned=yes ;;
  6400. esac
  6401. OTOOL=$ac_ct_OTOOL
  6402. fi
  6403. else
  6404. OTOOL="$ac_cv_prog_OTOOL"
  6405. fi
  6406. if test -n "$ac_tool_prefix"; then
  6407. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6408. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6410. $as_echo_n "checking for $ac_word... " >&6; }
  6411. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6412. $as_echo_n "(cached) " >&6
  6413. else
  6414. if test -n "$OTOOL64"; then
  6415. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6416. else
  6417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6418. for as_dir in $PATH
  6419. do
  6420. IFS=$as_save_IFS
  6421. test -z "$as_dir" && as_dir=.
  6422. for ac_exec_ext in '' $ac_executable_extensions; do
  6423. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6424. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6426. break 2
  6427. fi
  6428. done
  6429. done
  6430. IFS=$as_save_IFS
  6431. fi
  6432. fi
  6433. OTOOL64=$ac_cv_prog_OTOOL64
  6434. if test -n "$OTOOL64"; then
  6435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6436. $as_echo "$OTOOL64" >&6; }
  6437. else
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6439. $as_echo "no" >&6; }
  6440. fi
  6441. fi
  6442. if test -z "$ac_cv_prog_OTOOL64"; then
  6443. ac_ct_OTOOL64=$OTOOL64
  6444. # Extract the first word of "otool64", so it can be a program name with args.
  6445. set dummy otool64; ac_word=$2
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6447. $as_echo_n "checking for $ac_word... " >&6; }
  6448. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6449. $as_echo_n "(cached) " >&6
  6450. else
  6451. if test -n "$ac_ct_OTOOL64"; then
  6452. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6453. else
  6454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6455. for as_dir in $PATH
  6456. do
  6457. IFS=$as_save_IFS
  6458. test -z "$as_dir" && as_dir=.
  6459. for ac_exec_ext in '' $ac_executable_extensions; do
  6460. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6461. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6463. break 2
  6464. fi
  6465. done
  6466. done
  6467. IFS=$as_save_IFS
  6468. fi
  6469. fi
  6470. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6471. if test -n "$ac_ct_OTOOL64"; then
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6473. $as_echo "$ac_ct_OTOOL64" >&6; }
  6474. else
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6476. $as_echo "no" >&6; }
  6477. fi
  6478. if test "x$ac_ct_OTOOL64" = x; then
  6479. OTOOL64=":"
  6480. else
  6481. case $cross_compiling:$ac_tool_warned in
  6482. yes:)
  6483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6484. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6485. ac_tool_warned=yes ;;
  6486. esac
  6487. OTOOL64=$ac_ct_OTOOL64
  6488. fi
  6489. else
  6490. OTOOL64="$ac_cv_prog_OTOOL64"
  6491. fi
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6493. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6494. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6495. $as_echo_n "(cached) " >&6
  6496. else
  6497. lt_cv_apple_cc_single_mod=no
  6498. if test -z "${LT_MULTI_MODULE}"; then
  6499. # By default we will add the -single_module flag. You can override
  6500. # by either setting the environment variable LT_MULTI_MODULE
  6501. # non-empty at configure time, or by adding -multi_module to the
  6502. # link flags.
  6503. rm -rf libconftest.dylib*
  6504. echo "int foo(void){return 1;}" > conftest.c
  6505. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6506. -dynamiclib -Wl,-single_module conftest.c" >&5
  6507. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6508. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6509. _lt_result=$?
  6510. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6511. lt_cv_apple_cc_single_mod=yes
  6512. else
  6513. cat conftest.err >&5
  6514. fi
  6515. rm -rf libconftest.dylib*
  6516. rm -f conftest.*
  6517. fi
  6518. fi
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6520. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6522. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6523. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6524. $as_echo_n "(cached) " >&6
  6525. else
  6526. lt_cv_ld_exported_symbols_list=no
  6527. save_LDFLAGS=$LDFLAGS
  6528. echo "_main" > conftest.sym
  6529. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6531. /* end confdefs.h. */
  6532. int
  6533. main ()
  6534. {
  6535. ;
  6536. return 0;
  6537. }
  6538. _ACEOF
  6539. if ac_fn_c_try_link "$LINENO"; then :
  6540. lt_cv_ld_exported_symbols_list=yes
  6541. else
  6542. lt_cv_ld_exported_symbols_list=no
  6543. fi
  6544. rm -f core conftest.err conftest.$ac_objext \
  6545. conftest$ac_exeext conftest.$ac_ext
  6546. LDFLAGS="$save_LDFLAGS"
  6547. fi
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6549. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6551. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6552. if test "${lt_cv_ld_force_load+set}" = set; then :
  6553. $as_echo_n "(cached) " >&6
  6554. else
  6555. lt_cv_ld_force_load=no
  6556. cat > conftest.c << _LT_EOF
  6557. int forced_loaded() { return 2;}
  6558. _LT_EOF
  6559. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6560. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6561. echo "$AR cru libconftest.a conftest.o" >&5
  6562. $AR cru libconftest.a conftest.o 2>&5
  6563. cat > conftest.c << _LT_EOF
  6564. int main() { return 0;}
  6565. _LT_EOF
  6566. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6567. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6568. _lt_result=$?
  6569. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6570. lt_cv_ld_force_load=yes
  6571. else
  6572. cat conftest.err >&5
  6573. fi
  6574. rm -f conftest.err libconftest.a conftest conftest.c
  6575. rm -rf conftest.dSYM
  6576. fi
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6578. $as_echo "$lt_cv_ld_force_load" >&6; }
  6579. case $host_os in
  6580. rhapsody* | darwin1.[012])
  6581. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6582. darwin1.*)
  6583. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6584. darwin*) # darwin 5.x on
  6585. # if running on 10.5 or later, the deployment target defaults
  6586. # to the OS version, if on x86, and 10.4, the deployment
  6587. # target defaults to 10.4. Don't you love it?
  6588. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6589. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6590. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6591. 10.[012][,.]*)
  6592. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6593. 10.*)
  6594. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6595. esac
  6596. ;;
  6597. esac
  6598. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6599. _lt_dar_single_mod='$single_module'
  6600. fi
  6601. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6602. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6603. else
  6604. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6605. fi
  6606. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6607. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6608. else
  6609. _lt_dsymutil=
  6610. fi
  6611. ;;
  6612. esac
  6613. for ac_header in dlfcn.h
  6614. do :
  6615. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6616. "
  6617. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6618. cat >>confdefs.h <<_ACEOF
  6619. #define HAVE_DLFCN_H 1
  6620. _ACEOF
  6621. fi
  6622. done
  6623. # Set options
  6624. enable_dlopen=no
  6625. enable_win32_dll=no
  6626. # Check whether --enable-shared was given.
  6627. if test "${enable_shared+set}" = set; then :
  6628. enableval=$enable_shared; p=${PACKAGE-default}
  6629. case $enableval in
  6630. yes) enable_shared=yes ;;
  6631. no) enable_shared=no ;;
  6632. *)
  6633. enable_shared=no
  6634. # Look at the argument we got. We use all the common list separators.
  6635. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6636. for pkg in $enableval; do
  6637. IFS="$lt_save_ifs"
  6638. if test "X$pkg" = "X$p"; then
  6639. enable_shared=yes
  6640. fi
  6641. done
  6642. IFS="$lt_save_ifs"
  6643. ;;
  6644. esac
  6645. else
  6646. enable_shared=yes
  6647. fi
  6648. # Check whether --enable-static was given.
  6649. if test "${enable_static+set}" = set; then :
  6650. enableval=$enable_static; p=${PACKAGE-default}
  6651. case $enableval in
  6652. yes) enable_static=yes ;;
  6653. no) enable_static=no ;;
  6654. *)
  6655. enable_static=no
  6656. # Look at the argument we got. We use all the common list separators.
  6657. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6658. for pkg in $enableval; do
  6659. IFS="$lt_save_ifs"
  6660. if test "X$pkg" = "X$p"; then
  6661. enable_static=yes
  6662. fi
  6663. done
  6664. IFS="$lt_save_ifs"
  6665. ;;
  6666. esac
  6667. else
  6668. enable_static=yes
  6669. fi
  6670. # Check whether --with-pic was given.
  6671. if test "${with_pic+set}" = set; then :
  6672. withval=$with_pic; pic_mode="$withval"
  6673. else
  6674. pic_mode=default
  6675. fi
  6676. test -z "$pic_mode" && pic_mode=default
  6677. # Check whether --enable-fast-install was given.
  6678. if test "${enable_fast_install+set}" = set; then :
  6679. enableval=$enable_fast_install; p=${PACKAGE-default}
  6680. case $enableval in
  6681. yes) enable_fast_install=yes ;;
  6682. no) enable_fast_install=no ;;
  6683. *)
  6684. enable_fast_install=no
  6685. # Look at the argument we got. We use all the common list separators.
  6686. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6687. for pkg in $enableval; do
  6688. IFS="$lt_save_ifs"
  6689. if test "X$pkg" = "X$p"; then
  6690. enable_fast_install=yes
  6691. fi
  6692. done
  6693. IFS="$lt_save_ifs"
  6694. ;;
  6695. esac
  6696. else
  6697. enable_fast_install=yes
  6698. fi
  6699. # This can be used to rebuild libtool when needed
  6700. LIBTOOL_DEPS="$ltmain"
  6701. # Always use our own libtool.
  6702. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6703. test -z "$LN_S" && LN_S="ln -s"
  6704. if test -n "${ZSH_VERSION+set}" ; then
  6705. setopt NO_GLOB_SUBST
  6706. fi
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6708. $as_echo_n "checking for objdir... " >&6; }
  6709. if test "${lt_cv_objdir+set}" = set; then :
  6710. $as_echo_n "(cached) " >&6
  6711. else
  6712. rm -f .libs 2>/dev/null
  6713. mkdir .libs 2>/dev/null
  6714. if test -d .libs; then
  6715. lt_cv_objdir=.libs
  6716. else
  6717. # MS-DOS does not allow filenames that begin with a dot.
  6718. lt_cv_objdir=_libs
  6719. fi
  6720. rmdir .libs 2>/dev/null
  6721. fi
  6722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6723. $as_echo "$lt_cv_objdir" >&6; }
  6724. objdir=$lt_cv_objdir
  6725. cat >>confdefs.h <<_ACEOF
  6726. #define LT_OBJDIR "$lt_cv_objdir/"
  6727. _ACEOF
  6728. case $host_os in
  6729. aix3*)
  6730. # AIX sometimes has problems with the GCC collect2 program. For some
  6731. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6732. # vanish in a puff of smoke.
  6733. if test "X${COLLECT_NAMES+set}" != Xset; then
  6734. COLLECT_NAMES=
  6735. export COLLECT_NAMES
  6736. fi
  6737. ;;
  6738. esac
  6739. # Global variables:
  6740. ofile=libtool
  6741. can_build_shared=yes
  6742. # All known linkers require a `.a' archive for static linking (except MSVC,
  6743. # which needs '.lib').
  6744. libext=a
  6745. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6746. old_CC="$CC"
  6747. old_CFLAGS="$CFLAGS"
  6748. # Set sane defaults for various variables
  6749. test -z "$CC" && CC=cc
  6750. test -z "$LTCC" && LTCC=$CC
  6751. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6752. test -z "$LD" && LD=ld
  6753. test -z "$ac_objext" && ac_objext=o
  6754. for cc_temp in $compiler""; do
  6755. case $cc_temp in
  6756. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6757. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6758. \-*) ;;
  6759. *) break;;
  6760. esac
  6761. done
  6762. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6763. # Only perform the check for file, if the check method requires it
  6764. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6765. case $deplibs_check_method in
  6766. file_magic*)
  6767. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6769. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6770. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6771. $as_echo_n "(cached) " >&6
  6772. else
  6773. case $MAGIC_CMD in
  6774. [\\/*] | ?:[\\/]*)
  6775. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6776. ;;
  6777. *)
  6778. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6779. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6780. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6781. for ac_dir in $ac_dummy; do
  6782. IFS="$lt_save_ifs"
  6783. test -z "$ac_dir" && ac_dir=.
  6784. if test -f $ac_dir/${ac_tool_prefix}file; then
  6785. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6786. if test -n "$file_magic_test_file"; then
  6787. case $deplibs_check_method in
  6788. "file_magic "*)
  6789. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6790. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6791. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6792. $EGREP "$file_magic_regex" > /dev/null; then
  6793. :
  6794. else
  6795. cat <<_LT_EOF 1>&2
  6796. *** Warning: the command libtool uses to detect shared libraries,
  6797. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6798. *** The result is that libtool may fail to recognize shared libraries
  6799. *** as such. This will affect the creation of libtool libraries that
  6800. *** depend on shared libraries, but programs linked with such libtool
  6801. *** libraries will work regardless of this problem. Nevertheless, you
  6802. *** may want to report the problem to your system manager and/or to
  6803. *** bug-libtool@gnu.org
  6804. _LT_EOF
  6805. fi ;;
  6806. esac
  6807. fi
  6808. break
  6809. fi
  6810. done
  6811. IFS="$lt_save_ifs"
  6812. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6813. ;;
  6814. esac
  6815. fi
  6816. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6817. if test -n "$MAGIC_CMD"; then
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6819. $as_echo "$MAGIC_CMD" >&6; }
  6820. else
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6822. $as_echo "no" >&6; }
  6823. fi
  6824. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6825. if test -n "$ac_tool_prefix"; then
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6827. $as_echo_n "checking for file... " >&6; }
  6828. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6829. $as_echo_n "(cached) " >&6
  6830. else
  6831. case $MAGIC_CMD in
  6832. [\\/*] | ?:[\\/]*)
  6833. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6834. ;;
  6835. *)
  6836. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6837. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6838. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6839. for ac_dir in $ac_dummy; do
  6840. IFS="$lt_save_ifs"
  6841. test -z "$ac_dir" && ac_dir=.
  6842. if test -f $ac_dir/file; then
  6843. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6844. if test -n "$file_magic_test_file"; then
  6845. case $deplibs_check_method in
  6846. "file_magic "*)
  6847. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6848. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6849. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6850. $EGREP "$file_magic_regex" > /dev/null; then
  6851. :
  6852. else
  6853. cat <<_LT_EOF 1>&2
  6854. *** Warning: the command libtool uses to detect shared libraries,
  6855. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6856. *** The result is that libtool may fail to recognize shared libraries
  6857. *** as such. This will affect the creation of libtool libraries that
  6858. *** depend on shared libraries, but programs linked with such libtool
  6859. *** libraries will work regardless of this problem. Nevertheless, you
  6860. *** may want to report the problem to your system manager and/or to
  6861. *** bug-libtool@gnu.org
  6862. _LT_EOF
  6863. fi ;;
  6864. esac
  6865. fi
  6866. break
  6867. fi
  6868. done
  6869. IFS="$lt_save_ifs"
  6870. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6871. ;;
  6872. esac
  6873. fi
  6874. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6875. if test -n "$MAGIC_CMD"; then
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6877. $as_echo "$MAGIC_CMD" >&6; }
  6878. else
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6880. $as_echo "no" >&6; }
  6881. fi
  6882. else
  6883. MAGIC_CMD=:
  6884. fi
  6885. fi
  6886. fi
  6887. ;;
  6888. esac
  6889. # Use C for the default configuration in the libtool script
  6890. lt_save_CC="$CC"
  6891. ac_ext=c
  6892. ac_cpp='$CPP $CPPFLAGS'
  6893. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6894. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6895. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6896. # Source file extension for C test sources.
  6897. ac_ext=c
  6898. # Object file extension for compiled C test sources.
  6899. objext=o
  6900. objext=$objext
  6901. # Code to be used in simple compile tests
  6902. lt_simple_compile_test_code="int some_variable = 0;"
  6903. # Code to be used in simple link tests
  6904. lt_simple_link_test_code='int main(){return(0);}'
  6905. # If no C compiler was specified, use CC.
  6906. LTCC=${LTCC-"$CC"}
  6907. # If no C compiler flags were specified, use CFLAGS.
  6908. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6909. # Allow CC to be a program name with arguments.
  6910. compiler=$CC
  6911. # Save the default compiler, since it gets overwritten when the other
  6912. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6913. compiler_DEFAULT=$CC
  6914. # save warnings/boilerplate of simple test code
  6915. ac_outfile=conftest.$ac_objext
  6916. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6917. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6918. _lt_compiler_boilerplate=`cat conftest.err`
  6919. $RM conftest*
  6920. ac_outfile=conftest.$ac_objext
  6921. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6922. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6923. _lt_linker_boilerplate=`cat conftest.err`
  6924. $RM -r conftest*
  6925. ## CAVEAT EMPTOR:
  6926. ## There is no encapsulation within the following macros, do not change
  6927. ## the running order or otherwise move them around unless you know exactly
  6928. ## what you are doing...
  6929. if test -n "$compiler"; then
  6930. lt_prog_compiler_no_builtin_flag=
  6931. if test "$GCC" = yes; then
  6932. case $cc_basename in
  6933. nvcc*)
  6934. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6935. *)
  6936. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6937. esac
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6939. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6940. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6941. $as_echo_n "(cached) " >&6
  6942. else
  6943. lt_cv_prog_compiler_rtti_exceptions=no
  6944. ac_outfile=conftest.$ac_objext
  6945. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6946. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6947. # Insert the option either (1) after the last *FLAGS variable, or
  6948. # (2) before a word containing "conftest.", or (3) at the end.
  6949. # Note that $ac_compile itself does not contain backslashes and begins
  6950. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6951. # The option is referenced via a variable to avoid confusing sed.
  6952. lt_compile=`echo "$ac_compile" | $SED \
  6953. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6954. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6955. -e 's:$: $lt_compiler_flag:'`
  6956. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6957. (eval "$lt_compile" 2>conftest.err)
  6958. ac_status=$?
  6959. cat conftest.err >&5
  6960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6961. if (exit $ac_status) && test -s "$ac_outfile"; then
  6962. # The compiler can only warn and ignore the option if not recognized
  6963. # So say no if there are warnings other than the usual output.
  6964. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6965. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6966. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6967. lt_cv_prog_compiler_rtti_exceptions=yes
  6968. fi
  6969. fi
  6970. $RM conftest*
  6971. fi
  6972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6973. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6974. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6975. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6976. else
  6977. :
  6978. fi
  6979. fi
  6980. lt_prog_compiler_wl=
  6981. lt_prog_compiler_pic=
  6982. lt_prog_compiler_static=
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6984. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6985. if test "$GCC" = yes; then
  6986. lt_prog_compiler_wl='-Wl,'
  6987. lt_prog_compiler_static='-static'
  6988. case $host_os in
  6989. aix*)
  6990. # All AIX code is PIC.
  6991. if test "$host_cpu" = ia64; then
  6992. # AIX 5 now supports IA64 processor
  6993. lt_prog_compiler_static='-Bstatic'
  6994. fi
  6995. lt_prog_compiler_pic='-fPIC'
  6996. ;;
  6997. amigaos*)
  6998. case $host_cpu in
  6999. powerpc)
  7000. # see comment about AmigaOS4 .so support
  7001. lt_prog_compiler_pic='-fPIC'
  7002. ;;
  7003. m68k)
  7004. # FIXME: we need at least 68020 code to build shared libraries, but
  7005. # adding the `-m68020' flag to GCC prevents building anything better,
  7006. # like `-m68040'.
  7007. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7008. ;;
  7009. esac
  7010. ;;
  7011. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7012. # PIC is the default for these OSes.
  7013. ;;
  7014. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7015. # This hack is so that the source file can tell whether it is being
  7016. # built for inclusion in a dll (and should export symbols for example).
  7017. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7018. # (--disable-auto-import) libraries
  7019. lt_prog_compiler_pic='-DDLL_EXPORT'
  7020. ;;
  7021. darwin* | rhapsody*)
  7022. # PIC is the default on this platform
  7023. # Common symbols not allowed in MH_DYLIB files
  7024. lt_prog_compiler_pic='-fno-common'
  7025. ;;
  7026. haiku*)
  7027. # PIC is the default for Haiku.
  7028. # The "-static" flag exists, but is broken.
  7029. lt_prog_compiler_static=
  7030. ;;
  7031. hpux*)
  7032. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7033. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7034. # sets the default TLS model and affects inlining.
  7035. case $host_cpu in
  7036. hppa*64*)
  7037. # +Z the default
  7038. ;;
  7039. *)
  7040. lt_prog_compiler_pic='-fPIC'
  7041. ;;
  7042. esac
  7043. ;;
  7044. interix[3-9]*)
  7045. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7046. # Instead, we relocate shared libraries at runtime.
  7047. ;;
  7048. msdosdjgpp*)
  7049. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7050. # on systems that don't support them.
  7051. lt_prog_compiler_can_build_shared=no
  7052. enable_shared=no
  7053. ;;
  7054. *nto* | *qnx*)
  7055. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7056. # it will coredump.
  7057. lt_prog_compiler_pic='-fPIC -shared'
  7058. ;;
  7059. sysv4*MP*)
  7060. if test -d /usr/nec; then
  7061. lt_prog_compiler_pic=-Kconform_pic
  7062. fi
  7063. ;;
  7064. *)
  7065. lt_prog_compiler_pic='-fPIC'
  7066. ;;
  7067. esac
  7068. case $cc_basename in
  7069. nvcc*) # Cuda Compiler Driver 2.2
  7070. lt_prog_compiler_wl='-Xlinker '
  7071. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7072. ;;
  7073. esac
  7074. else
  7075. # PORTME Check for flag to pass linker flags through the system compiler.
  7076. case $host_os in
  7077. aix*)
  7078. lt_prog_compiler_wl='-Wl,'
  7079. if test "$host_cpu" = ia64; then
  7080. # AIX 5 now supports IA64 processor
  7081. lt_prog_compiler_static='-Bstatic'
  7082. else
  7083. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7084. fi
  7085. ;;
  7086. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7087. # This hack is so that the source file can tell whether it is being
  7088. # built for inclusion in a dll (and should export symbols for example).
  7089. lt_prog_compiler_pic='-DDLL_EXPORT'
  7090. ;;
  7091. hpux9* | hpux10* | hpux11*)
  7092. lt_prog_compiler_wl='-Wl,'
  7093. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7094. # not for PA HP-UX.
  7095. case $host_cpu in
  7096. hppa*64*|ia64*)
  7097. # +Z the default
  7098. ;;
  7099. *)
  7100. lt_prog_compiler_pic='+Z'
  7101. ;;
  7102. esac
  7103. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7104. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7105. ;;
  7106. irix5* | irix6* | nonstopux*)
  7107. lt_prog_compiler_wl='-Wl,'
  7108. # PIC (with -KPIC) is the default.
  7109. lt_prog_compiler_static='-non_shared'
  7110. ;;
  7111. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7112. case $cc_basename in
  7113. # old Intel for x86_64 which still supported -KPIC.
  7114. ecc*)
  7115. lt_prog_compiler_wl='-Wl,'
  7116. lt_prog_compiler_pic='-KPIC'
  7117. lt_prog_compiler_static='-static'
  7118. ;;
  7119. # icc used to be incompatible with GCC.
  7120. # ICC 10 doesn't accept -KPIC any more.
  7121. icc* | ifort*)
  7122. lt_prog_compiler_wl='-Wl,'
  7123. lt_prog_compiler_pic='-fPIC'
  7124. lt_prog_compiler_static='-static'
  7125. ;;
  7126. # Lahey Fortran 8.1.
  7127. lf95*)
  7128. lt_prog_compiler_wl='-Wl,'
  7129. lt_prog_compiler_pic='--shared'
  7130. lt_prog_compiler_static='--static'
  7131. ;;
  7132. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7133. # Portland Group compilers (*not* the Pentium gcc compiler,
  7134. # which looks to be a dead project)
  7135. lt_prog_compiler_wl='-Wl,'
  7136. lt_prog_compiler_pic='-fpic'
  7137. lt_prog_compiler_static='-Bstatic'
  7138. ;;
  7139. ccc*)
  7140. lt_prog_compiler_wl='-Wl,'
  7141. # All Alpha code is PIC.
  7142. lt_prog_compiler_static='-non_shared'
  7143. ;;
  7144. xl* | bgxl* | bgf* | mpixl*)
  7145. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7146. lt_prog_compiler_wl='-Wl,'
  7147. lt_prog_compiler_pic='-qpic'
  7148. lt_prog_compiler_static='-qstaticlink'
  7149. ;;
  7150. *)
  7151. case `$CC -V 2>&1 | sed 5q` in
  7152. *Sun\ F* | *Sun*Fortran*)
  7153. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7154. lt_prog_compiler_pic='-KPIC'
  7155. lt_prog_compiler_static='-Bstatic'
  7156. lt_prog_compiler_wl=''
  7157. ;;
  7158. *Sun\ C*)
  7159. # Sun C 5.9
  7160. lt_prog_compiler_pic='-KPIC'
  7161. lt_prog_compiler_static='-Bstatic'
  7162. lt_prog_compiler_wl='-Wl,'
  7163. ;;
  7164. esac
  7165. ;;
  7166. esac
  7167. ;;
  7168. newsos6)
  7169. lt_prog_compiler_pic='-KPIC'
  7170. lt_prog_compiler_static='-Bstatic'
  7171. ;;
  7172. *nto* | *qnx*)
  7173. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7174. # it will coredump.
  7175. lt_prog_compiler_pic='-fPIC -shared'
  7176. ;;
  7177. osf3* | osf4* | osf5*)
  7178. lt_prog_compiler_wl='-Wl,'
  7179. # All OSF/1 code is PIC.
  7180. lt_prog_compiler_static='-non_shared'
  7181. ;;
  7182. rdos*)
  7183. lt_prog_compiler_static='-non_shared'
  7184. ;;
  7185. solaris*)
  7186. lt_prog_compiler_pic='-KPIC'
  7187. lt_prog_compiler_static='-Bstatic'
  7188. case $cc_basename in
  7189. f77* | f90* | f95*)
  7190. lt_prog_compiler_wl='-Qoption ld ';;
  7191. *)
  7192. lt_prog_compiler_wl='-Wl,';;
  7193. esac
  7194. ;;
  7195. sunos4*)
  7196. lt_prog_compiler_wl='-Qoption ld '
  7197. lt_prog_compiler_pic='-PIC'
  7198. lt_prog_compiler_static='-Bstatic'
  7199. ;;
  7200. sysv4 | sysv4.2uw2* | sysv4.3*)
  7201. lt_prog_compiler_wl='-Wl,'
  7202. lt_prog_compiler_pic='-KPIC'
  7203. lt_prog_compiler_static='-Bstatic'
  7204. ;;
  7205. sysv4*MP*)
  7206. if test -d /usr/nec ;then
  7207. lt_prog_compiler_pic='-Kconform_pic'
  7208. lt_prog_compiler_static='-Bstatic'
  7209. fi
  7210. ;;
  7211. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7212. lt_prog_compiler_wl='-Wl,'
  7213. lt_prog_compiler_pic='-KPIC'
  7214. lt_prog_compiler_static='-Bstatic'
  7215. ;;
  7216. unicos*)
  7217. lt_prog_compiler_wl='-Wl,'
  7218. lt_prog_compiler_can_build_shared=no
  7219. ;;
  7220. uts4*)
  7221. lt_prog_compiler_pic='-pic'
  7222. lt_prog_compiler_static='-Bstatic'
  7223. ;;
  7224. *)
  7225. lt_prog_compiler_can_build_shared=no
  7226. ;;
  7227. esac
  7228. fi
  7229. case $host_os in
  7230. # For platforms which do not support PIC, -DPIC is meaningless:
  7231. *djgpp*)
  7232. lt_prog_compiler_pic=
  7233. ;;
  7234. *)
  7235. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7236. ;;
  7237. esac
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7239. $as_echo "$lt_prog_compiler_pic" >&6; }
  7240. #
  7241. # Check to make sure the PIC flag actually works.
  7242. #
  7243. if test -n "$lt_prog_compiler_pic"; then
  7244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7245. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7246. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7247. $as_echo_n "(cached) " >&6
  7248. else
  7249. lt_cv_prog_compiler_pic_works=no
  7250. ac_outfile=conftest.$ac_objext
  7251. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7252. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7253. # Insert the option either (1) after the last *FLAGS variable, or
  7254. # (2) before a word containing "conftest.", or (3) at the end.
  7255. # Note that $ac_compile itself does not contain backslashes and begins
  7256. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7257. # The option is referenced via a variable to avoid confusing sed.
  7258. lt_compile=`echo "$ac_compile" | $SED \
  7259. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7260. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7261. -e 's:$: $lt_compiler_flag:'`
  7262. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7263. (eval "$lt_compile" 2>conftest.err)
  7264. ac_status=$?
  7265. cat conftest.err >&5
  7266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7267. if (exit $ac_status) && test -s "$ac_outfile"; then
  7268. # The compiler can only warn and ignore the option if not recognized
  7269. # So say no if there are warnings other than the usual output.
  7270. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7271. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7272. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7273. lt_cv_prog_compiler_pic_works=yes
  7274. fi
  7275. fi
  7276. $RM conftest*
  7277. fi
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7279. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7280. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7281. case $lt_prog_compiler_pic in
  7282. "" | " "*) ;;
  7283. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7284. esac
  7285. else
  7286. lt_prog_compiler_pic=
  7287. lt_prog_compiler_can_build_shared=no
  7288. fi
  7289. fi
  7290. #
  7291. # Check to make sure the static flag actually works.
  7292. #
  7293. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7295. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7296. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7297. $as_echo_n "(cached) " >&6
  7298. else
  7299. lt_cv_prog_compiler_static_works=no
  7300. save_LDFLAGS="$LDFLAGS"
  7301. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7302. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7303. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7304. # The linker can only warn and ignore the option if not recognized
  7305. # So say no if there are warnings
  7306. if test -s conftest.err; then
  7307. # Append any errors to the config.log.
  7308. cat conftest.err 1>&5
  7309. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7310. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7311. if diff conftest.exp conftest.er2 >/dev/null; then
  7312. lt_cv_prog_compiler_static_works=yes
  7313. fi
  7314. else
  7315. lt_cv_prog_compiler_static_works=yes
  7316. fi
  7317. fi
  7318. $RM -r conftest*
  7319. LDFLAGS="$save_LDFLAGS"
  7320. fi
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7322. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7323. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7324. :
  7325. else
  7326. lt_prog_compiler_static=
  7327. fi
  7328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7329. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7330. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7331. $as_echo_n "(cached) " >&6
  7332. else
  7333. lt_cv_prog_compiler_c_o=no
  7334. $RM -r conftest 2>/dev/null
  7335. mkdir conftest
  7336. cd conftest
  7337. mkdir out
  7338. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7339. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7340. # Insert the option either (1) after the last *FLAGS variable, or
  7341. # (2) before a word containing "conftest.", or (3) at the end.
  7342. # Note that $ac_compile itself does not contain backslashes and begins
  7343. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7344. lt_compile=`echo "$ac_compile" | $SED \
  7345. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7346. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7347. -e 's:$: $lt_compiler_flag:'`
  7348. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7349. (eval "$lt_compile" 2>out/conftest.err)
  7350. ac_status=$?
  7351. cat out/conftest.err >&5
  7352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7353. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7354. then
  7355. # The compiler can only warn and ignore the option if not recognized
  7356. # So say no if there are warnings
  7357. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7358. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7359. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7360. lt_cv_prog_compiler_c_o=yes
  7361. fi
  7362. fi
  7363. chmod u+w . 2>&5
  7364. $RM conftest*
  7365. # SGI C++ compiler will create directory out/ii_files/ for
  7366. # template instantiation
  7367. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7368. $RM out/* && rmdir out
  7369. cd ..
  7370. $RM -r conftest
  7371. $RM conftest*
  7372. fi
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7374. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7376. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7377. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7378. $as_echo_n "(cached) " >&6
  7379. else
  7380. lt_cv_prog_compiler_c_o=no
  7381. $RM -r conftest 2>/dev/null
  7382. mkdir conftest
  7383. cd conftest
  7384. mkdir out
  7385. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7386. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7387. # Insert the option either (1) after the last *FLAGS variable, or
  7388. # (2) before a word containing "conftest.", or (3) at the end.
  7389. # Note that $ac_compile itself does not contain backslashes and begins
  7390. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7391. lt_compile=`echo "$ac_compile" | $SED \
  7392. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7393. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7394. -e 's:$: $lt_compiler_flag:'`
  7395. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7396. (eval "$lt_compile" 2>out/conftest.err)
  7397. ac_status=$?
  7398. cat out/conftest.err >&5
  7399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7400. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7401. then
  7402. # The compiler can only warn and ignore the option if not recognized
  7403. # So say no if there are warnings
  7404. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7405. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7406. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7407. lt_cv_prog_compiler_c_o=yes
  7408. fi
  7409. fi
  7410. chmod u+w . 2>&5
  7411. $RM conftest*
  7412. # SGI C++ compiler will create directory out/ii_files/ for
  7413. # template instantiation
  7414. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7415. $RM out/* && rmdir out
  7416. cd ..
  7417. $RM -r conftest
  7418. $RM conftest*
  7419. fi
  7420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7421. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7422. hard_links="nottested"
  7423. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7424. # do not overwrite the value of need_locks provided by the user
  7425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7426. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7427. hard_links=yes
  7428. $RM conftest*
  7429. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7430. touch conftest.a
  7431. ln conftest.a conftest.b 2>&5 || hard_links=no
  7432. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7434. $as_echo "$hard_links" >&6; }
  7435. if test "$hard_links" = no; then
  7436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7437. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7438. need_locks=warn
  7439. fi
  7440. else
  7441. need_locks=no
  7442. fi
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7444. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7445. runpath_var=
  7446. allow_undefined_flag=
  7447. always_export_symbols=no
  7448. archive_cmds=
  7449. archive_expsym_cmds=
  7450. compiler_needs_object=no
  7451. enable_shared_with_static_runtimes=no
  7452. export_dynamic_flag_spec=
  7453. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7454. hardcode_automatic=no
  7455. hardcode_direct=no
  7456. hardcode_direct_absolute=no
  7457. hardcode_libdir_flag_spec=
  7458. hardcode_libdir_flag_spec_ld=
  7459. hardcode_libdir_separator=
  7460. hardcode_minus_L=no
  7461. hardcode_shlibpath_var=unsupported
  7462. inherit_rpath=no
  7463. link_all_deplibs=unknown
  7464. module_cmds=
  7465. module_expsym_cmds=
  7466. old_archive_from_new_cmds=
  7467. old_archive_from_expsyms_cmds=
  7468. thread_safe_flag_spec=
  7469. whole_archive_flag_spec=
  7470. # include_expsyms should be a list of space-separated symbols to be *always*
  7471. # included in the symbol list
  7472. include_expsyms=
  7473. # exclude_expsyms can be an extended regexp of symbols to exclude
  7474. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7475. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7476. # as well as any symbol that contains `d'.
  7477. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7478. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7479. # platforms (ab)use it in PIC code, but their linkers get confused if
  7480. # the symbol is explicitly referenced. Since portable code cannot
  7481. # rely on this symbol name, it's probably fine to never include it in
  7482. # preloaded symbol tables.
  7483. # Exclude shared library initialization/finalization symbols.
  7484. extract_expsyms_cmds=
  7485. case $host_os in
  7486. cygwin* | mingw* | pw32* | cegcc*)
  7487. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7488. # When not using gcc, we currently assume that we are using
  7489. # Microsoft Visual C++.
  7490. if test "$GCC" != yes; then
  7491. with_gnu_ld=no
  7492. fi
  7493. ;;
  7494. interix*)
  7495. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7496. with_gnu_ld=yes
  7497. ;;
  7498. openbsd*)
  7499. with_gnu_ld=no
  7500. ;;
  7501. esac
  7502. ld_shlibs=yes
  7503. # On some targets, GNU ld is compatible enough with the native linker
  7504. # that we're better off using the native interface for both.
  7505. lt_use_gnu_ld_interface=no
  7506. if test "$with_gnu_ld" = yes; then
  7507. case $host_os in
  7508. aix*)
  7509. # The AIX port of GNU ld has always aspired to compatibility
  7510. # with the native linker. However, as the warning in the GNU ld
  7511. # block says, versions before 2.19.5* couldn't really create working
  7512. # shared libraries, regardless of the interface used.
  7513. case `$LD -v 2>&1` in
  7514. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7515. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7516. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7517. *)
  7518. lt_use_gnu_ld_interface=yes
  7519. ;;
  7520. esac
  7521. ;;
  7522. *)
  7523. lt_use_gnu_ld_interface=yes
  7524. ;;
  7525. esac
  7526. fi
  7527. if test "$lt_use_gnu_ld_interface" = yes; then
  7528. # If archive_cmds runs LD, not CC, wlarc should be empty
  7529. wlarc='${wl}'
  7530. # Set some defaults for GNU ld with shared library support. These
  7531. # are reset later if shared libraries are not supported. Putting them
  7532. # here allows them to be overridden if necessary.
  7533. runpath_var=LD_RUN_PATH
  7534. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7535. export_dynamic_flag_spec='${wl}--export-dynamic'
  7536. # ancient GNU ld didn't support --whole-archive et. al.
  7537. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7538. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7539. else
  7540. whole_archive_flag_spec=
  7541. fi
  7542. supports_anon_versioning=no
  7543. case `$LD -v 2>&1` in
  7544. *GNU\ gold*) supports_anon_versioning=yes ;;
  7545. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7546. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7547. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7548. *\ 2.11.*) ;; # other 2.11 versions
  7549. *) supports_anon_versioning=yes ;;
  7550. esac
  7551. # See if GNU ld supports shared libraries.
  7552. case $host_os in
  7553. aix[3-9]*)
  7554. # On AIX/PPC, the GNU linker is very broken
  7555. if test "$host_cpu" != ia64; then
  7556. ld_shlibs=no
  7557. cat <<_LT_EOF 1>&2
  7558. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7559. *** to be unable to reliably create shared libraries on AIX.
  7560. *** Therefore, libtool is disabling shared libraries support. If you
  7561. *** really care for shared libraries, you may want to install binutils
  7562. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7563. *** You will then need to restart the configuration process.
  7564. _LT_EOF
  7565. fi
  7566. ;;
  7567. amigaos*)
  7568. case $host_cpu in
  7569. powerpc)
  7570. # see comment about AmigaOS4 .so support
  7571. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7572. archive_expsym_cmds=''
  7573. ;;
  7574. m68k)
  7575. 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)'
  7576. hardcode_libdir_flag_spec='-L$libdir'
  7577. hardcode_minus_L=yes
  7578. ;;
  7579. esac
  7580. ;;
  7581. beos*)
  7582. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7583. allow_undefined_flag=unsupported
  7584. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7585. # support --undefined. This deserves some investigation. FIXME
  7586. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7587. else
  7588. ld_shlibs=no
  7589. fi
  7590. ;;
  7591. cygwin* | mingw* | pw32* | cegcc*)
  7592. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7593. # as there is no search path for DLLs.
  7594. hardcode_libdir_flag_spec='-L$libdir'
  7595. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7596. allow_undefined_flag=unsupported
  7597. always_export_symbols=no
  7598. enable_shared_with_static_runtimes=yes
  7599. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7600. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7601. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7602. # If the export-symbols file already is a .def file (1st line
  7603. # is EXPORTS), use it as is; otherwise, prepend...
  7604. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7605. cp $export_symbols $output_objdir/$soname.def;
  7606. else
  7607. echo EXPORTS > $output_objdir/$soname.def;
  7608. cat $export_symbols >> $output_objdir/$soname.def;
  7609. fi~
  7610. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7611. else
  7612. ld_shlibs=no
  7613. fi
  7614. ;;
  7615. haiku*)
  7616. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7617. link_all_deplibs=yes
  7618. ;;
  7619. interix[3-9]*)
  7620. hardcode_direct=no
  7621. hardcode_shlibpath_var=no
  7622. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7623. export_dynamic_flag_spec='${wl}-E'
  7624. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7625. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7626. # default) and relocated if they conflict, which is a slow very memory
  7627. # consuming and fragmenting process. To avoid this, we pick a random,
  7628. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7629. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7630. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7631. 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'
  7632. ;;
  7633. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7634. tmp_diet=no
  7635. if test "$host_os" = linux-dietlibc; then
  7636. case $cc_basename in
  7637. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7638. esac
  7639. fi
  7640. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7641. && test "$tmp_diet" = no
  7642. then
  7643. tmp_addflag=' $pic_flag'
  7644. tmp_sharedflag='-shared'
  7645. case $cc_basename,$host_cpu in
  7646. pgcc*) # Portland Group C compiler
  7647. 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'
  7648. tmp_addflag=' $pic_flag'
  7649. ;;
  7650. pgf77* | pgf90* | pgf95* | pgfortran*)
  7651. # Portland Group f77 and f90 compilers
  7652. 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'
  7653. tmp_addflag=' $pic_flag -Mnomain' ;;
  7654. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7655. tmp_addflag=' -i_dynamic' ;;
  7656. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7657. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7658. ifc* | ifort*) # Intel Fortran compiler
  7659. tmp_addflag=' -nofor_main' ;;
  7660. lf95*) # Lahey Fortran 8.1
  7661. whole_archive_flag_spec=
  7662. tmp_sharedflag='--shared' ;;
  7663. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7664. tmp_sharedflag='-qmkshrobj'
  7665. tmp_addflag= ;;
  7666. nvcc*) # Cuda Compiler Driver 2.2
  7667. 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'
  7668. compiler_needs_object=yes
  7669. ;;
  7670. esac
  7671. case `$CC -V 2>&1 | sed 5q` in
  7672. *Sun\ C*) # Sun C 5.9
  7673. 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'
  7674. compiler_needs_object=yes
  7675. tmp_sharedflag='-G' ;;
  7676. *Sun\ F*) # Sun Fortran 8.3
  7677. tmp_sharedflag='-G' ;;
  7678. esac
  7679. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7680. if test "x$supports_anon_versioning" = xyes; then
  7681. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7682. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7683. echo "local: *; };" >> $output_objdir/$libname.ver~
  7684. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7685. fi
  7686. case $cc_basename in
  7687. xlf* | bgf* | bgxlf* | mpixlf*)
  7688. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7689. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7690. hardcode_libdir_flag_spec=
  7691. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7692. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7693. if test "x$supports_anon_versioning" = xyes; then
  7694. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7695. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7696. echo "local: *; };" >> $output_objdir/$libname.ver~
  7697. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7698. fi
  7699. ;;
  7700. esac
  7701. else
  7702. ld_shlibs=no
  7703. fi
  7704. ;;
  7705. netbsd*)
  7706. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7707. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7708. wlarc=
  7709. else
  7710. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7711. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7712. fi
  7713. ;;
  7714. solaris*)
  7715. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7716. ld_shlibs=no
  7717. cat <<_LT_EOF 1>&2
  7718. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7719. *** create shared libraries on Solaris systems. Therefore, libtool
  7720. *** is disabling shared libraries support. We urge you to upgrade GNU
  7721. *** binutils to release 2.9.1 or newer. Another option is to modify
  7722. *** your PATH or compiler configuration so that the native linker is
  7723. *** used, and then restart.
  7724. _LT_EOF
  7725. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7726. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7727. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7728. else
  7729. ld_shlibs=no
  7730. fi
  7731. ;;
  7732. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7733. case `$LD -v 2>&1` in
  7734. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7735. ld_shlibs=no
  7736. cat <<_LT_EOF 1>&2
  7737. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7738. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7739. *** is disabling shared libraries support. We urge you to upgrade GNU
  7740. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7741. *** your PATH or compiler configuration so that the native linker is
  7742. *** used, and then restart.
  7743. _LT_EOF
  7744. ;;
  7745. *)
  7746. # For security reasons, it is highly recommended that you always
  7747. # use absolute paths for naming shared libraries, and exclude the
  7748. # DT_RUNPATH tag from executables and libraries. But doing so
  7749. # requires that you compile everything twice, which is a pain.
  7750. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7751. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7752. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7753. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7754. else
  7755. ld_shlibs=no
  7756. fi
  7757. ;;
  7758. esac
  7759. ;;
  7760. sunos4*)
  7761. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7762. wlarc=
  7763. hardcode_direct=yes
  7764. hardcode_shlibpath_var=no
  7765. ;;
  7766. *)
  7767. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7768. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7769. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7770. else
  7771. ld_shlibs=no
  7772. fi
  7773. ;;
  7774. esac
  7775. if test "$ld_shlibs" = no; then
  7776. runpath_var=
  7777. hardcode_libdir_flag_spec=
  7778. export_dynamic_flag_spec=
  7779. whole_archive_flag_spec=
  7780. fi
  7781. else
  7782. # PORTME fill in a description of your system's linker (not GNU ld)
  7783. case $host_os in
  7784. aix3*)
  7785. allow_undefined_flag=unsupported
  7786. always_export_symbols=yes
  7787. 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'
  7788. # Note: this linker hardcodes the directories in LIBPATH if there
  7789. # are no directories specified by -L.
  7790. hardcode_minus_L=yes
  7791. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7792. # Neither direct hardcoding nor static linking is supported with a
  7793. # broken collect2.
  7794. hardcode_direct=unsupported
  7795. fi
  7796. ;;
  7797. aix[4-9]*)
  7798. if test "$host_cpu" = ia64; then
  7799. # On IA64, the linker does run time linking by default, so we don't
  7800. # have to do anything special.
  7801. aix_use_runtimelinking=no
  7802. exp_sym_flag='-Bexport'
  7803. no_entry_flag=""
  7804. else
  7805. # If we're using GNU nm, then we don't want the "-C" option.
  7806. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7807. # Also, AIX nm treats weak defined symbols like other global
  7808. # defined symbols, whereas GNU nm marks them as "W".
  7809. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7810. 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'
  7811. else
  7812. 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'
  7813. fi
  7814. aix_use_runtimelinking=no
  7815. # Test if we are trying to use run time linking or normal
  7816. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7817. # need to do runtime linking.
  7818. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7819. for ld_flag in $LDFLAGS; do
  7820. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7821. aix_use_runtimelinking=yes
  7822. break
  7823. fi
  7824. done
  7825. ;;
  7826. esac
  7827. exp_sym_flag='-bexport'
  7828. no_entry_flag='-bnoentry'
  7829. fi
  7830. # When large executables or shared objects are built, AIX ld can
  7831. # have problems creating the table of contents. If linking a library
  7832. # or program results in "error TOC overflow" add -mminimal-toc to
  7833. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7834. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7835. archive_cmds=''
  7836. hardcode_direct=yes
  7837. hardcode_direct_absolute=yes
  7838. hardcode_libdir_separator=':'
  7839. link_all_deplibs=yes
  7840. file_list_spec='${wl}-f,'
  7841. if test "$GCC" = yes; then
  7842. case $host_os in aix4.[012]|aix4.[012].*)
  7843. # We only want to do this on AIX 4.2 and lower, the check
  7844. # below for broken collect2 doesn't work under 4.3+
  7845. collect2name=`${CC} -print-prog-name=collect2`
  7846. if test -f "$collect2name" &&
  7847. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7848. then
  7849. # We have reworked collect2
  7850. :
  7851. else
  7852. # We have old collect2
  7853. hardcode_direct=unsupported
  7854. # It fails to find uninstalled libraries when the uninstalled
  7855. # path is not listed in the libpath. Setting hardcode_minus_L
  7856. # to unsupported forces relinking
  7857. hardcode_minus_L=yes
  7858. hardcode_libdir_flag_spec='-L$libdir'
  7859. hardcode_libdir_separator=
  7860. fi
  7861. ;;
  7862. esac
  7863. shared_flag='-shared'
  7864. if test "$aix_use_runtimelinking" = yes; then
  7865. shared_flag="$shared_flag "'${wl}-G'
  7866. fi
  7867. else
  7868. # not using gcc
  7869. if test "$host_cpu" = ia64; then
  7870. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7871. # chokes on -Wl,-G. The following line is correct:
  7872. shared_flag='-G'
  7873. else
  7874. if test "$aix_use_runtimelinking" = yes; then
  7875. shared_flag='${wl}-G'
  7876. else
  7877. shared_flag='${wl}-bM:SRE'
  7878. fi
  7879. fi
  7880. fi
  7881. export_dynamic_flag_spec='${wl}-bexpall'
  7882. # It seems that -bexpall does not export symbols beginning with
  7883. # underscore (_), so it is better to generate a list of symbols to export.
  7884. always_export_symbols=yes
  7885. if test "$aix_use_runtimelinking" = yes; then
  7886. # Warning - without using the other runtime loading flags (-brtl),
  7887. # -berok will link without error, but may produce a broken library.
  7888. allow_undefined_flag='-berok'
  7889. # Determine the default libpath from the value encoded in an
  7890. # empty executable.
  7891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7892. /* end confdefs.h. */
  7893. int
  7894. main ()
  7895. {
  7896. ;
  7897. return 0;
  7898. }
  7899. _ACEOF
  7900. if ac_fn_c_try_link "$LINENO"; then :
  7901. lt_aix_libpath_sed='
  7902. /Import File Strings/,/^$/ {
  7903. /^0/ {
  7904. s/^0 *\(.*\)$/\1/
  7905. p
  7906. }
  7907. }'
  7908. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7909. # Check for a 64-bit object if we didn't find anything.
  7910. if test -z "$aix_libpath"; then
  7911. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7912. fi
  7913. fi
  7914. rm -f core conftest.err conftest.$ac_objext \
  7915. conftest$ac_exeext conftest.$ac_ext
  7916. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7917. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7918. 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"
  7919. else
  7920. if test "$host_cpu" = ia64; then
  7921. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7922. allow_undefined_flag="-z nodefs"
  7923. 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"
  7924. else
  7925. # Determine the default libpath from the value encoded in an
  7926. # empty executable.
  7927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7928. /* end confdefs.h. */
  7929. int
  7930. main ()
  7931. {
  7932. ;
  7933. return 0;
  7934. }
  7935. _ACEOF
  7936. if ac_fn_c_try_link "$LINENO"; then :
  7937. lt_aix_libpath_sed='
  7938. /Import File Strings/,/^$/ {
  7939. /^0/ {
  7940. s/^0 *\(.*\)$/\1/
  7941. p
  7942. }
  7943. }'
  7944. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7945. # Check for a 64-bit object if we didn't find anything.
  7946. if test -z "$aix_libpath"; then
  7947. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7948. fi
  7949. fi
  7950. rm -f core conftest.err conftest.$ac_objext \
  7951. conftest$ac_exeext conftest.$ac_ext
  7952. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7953. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7954. # Warning - without using the other run time loading flags,
  7955. # -berok will link without error, but may produce a broken library.
  7956. no_undefined_flag=' ${wl}-bernotok'
  7957. allow_undefined_flag=' ${wl}-berok'
  7958. if test "$with_gnu_ld" = yes; then
  7959. # We only use this code for GNU lds that support --whole-archive.
  7960. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7961. else
  7962. # Exported symbols can be pulled into shared objects from archives
  7963. whole_archive_flag_spec='$convenience'
  7964. fi
  7965. archive_cmds_need_lc=yes
  7966. # This is similar to how AIX traditionally builds its shared libraries.
  7967. 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'
  7968. fi
  7969. fi
  7970. ;;
  7971. amigaos*)
  7972. case $host_cpu in
  7973. powerpc)
  7974. # see comment about AmigaOS4 .so support
  7975. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7976. archive_expsym_cmds=''
  7977. ;;
  7978. m68k)
  7979. 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)'
  7980. hardcode_libdir_flag_spec='-L$libdir'
  7981. hardcode_minus_L=yes
  7982. ;;
  7983. esac
  7984. ;;
  7985. bsdi[45]*)
  7986. export_dynamic_flag_spec=-rdynamic
  7987. ;;
  7988. cygwin* | mingw* | pw32* | cegcc*)
  7989. # When not using gcc, we currently assume that we are using
  7990. # Microsoft Visual C++.
  7991. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7992. # no search path for DLLs.
  7993. hardcode_libdir_flag_spec=' '
  7994. allow_undefined_flag=unsupported
  7995. # Tell ltmain to make .lib files, not .a files.
  7996. libext=lib
  7997. # Tell ltmain to make .dll files, not .so files.
  7998. shrext_cmds=".dll"
  7999. # FIXME: Setting linknames here is a bad hack.
  8000. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8001. # The linker will automatically build a .lib file if we build a DLL.
  8002. old_archive_from_new_cmds='true'
  8003. # FIXME: Should let the user specify the lib program.
  8004. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8005. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8006. enable_shared_with_static_runtimes=yes
  8007. ;;
  8008. darwin* | rhapsody*)
  8009. archive_cmds_need_lc=no
  8010. hardcode_direct=no
  8011. hardcode_automatic=yes
  8012. hardcode_shlibpath_var=unsupported
  8013. if test "$lt_cv_ld_force_load" = "yes"; then
  8014. 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\"`'
  8015. else
  8016. whole_archive_flag_spec=''
  8017. fi
  8018. link_all_deplibs=yes
  8019. allow_undefined_flag="$_lt_dar_allow_undefined"
  8020. case $cc_basename in
  8021. ifort*) _lt_dar_can_shared=yes ;;
  8022. *) _lt_dar_can_shared=$GCC ;;
  8023. esac
  8024. if test "$_lt_dar_can_shared" = "yes"; then
  8025. output_verbose_link_cmd=func_echo_all
  8026. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8027. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8028. 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}"
  8029. 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}"
  8030. else
  8031. ld_shlibs=no
  8032. fi
  8033. ;;
  8034. dgux*)
  8035. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8036. hardcode_libdir_flag_spec='-L$libdir'
  8037. hardcode_shlibpath_var=no
  8038. ;;
  8039. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8040. # support. Future versions do this automatically, but an explicit c++rt0.o
  8041. # does not break anything, and helps significantly (at the cost of a little
  8042. # extra space).
  8043. freebsd2.2*)
  8044. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8045. hardcode_libdir_flag_spec='-R$libdir'
  8046. hardcode_direct=yes
  8047. hardcode_shlibpath_var=no
  8048. ;;
  8049. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8050. freebsd2.*)
  8051. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8052. hardcode_direct=yes
  8053. hardcode_minus_L=yes
  8054. hardcode_shlibpath_var=no
  8055. ;;
  8056. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8057. freebsd* | dragonfly*)
  8058. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8059. hardcode_libdir_flag_spec='-R$libdir'
  8060. hardcode_direct=yes
  8061. hardcode_shlibpath_var=no
  8062. ;;
  8063. hpux9*)
  8064. if test "$GCC" = yes; then
  8065. 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'
  8066. else
  8067. 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'
  8068. fi
  8069. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8070. hardcode_libdir_separator=:
  8071. hardcode_direct=yes
  8072. # hardcode_minus_L: Not really in the search PATH,
  8073. # but as the default location of the library.
  8074. hardcode_minus_L=yes
  8075. export_dynamic_flag_spec='${wl}-E'
  8076. ;;
  8077. hpux10*)
  8078. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8079. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8080. else
  8081. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8082. fi
  8083. if test "$with_gnu_ld" = no; then
  8084. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8085. hardcode_libdir_flag_spec_ld='+b $libdir'
  8086. hardcode_libdir_separator=:
  8087. hardcode_direct=yes
  8088. hardcode_direct_absolute=yes
  8089. export_dynamic_flag_spec='${wl}-E'
  8090. # hardcode_minus_L: Not really in the search PATH,
  8091. # but as the default location of the library.
  8092. hardcode_minus_L=yes
  8093. fi
  8094. ;;
  8095. hpux11*)
  8096. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8097. case $host_cpu in
  8098. hppa*64*)
  8099. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8100. ;;
  8101. ia64*)
  8102. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8103. ;;
  8104. *)
  8105. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8106. ;;
  8107. esac
  8108. else
  8109. case $host_cpu in
  8110. hppa*64*)
  8111. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8112. ;;
  8113. ia64*)
  8114. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8115. ;;
  8116. *)
  8117. # Older versions of the 11.00 compiler do not understand -b yet
  8118. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8120. $as_echo_n "checking if $CC understands -b... " >&6; }
  8121. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8122. $as_echo_n "(cached) " >&6
  8123. else
  8124. lt_cv_prog_compiler__b=no
  8125. save_LDFLAGS="$LDFLAGS"
  8126. LDFLAGS="$LDFLAGS -b"
  8127. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8128. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8129. # The linker can only warn and ignore the option if not recognized
  8130. # So say no if there are warnings
  8131. if test -s conftest.err; then
  8132. # Append any errors to the config.log.
  8133. cat conftest.err 1>&5
  8134. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8135. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8136. if diff conftest.exp conftest.er2 >/dev/null; then
  8137. lt_cv_prog_compiler__b=yes
  8138. fi
  8139. else
  8140. lt_cv_prog_compiler__b=yes
  8141. fi
  8142. fi
  8143. $RM -r conftest*
  8144. LDFLAGS="$save_LDFLAGS"
  8145. fi
  8146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8147. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8148. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8149. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8150. else
  8151. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8152. fi
  8153. ;;
  8154. esac
  8155. fi
  8156. if test "$with_gnu_ld" = no; then
  8157. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8158. hardcode_libdir_separator=:
  8159. case $host_cpu in
  8160. hppa*64*|ia64*)
  8161. hardcode_direct=no
  8162. hardcode_shlibpath_var=no
  8163. ;;
  8164. *)
  8165. hardcode_direct=yes
  8166. hardcode_direct_absolute=yes
  8167. export_dynamic_flag_spec='${wl}-E'
  8168. # hardcode_minus_L: Not really in the search PATH,
  8169. # but as the default location of the library.
  8170. hardcode_minus_L=yes
  8171. ;;
  8172. esac
  8173. fi
  8174. ;;
  8175. irix5* | irix6* | nonstopux*)
  8176. if test "$GCC" = yes; then
  8177. 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'
  8178. # Try to use the -exported_symbol ld option, if it does not
  8179. # work, assume that -exports_file does not work either and
  8180. # implicitly export all symbols.
  8181. save_LDFLAGS="$LDFLAGS"
  8182. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8184. /* end confdefs.h. */
  8185. int foo(void) {}
  8186. _ACEOF
  8187. if ac_fn_c_try_link "$LINENO"; then :
  8188. 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'
  8189. fi
  8190. rm -f core conftest.err conftest.$ac_objext \
  8191. conftest$ac_exeext conftest.$ac_ext
  8192. LDFLAGS="$save_LDFLAGS"
  8193. else
  8194. 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'
  8195. 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'
  8196. fi
  8197. archive_cmds_need_lc='no'
  8198. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8199. hardcode_libdir_separator=:
  8200. inherit_rpath=yes
  8201. link_all_deplibs=yes
  8202. ;;
  8203. netbsd*)
  8204. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8205. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8206. else
  8207. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8208. fi
  8209. hardcode_libdir_flag_spec='-R$libdir'
  8210. hardcode_direct=yes
  8211. hardcode_shlibpath_var=no
  8212. ;;
  8213. newsos6)
  8214. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8215. hardcode_direct=yes
  8216. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8217. hardcode_libdir_separator=:
  8218. hardcode_shlibpath_var=no
  8219. ;;
  8220. *nto* | *qnx*)
  8221. ;;
  8222. openbsd*)
  8223. if test -f /usr/libexec/ld.so; then
  8224. hardcode_direct=yes
  8225. hardcode_shlibpath_var=no
  8226. hardcode_direct_absolute=yes
  8227. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8228. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8229. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8230. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8231. export_dynamic_flag_spec='${wl}-E'
  8232. else
  8233. case $host_os in
  8234. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8235. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8236. hardcode_libdir_flag_spec='-R$libdir'
  8237. ;;
  8238. *)
  8239. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8240. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8241. ;;
  8242. esac
  8243. fi
  8244. else
  8245. ld_shlibs=no
  8246. fi
  8247. ;;
  8248. os2*)
  8249. hardcode_libdir_flag_spec='-L$libdir'
  8250. hardcode_minus_L=yes
  8251. allow_undefined_flag=unsupported
  8252. 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'
  8253. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8254. ;;
  8255. osf3*)
  8256. if test "$GCC" = yes; then
  8257. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8258. 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'
  8259. else
  8260. allow_undefined_flag=' -expect_unresolved \*'
  8261. 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'
  8262. fi
  8263. archive_cmds_need_lc='no'
  8264. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8265. hardcode_libdir_separator=:
  8266. ;;
  8267. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8268. if test "$GCC" = yes; then
  8269. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8270. 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'
  8271. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8272. else
  8273. allow_undefined_flag=' -expect_unresolved \*'
  8274. 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'
  8275. 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~
  8276. $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'
  8277. # Both c and cxx compiler support -rpath directly
  8278. hardcode_libdir_flag_spec='-rpath $libdir'
  8279. fi
  8280. archive_cmds_need_lc='no'
  8281. hardcode_libdir_separator=:
  8282. ;;
  8283. solaris*)
  8284. no_undefined_flag=' -z defs'
  8285. if test "$GCC" = yes; then
  8286. wlarc='${wl}'
  8287. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8288. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8289. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8290. else
  8291. case `$CC -V 2>&1` in
  8292. *"Compilers 5.0"*)
  8293. wlarc=''
  8294. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8295. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8296. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8297. ;;
  8298. *)
  8299. wlarc='${wl}'
  8300. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8301. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8302. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8303. ;;
  8304. esac
  8305. fi
  8306. hardcode_libdir_flag_spec='-R$libdir'
  8307. hardcode_shlibpath_var=no
  8308. case $host_os in
  8309. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8310. *)
  8311. # The compiler driver will combine and reorder linker options,
  8312. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8313. # but is careful enough not to reorder.
  8314. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8315. if test "$GCC" = yes; then
  8316. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8317. else
  8318. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8319. fi
  8320. ;;
  8321. esac
  8322. link_all_deplibs=yes
  8323. ;;
  8324. sunos4*)
  8325. if test "x$host_vendor" = xsequent; then
  8326. # Use $CC to link under sequent, because it throws in some extra .o
  8327. # files that make .init and .fini sections work.
  8328. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8329. else
  8330. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8331. fi
  8332. hardcode_libdir_flag_spec='-L$libdir'
  8333. hardcode_direct=yes
  8334. hardcode_minus_L=yes
  8335. hardcode_shlibpath_var=no
  8336. ;;
  8337. sysv4)
  8338. case $host_vendor in
  8339. sni)
  8340. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8341. hardcode_direct=yes # is this really true???
  8342. ;;
  8343. siemens)
  8344. ## LD is ld it makes a PLAMLIB
  8345. ## CC just makes a GrossModule.
  8346. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8347. reload_cmds='$CC -r -o $output$reload_objs'
  8348. hardcode_direct=no
  8349. ;;
  8350. motorola)
  8351. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8352. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8353. ;;
  8354. esac
  8355. runpath_var='LD_RUN_PATH'
  8356. hardcode_shlibpath_var=no
  8357. ;;
  8358. sysv4.3*)
  8359. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8360. hardcode_shlibpath_var=no
  8361. export_dynamic_flag_spec='-Bexport'
  8362. ;;
  8363. sysv4*MP*)
  8364. if test -d /usr/nec; then
  8365. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8366. hardcode_shlibpath_var=no
  8367. runpath_var=LD_RUN_PATH
  8368. hardcode_runpath_var=yes
  8369. ld_shlibs=yes
  8370. fi
  8371. ;;
  8372. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8373. no_undefined_flag='${wl}-z,text'
  8374. archive_cmds_need_lc=no
  8375. hardcode_shlibpath_var=no
  8376. runpath_var='LD_RUN_PATH'
  8377. if test "$GCC" = yes; then
  8378. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8379. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8380. else
  8381. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8382. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8383. fi
  8384. ;;
  8385. sysv5* | sco3.2v5* | sco5v6*)
  8386. # Note: We can NOT use -z defs as we might desire, because we do not
  8387. # link with -lc, and that would cause any symbols used from libc to
  8388. # always be unresolved, which means just about no library would
  8389. # ever link correctly. If we're not using GNU ld we use -z text
  8390. # though, which does catch some bad symbols but isn't as heavy-handed
  8391. # as -z defs.
  8392. no_undefined_flag='${wl}-z,text'
  8393. allow_undefined_flag='${wl}-z,nodefs'
  8394. archive_cmds_need_lc=no
  8395. hardcode_shlibpath_var=no
  8396. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8397. hardcode_libdir_separator=':'
  8398. link_all_deplibs=yes
  8399. export_dynamic_flag_spec='${wl}-Bexport'
  8400. runpath_var='LD_RUN_PATH'
  8401. if test "$GCC" = yes; then
  8402. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8403. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8404. else
  8405. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8406. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8407. fi
  8408. ;;
  8409. uts4*)
  8410. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8411. hardcode_libdir_flag_spec='-L$libdir'
  8412. hardcode_shlibpath_var=no
  8413. ;;
  8414. *)
  8415. ld_shlibs=no
  8416. ;;
  8417. esac
  8418. if test x$host_vendor = xsni; then
  8419. case $host in
  8420. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8421. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8422. ;;
  8423. esac
  8424. fi
  8425. fi
  8426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8427. $as_echo "$ld_shlibs" >&6; }
  8428. test "$ld_shlibs" = no && can_build_shared=no
  8429. with_gnu_ld=$with_gnu_ld
  8430. #
  8431. # Do we need to explicitly link libc?
  8432. #
  8433. case "x$archive_cmds_need_lc" in
  8434. x|xyes)
  8435. # Assume -lc should be added
  8436. archive_cmds_need_lc=yes
  8437. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8438. case $archive_cmds in
  8439. *'~'*)
  8440. # FIXME: we may have to deal with multi-command sequences.
  8441. ;;
  8442. '$CC '*)
  8443. # Test whether the compiler implicitly links with -lc since on some
  8444. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8445. # to ld, don't add -lc before -lgcc.
  8446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8447. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8448. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8449. $as_echo_n "(cached) " >&6
  8450. else
  8451. $RM conftest*
  8452. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8453. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8454. (eval $ac_compile) 2>&5
  8455. ac_status=$?
  8456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8457. test $ac_status = 0; } 2>conftest.err; then
  8458. soname=conftest
  8459. lib=conftest
  8460. libobjs=conftest.$ac_objext
  8461. deplibs=
  8462. wl=$lt_prog_compiler_wl
  8463. pic_flag=$lt_prog_compiler_pic
  8464. compiler_flags=-v
  8465. linker_flags=-v
  8466. verstring=
  8467. output_objdir=.
  8468. libname=conftest
  8469. lt_save_allow_undefined_flag=$allow_undefined_flag
  8470. allow_undefined_flag=
  8471. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8472. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8473. ac_status=$?
  8474. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8475. test $ac_status = 0; }
  8476. then
  8477. lt_cv_archive_cmds_need_lc=no
  8478. else
  8479. lt_cv_archive_cmds_need_lc=yes
  8480. fi
  8481. allow_undefined_flag=$lt_save_allow_undefined_flag
  8482. else
  8483. cat conftest.err 1>&5
  8484. fi
  8485. $RM conftest*
  8486. fi
  8487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8488. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8489. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8490. ;;
  8491. esac
  8492. fi
  8493. ;;
  8494. esac
  8495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8496. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8497. if test "$GCC" = yes; then
  8498. case $host_os in
  8499. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8500. *) lt_awk_arg="/^libraries:/" ;;
  8501. esac
  8502. case $host_os in
  8503. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8504. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8505. esac
  8506. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8507. case $lt_search_path_spec in
  8508. *\;*)
  8509. # if the path contains ";" then we assume it to be the separator
  8510. # otherwise default to the standard path separator (i.e. ":") - it is
  8511. # assumed that no part of a normal pathname contains ";" but that should
  8512. # okay in the real world where ";" in dirpaths is itself problematic.
  8513. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8514. ;;
  8515. *)
  8516. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8517. ;;
  8518. esac
  8519. # Ok, now we have the path, separated by spaces, we can step through it
  8520. # and add multilib dir if necessary.
  8521. lt_tmp_lt_search_path_spec=
  8522. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8523. for lt_sys_path in $lt_search_path_spec; do
  8524. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8525. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8526. else
  8527. test -d "$lt_sys_path" && \
  8528. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8529. fi
  8530. done
  8531. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8532. BEGIN {RS=" "; FS="/|\n";} {
  8533. lt_foo="";
  8534. lt_count=0;
  8535. for (lt_i = NF; lt_i > 0; lt_i--) {
  8536. if ($lt_i != "" && $lt_i != ".") {
  8537. if ($lt_i == "..") {
  8538. lt_count++;
  8539. } else {
  8540. if (lt_count == 0) {
  8541. lt_foo="/" $lt_i lt_foo;
  8542. } else {
  8543. lt_count--;
  8544. }
  8545. }
  8546. }
  8547. }
  8548. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8549. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8550. }'`
  8551. # AWK program above erroneously prepends '/' to C:/dos/paths
  8552. # for these hosts.
  8553. case $host_os in
  8554. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8555. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8556. esac
  8557. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8558. else
  8559. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8560. fi
  8561. library_names_spec=
  8562. libname_spec='lib$name'
  8563. soname_spec=
  8564. shrext_cmds=".so"
  8565. postinstall_cmds=
  8566. postuninstall_cmds=
  8567. finish_cmds=
  8568. finish_eval=
  8569. shlibpath_var=
  8570. shlibpath_overrides_runpath=unknown
  8571. version_type=none
  8572. dynamic_linker="$host_os ld.so"
  8573. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8574. need_lib_prefix=unknown
  8575. hardcode_into_libs=no
  8576. # when you set need_version to no, make sure it does not cause -set_version
  8577. # flags to be left without arguments
  8578. need_version=unknown
  8579. case $host_os in
  8580. aix3*)
  8581. version_type=linux
  8582. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8583. shlibpath_var=LIBPATH
  8584. # AIX 3 has no versioning support, so we append a major version to the name.
  8585. soname_spec='${libname}${release}${shared_ext}$major'
  8586. ;;
  8587. aix[4-9]*)
  8588. version_type=linux
  8589. need_lib_prefix=no
  8590. need_version=no
  8591. hardcode_into_libs=yes
  8592. if test "$host_cpu" = ia64; then
  8593. # AIX 5 supports IA64
  8594. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8595. shlibpath_var=LD_LIBRARY_PATH
  8596. else
  8597. # With GCC up to 2.95.x, collect2 would create an import file
  8598. # for dependence libraries. The import file would start with
  8599. # the line `#! .'. This would cause the generated library to
  8600. # depend on `.', always an invalid library. This was fixed in
  8601. # development snapshots of GCC prior to 3.0.
  8602. case $host_os in
  8603. aix4 | aix4.[01] | aix4.[01].*)
  8604. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8605. echo ' yes '
  8606. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8607. :
  8608. else
  8609. can_build_shared=no
  8610. fi
  8611. ;;
  8612. esac
  8613. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8614. # soname into executable. Probably we can add versioning support to
  8615. # collect2, so additional links can be useful in future.
  8616. if test "$aix_use_runtimelinking" = yes; then
  8617. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8618. # instead of lib<name>.a to let people know that these are not
  8619. # typical AIX shared libraries.
  8620. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8621. else
  8622. # We preserve .a as extension for shared libraries through AIX4.2
  8623. # and later when we are not doing run time linking.
  8624. library_names_spec='${libname}${release}.a $libname.a'
  8625. soname_spec='${libname}${release}${shared_ext}$major'
  8626. fi
  8627. shlibpath_var=LIBPATH
  8628. fi
  8629. ;;
  8630. amigaos*)
  8631. case $host_cpu in
  8632. powerpc)
  8633. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8634. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8635. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8636. ;;
  8637. m68k)
  8638. library_names_spec='$libname.ixlibrary $libname.a'
  8639. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8640. 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'
  8641. ;;
  8642. esac
  8643. ;;
  8644. beos*)
  8645. library_names_spec='${libname}${shared_ext}'
  8646. dynamic_linker="$host_os ld.so"
  8647. shlibpath_var=LIBRARY_PATH
  8648. ;;
  8649. bsdi[45]*)
  8650. version_type=linux
  8651. need_version=no
  8652. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8653. soname_spec='${libname}${release}${shared_ext}$major'
  8654. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8655. shlibpath_var=LD_LIBRARY_PATH
  8656. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8657. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8658. # the default ld.so.conf also contains /usr/contrib/lib and
  8659. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8660. # libtool to hard-code these into programs
  8661. ;;
  8662. cygwin* | mingw* | pw32* | cegcc*)
  8663. version_type=windows
  8664. shrext_cmds=".dll"
  8665. need_version=no
  8666. need_lib_prefix=no
  8667. case $GCC,$host_os in
  8668. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8669. library_names_spec='$libname.dll.a'
  8670. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8671. postinstall_cmds='base_file=`basename \${file}`~
  8672. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8673. dldir=$destdir/`dirname \$dlpath`~
  8674. test -d \$dldir || mkdir -p \$dldir~
  8675. $install_prog $dir/$dlname \$dldir/$dlname~
  8676. chmod a+x \$dldir/$dlname~
  8677. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8678. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8679. fi'
  8680. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8681. dlpath=$dir/\$dldll~
  8682. $RM \$dlpath'
  8683. shlibpath_overrides_runpath=yes
  8684. case $host_os in
  8685. cygwin*)
  8686. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8687. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8688. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8689. ;;
  8690. mingw* | cegcc*)
  8691. # MinGW DLLs use traditional 'lib' prefix
  8692. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8693. ;;
  8694. pw32*)
  8695. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8696. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8697. ;;
  8698. esac
  8699. ;;
  8700. *)
  8701. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8702. ;;
  8703. esac
  8704. dynamic_linker='Win32 ld.exe'
  8705. # FIXME: first we should search . and the directory the executable is in
  8706. shlibpath_var=PATH
  8707. ;;
  8708. darwin* | rhapsody*)
  8709. dynamic_linker="$host_os dyld"
  8710. version_type=darwin
  8711. need_lib_prefix=no
  8712. need_version=no
  8713. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8714. soname_spec='${libname}${release}${major}$shared_ext'
  8715. shlibpath_overrides_runpath=yes
  8716. shlibpath_var=DYLD_LIBRARY_PATH
  8717. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8718. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8719. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8720. ;;
  8721. dgux*)
  8722. version_type=linux
  8723. need_lib_prefix=no
  8724. need_version=no
  8725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8726. soname_spec='${libname}${release}${shared_ext}$major'
  8727. shlibpath_var=LD_LIBRARY_PATH
  8728. ;;
  8729. freebsd* | dragonfly*)
  8730. # DragonFly does not have aout. When/if they implement a new
  8731. # versioning mechanism, adjust this.
  8732. if test -x /usr/bin/objformat; then
  8733. objformat=`/usr/bin/objformat`
  8734. else
  8735. case $host_os in
  8736. freebsd[23].*) objformat=aout ;;
  8737. *) objformat=elf ;;
  8738. esac
  8739. fi
  8740. version_type=freebsd-$objformat
  8741. case $version_type in
  8742. freebsd-elf*)
  8743. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8744. need_version=no
  8745. need_lib_prefix=no
  8746. ;;
  8747. freebsd-*)
  8748. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8749. need_version=yes
  8750. ;;
  8751. esac
  8752. shlibpath_var=LD_LIBRARY_PATH
  8753. case $host_os in
  8754. freebsd2.*)
  8755. shlibpath_overrides_runpath=yes
  8756. ;;
  8757. freebsd3.[01]* | freebsdelf3.[01]*)
  8758. shlibpath_overrides_runpath=yes
  8759. hardcode_into_libs=yes
  8760. ;;
  8761. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8762. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8763. shlibpath_overrides_runpath=no
  8764. hardcode_into_libs=yes
  8765. ;;
  8766. *) # from 4.6 on, and DragonFly
  8767. shlibpath_overrides_runpath=yes
  8768. hardcode_into_libs=yes
  8769. ;;
  8770. esac
  8771. ;;
  8772. gnu*)
  8773. version_type=linux
  8774. need_lib_prefix=no
  8775. need_version=no
  8776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8777. soname_spec='${libname}${release}${shared_ext}$major'
  8778. shlibpath_var=LD_LIBRARY_PATH
  8779. hardcode_into_libs=yes
  8780. ;;
  8781. haiku*)
  8782. version_type=linux
  8783. need_lib_prefix=no
  8784. need_version=no
  8785. dynamic_linker="$host_os runtime_loader"
  8786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8787. soname_spec='${libname}${release}${shared_ext}$major'
  8788. shlibpath_var=LIBRARY_PATH
  8789. shlibpath_overrides_runpath=yes
  8790. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8791. hardcode_into_libs=yes
  8792. ;;
  8793. hpux9* | hpux10* | hpux11*)
  8794. # Give a soname corresponding to the major version so that dld.sl refuses to
  8795. # link against other versions.
  8796. version_type=sunos
  8797. need_lib_prefix=no
  8798. need_version=no
  8799. case $host_cpu in
  8800. ia64*)
  8801. shrext_cmds='.so'
  8802. hardcode_into_libs=yes
  8803. dynamic_linker="$host_os dld.so"
  8804. shlibpath_var=LD_LIBRARY_PATH
  8805. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8807. soname_spec='${libname}${release}${shared_ext}$major'
  8808. if test "X$HPUX_IA64_MODE" = X32; then
  8809. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8810. else
  8811. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8812. fi
  8813. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8814. ;;
  8815. hppa*64*)
  8816. shrext_cmds='.sl'
  8817. hardcode_into_libs=yes
  8818. dynamic_linker="$host_os dld.sl"
  8819. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8820. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8822. soname_spec='${libname}${release}${shared_ext}$major'
  8823. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8824. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8825. ;;
  8826. *)
  8827. shrext_cmds='.sl'
  8828. dynamic_linker="$host_os dld.sl"
  8829. shlibpath_var=SHLIB_PATH
  8830. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8831. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8832. soname_spec='${libname}${release}${shared_ext}$major'
  8833. ;;
  8834. esac
  8835. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8836. postinstall_cmds='chmod 555 $lib'
  8837. # or fails outright, so override atomically:
  8838. install_override_mode=555
  8839. ;;
  8840. interix[3-9]*)
  8841. version_type=linux
  8842. need_lib_prefix=no
  8843. need_version=no
  8844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8845. soname_spec='${libname}${release}${shared_ext}$major'
  8846. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8847. shlibpath_var=LD_LIBRARY_PATH
  8848. shlibpath_overrides_runpath=no
  8849. hardcode_into_libs=yes
  8850. ;;
  8851. irix5* | irix6* | nonstopux*)
  8852. case $host_os in
  8853. nonstopux*) version_type=nonstopux ;;
  8854. *)
  8855. if test "$lt_cv_prog_gnu_ld" = yes; then
  8856. version_type=linux
  8857. else
  8858. version_type=irix
  8859. fi ;;
  8860. esac
  8861. need_lib_prefix=no
  8862. need_version=no
  8863. soname_spec='${libname}${release}${shared_ext}$major'
  8864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8865. case $host_os in
  8866. irix5* | nonstopux*)
  8867. libsuff= shlibsuff=
  8868. ;;
  8869. *)
  8870. case $LD in # libtool.m4 will add one of these switches to LD
  8871. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8872. libsuff= shlibsuff= libmagic=32-bit;;
  8873. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8874. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8875. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8876. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8877. *) libsuff= shlibsuff= libmagic=never-match;;
  8878. esac
  8879. ;;
  8880. esac
  8881. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8882. shlibpath_overrides_runpath=no
  8883. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8884. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8885. hardcode_into_libs=yes
  8886. ;;
  8887. # No shared lib support for Linux oldld, aout, or coff.
  8888. linux*oldld* | linux*aout* | linux*coff*)
  8889. dynamic_linker=no
  8890. ;;
  8891. # This must be Linux ELF.
  8892. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8893. version_type=linux
  8894. need_lib_prefix=no
  8895. need_version=no
  8896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8897. soname_spec='${libname}${release}${shared_ext}$major'
  8898. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8899. shlibpath_var=LD_LIBRARY_PATH
  8900. shlibpath_overrides_runpath=no
  8901. # Some binutils ld are patched to set DT_RUNPATH
  8902. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  8903. $as_echo_n "(cached) " >&6
  8904. else
  8905. lt_cv_shlibpath_overrides_runpath=no
  8906. save_LDFLAGS=$LDFLAGS
  8907. save_libdir=$libdir
  8908. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8909. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8911. /* end confdefs.h. */
  8912. int
  8913. main ()
  8914. {
  8915. ;
  8916. return 0;
  8917. }
  8918. _ACEOF
  8919. if ac_fn_c_try_link "$LINENO"; then :
  8920. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8921. lt_cv_shlibpath_overrides_runpath=yes
  8922. fi
  8923. fi
  8924. rm -f core conftest.err conftest.$ac_objext \
  8925. conftest$ac_exeext conftest.$ac_ext
  8926. LDFLAGS=$save_LDFLAGS
  8927. libdir=$save_libdir
  8928. fi
  8929. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8930. # This implies no fast_install, which is unacceptable.
  8931. # Some rework will be needed to allow for fast_install
  8932. # before this can be enabled.
  8933. hardcode_into_libs=yes
  8934. # Append ld.so.conf contents to the search path
  8935. if test -f /etc/ld.so.conf; then
  8936. 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' ' '`
  8937. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8938. fi
  8939. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8940. # powerpc, because MkLinux only supported shared libraries with the
  8941. # GNU dynamic linker. Since this was broken with cross compilers,
  8942. # most powerpc-linux boxes support dynamic linking these days and
  8943. # people can always --disable-shared, the test was removed, and we
  8944. # assume the GNU/Linux dynamic linker is in use.
  8945. dynamic_linker='GNU/Linux ld.so'
  8946. ;;
  8947. netbsd*)
  8948. version_type=sunos
  8949. need_lib_prefix=no
  8950. need_version=no
  8951. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8953. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8954. dynamic_linker='NetBSD (a.out) ld.so'
  8955. else
  8956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8957. soname_spec='${libname}${release}${shared_ext}$major'
  8958. dynamic_linker='NetBSD ld.elf_so'
  8959. fi
  8960. shlibpath_var=LD_LIBRARY_PATH
  8961. shlibpath_overrides_runpath=yes
  8962. hardcode_into_libs=yes
  8963. ;;
  8964. newsos6)
  8965. version_type=linux
  8966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8967. shlibpath_var=LD_LIBRARY_PATH
  8968. shlibpath_overrides_runpath=yes
  8969. ;;
  8970. *nto* | *qnx*)
  8971. version_type=qnx
  8972. need_lib_prefix=no
  8973. need_version=no
  8974. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8975. soname_spec='${libname}${release}${shared_ext}$major'
  8976. shlibpath_var=LD_LIBRARY_PATH
  8977. shlibpath_overrides_runpath=no
  8978. hardcode_into_libs=yes
  8979. dynamic_linker='ldqnx.so'
  8980. ;;
  8981. openbsd*)
  8982. version_type=sunos
  8983. sys_lib_dlsearch_path_spec="/usr/lib"
  8984. need_lib_prefix=no
  8985. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8986. case $host_os in
  8987. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8988. *) need_version=no ;;
  8989. esac
  8990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8991. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8992. shlibpath_var=LD_LIBRARY_PATH
  8993. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8994. case $host_os in
  8995. openbsd2.[89] | openbsd2.[89].*)
  8996. shlibpath_overrides_runpath=no
  8997. ;;
  8998. *)
  8999. shlibpath_overrides_runpath=yes
  9000. ;;
  9001. esac
  9002. else
  9003. shlibpath_overrides_runpath=yes
  9004. fi
  9005. ;;
  9006. os2*)
  9007. libname_spec='$name'
  9008. shrext_cmds=".dll"
  9009. need_lib_prefix=no
  9010. library_names_spec='$libname${shared_ext} $libname.a'
  9011. dynamic_linker='OS/2 ld.exe'
  9012. shlibpath_var=LIBPATH
  9013. ;;
  9014. osf3* | osf4* | osf5*)
  9015. version_type=osf
  9016. need_lib_prefix=no
  9017. need_version=no
  9018. soname_spec='${libname}${release}${shared_ext}$major'
  9019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9020. shlibpath_var=LD_LIBRARY_PATH
  9021. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9022. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9023. ;;
  9024. rdos*)
  9025. dynamic_linker=no
  9026. ;;
  9027. solaris*)
  9028. version_type=linux
  9029. need_lib_prefix=no
  9030. need_version=no
  9031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9032. soname_spec='${libname}${release}${shared_ext}$major'
  9033. shlibpath_var=LD_LIBRARY_PATH
  9034. shlibpath_overrides_runpath=yes
  9035. hardcode_into_libs=yes
  9036. # ldd complains unless libraries are executable
  9037. postinstall_cmds='chmod +x $lib'
  9038. ;;
  9039. sunos4*)
  9040. version_type=sunos
  9041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9042. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9043. shlibpath_var=LD_LIBRARY_PATH
  9044. shlibpath_overrides_runpath=yes
  9045. if test "$with_gnu_ld" = yes; then
  9046. need_lib_prefix=no
  9047. fi
  9048. need_version=yes
  9049. ;;
  9050. sysv4 | sysv4.3*)
  9051. version_type=linux
  9052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9053. soname_spec='${libname}${release}${shared_ext}$major'
  9054. shlibpath_var=LD_LIBRARY_PATH
  9055. case $host_vendor in
  9056. sni)
  9057. shlibpath_overrides_runpath=no
  9058. need_lib_prefix=no
  9059. runpath_var=LD_RUN_PATH
  9060. ;;
  9061. siemens)
  9062. need_lib_prefix=no
  9063. ;;
  9064. motorola)
  9065. need_lib_prefix=no
  9066. need_version=no
  9067. shlibpath_overrides_runpath=no
  9068. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9069. ;;
  9070. esac
  9071. ;;
  9072. sysv4*MP*)
  9073. if test -d /usr/nec ;then
  9074. version_type=linux
  9075. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9076. soname_spec='$libname${shared_ext}.$major'
  9077. shlibpath_var=LD_LIBRARY_PATH
  9078. fi
  9079. ;;
  9080. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9081. version_type=freebsd-elf
  9082. need_lib_prefix=no
  9083. need_version=no
  9084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9085. soname_spec='${libname}${release}${shared_ext}$major'
  9086. shlibpath_var=LD_LIBRARY_PATH
  9087. shlibpath_overrides_runpath=yes
  9088. hardcode_into_libs=yes
  9089. if test "$with_gnu_ld" = yes; then
  9090. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9091. else
  9092. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9093. case $host_os in
  9094. sco3.2v5*)
  9095. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9096. ;;
  9097. esac
  9098. fi
  9099. sys_lib_dlsearch_path_spec='/usr/lib'
  9100. ;;
  9101. tpf*)
  9102. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9103. version_type=linux
  9104. need_lib_prefix=no
  9105. need_version=no
  9106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9107. shlibpath_var=LD_LIBRARY_PATH
  9108. shlibpath_overrides_runpath=no
  9109. hardcode_into_libs=yes
  9110. ;;
  9111. uts4*)
  9112. version_type=linux
  9113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9114. soname_spec='${libname}${release}${shared_ext}$major'
  9115. shlibpath_var=LD_LIBRARY_PATH
  9116. ;;
  9117. *)
  9118. dynamic_linker=no
  9119. ;;
  9120. esac
  9121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9122. $as_echo "$dynamic_linker" >&6; }
  9123. test "$dynamic_linker" = no && can_build_shared=no
  9124. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9125. if test "$GCC" = yes; then
  9126. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9127. fi
  9128. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9129. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9130. fi
  9131. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9132. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9133. fi
  9134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9135. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9136. hardcode_action=
  9137. if test -n "$hardcode_libdir_flag_spec" ||
  9138. test -n "$runpath_var" ||
  9139. test "X$hardcode_automatic" = "Xyes" ; then
  9140. # We can hardcode non-existent directories.
  9141. if test "$hardcode_direct" != no &&
  9142. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9143. # have to relink, otherwise we might link with an installed library
  9144. # when we should be linking with a yet-to-be-installed one
  9145. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9146. test "$hardcode_minus_L" != no; then
  9147. # Linking always hardcodes the temporary library directory.
  9148. hardcode_action=relink
  9149. else
  9150. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9151. hardcode_action=immediate
  9152. fi
  9153. else
  9154. # We cannot hardcode anything, or else we can only hardcode existing
  9155. # directories.
  9156. hardcode_action=unsupported
  9157. fi
  9158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9159. $as_echo "$hardcode_action" >&6; }
  9160. if test "$hardcode_action" = relink ||
  9161. test "$inherit_rpath" = yes; then
  9162. # Fast installation is not supported
  9163. enable_fast_install=no
  9164. elif test "$shlibpath_overrides_runpath" = yes ||
  9165. test "$enable_shared" = no; then
  9166. # Fast installation is not necessary
  9167. enable_fast_install=needless
  9168. fi
  9169. if test "x$enable_dlopen" != xyes; then
  9170. enable_dlopen=unknown
  9171. enable_dlopen_self=unknown
  9172. enable_dlopen_self_static=unknown
  9173. else
  9174. lt_cv_dlopen=no
  9175. lt_cv_dlopen_libs=
  9176. case $host_os in
  9177. beos*)
  9178. lt_cv_dlopen="load_add_on"
  9179. lt_cv_dlopen_libs=
  9180. lt_cv_dlopen_self=yes
  9181. ;;
  9182. mingw* | pw32* | cegcc*)
  9183. lt_cv_dlopen="LoadLibrary"
  9184. lt_cv_dlopen_libs=
  9185. ;;
  9186. cygwin*)
  9187. lt_cv_dlopen="dlopen"
  9188. lt_cv_dlopen_libs=
  9189. ;;
  9190. darwin*)
  9191. # if libdl is installed we need to link against it
  9192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9193. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9194. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9195. $as_echo_n "(cached) " >&6
  9196. else
  9197. ac_check_lib_save_LIBS=$LIBS
  9198. LIBS="-ldl $LIBS"
  9199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9200. /* end confdefs.h. */
  9201. /* Override any GCC internal prototype to avoid an error.
  9202. Use char because int might match the return type of a GCC
  9203. builtin and then its argument prototype would still apply. */
  9204. #ifdef __cplusplus
  9205. extern "C"
  9206. #endif
  9207. char dlopen ();
  9208. int
  9209. main ()
  9210. {
  9211. return dlopen ();
  9212. ;
  9213. return 0;
  9214. }
  9215. _ACEOF
  9216. if ac_fn_c_try_link "$LINENO"; then :
  9217. ac_cv_lib_dl_dlopen=yes
  9218. else
  9219. ac_cv_lib_dl_dlopen=no
  9220. fi
  9221. rm -f core conftest.err conftest.$ac_objext \
  9222. conftest$ac_exeext conftest.$ac_ext
  9223. LIBS=$ac_check_lib_save_LIBS
  9224. fi
  9225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9226. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9227. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9228. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9229. else
  9230. lt_cv_dlopen="dyld"
  9231. lt_cv_dlopen_libs=
  9232. lt_cv_dlopen_self=yes
  9233. fi
  9234. ;;
  9235. *)
  9236. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9237. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9238. lt_cv_dlopen="shl_load"
  9239. else
  9240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9241. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9242. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9243. $as_echo_n "(cached) " >&6
  9244. else
  9245. ac_check_lib_save_LIBS=$LIBS
  9246. LIBS="-ldld $LIBS"
  9247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9248. /* end confdefs.h. */
  9249. /* Override any GCC internal prototype to avoid an error.
  9250. Use char because int might match the return type of a GCC
  9251. builtin and then its argument prototype would still apply. */
  9252. #ifdef __cplusplus
  9253. extern "C"
  9254. #endif
  9255. char shl_load ();
  9256. int
  9257. main ()
  9258. {
  9259. return shl_load ();
  9260. ;
  9261. return 0;
  9262. }
  9263. _ACEOF
  9264. if ac_fn_c_try_link "$LINENO"; then :
  9265. ac_cv_lib_dld_shl_load=yes
  9266. else
  9267. ac_cv_lib_dld_shl_load=no
  9268. fi
  9269. rm -f core conftest.err conftest.$ac_objext \
  9270. conftest$ac_exeext conftest.$ac_ext
  9271. LIBS=$ac_check_lib_save_LIBS
  9272. fi
  9273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9274. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9275. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9276. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9277. else
  9278. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9279. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9280. lt_cv_dlopen="dlopen"
  9281. else
  9282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9283. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9284. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9285. $as_echo_n "(cached) " >&6
  9286. else
  9287. ac_check_lib_save_LIBS=$LIBS
  9288. LIBS="-ldl $LIBS"
  9289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9290. /* end confdefs.h. */
  9291. /* Override any GCC internal prototype to avoid an error.
  9292. Use char because int might match the return type of a GCC
  9293. builtin and then its argument prototype would still apply. */
  9294. #ifdef __cplusplus
  9295. extern "C"
  9296. #endif
  9297. char dlopen ();
  9298. int
  9299. main ()
  9300. {
  9301. return dlopen ();
  9302. ;
  9303. return 0;
  9304. }
  9305. _ACEOF
  9306. if ac_fn_c_try_link "$LINENO"; then :
  9307. ac_cv_lib_dl_dlopen=yes
  9308. else
  9309. ac_cv_lib_dl_dlopen=no
  9310. fi
  9311. rm -f core conftest.err conftest.$ac_objext \
  9312. conftest$ac_exeext conftest.$ac_ext
  9313. LIBS=$ac_check_lib_save_LIBS
  9314. fi
  9315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9316. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9317. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9318. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9319. else
  9320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9321. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9322. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9323. $as_echo_n "(cached) " >&6
  9324. else
  9325. ac_check_lib_save_LIBS=$LIBS
  9326. LIBS="-lsvld $LIBS"
  9327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9328. /* end confdefs.h. */
  9329. /* Override any GCC internal prototype to avoid an error.
  9330. Use char because int might match the return type of a GCC
  9331. builtin and then its argument prototype would still apply. */
  9332. #ifdef __cplusplus
  9333. extern "C"
  9334. #endif
  9335. char dlopen ();
  9336. int
  9337. main ()
  9338. {
  9339. return dlopen ();
  9340. ;
  9341. return 0;
  9342. }
  9343. _ACEOF
  9344. if ac_fn_c_try_link "$LINENO"; then :
  9345. ac_cv_lib_svld_dlopen=yes
  9346. else
  9347. ac_cv_lib_svld_dlopen=no
  9348. fi
  9349. rm -f core conftest.err conftest.$ac_objext \
  9350. conftest$ac_exeext conftest.$ac_ext
  9351. LIBS=$ac_check_lib_save_LIBS
  9352. fi
  9353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9354. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9355. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9356. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9357. else
  9358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9359. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9360. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9361. $as_echo_n "(cached) " >&6
  9362. else
  9363. ac_check_lib_save_LIBS=$LIBS
  9364. LIBS="-ldld $LIBS"
  9365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9366. /* end confdefs.h. */
  9367. /* Override any GCC internal prototype to avoid an error.
  9368. Use char because int might match the return type of a GCC
  9369. builtin and then its argument prototype would still apply. */
  9370. #ifdef __cplusplus
  9371. extern "C"
  9372. #endif
  9373. char dld_link ();
  9374. int
  9375. main ()
  9376. {
  9377. return dld_link ();
  9378. ;
  9379. return 0;
  9380. }
  9381. _ACEOF
  9382. if ac_fn_c_try_link "$LINENO"; then :
  9383. ac_cv_lib_dld_dld_link=yes
  9384. else
  9385. ac_cv_lib_dld_dld_link=no
  9386. fi
  9387. rm -f core conftest.err conftest.$ac_objext \
  9388. conftest$ac_exeext conftest.$ac_ext
  9389. LIBS=$ac_check_lib_save_LIBS
  9390. fi
  9391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9392. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9393. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9394. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9395. fi
  9396. fi
  9397. fi
  9398. fi
  9399. fi
  9400. fi
  9401. ;;
  9402. esac
  9403. if test "x$lt_cv_dlopen" != xno; then
  9404. enable_dlopen=yes
  9405. else
  9406. enable_dlopen=no
  9407. fi
  9408. case $lt_cv_dlopen in
  9409. dlopen)
  9410. save_CPPFLAGS="$CPPFLAGS"
  9411. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9412. save_LDFLAGS="$LDFLAGS"
  9413. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9414. save_LIBS="$LIBS"
  9415. LIBS="$lt_cv_dlopen_libs $LIBS"
  9416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9417. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9418. if test "${lt_cv_dlopen_self+set}" = set; then :
  9419. $as_echo_n "(cached) " >&6
  9420. else
  9421. if test "$cross_compiling" = yes; then :
  9422. lt_cv_dlopen_self=cross
  9423. else
  9424. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9425. lt_status=$lt_dlunknown
  9426. cat > conftest.$ac_ext <<_LT_EOF
  9427. #line 10974 "configure"
  9428. #include "confdefs.h"
  9429. #if HAVE_DLFCN_H
  9430. #include <dlfcn.h>
  9431. #endif
  9432. #include <stdio.h>
  9433. #ifdef RTLD_GLOBAL
  9434. # define LT_DLGLOBAL RTLD_GLOBAL
  9435. #else
  9436. # ifdef DL_GLOBAL
  9437. # define LT_DLGLOBAL DL_GLOBAL
  9438. # else
  9439. # define LT_DLGLOBAL 0
  9440. # endif
  9441. #endif
  9442. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9443. find out it does not work in some platform. */
  9444. #ifndef LT_DLLAZY_OR_NOW
  9445. # ifdef RTLD_LAZY
  9446. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9447. # else
  9448. # ifdef DL_LAZY
  9449. # define LT_DLLAZY_OR_NOW DL_LAZY
  9450. # else
  9451. # ifdef RTLD_NOW
  9452. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9453. # else
  9454. # ifdef DL_NOW
  9455. # define LT_DLLAZY_OR_NOW DL_NOW
  9456. # else
  9457. # define LT_DLLAZY_OR_NOW 0
  9458. # endif
  9459. # endif
  9460. # endif
  9461. # endif
  9462. #endif
  9463. /* When -fvisbility=hidden is used, assume the code has been annotated
  9464. correspondingly for the symbols needed. */
  9465. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9466. void fnord () __attribute__((visibility("default")));
  9467. #endif
  9468. void fnord () { int i=42; }
  9469. int main ()
  9470. {
  9471. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9472. int status = $lt_dlunknown;
  9473. if (self)
  9474. {
  9475. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9476. else
  9477. {
  9478. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9479. else puts (dlerror ());
  9480. }
  9481. /* dlclose (self); */
  9482. }
  9483. else
  9484. puts (dlerror ());
  9485. return status;
  9486. }
  9487. _LT_EOF
  9488. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9489. (eval $ac_link) 2>&5
  9490. ac_status=$?
  9491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9492. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9493. (./conftest; exit; ) >&5 2>/dev/null
  9494. lt_status=$?
  9495. case x$lt_status in
  9496. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9497. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9498. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9499. esac
  9500. else :
  9501. # compilation failed
  9502. lt_cv_dlopen_self=no
  9503. fi
  9504. fi
  9505. rm -fr conftest*
  9506. fi
  9507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9508. $as_echo "$lt_cv_dlopen_self" >&6; }
  9509. if test "x$lt_cv_dlopen_self" = xyes; then
  9510. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9512. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9513. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9514. $as_echo_n "(cached) " >&6
  9515. else
  9516. if test "$cross_compiling" = yes; then :
  9517. lt_cv_dlopen_self_static=cross
  9518. else
  9519. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9520. lt_status=$lt_dlunknown
  9521. cat > conftest.$ac_ext <<_LT_EOF
  9522. #line 11080 "configure"
  9523. #include "confdefs.h"
  9524. #if HAVE_DLFCN_H
  9525. #include <dlfcn.h>
  9526. #endif
  9527. #include <stdio.h>
  9528. #ifdef RTLD_GLOBAL
  9529. # define LT_DLGLOBAL RTLD_GLOBAL
  9530. #else
  9531. # ifdef DL_GLOBAL
  9532. # define LT_DLGLOBAL DL_GLOBAL
  9533. # else
  9534. # define LT_DLGLOBAL 0
  9535. # endif
  9536. #endif
  9537. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9538. find out it does not work in some platform. */
  9539. #ifndef LT_DLLAZY_OR_NOW
  9540. # ifdef RTLD_LAZY
  9541. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9542. # else
  9543. # ifdef DL_LAZY
  9544. # define LT_DLLAZY_OR_NOW DL_LAZY
  9545. # else
  9546. # ifdef RTLD_NOW
  9547. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9548. # else
  9549. # ifdef DL_NOW
  9550. # define LT_DLLAZY_OR_NOW DL_NOW
  9551. # else
  9552. # define LT_DLLAZY_OR_NOW 0
  9553. # endif
  9554. # endif
  9555. # endif
  9556. # endif
  9557. #endif
  9558. /* When -fvisbility=hidden is used, assume the code has been annotated
  9559. correspondingly for the symbols needed. */
  9560. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9561. void fnord () __attribute__((visibility("default")));
  9562. #endif
  9563. void fnord () { int i=42; }
  9564. int main ()
  9565. {
  9566. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9567. int status = $lt_dlunknown;
  9568. if (self)
  9569. {
  9570. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9571. else
  9572. {
  9573. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9574. else puts (dlerror ());
  9575. }
  9576. /* dlclose (self); */
  9577. }
  9578. else
  9579. puts (dlerror ());
  9580. return status;
  9581. }
  9582. _LT_EOF
  9583. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9584. (eval $ac_link) 2>&5
  9585. ac_status=$?
  9586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9587. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9588. (./conftest; exit; ) >&5 2>/dev/null
  9589. lt_status=$?
  9590. case x$lt_status in
  9591. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9592. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9593. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9594. esac
  9595. else :
  9596. # compilation failed
  9597. lt_cv_dlopen_self_static=no
  9598. fi
  9599. fi
  9600. rm -fr conftest*
  9601. fi
  9602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9603. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9604. fi
  9605. CPPFLAGS="$save_CPPFLAGS"
  9606. LDFLAGS="$save_LDFLAGS"
  9607. LIBS="$save_LIBS"
  9608. ;;
  9609. esac
  9610. case $lt_cv_dlopen_self in
  9611. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9612. *) enable_dlopen_self=unknown ;;
  9613. esac
  9614. case $lt_cv_dlopen_self_static in
  9615. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9616. *) enable_dlopen_self_static=unknown ;;
  9617. esac
  9618. fi
  9619. striplib=
  9620. old_striplib=
  9621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9622. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9623. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9624. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9625. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9627. $as_echo "yes" >&6; }
  9628. else
  9629. # FIXME - insert some real tests, host_os isn't really good enough
  9630. case $host_os in
  9631. darwin*)
  9632. if test -n "$STRIP" ; then
  9633. striplib="$STRIP -x"
  9634. old_striplib="$STRIP -S"
  9635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9636. $as_echo "yes" >&6; }
  9637. else
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9639. $as_echo "no" >&6; }
  9640. fi
  9641. ;;
  9642. *)
  9643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9644. $as_echo "no" >&6; }
  9645. ;;
  9646. esac
  9647. fi
  9648. # Report which library types will actually be built
  9649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9650. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9652. $as_echo "$can_build_shared" >&6; }
  9653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9654. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9655. test "$can_build_shared" = "no" && enable_shared=no
  9656. # On AIX, shared libraries and static libraries use the same namespace, and
  9657. # are all built from PIC.
  9658. case $host_os in
  9659. aix3*)
  9660. test "$enable_shared" = yes && enable_static=no
  9661. if test -n "$RANLIB"; then
  9662. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9663. postinstall_cmds='$RANLIB $lib'
  9664. fi
  9665. ;;
  9666. aix[4-9]*)
  9667. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9668. test "$enable_shared" = yes && enable_static=no
  9669. fi
  9670. ;;
  9671. esac
  9672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9673. $as_echo "$enable_shared" >&6; }
  9674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9675. $as_echo_n "checking whether to build static libraries... " >&6; }
  9676. # Make sure either enable_shared or enable_static is yes.
  9677. test "$enable_shared" = yes || enable_static=yes
  9678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9679. $as_echo "$enable_static" >&6; }
  9680. fi
  9681. ac_ext=c
  9682. ac_cpp='$CPP $CPPFLAGS'
  9683. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9684. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9685. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9686. CC="$lt_save_CC"
  9687. ac_config_commands="$ac_config_commands libtool"
  9688. # Only expand once:
  9689. # The tests for host and target for $enable_largefile require
  9690. # canonical names.
  9691. # As the $enable_largefile decision depends on --enable-plugins we must set it
  9692. # even in directories otherwise not depending on the $plugins option.
  9693. maybe_plugins=no
  9694. for ac_header in dlfcn.h
  9695. do :
  9696. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9697. "
  9698. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  9699. cat >>confdefs.h <<_ACEOF
  9700. #define HAVE_DLFCN_H 1
  9701. _ACEOF
  9702. maybe_plugins=yes
  9703. fi
  9704. done
  9705. for ac_header in windows.h
  9706. do :
  9707. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  9708. "
  9709. if test "x$ac_cv_header_windows_h" = x""yes; then :
  9710. cat >>confdefs.h <<_ACEOF
  9711. #define HAVE_WINDOWS_H 1
  9712. _ACEOF
  9713. maybe_plugins=yes
  9714. fi
  9715. done
  9716. # Check whether --enable-plugins was given.
  9717. if test "${enable_plugins+set}" = set; then :
  9718. enableval=$enable_plugins; case "${enableval}" in
  9719. no) plugins=no ;;
  9720. *) plugins=yes
  9721. if test "$maybe_plugins" != "yes" ; then
  9722. as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  9723. fi ;;
  9724. esac
  9725. else
  9726. plugins=$maybe_plugins
  9727. fi
  9728. if test "$plugins" = "yes"; then
  9729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  9730. $as_echo_n "checking for library containing dlopen... " >&6; }
  9731. if test "${ac_cv_search_dlopen+set}" = set; then :
  9732. $as_echo_n "(cached) " >&6
  9733. else
  9734. ac_func_search_save_LIBS=$LIBS
  9735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9736. /* end confdefs.h. */
  9737. /* Override any GCC internal prototype to avoid an error.
  9738. Use char because int might match the return type of a GCC
  9739. builtin and then its argument prototype would still apply. */
  9740. #ifdef __cplusplus
  9741. extern "C"
  9742. #endif
  9743. char dlopen ();
  9744. int
  9745. main ()
  9746. {
  9747. return dlopen ();
  9748. ;
  9749. return 0;
  9750. }
  9751. _ACEOF
  9752. for ac_lib in '' dl; do
  9753. if test -z "$ac_lib"; then
  9754. ac_res="none required"
  9755. else
  9756. ac_res=-l$ac_lib
  9757. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9758. fi
  9759. if ac_fn_c_try_link "$LINENO"; then :
  9760. ac_cv_search_dlopen=$ac_res
  9761. fi
  9762. rm -f core conftest.err conftest.$ac_objext \
  9763. conftest$ac_exeext
  9764. if test "${ac_cv_search_dlopen+set}" = set; then :
  9765. break
  9766. fi
  9767. done
  9768. if test "${ac_cv_search_dlopen+set}" = set; then :
  9769. else
  9770. ac_cv_search_dlopen=no
  9771. fi
  9772. rm conftest.$ac_ext
  9773. LIBS=$ac_func_search_save_LIBS
  9774. fi
  9775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  9776. $as_echo "$ac_cv_search_dlopen" >&6; }
  9777. ac_res=$ac_cv_search_dlopen
  9778. if test "$ac_res" != no; then :
  9779. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9780. fi
  9781. fi
  9782. case "${host}" in
  9783. sparc-*-solaris*|i[3-7]86-*-solaris*)
  9784. # On native 32bit sparc and ia32 solaris, large-file and procfs support
  9785. # are mutually exclusive; and without procfs support, the bfd/ elf module
  9786. # cannot provide certain routines such as elfcore_write_prpsinfo
  9787. # or elfcore_write_prstatus. So unless the user explicitly requested
  9788. # large-file support through the --enable-largefile switch, disable
  9789. # large-file support in favor of procfs support.
  9790. test "${target}" = "${host}" -a "x$plugins" = xno \
  9791. && : ${enable_largefile="no"}
  9792. ;;
  9793. esac
  9794. # Check whether --enable-largefile was given.
  9795. if test "${enable_largefile+set}" = set; then :
  9796. enableval=$enable_largefile;
  9797. fi
  9798. if test "$enable_largefile" != no; then
  9799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  9800. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  9801. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  9802. $as_echo_n "(cached) " >&6
  9803. else
  9804. ac_cv_sys_largefile_CC=no
  9805. if test "$GCC" != yes; then
  9806. ac_save_CC=$CC
  9807. while :; do
  9808. # IRIX 6.2 and later do not support large files by default,
  9809. # so use the C compiler's -n32 option if that helps.
  9810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9811. /* end confdefs.h. */
  9812. #include <sys/types.h>
  9813. /* Check that off_t can represent 2**63 - 1 correctly.
  9814. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9815. since some C++ compilers masquerading as C compilers
  9816. incorrectly reject 9223372036854775807. */
  9817. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9818. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9819. && LARGE_OFF_T % 2147483647 == 1)
  9820. ? 1 : -1];
  9821. int
  9822. main ()
  9823. {
  9824. ;
  9825. return 0;
  9826. }
  9827. _ACEOF
  9828. if ac_fn_c_try_compile "$LINENO"; then :
  9829. break
  9830. fi
  9831. rm -f core conftest.err conftest.$ac_objext
  9832. CC="$CC -n32"
  9833. if ac_fn_c_try_compile "$LINENO"; then :
  9834. ac_cv_sys_largefile_CC=' -n32'; break
  9835. fi
  9836. rm -f core conftest.err conftest.$ac_objext
  9837. break
  9838. done
  9839. CC=$ac_save_CC
  9840. rm -f conftest.$ac_ext
  9841. fi
  9842. fi
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  9844. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  9845. if test "$ac_cv_sys_largefile_CC" != no; then
  9846. CC=$CC$ac_cv_sys_largefile_CC
  9847. fi
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9849. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  9850. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  9851. $as_echo_n "(cached) " >&6
  9852. else
  9853. while :; do
  9854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9855. /* end confdefs.h. */
  9856. #include <sys/types.h>
  9857. /* Check that off_t can represent 2**63 - 1 correctly.
  9858. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9859. since some C++ compilers masquerading as C compilers
  9860. incorrectly reject 9223372036854775807. */
  9861. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9862. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9863. && LARGE_OFF_T % 2147483647 == 1)
  9864. ? 1 : -1];
  9865. int
  9866. main ()
  9867. {
  9868. ;
  9869. return 0;
  9870. }
  9871. _ACEOF
  9872. if ac_fn_c_try_compile "$LINENO"; then :
  9873. ac_cv_sys_file_offset_bits=no; break
  9874. fi
  9875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9877. /* end confdefs.h. */
  9878. #define _FILE_OFFSET_BITS 64
  9879. #include <sys/types.h>
  9880. /* Check that off_t can represent 2**63 - 1 correctly.
  9881. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9882. since some C++ compilers masquerading as C compilers
  9883. incorrectly reject 9223372036854775807. */
  9884. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9885. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9886. && LARGE_OFF_T % 2147483647 == 1)
  9887. ? 1 : -1];
  9888. int
  9889. main ()
  9890. {
  9891. ;
  9892. return 0;
  9893. }
  9894. _ACEOF
  9895. if ac_fn_c_try_compile "$LINENO"; then :
  9896. ac_cv_sys_file_offset_bits=64; break
  9897. fi
  9898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9899. ac_cv_sys_file_offset_bits=unknown
  9900. break
  9901. done
  9902. fi
  9903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  9904. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  9905. case $ac_cv_sys_file_offset_bits in #(
  9906. no | unknown) ;;
  9907. *)
  9908. cat >>confdefs.h <<_ACEOF
  9909. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9910. _ACEOF
  9911. ;;
  9912. esac
  9913. rm -rf conftest*
  9914. if test $ac_cv_sys_file_offset_bits = unknown; then
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  9916. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  9917. if test "${ac_cv_sys_large_files+set}" = set; then :
  9918. $as_echo_n "(cached) " >&6
  9919. else
  9920. while :; do
  9921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9922. /* end confdefs.h. */
  9923. #include <sys/types.h>
  9924. /* Check that off_t can represent 2**63 - 1 correctly.
  9925. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9926. since some C++ compilers masquerading as C compilers
  9927. incorrectly reject 9223372036854775807. */
  9928. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9929. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9930. && LARGE_OFF_T % 2147483647 == 1)
  9931. ? 1 : -1];
  9932. int
  9933. main ()
  9934. {
  9935. ;
  9936. return 0;
  9937. }
  9938. _ACEOF
  9939. if ac_fn_c_try_compile "$LINENO"; then :
  9940. ac_cv_sys_large_files=no; break
  9941. fi
  9942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9944. /* end confdefs.h. */
  9945. #define _LARGE_FILES 1
  9946. #include <sys/types.h>
  9947. /* Check that off_t can represent 2**63 - 1 correctly.
  9948. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9949. since some C++ compilers masquerading as C compilers
  9950. incorrectly reject 9223372036854775807. */
  9951. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9952. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9953. && LARGE_OFF_T % 2147483647 == 1)
  9954. ? 1 : -1];
  9955. int
  9956. main ()
  9957. {
  9958. ;
  9959. return 0;
  9960. }
  9961. _ACEOF
  9962. if ac_fn_c_try_compile "$LINENO"; then :
  9963. ac_cv_sys_large_files=1; break
  9964. fi
  9965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9966. ac_cv_sys_large_files=unknown
  9967. break
  9968. done
  9969. fi
  9970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  9971. $as_echo "$ac_cv_sys_large_files" >&6; }
  9972. case $ac_cv_sys_large_files in #(
  9973. no | unknown) ;;
  9974. *)
  9975. cat >>confdefs.h <<_ACEOF
  9976. #define _LARGE_FILES $ac_cv_sys_large_files
  9977. _ACEOF
  9978. ;;
  9979. esac
  9980. rm -rf conftest*
  9981. fi
  9982. fi
  9983. # Check whether --enable-targets was given.
  9984. if test "${enable_targets+set}" = set; then :
  9985. enableval=$enable_targets; case "${enableval}" in
  9986. yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
  9987. ;;
  9988. no) enable_targets= ;;
  9989. *) enable_targets=$enableval ;;
  9990. esac
  9991. fi
  9992. ac_checking=yes
  9993. if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
  9994. ac_checking=
  9995. fi
  9996. # Check whether --enable-checking was given.
  9997. if test "${enable_checking+set}" = set; then :
  9998. enableval=$enable_checking; case "${enableval}" in
  9999. no|none) ac_checking= ;;
  10000. *) ac_checking=yes ;;
  10001. esac
  10002. fi
  10003. if test x$ac_checking != x ; then
  10004. $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
  10005. fi
  10006. # PR gas/19109
  10007. # Decide the default method for compressing debug sections.
  10008. ac_default_compressed_debug_sections=unset
  10009. # Provide a configure time option to override our default.
  10010. # Check whether --enable-compressed_debug_sections was given.
  10011. if test "${enable_compressed_debug_sections+set}" = set; then :
  10012. enableval=$enable_compressed_debug_sections; case "${enableval}" in
  10013. yes | all | gas) ac_default_compressed_debug_sections=yes ;;
  10014. no | none) ac_default_compressed_debug_sections=no ;;
  10015. *) ac_default_compressed_debug_sections=unset ;;
  10016. esac
  10017. fi
  10018. using_cgen=no
  10019. # Set the 'development' global.
  10020. . $srcdir/../bfd/development.sh
  10021. GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  10022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10023. /* end confdefs.h. */
  10024. __GNUC__
  10025. _ACEOF
  10026. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10027. $EGREP "^[0-3]$" >/dev/null 2>&1; then :
  10028. else
  10029. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
  10030. fi
  10031. rm -f conftest*
  10032. # Check whether --enable-werror was given.
  10033. if test "${enable_werror+set}" = set; then :
  10034. enableval=$enable_werror; case "${enableval}" in
  10035. yes | y) ERROR_ON_WARNING="yes" ;;
  10036. no | n) ERROR_ON_WARNING="no" ;;
  10037. *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  10038. esac
  10039. fi
  10040. # Disable -Wformat by default when using gcc on mingw
  10041. case "${host}" in
  10042. *-*-mingw32*)
  10043. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  10044. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
  10045. fi
  10046. ;;
  10047. *) ;;
  10048. esac
  10049. # Enable -Werror by default when using gcc. Turn it off for releases.
  10050. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
  10051. ERROR_ON_WARNING=yes
  10052. fi
  10053. NO_WERROR=
  10054. if test "${ERROR_ON_WARNING}" = yes ; then
  10055. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
  10056. NO_WERROR="-Wno-error"
  10057. fi
  10058. if test "${GCC}" = yes ; then
  10059. WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  10060. fi
  10061. # Check whether --enable-build-warnings was given.
  10062. if test "${enable_build_warnings+set}" = set; then :
  10063. enableval=$enable_build_warnings; case "${enableval}" in
  10064. yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
  10065. no) if test "${GCC}" = yes ; then
  10066. WARN_CFLAGS="-w"
  10067. fi;;
  10068. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10069. WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
  10070. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10071. WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
  10072. *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10073. esac
  10074. fi
  10075. if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
  10076. echo "Setting warning flags = $WARN_CFLAGS" 6>&1
  10077. fi
  10078. # Generate a header file
  10079. ac_config_headers="$ac_config_headers config.h:config.in"
  10080. # PR 14072
  10081. # If we are on a DOS filesystem, we must use gdb.ini rather than
  10082. # .gdbinit.
  10083. case "${host}" in
  10084. *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
  10085. GDBINIT="gdb.ini"
  10086. ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
  10087. ;;
  10088. *)
  10089. GDBINIT=".gdbinit"
  10090. ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
  10091. ;;
  10092. esac
  10093. #We need this for the host. BOUT header is in host order.
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  10095. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  10096. if test "${ac_cv_c_bigendian+set}" = set; then :
  10097. $as_echo_n "(cached) " >&6
  10098. else
  10099. ac_cv_c_bigendian=unknown
  10100. # See if we're dealing with a universal compiler.
  10101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10102. /* end confdefs.h. */
  10103. #ifndef __APPLE_CC__
  10104. not a universal capable compiler
  10105. #endif
  10106. typedef int dummy;
  10107. _ACEOF
  10108. if ac_fn_c_try_compile "$LINENO"; then :
  10109. # Check for potential -arch flags. It is not universal unless
  10110. # there are at least two -arch flags with different values.
  10111. ac_arch=
  10112. ac_prev=
  10113. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  10114. if test -n "$ac_prev"; then
  10115. case $ac_word in
  10116. i?86 | x86_64 | ppc | ppc64)
  10117. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  10118. ac_arch=$ac_word
  10119. else
  10120. ac_cv_c_bigendian=universal
  10121. break
  10122. fi
  10123. ;;
  10124. esac
  10125. ac_prev=
  10126. elif test "x$ac_word" = "x-arch"; then
  10127. ac_prev=arch
  10128. fi
  10129. done
  10130. fi
  10131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10132. if test $ac_cv_c_bigendian = unknown; then
  10133. # See if sys/param.h defines the BYTE_ORDER macro.
  10134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10135. /* end confdefs.h. */
  10136. #include <sys/types.h>
  10137. #include <sys/param.h>
  10138. int
  10139. main ()
  10140. {
  10141. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  10142. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  10143. && LITTLE_ENDIAN)
  10144. bogus endian macros
  10145. #endif
  10146. ;
  10147. return 0;
  10148. }
  10149. _ACEOF
  10150. if ac_fn_c_try_compile "$LINENO"; then :
  10151. # It does; now see whether it defined to BIG_ENDIAN or not.
  10152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10153. /* end confdefs.h. */
  10154. #include <sys/types.h>
  10155. #include <sys/param.h>
  10156. int
  10157. main ()
  10158. {
  10159. #if BYTE_ORDER != BIG_ENDIAN
  10160. not big endian
  10161. #endif
  10162. ;
  10163. return 0;
  10164. }
  10165. _ACEOF
  10166. if ac_fn_c_try_compile "$LINENO"; then :
  10167. ac_cv_c_bigendian=yes
  10168. else
  10169. ac_cv_c_bigendian=no
  10170. fi
  10171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10172. fi
  10173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10174. fi
  10175. if test $ac_cv_c_bigendian = unknown; then
  10176. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  10177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10178. /* end confdefs.h. */
  10179. #include <limits.h>
  10180. int
  10181. main ()
  10182. {
  10183. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  10184. bogus endian macros
  10185. #endif
  10186. ;
  10187. return 0;
  10188. }
  10189. _ACEOF
  10190. if ac_fn_c_try_compile "$LINENO"; then :
  10191. # It does; now see whether it defined to _BIG_ENDIAN or not.
  10192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10193. /* end confdefs.h. */
  10194. #include <limits.h>
  10195. int
  10196. main ()
  10197. {
  10198. #ifndef _BIG_ENDIAN
  10199. not big endian
  10200. #endif
  10201. ;
  10202. return 0;
  10203. }
  10204. _ACEOF
  10205. if ac_fn_c_try_compile "$LINENO"; then :
  10206. ac_cv_c_bigendian=yes
  10207. else
  10208. ac_cv_c_bigendian=no
  10209. fi
  10210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10211. fi
  10212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10213. fi
  10214. if test $ac_cv_c_bigendian = unknown; then
  10215. # Compile a test program.
  10216. if test "$cross_compiling" = yes; then :
  10217. # Try to guess by grepping values from an object file.
  10218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10219. /* end confdefs.h. */
  10220. short int ascii_mm[] =
  10221. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  10222. short int ascii_ii[] =
  10223. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  10224. int use_ascii (int i) {
  10225. return ascii_mm[i] + ascii_ii[i];
  10226. }
  10227. short int ebcdic_ii[] =
  10228. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  10229. short int ebcdic_mm[] =
  10230. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  10231. int use_ebcdic (int i) {
  10232. return ebcdic_mm[i] + ebcdic_ii[i];
  10233. }
  10234. extern int foo;
  10235. int
  10236. main ()
  10237. {
  10238. return use_ascii (foo) == use_ebcdic (foo);
  10239. ;
  10240. return 0;
  10241. }
  10242. _ACEOF
  10243. if ac_fn_c_try_compile "$LINENO"; then :
  10244. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  10245. ac_cv_c_bigendian=yes
  10246. fi
  10247. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  10248. if test "$ac_cv_c_bigendian" = unknown; then
  10249. ac_cv_c_bigendian=no
  10250. else
  10251. # finding both strings is unlikely to happen, but who knows?
  10252. ac_cv_c_bigendian=unknown
  10253. fi
  10254. fi
  10255. fi
  10256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10257. else
  10258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10259. /* end confdefs.h. */
  10260. $ac_includes_default
  10261. int
  10262. main ()
  10263. {
  10264. /* Are we little or big endian? From Harbison&Steele. */
  10265. union
  10266. {
  10267. long int l;
  10268. char c[sizeof (long int)];
  10269. } u;
  10270. u.l = 1;
  10271. return u.c[sizeof (long int) - 1] == 1;
  10272. ;
  10273. return 0;
  10274. }
  10275. _ACEOF
  10276. if ac_fn_c_try_run "$LINENO"; then :
  10277. ac_cv_c_bigendian=no
  10278. else
  10279. ac_cv_c_bigendian=yes
  10280. fi
  10281. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10282. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10283. fi
  10284. fi
  10285. fi
  10286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  10287. $as_echo "$ac_cv_c_bigendian" >&6; }
  10288. case $ac_cv_c_bigendian in #(
  10289. yes)
  10290. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  10291. ;; #(
  10292. no)
  10293. ;; #(
  10294. universal)
  10295. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  10296. ;; #(
  10297. *)
  10298. as_fn_error "unknown endianness
  10299. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  10300. esac
  10301. te_file=generic
  10302. # Makefile target for installing gas in $(tooldir)/bin.
  10303. install_tooldir=install-exec-tooldir
  10304. canon_targets=""
  10305. all_targets=no
  10306. if test -n "$enable_targets" ; then
  10307. for t in `echo $enable_targets | sed 's/,/ /g'`; do
  10308. if test $t = "all"; then
  10309. all_targets=yes
  10310. continue
  10311. fi
  10312. result=`$ac_config_sub $t 2>/dev/null`
  10313. if test -n "$result" ; then
  10314. canon_targets="$canon_targets $result"
  10315. # else
  10316. # # Permit "all", etc. We don't support it yet though.
  10317. # canon_targets="$canon_targets $t"
  10318. fi
  10319. done
  10320. _gas_uniq_list="$canon_targets"
  10321. _gas_uniq_newlist=""
  10322. for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
  10323. case $_gas_uniq_i in
  10324. _gas_uniq_dummy) ;;
  10325. *) case " $_gas_uniq_newlist " in
  10326. *" $_gas_uniq_i "*) ;;
  10327. *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
  10328. esac ;;
  10329. esac
  10330. done
  10331. canon_targets=$_gas_uniq_newlist
  10332. fi
  10333. emulations=""
  10334. for this_target in $target $canon_targets ; do
  10335. targ=${this_target}
  10336. . ${srcdir}/configure.tgt
  10337. case ${target_cpu} in
  10338. crisv32)
  10339. cat >>confdefs.h <<_ACEOF
  10340. #define DEFAULT_CRIS_ARCH $arch
  10341. _ACEOF
  10342. ;;
  10343. esac
  10344. if test ${this_target} = $target ; then
  10345. target_cpu_type=${cpu_type}
  10346. elif test ${target_cpu_type} != ${cpu_type} ; then
  10347. continue
  10348. fi
  10349. generic_target=${cpu_type}-${target_vendor}-${target_os}
  10350. case ${generic_target} in
  10351. i386-*-sco3.2v5*)
  10352. if test ${this_target} = $target; then
  10353. $as_echo "#define SCO_ELF 1" >>confdefs.h
  10354. fi
  10355. ;;
  10356. i386-*-msdosdjgpp* \
  10357. | i386-*-go32* \
  10358. | i386-go32-rtems*)
  10359. $as_echo "#define STRICTCOFF 1" >>confdefs.h
  10360. ;;
  10361. i860-*-*)
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
  10363. $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
  10364. ;;
  10365. microblaze*)
  10366. ;;
  10367. ppc-*-aix[5-9].*)
  10368. $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
  10369. ;;
  10370. ppc-*-solaris*)
  10371. if test ${this_target} = $target; then
  10372. $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
  10373. fi
  10374. if test x${endian} = xbig; then
  10375. as_fn_error "Solaris must be configured little endian" "$LINENO" 5
  10376. fi
  10377. ;;
  10378. sh*-*-symbianelf*)
  10379. $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
  10380. ;;
  10381. esac
  10382. if test ${this_target} = $target ; then
  10383. endian_def=
  10384. if test x${endian} = xbig; then
  10385. endian_def=1
  10386. elif test x${endian} = xlittle; then
  10387. endian_def=0
  10388. fi
  10389. if test x${endian_def} != x; then
  10390. cat >>confdefs.h <<_ACEOF
  10391. #define TARGET_BYTES_BIG_ENDIAN $endian_def
  10392. _ACEOF
  10393. fi
  10394. fi
  10395. # Other random stuff.
  10396. case ${cpu_type} in
  10397. mips)
  10398. # Set mips_cpu to the name of the default CPU.
  10399. case ${target_cpu} in
  10400. mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
  10401. mips_cpu=from-abi
  10402. ;;
  10403. mipsisa32 | mipsisa32el)
  10404. mips_cpu=mips32
  10405. ;;
  10406. mipsisa32r2 | mipsisa32r2el)
  10407. mips_cpu=mips32r2
  10408. ;;
  10409. mipsisa32r3 | mipsisa32r3el)
  10410. mips_cpu=mips32r3
  10411. ;;
  10412. mipsisa32r5 | mipsisa32r5el)
  10413. mips_cpu=mips32r5
  10414. ;;
  10415. mipsisa32r6 | mipsisa32r6el)
  10416. mips_cpu=mips32r6
  10417. ;;
  10418. mipsisa64 | mipsisa64el)
  10419. mips_cpu=mips64
  10420. ;;
  10421. mipsisa64r2 | mipsisa64r2el)
  10422. mips_cpu=mips64r2
  10423. ;;
  10424. mipsisa64r3 | mipsisa64r3el)
  10425. mips_cpu=mips64r3
  10426. ;;
  10427. mipsisa64r5 | mipsisa64r5el)
  10428. mips_cpu=mips64r5
  10429. ;;
  10430. mipsisa64r6 | mipsisa64r6el)
  10431. mips_cpu=mips64r6
  10432. ;;
  10433. mipstx39 | mipstx39el)
  10434. mips_cpu=r3900
  10435. ;;
  10436. mips64vr | mips64vrel)
  10437. mips_cpu=vr4100
  10438. ;;
  10439. mipsisa32r2* | mipsisa64r2*)
  10440. mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
  10441. ;;
  10442. mipsisa32r6* | mipsisa64r6*)
  10443. mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
  10444. ;;
  10445. mips64* | mipsisa64* | mipsisa32*)
  10446. mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
  10447. ;;
  10448. mips*)
  10449. mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
  10450. ;;
  10451. *)
  10452. as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
  10453. ;;
  10454. esac
  10455. # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
  10456. # binaries. It's a GNU extension that some OSes don't understand.
  10457. case ${target} in
  10458. *-*-irix*)
  10459. use_e_mips_abi_o32=0
  10460. ;;
  10461. *)
  10462. use_e_mips_abi_o32=1
  10463. ;;
  10464. esac
  10465. # Decide whether to generate 32-bit or 64-bit code by default.
  10466. # Used to resolve -march=from-abi when an embedded ABI is selected.
  10467. case ${target} in
  10468. mips64*-*-* | mipsisa64*-*-*)
  10469. mips_default_64bit=1
  10470. ;;
  10471. *)
  10472. mips_default_64bit=0
  10473. ;;
  10474. esac
  10475. # Decide which ABI to target by default.
  10476. case ${target} in
  10477. mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
  10478. mips_default_abi=N32_ABI
  10479. ;;
  10480. mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
  10481. mips_default_abi=O32_ABI
  10482. ;;
  10483. mips64*-openbsd*)
  10484. mips_default_abi=N64_ABI
  10485. ;;
  10486. *)
  10487. mips_default_abi=NO_ABI
  10488. ;;
  10489. esac
  10490. cat >>confdefs.h <<_ACEOF
  10491. #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
  10492. _ACEOF
  10493. cat >>confdefs.h <<_ACEOF
  10494. #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
  10495. _ACEOF
  10496. cat >>confdefs.h <<_ACEOF
  10497. #define MIPS_DEFAULT_64BIT $mips_default_64bit
  10498. _ACEOF
  10499. cat >>confdefs.h <<_ACEOF
  10500. #define MIPS_DEFAULT_ABI $mips_default_abi
  10501. _ACEOF
  10502. ;;
  10503. esac
  10504. # Do we need the opcodes library?
  10505. case ${cpu_type} in
  10506. vax | tic30)
  10507. ;;
  10508. *)
  10509. need_opcodes=yes
  10510. case "${enable_shared}" in
  10511. yes) shared_opcodes=true ;;
  10512. *opcodes*) shared_opcodes=true ;;
  10513. *) shared_opcodes=false ;;
  10514. esac
  10515. ;;
  10516. esac
  10517. # Any other special object files needed ?
  10518. case ${cpu_type} in
  10519. bfin)
  10520. echo ${extra_objects} | grep -s "bfin-parse.o"
  10521. if test $? -ne 0 ; then
  10522. extra_objects="$extra_objects bfin-parse.o"
  10523. fi
  10524. echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
  10525. if test $? -ne 0 ; then
  10526. extra_objects="$extra_objects bfin-lex-wrapper.o"
  10527. fi
  10528. ;;
  10529. epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
  10530. using_cgen=yes
  10531. ;;
  10532. m32c)
  10533. using_cgen=yes
  10534. ;;
  10535. frv)
  10536. using_cgen=yes
  10537. ;;
  10538. m68k)
  10539. case ${extra_objects} in
  10540. *m68k-parse.o*) ;;
  10541. *) extra_objects="$extra_objects m68k-parse.o" ;;
  10542. esac
  10543. ;;
  10544. mep)
  10545. using_cgen=yes
  10546. ;;
  10547. mips)
  10548. echo ${extra_objects} | grep -s "itbl-parse.o"
  10549. if test $? -ne 0 ; then
  10550. extra_objects="$extra_objects itbl-parse.o"
  10551. fi
  10552. echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
  10553. if test $? -ne 0 ; then
  10554. extra_objects="$extra_objects itbl-lex-wrapper.o"
  10555. fi
  10556. echo ${extra_objects} | grep -s "itbl-ops.o"
  10557. if test $? -ne 0 ; then
  10558. extra_objects="$extra_objects itbl-ops.o"
  10559. fi
  10560. ;;
  10561. mt)
  10562. using_cgen=yes
  10563. ;;
  10564. nds32)
  10565. # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
  10566. # based on arch_name.
  10567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
  10568. $as_echo_n "checking for default configuration of --with-arch... " >&6; }
  10569. if test "x${with_arch}" != x; then
  10570. case ${with_arch} in
  10571. v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
  10572. cat >>confdefs.h <<_ACEOF
  10573. #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
  10574. _ACEOF
  10575. ;;
  10576. *)
  10577. as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
  10578. ;;
  10579. esac
  10580. fi
  10581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
  10582. $as_echo "$with_arch" >&6; }
  10583. # Decide features one by one.
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
  10585. $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
  10586. if test "x${enable_dx_regs}" = xyes; then
  10587. $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
  10588. else
  10589. $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
  10590. fi
  10591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
  10592. $as_echo "$enable_dx_regs" >&6; }
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
  10594. $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
  10595. if test "x${enable_perf_ext}" = xno; then
  10596. $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
  10597. else
  10598. $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
  10599. fi
  10600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
  10601. $as_echo "$enable_perf_ext" >&6; }
  10602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
  10603. $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
  10604. if test "x${enable_perf_ext2}" = xno; then
  10605. $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
  10606. else
  10607. $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
  10608. fi
  10609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
  10610. $as_echo "$enable_perf_ext2" >&6; }
  10611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
  10612. $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
  10613. if test "x${enable_string_ext}" = xno; then
  10614. $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
  10615. else
  10616. $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
  10617. fi
  10618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
  10619. $as_echo "$enable_string_ext" >&6; }
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
  10621. $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
  10622. if test "x${enable_audio_ext}" = xno; then
  10623. $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
  10624. else
  10625. $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
  10626. fi
  10627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
  10628. $as_echo "$enable_audio_ext" >&6; }
  10629. ;;
  10630. i386 | s390 | sparc)
  10631. if test $this_target = $target ; then
  10632. cat >>confdefs.h <<_ACEOF
  10633. #define DEFAULT_ARCH "${arch}"
  10634. _ACEOF
  10635. fi
  10636. ;;
  10637. rl78)
  10638. echo ${extra_objects} | grep -s "rl78-parse.o"
  10639. if test $? -ne 0 ; then
  10640. extra_objects="$extra_objects rl78-parse.o"
  10641. fi
  10642. ;;
  10643. rx)
  10644. echo ${extra_objects} | grep -s "rx-parse.o"
  10645. if test $? -ne 0 ; then
  10646. extra_objects="$extra_objects rx-parse.o"
  10647. fi
  10648. ;;
  10649. xstormy16)
  10650. using_cgen=yes
  10651. ;;
  10652. xc16x)
  10653. using_cgen=yes
  10654. ;;
  10655. xtensa)
  10656. echo ${extra_objects} | grep -s "xtensa-relax.o"
  10657. if test $? -ne 0 ; then
  10658. extra_objects="$extra_objects xtensa-relax.o"
  10659. fi
  10660. ;;
  10661. *)
  10662. ;;
  10663. esac
  10664. if test $using_cgen = yes ; then
  10665. case "x${extra_objects}" in
  10666. *cgen.o*) ;;
  10667. *) extra_objects="$extra_objects cgen.o" ;;
  10668. esac
  10669. fi
  10670. # See if we really can support this configuration with the emulation code.
  10671. if test $this_target = $target ; then
  10672. obj_format=$fmt
  10673. te_file=$em
  10674. fi
  10675. case ${te_file} in
  10676. vms) extra_objects="$extra_objects te-vms.o" ;;
  10677. esac
  10678. # From target name and format, produce a list of supported emulations.
  10679. case ${generic_target}-${fmt} in
  10680. mips-*-*-*) case "$endian" in
  10681. big) emulation="mipsbelf mipslelf mipself" ;;
  10682. *) emulation="mipslelf mipsbelf mipself" ;;
  10683. esac ;;
  10684. # i386-pc-pe-coff != i386-pc-coff.
  10685. i386-*-pe-coff) ;;
  10686. # Uncommenting the next line will turn on support for i386 AOUT
  10687. # for the default linux configuration
  10688. # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
  10689. #
  10690. i386-*-aout) emulation="i386aout" ;;
  10691. i386-*-coff) emulation="i386coff" ;;
  10692. i386-*-elf) emulation="i386elf" ;;
  10693. # Always all formats. The first stated emulation becomes the default.
  10694. cris-*-*aout*) emulation="crisaout criself" ;;
  10695. cris-*-*) emulation="criself crisaout" ;;
  10696. esac
  10697. emulations="$emulations $emulation"
  10698. done
  10699. if test x$ac_default_compressed_debug_sections == xyes ; then
  10700. $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
  10701. fi
  10702. # Turn on all targets if possible
  10703. if test ${all_targets} = "yes"; then
  10704. case ${target_cpu_type} in
  10705. i386)
  10706. case ${obj_format} in
  10707. aout)
  10708. emulations="$emulations i386coff i386elf"
  10709. ;;
  10710. coff)
  10711. emulations="$emulations i386aout i386elf"
  10712. ;;
  10713. elf)
  10714. emulations="$emulations i386aout i386coff"
  10715. ;;
  10716. esac
  10717. ;;
  10718. x86_64)
  10719. case ${obj_format} in
  10720. aout)
  10721. emulations="$emulations i386coff i386elf"
  10722. ;;
  10723. coff)
  10724. emulations="$emulations i386aout i386elf"
  10725. ;;
  10726. elf)
  10727. emulations="$emulations i386aout i386coff"
  10728. ;;
  10729. esac
  10730. ;;
  10731. esac
  10732. fi
  10733. # PE code has way too many macros tweaking behaviour
  10734. case ${te_file} in
  10735. pe*) emulations="" ;;
  10736. esac
  10737. # Assign floating point type. Most processors with FP support
  10738. # IEEE FP. On those that don't support FP at all, usually IEEE
  10739. # is emulated.
  10740. case ${target_cpu} in
  10741. vax | pdp11 ) atof=vax ;;
  10742. *) atof=ieee ;;
  10743. esac
  10744. case "${obj_format}" in
  10745. "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
  10746. esac
  10747. # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
  10748. cgen_cpu_prefix=""
  10749. if test $using_cgen = yes ; then
  10750. case ${target_cpu} in
  10751. or1knd)
  10752. cgen_cpu_prefix=or1k ;;
  10753. *) cgen_cpu_prefix=${target_cpu} ;;
  10754. esac
  10755. $as_echo "#define USING_CGEN 1" >>confdefs.h
  10756. fi
  10757. if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
  10758. as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
  10759. fi
  10760. if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
  10761. as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
  10762. fi
  10763. # Some COFF configurations want these random other flags set.
  10764. case ${obj_format} in
  10765. coff)
  10766. case ${target_cpu_type} in
  10767. i386)
  10768. $as_echo "#define I386COFF 1" >>confdefs.h
  10769. ;;
  10770. m68k)
  10771. $as_echo "#define M68KCOFF 1" >>confdefs.h
  10772. ;;
  10773. m88k)
  10774. $as_echo "#define M88KCOFF 1" >>confdefs.h
  10775. ;;
  10776. x86_64)
  10777. $as_echo "#define I386COFF 1" >>confdefs.h
  10778. ;;
  10779. esac
  10780. ;;
  10781. esac
  10782. # Getting this done right is going to be a bitch. Each configuration specified
  10783. # with --enable-targets=... should be checked for environment, format, cpu
  10784. # setting.
  10785. #
  10786. # For each configuration, the necessary object file support code must be linked
  10787. # in. This might be only one, it might be up to four. The necessary emulation
  10788. # code needs to be provided, too.
  10789. #
  10790. # And then there's "--enable-targets=all"....
  10791. #
  10792. # For now, just always do it for MIPS ELF configurations. Sigh.
  10793. formats="${obj_format}"
  10794. emfiles=""
  10795. EMULATIONS=""
  10796. _gas_uniq_list="$emulations"
  10797. _gas_uniq_newlist=""
  10798. for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
  10799. case $_gas_uniq_i in
  10800. _gas_uniq_dummy) ;;
  10801. *) case " $_gas_uniq_newlist " in
  10802. *" $_gas_uniq_i "*) ;;
  10803. *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
  10804. esac ;;
  10805. esac
  10806. done
  10807. emulations=$_gas_uniq_newlist
  10808. for em in . $emulations ; do
  10809. case $em in
  10810. .) continue ;;
  10811. mipsbelf | mipslelf | mipself)
  10812. fmt=elf file=mipself ;;
  10813. *coff)
  10814. fmt=coff file=$em ;;
  10815. *aout)
  10816. fmt=aout file=$em ;;
  10817. *elf)
  10818. fmt=elf file=$em ;;
  10819. esac
  10820. formats="$formats $fmt"
  10821. emfiles="$emfiles e-$file.o"
  10822. EMULATIONS="$EMULATIONS &$em,"
  10823. done
  10824. _gas_uniq_list="$formats"
  10825. _gas_uniq_newlist=""
  10826. for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
  10827. case $_gas_uniq_i in
  10828. _gas_uniq_dummy) ;;
  10829. *) case " $_gas_uniq_newlist " in
  10830. *" $_gas_uniq_i "*) ;;
  10831. *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
  10832. esac ;;
  10833. esac
  10834. done
  10835. formats=$_gas_uniq_newlist
  10836. _gas_uniq_list="$emfiles"
  10837. _gas_uniq_newlist=""
  10838. for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
  10839. case $_gas_uniq_i in
  10840. _gas_uniq_dummy) ;;
  10841. *) case " $_gas_uniq_newlist " in
  10842. *" $_gas_uniq_i "*) ;;
  10843. *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
  10844. esac ;;
  10845. esac
  10846. done
  10847. emfiles=$_gas_uniq_newlist
  10848. if test `set . $formats ; shift ; echo $#` -gt 1 ; then
  10849. for fmt in $formats ; do
  10850. case $fmt in
  10851. aout)
  10852. $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
  10853. ;;
  10854. bout)
  10855. $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
  10856. ;;
  10857. coff)
  10858. $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
  10859. ;;
  10860. ecoff)
  10861. $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
  10862. ;;
  10863. elf)
  10864. $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
  10865. ;;
  10866. generic)
  10867. $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
  10868. ;;
  10869. som)
  10870. $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
  10871. ;;
  10872. esac
  10873. extra_objects="$extra_objects obj-$fmt.o"
  10874. done
  10875. obj_format=multi
  10876. fi
  10877. if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
  10878. DEFAULT_EMULATION=`set . $emulations ; echo $2`
  10879. # e-mipself has more than one emulation per file, e-i386* has just one at the
  10880. # moment. If only one emulation is specified, then don't define
  10881. # USE_EMULATIONS or include any of the e-files as they will only be bloat.
  10882. case "${obj_format}${emfiles}" in
  10883. multi* | *mipself*)
  10884. extra_objects="$extra_objects $emfiles"
  10885. $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
  10886. ;;
  10887. esac
  10888. fi
  10889. cat >>confdefs.h <<_ACEOF
  10890. #define EMULATIONS $EMULATIONS
  10891. _ACEOF
  10892. cat >>confdefs.h <<_ACEOF
  10893. #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
  10894. _ACEOF
  10895. reject_dev_configs=yes
  10896. case ${reject_dev_configs}-${dev} in
  10897. yes-yes) # Oops.
  10898. as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
  10899. ;;
  10900. esac
  10901. # do we need the opcodes library?
  10902. case "${need_opcodes}" in
  10903. yes)
  10904. OPCODES_LIB=../opcodes/libopcodes.la
  10905. ;;
  10906. esac
  10907. cat >>confdefs.h <<_ACEOF
  10908. #define TARGET_ALIAS "${target_alias}"
  10909. _ACEOF
  10910. cat >>confdefs.h <<_ACEOF
  10911. #define TARGET_CANONICAL "${target}"
  10912. _ACEOF
  10913. cat >>confdefs.h <<_ACEOF
  10914. #define TARGET_CPU "${target_cpu}"
  10915. _ACEOF
  10916. cat >>confdefs.h <<_ACEOF
  10917. #define TARGET_VENDOR "${target_vendor}"
  10918. _ACEOF
  10919. cat >>confdefs.h <<_ACEOF
  10920. #define TARGET_OS "${target_os}"
  10921. _ACEOF
  10922. for ac_prog in 'bison -y' byacc
  10923. do
  10924. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10925. set dummy $ac_prog; ac_word=$2
  10926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10927. $as_echo_n "checking for $ac_word... " >&6; }
  10928. if test "${ac_cv_prog_YACC+set}" = set; then :
  10929. $as_echo_n "(cached) " >&6
  10930. else
  10931. if test -n "$YACC"; then
  10932. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  10933. else
  10934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10935. for as_dir in $PATH
  10936. do
  10937. IFS=$as_save_IFS
  10938. test -z "$as_dir" && as_dir=.
  10939. for ac_exec_ext in '' $ac_executable_extensions; do
  10940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10941. ac_cv_prog_YACC="$ac_prog"
  10942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10943. break 2
  10944. fi
  10945. done
  10946. done
  10947. IFS=$as_save_IFS
  10948. fi
  10949. fi
  10950. YACC=$ac_cv_prog_YACC
  10951. if test -n "$YACC"; then
  10952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  10953. $as_echo "$YACC" >&6; }
  10954. else
  10955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10956. $as_echo "no" >&6; }
  10957. fi
  10958. test -n "$YACC" && break
  10959. done
  10960. test -n "$YACC" || YACC="yacc"
  10961. for ac_prog in flex lex
  10962. do
  10963. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10964. set dummy $ac_prog; ac_word=$2
  10965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10966. $as_echo_n "checking for $ac_word... " >&6; }
  10967. if test "${ac_cv_prog_LEX+set}" = set; then :
  10968. $as_echo_n "(cached) " >&6
  10969. else
  10970. if test -n "$LEX"; then
  10971. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  10972. else
  10973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10974. for as_dir in $PATH
  10975. do
  10976. IFS=$as_save_IFS
  10977. test -z "$as_dir" && as_dir=.
  10978. for ac_exec_ext in '' $ac_executable_extensions; do
  10979. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10980. ac_cv_prog_LEX="$ac_prog"
  10981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10982. break 2
  10983. fi
  10984. done
  10985. done
  10986. IFS=$as_save_IFS
  10987. fi
  10988. fi
  10989. LEX=$ac_cv_prog_LEX
  10990. if test -n "$LEX"; then
  10991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  10992. $as_echo "$LEX" >&6; }
  10993. else
  10994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10995. $as_echo "no" >&6; }
  10996. fi
  10997. test -n "$LEX" && break
  10998. done
  10999. test -n "$LEX" || LEX=":"
  11000. if test "x$LEX" != "x:"; then
  11001. cat >conftest.l <<_ACEOF
  11002. %%
  11003. a { ECHO; }
  11004. b { REJECT; }
  11005. c { yymore (); }
  11006. d { yyless (1); }
  11007. e { yyless (input () != 0); }
  11008. f { unput (yytext[0]); }
  11009. . { BEGIN INITIAL; }
  11010. %%
  11011. #ifdef YYTEXT_POINTER
  11012. extern char *yytext;
  11013. #endif
  11014. int
  11015. main (void)
  11016. {
  11017. return ! yylex () + ! yywrap ();
  11018. }
  11019. _ACEOF
  11020. { { ac_try="$LEX conftest.l"
  11021. case "(($ac_try" in
  11022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11023. *) ac_try_echo=$ac_try;;
  11024. esac
  11025. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11026. $as_echo "$ac_try_echo"; } >&5
  11027. (eval "$LEX conftest.l") 2>&5
  11028. ac_status=$?
  11029. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11030. test $ac_status = 0; }
  11031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  11032. $as_echo_n "checking lex output file root... " >&6; }
  11033. if test "${ac_cv_prog_lex_root+set}" = set; then :
  11034. $as_echo_n "(cached) " >&6
  11035. else
  11036. if test -f lex.yy.c; then
  11037. ac_cv_prog_lex_root=lex.yy
  11038. elif test -f lexyy.c; then
  11039. ac_cv_prog_lex_root=lexyy
  11040. else
  11041. as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
  11042. fi
  11043. fi
  11044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  11045. $as_echo "$ac_cv_prog_lex_root" >&6; }
  11046. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  11047. if test -z "${LEXLIB+set}"; then
  11048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  11049. $as_echo_n "checking lex library... " >&6; }
  11050. if test "${ac_cv_lib_lex+set}" = set; then :
  11051. $as_echo_n "(cached) " >&6
  11052. else
  11053. ac_save_LIBS=$LIBS
  11054. ac_cv_lib_lex='none needed'
  11055. for ac_lib in '' -lfl -ll; do
  11056. LIBS="$ac_lib $ac_save_LIBS"
  11057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11058. /* end confdefs.h. */
  11059. `cat $LEX_OUTPUT_ROOT.c`
  11060. _ACEOF
  11061. if ac_fn_c_try_link "$LINENO"; then :
  11062. ac_cv_lib_lex=$ac_lib
  11063. fi
  11064. rm -f core conftest.err conftest.$ac_objext \
  11065. conftest$ac_exeext conftest.$ac_ext
  11066. test "$ac_cv_lib_lex" != 'none needed' && break
  11067. done
  11068. LIBS=$ac_save_LIBS
  11069. fi
  11070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  11071. $as_echo "$ac_cv_lib_lex" >&6; }
  11072. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  11073. fi
  11074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  11075. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  11076. if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
  11077. $as_echo_n "(cached) " >&6
  11078. else
  11079. # POSIX says lex can declare yytext either as a pointer or an array; the
  11080. # default is implementation-dependent. Figure out which it is, since
  11081. # not all implementations provide the %pointer and %array declarations.
  11082. ac_cv_prog_lex_yytext_pointer=no
  11083. ac_save_LIBS=$LIBS
  11084. LIBS="$LEXLIB $ac_save_LIBS"
  11085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11086. /* end confdefs.h. */
  11087. #define YYTEXT_POINTER 1
  11088. `cat $LEX_OUTPUT_ROOT.c`
  11089. _ACEOF
  11090. if ac_fn_c_try_link "$LINENO"; then :
  11091. ac_cv_prog_lex_yytext_pointer=yes
  11092. fi
  11093. rm -f core conftest.err conftest.$ac_objext \
  11094. conftest$ac_exeext conftest.$ac_ext
  11095. LIBS=$ac_save_LIBS
  11096. fi
  11097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  11098. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  11099. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  11100. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  11101. fi
  11102. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  11103. fi
  11104. if test "$LEX" = :; then
  11105. LEX=${am_missing_run}flex
  11106. fi
  11107. ALL_LINGUAS="fr tr es rw id ru fi ja"
  11108. # If we haven't got the data from the intl directory,
  11109. # assume NLS is disabled.
  11110. USE_NLS=no
  11111. LIBINTL=
  11112. LIBINTL_DEP=
  11113. INCINTL=
  11114. XGETTEXT=
  11115. GMSGFMT=
  11116. POSUB=
  11117. if test -f ../intl/config.intl; then
  11118. . ../intl/config.intl
  11119. fi
  11120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  11121. $as_echo_n "checking whether NLS is requested... " >&6; }
  11122. if test x"$USE_NLS" != xyes; then
  11123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11124. $as_echo "no" >&6; }
  11125. else
  11126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11127. $as_echo "yes" >&6; }
  11128. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  11129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  11130. $as_echo_n "checking for catalogs to be installed... " >&6; }
  11131. # Look for .po and .gmo files in the source directory.
  11132. CATALOGS=
  11133. XLINGUAS=
  11134. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  11135. # If there aren't any .gmo files the shell will give us the
  11136. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  11137. # weeded out.
  11138. case "$cat" in *\**)
  11139. continue;;
  11140. esac
  11141. # The quadruple backslash is collapsed to a double backslash
  11142. # by the backticks, then collapsed again by the double quotes,
  11143. # leaving us with one backslash in the sed expression (right
  11144. # before the dot that mustn't act as a wildcard).
  11145. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  11146. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  11147. # The user is allowed to set LINGUAS to a list of languages to
  11148. # install catalogs for. If it's empty that means "all of them."
  11149. if test "x$LINGUAS" = x; then
  11150. CATALOGS="$CATALOGS $cat"
  11151. XLINGUAS="$XLINGUAS $lang"
  11152. else
  11153. case "$LINGUAS" in *$lang*)
  11154. CATALOGS="$CATALOGS $cat"
  11155. XLINGUAS="$XLINGUAS $lang"
  11156. ;;
  11157. esac
  11158. fi
  11159. done
  11160. LINGUAS="$XLINGUAS"
  11161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  11162. $as_echo "$LINGUAS" >&6; }
  11163. DATADIRNAME=share
  11164. INSTOBJEXT=.mo
  11165. GENCAT=gencat
  11166. CATOBJEXT=.gmo
  11167. fi
  11168. MKINSTALLDIRS=
  11169. if test -n "$ac_aux_dir"; then
  11170. case "$ac_aux_dir" in
  11171. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  11172. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  11173. esac
  11174. fi
  11175. if test -z "$MKINSTALLDIRS"; then
  11176. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  11177. fi
  11178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  11179. $as_echo_n "checking whether NLS is requested... " >&6; }
  11180. # Check whether --enable-nls was given.
  11181. if test "${enable_nls+set}" = set; then :
  11182. enableval=$enable_nls; USE_NLS=$enableval
  11183. else
  11184. USE_NLS=yes
  11185. fi
  11186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  11187. $as_echo "$USE_NLS" >&6; }
  11188. # Prepare PATH_SEPARATOR.
  11189. # The user is always right.
  11190. if test "${PATH_SEPARATOR+set}" != set; then
  11191. echo "#! /bin/sh" >conf$$.sh
  11192. echo "exit 0" >>conf$$.sh
  11193. chmod +x conf$$.sh
  11194. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11195. PATH_SEPARATOR=';'
  11196. else
  11197. PATH_SEPARATOR=:
  11198. fi
  11199. rm -f conf$$.sh
  11200. fi
  11201. # Find out how to test for executable files. Don't use a zero-byte file,
  11202. # as systems may use methods other than mode bits to determine executability.
  11203. cat >conf$$.file <<_ASEOF
  11204. #! /bin/sh
  11205. exit 0
  11206. _ASEOF
  11207. chmod +x conf$$.file
  11208. if test -x conf$$.file >/dev/null 2>&1; then
  11209. ac_executable_p="test -x"
  11210. else
  11211. ac_executable_p="test -f"
  11212. fi
  11213. rm -f conf$$.file
  11214. # Extract the first word of "msgfmt", so it can be a program name with args.
  11215. set dummy msgfmt; ac_word=$2
  11216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11217. $as_echo_n "checking for $ac_word... " >&6; }
  11218. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  11219. $as_echo_n "(cached) " >&6
  11220. else
  11221. case "$MSGFMT" in
  11222. [\\/]* | ?:[\\/]*)
  11223. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  11224. ;;
  11225. *)
  11226. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  11227. for ac_dir in $PATH; do
  11228. IFS="$ac_save_IFS"
  11229. test -z "$ac_dir" && ac_dir=.
  11230. for ac_exec_ext in '' $ac_executable_extensions; do
  11231. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  11232. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  11233. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  11234. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  11235. break 2
  11236. fi
  11237. fi
  11238. done
  11239. done
  11240. IFS="$ac_save_IFS"
  11241. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  11242. ;;
  11243. esac
  11244. fi
  11245. MSGFMT="$ac_cv_path_MSGFMT"
  11246. if test "$MSGFMT" != ":"; then
  11247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  11248. $as_echo "$MSGFMT" >&6; }
  11249. else
  11250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11251. $as_echo "no" >&6; }
  11252. fi
  11253. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  11254. set dummy gmsgfmt; ac_word=$2
  11255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11256. $as_echo_n "checking for $ac_word... " >&6; }
  11257. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  11258. $as_echo_n "(cached) " >&6
  11259. else
  11260. case $GMSGFMT in
  11261. [\\/]* | ?:[\\/]*)
  11262. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  11263. ;;
  11264. *)
  11265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11266. for as_dir in $PATH
  11267. do
  11268. IFS=$as_save_IFS
  11269. test -z "$as_dir" && as_dir=.
  11270. for ac_exec_ext in '' $ac_executable_extensions; do
  11271. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11272. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  11273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11274. break 2
  11275. fi
  11276. done
  11277. done
  11278. IFS=$as_save_IFS
  11279. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  11280. ;;
  11281. esac
  11282. fi
  11283. GMSGFMT=$ac_cv_path_GMSGFMT
  11284. if test -n "$GMSGFMT"; then
  11285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  11286. $as_echo "$GMSGFMT" >&6; }
  11287. else
  11288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11289. $as_echo "no" >&6; }
  11290. fi
  11291. # Prepare PATH_SEPARATOR.
  11292. # The user is always right.
  11293. if test "${PATH_SEPARATOR+set}" != set; then
  11294. echo "#! /bin/sh" >conf$$.sh
  11295. echo "exit 0" >>conf$$.sh
  11296. chmod +x conf$$.sh
  11297. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11298. PATH_SEPARATOR=';'
  11299. else
  11300. PATH_SEPARATOR=:
  11301. fi
  11302. rm -f conf$$.sh
  11303. fi
  11304. # Find out how to test for executable files. Don't use a zero-byte file,
  11305. # as systems may use methods other than mode bits to determine executability.
  11306. cat >conf$$.file <<_ASEOF
  11307. #! /bin/sh
  11308. exit 0
  11309. _ASEOF
  11310. chmod +x conf$$.file
  11311. if test -x conf$$.file >/dev/null 2>&1; then
  11312. ac_executable_p="test -x"
  11313. else
  11314. ac_executable_p="test -f"
  11315. fi
  11316. rm -f conf$$.file
  11317. # Extract the first word of "xgettext", so it can be a program name with args.
  11318. set dummy xgettext; ac_word=$2
  11319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11320. $as_echo_n "checking for $ac_word... " >&6; }
  11321. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  11322. $as_echo_n "(cached) " >&6
  11323. else
  11324. case "$XGETTEXT" in
  11325. [\\/]* | ?:[\\/]*)
  11326. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  11327. ;;
  11328. *)
  11329. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  11330. for ac_dir in $PATH; do
  11331. IFS="$ac_save_IFS"
  11332. test -z "$ac_dir" && ac_dir=.
  11333. for ac_exec_ext in '' $ac_executable_extensions; do
  11334. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  11335. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  11336. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  11337. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  11338. break 2
  11339. fi
  11340. fi
  11341. done
  11342. done
  11343. IFS="$ac_save_IFS"
  11344. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  11345. ;;
  11346. esac
  11347. fi
  11348. XGETTEXT="$ac_cv_path_XGETTEXT"
  11349. if test "$XGETTEXT" != ":"; then
  11350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  11351. $as_echo "$XGETTEXT" >&6; }
  11352. else
  11353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11354. $as_echo "no" >&6; }
  11355. fi
  11356. rm -f messages.po
  11357. # Prepare PATH_SEPARATOR.
  11358. # The user is always right.
  11359. if test "${PATH_SEPARATOR+set}" != set; then
  11360. echo "#! /bin/sh" >conf$$.sh
  11361. echo "exit 0" >>conf$$.sh
  11362. chmod +x conf$$.sh
  11363. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11364. PATH_SEPARATOR=';'
  11365. else
  11366. PATH_SEPARATOR=:
  11367. fi
  11368. rm -f conf$$.sh
  11369. fi
  11370. # Find out how to test for executable files. Don't use a zero-byte file,
  11371. # as systems may use methods other than mode bits to determine executability.
  11372. cat >conf$$.file <<_ASEOF
  11373. #! /bin/sh
  11374. exit 0
  11375. _ASEOF
  11376. chmod +x conf$$.file
  11377. if test -x conf$$.file >/dev/null 2>&1; then
  11378. ac_executable_p="test -x"
  11379. else
  11380. ac_executable_p="test -f"
  11381. fi
  11382. rm -f conf$$.file
  11383. # Extract the first word of "msgmerge", so it can be a program name with args.
  11384. set dummy msgmerge; ac_word=$2
  11385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11386. $as_echo_n "checking for $ac_word... " >&6; }
  11387. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  11388. $as_echo_n "(cached) " >&6
  11389. else
  11390. case "$MSGMERGE" in
  11391. [\\/]* | ?:[\\/]*)
  11392. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  11393. ;;
  11394. *)
  11395. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  11396. for ac_dir in $PATH; do
  11397. IFS="$ac_save_IFS"
  11398. test -z "$ac_dir" && ac_dir=.
  11399. for ac_exec_ext in '' $ac_executable_extensions; do
  11400. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  11401. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  11402. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  11403. break 2
  11404. fi
  11405. fi
  11406. done
  11407. done
  11408. IFS="$ac_save_IFS"
  11409. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  11410. ;;
  11411. esac
  11412. fi
  11413. MSGMERGE="$ac_cv_path_MSGMERGE"
  11414. if test "$MSGMERGE" != ":"; then
  11415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  11416. $as_echo "$MSGMERGE" >&6; }
  11417. else
  11418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11419. $as_echo "no" >&6; }
  11420. fi
  11421. if test "$GMSGFMT" != ":"; then
  11422. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  11423. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  11424. : ;
  11425. else
  11426. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  11427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  11428. $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  11429. GMSGFMT=":"
  11430. fi
  11431. fi
  11432. if test "$XGETTEXT" != ":"; then
  11433. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  11434. (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  11435. : ;
  11436. else
  11437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  11438. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  11439. XGETTEXT=":"
  11440. fi
  11441. rm -f messages.po
  11442. fi
  11443. ac_config_commands="$ac_config_commands default-1"
  11444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  11445. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  11446. # Check whether --enable-maintainer-mode was given.
  11447. if test "${enable_maintainer_mode+set}" = set; then :
  11448. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  11449. else
  11450. USE_MAINTAINER_MODE=no
  11451. fi
  11452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  11453. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  11454. if test $USE_MAINTAINER_MODE = yes; then
  11455. MAINTAINER_MODE_TRUE=
  11456. MAINTAINER_MODE_FALSE='#'
  11457. else
  11458. MAINTAINER_MODE_TRUE='#'
  11459. MAINTAINER_MODE_FALSE=
  11460. fi
  11461. MAINT=$MAINTAINER_MODE_TRUE
  11462. if false; then
  11463. GENINSRC_NEVER_TRUE=
  11464. GENINSRC_NEVER_FALSE='#'
  11465. else
  11466. GENINSRC_NEVER_TRUE='#'
  11467. GENINSRC_NEVER_FALSE=
  11468. fi
  11469. for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h
  11470. do :
  11471. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11472. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11473. eval as_val=\$$as_ac_Header
  11474. if test "x$as_val" = x""yes; then :
  11475. cat >>confdefs.h <<_ACEOF
  11476. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11477. _ACEOF
  11478. fi
  11479. done
  11480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
  11481. $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
  11482. if test "${gcc_cv_header_string+set}" = set; then :
  11483. $as_echo_n "(cached) " >&6
  11484. else
  11485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11486. /* end confdefs.h. */
  11487. #include <string.h>
  11488. #include <strings.h>
  11489. int
  11490. main ()
  11491. {
  11492. ;
  11493. return 0;
  11494. }
  11495. _ACEOF
  11496. if ac_fn_c_try_compile "$LINENO"; then :
  11497. gcc_cv_header_string=yes
  11498. else
  11499. gcc_cv_header_string=no
  11500. fi
  11501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11502. fi
  11503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
  11504. $as_echo "$gcc_cv_header_string" >&6; }
  11505. if test $gcc_cv_header_string = yes; then
  11506. $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
  11507. fi
  11508. # Put this here so that autoconf's "cross-compiling" message doesn't confuse
  11509. # people who are not cross-compiling but are compiling cross-assemblers.
  11510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
  11511. $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
  11512. if test "${host}" = "${target}"; then
  11513. cross_gas=no
  11514. else
  11515. cross_gas=yes
  11516. $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
  11517. fi
  11518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
  11519. $as_echo "$cross_gas" >&6; }
  11520. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  11521. # for constant arguments. Useless!
  11522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  11523. $as_echo_n "checking for working alloca.h... " >&6; }
  11524. if test "${ac_cv_working_alloca_h+set}" = set; then :
  11525. $as_echo_n "(cached) " >&6
  11526. else
  11527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11528. /* end confdefs.h. */
  11529. #include <alloca.h>
  11530. int
  11531. main ()
  11532. {
  11533. char *p = (char *) alloca (2 * sizeof (int));
  11534. if (p) return 0;
  11535. ;
  11536. return 0;
  11537. }
  11538. _ACEOF
  11539. if ac_fn_c_try_link "$LINENO"; then :
  11540. ac_cv_working_alloca_h=yes
  11541. else
  11542. ac_cv_working_alloca_h=no
  11543. fi
  11544. rm -f core conftest.err conftest.$ac_objext \
  11545. conftest$ac_exeext conftest.$ac_ext
  11546. fi
  11547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  11548. $as_echo "$ac_cv_working_alloca_h" >&6; }
  11549. if test $ac_cv_working_alloca_h = yes; then
  11550. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  11551. fi
  11552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  11553. $as_echo_n "checking for alloca... " >&6; }
  11554. if test "${ac_cv_func_alloca_works+set}" = set; then :
  11555. $as_echo_n "(cached) " >&6
  11556. else
  11557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11558. /* end confdefs.h. */
  11559. #ifdef __GNUC__
  11560. # define alloca __builtin_alloca
  11561. #else
  11562. # ifdef _MSC_VER
  11563. # include <malloc.h>
  11564. # define alloca _alloca
  11565. # else
  11566. # ifdef HAVE_ALLOCA_H
  11567. # include <alloca.h>
  11568. # else
  11569. # ifdef _AIX
  11570. #pragma alloca
  11571. # else
  11572. # ifndef alloca /* predefined by HP cc +Olibcalls */
  11573. char *alloca ();
  11574. # endif
  11575. # endif
  11576. # endif
  11577. # endif
  11578. #endif
  11579. int
  11580. main ()
  11581. {
  11582. char *p = (char *) alloca (1);
  11583. if (p) return 0;
  11584. ;
  11585. return 0;
  11586. }
  11587. _ACEOF
  11588. if ac_fn_c_try_link "$LINENO"; then :
  11589. ac_cv_func_alloca_works=yes
  11590. else
  11591. ac_cv_func_alloca_works=no
  11592. fi
  11593. rm -f core conftest.err conftest.$ac_objext \
  11594. conftest$ac_exeext conftest.$ac_ext
  11595. fi
  11596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  11597. $as_echo "$ac_cv_func_alloca_works" >&6; }
  11598. if test $ac_cv_func_alloca_works = yes; then
  11599. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  11600. else
  11601. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  11602. # that cause trouble. Some versions do not even contain alloca or
  11603. # contain a buggy version. If you still want to use their alloca,
  11604. # use ar to extract alloca.o from them instead of compiling alloca.c.
  11605. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  11606. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  11607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  11608. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  11609. if test "${ac_cv_os_cray+set}" = set; then :
  11610. $as_echo_n "(cached) " >&6
  11611. else
  11612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11613. /* end confdefs.h. */
  11614. #if defined CRAY && ! defined CRAY2
  11615. webecray
  11616. #else
  11617. wenotbecray
  11618. #endif
  11619. _ACEOF
  11620. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11621. $EGREP "webecray" >/dev/null 2>&1; then :
  11622. ac_cv_os_cray=yes
  11623. else
  11624. ac_cv_os_cray=no
  11625. fi
  11626. rm -f conftest*
  11627. fi
  11628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  11629. $as_echo "$ac_cv_os_cray" >&6; }
  11630. if test $ac_cv_os_cray = yes; then
  11631. for ac_func in _getb67 GETB67 getb67; do
  11632. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11633. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11634. eval as_val=\$$as_ac_var
  11635. if test "x$as_val" = x""yes; then :
  11636. cat >>confdefs.h <<_ACEOF
  11637. #define CRAY_STACKSEG_END $ac_func
  11638. _ACEOF
  11639. break
  11640. fi
  11641. done
  11642. fi
  11643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  11644. $as_echo_n "checking stack direction for C alloca... " >&6; }
  11645. if test "${ac_cv_c_stack_direction+set}" = set; then :
  11646. $as_echo_n "(cached) " >&6
  11647. else
  11648. if test "$cross_compiling" = yes; then :
  11649. ac_cv_c_stack_direction=0
  11650. else
  11651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11652. /* end confdefs.h. */
  11653. $ac_includes_default
  11654. int
  11655. find_stack_direction ()
  11656. {
  11657. static char *addr = 0;
  11658. auto char dummy;
  11659. if (addr == 0)
  11660. {
  11661. addr = &dummy;
  11662. return find_stack_direction ();
  11663. }
  11664. else
  11665. return (&dummy > addr) ? 1 : -1;
  11666. }
  11667. int
  11668. main ()
  11669. {
  11670. return find_stack_direction () < 0;
  11671. }
  11672. _ACEOF
  11673. if ac_fn_c_try_run "$LINENO"; then :
  11674. ac_cv_c_stack_direction=1
  11675. else
  11676. ac_cv_c_stack_direction=-1
  11677. fi
  11678. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11679. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11680. fi
  11681. fi
  11682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  11683. $as_echo "$ac_cv_c_stack_direction" >&6; }
  11684. cat >>confdefs.h <<_ACEOF
  11685. #define STACK_DIRECTION $ac_cv_c_stack_direction
  11686. _ACEOF
  11687. fi
  11688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  11689. $as_echo_n "checking for inline... " >&6; }
  11690. if test "${ac_cv_c_inline+set}" = set; then :
  11691. $as_echo_n "(cached) " >&6
  11692. else
  11693. ac_cv_c_inline=no
  11694. for ac_kw in inline __inline__ __inline; do
  11695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11696. /* end confdefs.h. */
  11697. #ifndef __cplusplus
  11698. typedef int foo_t;
  11699. static $ac_kw foo_t static_foo () {return 0; }
  11700. $ac_kw foo_t foo () {return 0; }
  11701. #endif
  11702. _ACEOF
  11703. if ac_fn_c_try_compile "$LINENO"; then :
  11704. ac_cv_c_inline=$ac_kw
  11705. fi
  11706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11707. test "$ac_cv_c_inline" != no && break
  11708. done
  11709. fi
  11710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  11711. $as_echo "$ac_cv_c_inline" >&6; }
  11712. case $ac_cv_c_inline in
  11713. inline | yes) ;;
  11714. *)
  11715. case $ac_cv_c_inline in
  11716. no) ac_val=;;
  11717. *) ac_val=$ac_cv_c_inline;;
  11718. esac
  11719. cat >>confdefs.h <<_ACEOF
  11720. #ifndef __cplusplus
  11721. #define inline $ac_val
  11722. #endif
  11723. _ACEOF
  11724. ;;
  11725. esac
  11726. # VMS doesn't have unlink.
  11727. for ac_func in unlink remove
  11728. do :
  11729. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11730. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11731. eval as_val=\$$as_ac_var
  11732. if test "x$as_val" = x""yes; then :
  11733. cat >>confdefs.h <<_ACEOF
  11734. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11735. _ACEOF
  11736. break
  11737. fi
  11738. done
  11739. for ac_func in sbrk setlocale
  11740. do :
  11741. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11742. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11743. eval as_val=\$$as_ac_var
  11744. if test "x$as_val" = x""yes; then :
  11745. cat >>confdefs.h <<_ACEOF
  11746. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11747. _ACEOF
  11748. fi
  11749. done
  11750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11751. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11752. if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
  11753. $as_echo_n "(cached) " >&6
  11754. else
  11755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11756. /* end confdefs.h. */
  11757. #include <locale.h>
  11758. int
  11759. main ()
  11760. {
  11761. return LC_MESSAGES
  11762. ;
  11763. return 0;
  11764. }
  11765. _ACEOF
  11766. if ac_fn_c_try_link "$LINENO"; then :
  11767. am_cv_val_LC_MESSAGES=yes
  11768. else
  11769. am_cv_val_LC_MESSAGES=no
  11770. fi
  11771. rm -f core conftest.err conftest.$ac_objext \
  11772. conftest$ac_exeext conftest.$ac_ext
  11773. fi
  11774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  11775. $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  11776. if test $am_cv_val_LC_MESSAGES = yes; then
  11777. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11778. fi
  11779. # do we need the math library?
  11780. case "${need_libm}" in
  11781. yes)
  11782. LIBM=
  11783. case $host in
  11784. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  11785. # These system don't have libm, or don't need it
  11786. ;;
  11787. *-ncr-sysv4.3*)
  11788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
  11789. $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
  11790. if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
  11791. $as_echo_n "(cached) " >&6
  11792. else
  11793. ac_check_lib_save_LIBS=$LIBS
  11794. LIBS="-lmw $LIBS"
  11795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11796. /* end confdefs.h. */
  11797. /* Override any GCC internal prototype to avoid an error.
  11798. Use char because int might match the return type of a GCC
  11799. builtin and then its argument prototype would still apply. */
  11800. #ifdef __cplusplus
  11801. extern "C"
  11802. #endif
  11803. char _mwvalidcheckl ();
  11804. int
  11805. main ()
  11806. {
  11807. return _mwvalidcheckl ();
  11808. ;
  11809. return 0;
  11810. }
  11811. _ACEOF
  11812. if ac_fn_c_try_link "$LINENO"; then :
  11813. ac_cv_lib_mw__mwvalidcheckl=yes
  11814. else
  11815. ac_cv_lib_mw__mwvalidcheckl=no
  11816. fi
  11817. rm -f core conftest.err conftest.$ac_objext \
  11818. conftest$ac_exeext conftest.$ac_ext
  11819. LIBS=$ac_check_lib_save_LIBS
  11820. fi
  11821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
  11822. $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
  11823. if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
  11824. LIBM="-lmw"
  11825. fi
  11826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  11827. $as_echo_n "checking for cos in -lm... " >&6; }
  11828. if test "${ac_cv_lib_m_cos+set}" = set; then :
  11829. $as_echo_n "(cached) " >&6
  11830. else
  11831. ac_check_lib_save_LIBS=$LIBS
  11832. LIBS="-lm $LIBS"
  11833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11834. /* end confdefs.h. */
  11835. /* Override any GCC internal prototype to avoid an error.
  11836. Use char because int might match the return type of a GCC
  11837. builtin and then its argument prototype would still apply. */
  11838. #ifdef __cplusplus
  11839. extern "C"
  11840. #endif
  11841. char cos ();
  11842. int
  11843. main ()
  11844. {
  11845. return cos ();
  11846. ;
  11847. return 0;
  11848. }
  11849. _ACEOF
  11850. if ac_fn_c_try_link "$LINENO"; then :
  11851. ac_cv_lib_m_cos=yes
  11852. else
  11853. ac_cv_lib_m_cos=no
  11854. fi
  11855. rm -f core conftest.err conftest.$ac_objext \
  11856. conftest$ac_exeext conftest.$ac_ext
  11857. LIBS=$ac_check_lib_save_LIBS
  11858. fi
  11859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  11860. $as_echo "$ac_cv_lib_m_cos" >&6; }
  11861. if test "x$ac_cv_lib_m_cos" = x""yes; then :
  11862. LIBM="$LIBM -lm"
  11863. fi
  11864. ;;
  11865. *)
  11866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
  11867. $as_echo_n "checking for cos in -lm... " >&6; }
  11868. if test "${ac_cv_lib_m_cos+set}" = set; then :
  11869. $as_echo_n "(cached) " >&6
  11870. else
  11871. ac_check_lib_save_LIBS=$LIBS
  11872. LIBS="-lm $LIBS"
  11873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11874. /* end confdefs.h. */
  11875. /* Override any GCC internal prototype to avoid an error.
  11876. Use char because int might match the return type of a GCC
  11877. builtin and then its argument prototype would still apply. */
  11878. #ifdef __cplusplus
  11879. extern "C"
  11880. #endif
  11881. char cos ();
  11882. int
  11883. main ()
  11884. {
  11885. return cos ();
  11886. ;
  11887. return 0;
  11888. }
  11889. _ACEOF
  11890. if ac_fn_c_try_link "$LINENO"; then :
  11891. ac_cv_lib_m_cos=yes
  11892. else
  11893. ac_cv_lib_m_cos=no
  11894. fi
  11895. rm -f core conftest.err conftest.$ac_objext \
  11896. conftest$ac_exeext conftest.$ac_ext
  11897. LIBS=$ac_check_lib_save_LIBS
  11898. fi
  11899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
  11900. $as_echo "$ac_cv_lib_m_cos" >&6; }
  11901. if test "x$ac_cv_lib_m_cos" = x""yes; then :
  11902. LIBM="-lm"
  11903. fi
  11904. ;;
  11905. esac
  11906. ;;
  11907. esac
  11908. # Some non-ANSI preprocessors botch requoting inside strings. That's bad
  11909. # enough, but on some of those systems, the assert macro relies on requoting
  11910. # working properly!
  11911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
  11912. $as_echo_n "checking for working assert macro... " >&6; }
  11913. if test "${gas_cv_assert_ok+set}" = set; then :
  11914. $as_echo_n "(cached) " >&6
  11915. else
  11916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11917. /* end confdefs.h. */
  11918. #include <assert.h>
  11919. #include <stdio.h>
  11920. int
  11921. main ()
  11922. {
  11923. /* check for requoting problems */
  11924. static int a, b, c, d;
  11925. static char *s;
  11926. assert (!strcmp(s, "foo bar baz quux"));
  11927. /* check for newline handling */
  11928. assert (a == b
  11929. || c == d);
  11930. ;
  11931. return 0;
  11932. }
  11933. _ACEOF
  11934. if ac_fn_c_try_link "$LINENO"; then :
  11935. gas_cv_assert_ok=yes
  11936. else
  11937. gas_cv_assert_ok=no
  11938. fi
  11939. rm -f core conftest.err conftest.$ac_objext \
  11940. conftest$ac_exeext conftest.$ac_ext
  11941. fi
  11942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
  11943. $as_echo "$gas_cv_assert_ok" >&6; }
  11944. test $gas_cv_assert_ok = yes ||
  11945. $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
  11946. # On some systems, the system header files may not declare malloc, realloc,
  11947. # and free. There are places where gas needs these functions to have been
  11948. # declared -- such as when taking their addresses.
  11949. gas_test_headers="
  11950. #ifdef HAVE_MEMORY_H
  11951. #include <memory.h>
  11952. #endif
  11953. #ifdef HAVE_STRING_H
  11954. #include <string.h>
  11955. #else
  11956. #ifdef HAVE_STRINGS_H
  11957. #include <strings.h>
  11958. #endif
  11959. #endif
  11960. #ifdef HAVE_STDLIB_H
  11961. #include <stdlib.h>
  11962. #endif
  11963. #ifdef HAVE_UNISTD_H
  11964. #include <unistd.h>
  11965. #endif
  11966. "
  11967. # Does errno.h declare errno, or do we have to add a separate declaration
  11968. # for it?
  11969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
  11970. $as_echo_n "checking whether declaration is required for errno... " >&6; }
  11971. if test "${gas_cv_decl_needed_errno+set}" = set; then :
  11972. $as_echo_n "(cached) " >&6
  11973. else
  11974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11975. /* end confdefs.h. */
  11976. #ifdef HAVE_ERRNO_H
  11977. #include <errno.h>
  11978. #endif
  11979. int
  11980. main ()
  11981. {
  11982. typedef int f;
  11983. f x;
  11984. x = (f) errno;
  11985. ;
  11986. return 0;
  11987. }
  11988. _ACEOF
  11989. if ac_fn_c_try_link "$LINENO"; then :
  11990. gas_cv_decl_needed_errno=no
  11991. else
  11992. gas_cv_decl_needed_errno=yes
  11993. fi
  11994. rm -f core conftest.err conftest.$ac_objext \
  11995. conftest$ac_exeext conftest.$ac_ext
  11996. fi
  11997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
  11998. $as_echo "$gas_cv_decl_needed_errno" >&6; }
  11999. if test $gas_cv_decl_needed_errno = yes; then
  12000. $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
  12001. fi
  12002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
  12003. $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
  12004. if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
  12005. $as_echo_n "(cached) " >&6
  12006. else
  12007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12008. /* end confdefs.h. */
  12009. #include <unistd.h>
  12010. int
  12011. main ()
  12012. {
  12013. extern int getopt (int, char *const*, const char *);
  12014. ;
  12015. return 0;
  12016. }
  12017. _ACEOF
  12018. if ac_fn_c_try_compile "$LINENO"; then :
  12019. gas_cv_decl_getopt_unistd_h=yes
  12020. else
  12021. gas_cv_decl_getopt_unistd_h=no
  12022. fi
  12023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12024. fi
  12025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
  12026. $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
  12027. if test $gas_cv_decl_getopt_unistd_h = yes; then
  12028. $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
  12029. fi
  12030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
  12031. $as_echo_n "checking whether declaration is required for environ... " >&6; }
  12032. if test "${gas_cv_decl_needed_environ+set}" = set; then :
  12033. $as_echo_n "(cached) " >&6
  12034. else
  12035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12036. /* end confdefs.h. */
  12037. $gas_test_headers
  12038. int
  12039. main ()
  12040. {
  12041. typedef char **f;
  12042. f x;
  12043. x = (f) environ;
  12044. ;
  12045. return 0;
  12046. }
  12047. _ACEOF
  12048. if ac_fn_c_try_link "$LINENO"; then :
  12049. gas_cv_decl_needed_environ=no
  12050. else
  12051. gas_cv_decl_needed_environ=yes
  12052. fi
  12053. rm -f core conftest.err conftest.$ac_objext \
  12054. conftest$ac_exeext conftest.$ac_ext
  12055. fi
  12056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
  12057. $as_echo "$gas_cv_decl_needed_environ" >&6; }
  12058. if test $gas_cv_decl_needed_environ = yes; then
  12059. $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
  12060. fi
  12061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
  12062. $as_echo_n "checking whether declaration is required for ffs... " >&6; }
  12063. if test "${gas_cv_decl_needed_ffs+set}" = set; then :
  12064. $as_echo_n "(cached) " >&6
  12065. else
  12066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12067. /* end confdefs.h. */
  12068. $gas_test_headers
  12069. int
  12070. main ()
  12071. {
  12072. typedef int (*f)(int);
  12073. f x;
  12074. x = (f) ffs;
  12075. ;
  12076. return 0;
  12077. }
  12078. _ACEOF
  12079. if ac_fn_c_try_link "$LINENO"; then :
  12080. gas_cv_decl_needed_ffs=no
  12081. else
  12082. gas_cv_decl_needed_ffs=yes
  12083. fi
  12084. rm -f core conftest.err conftest.$ac_objext \
  12085. conftest$ac_exeext conftest.$ac_ext
  12086. fi
  12087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
  12088. $as_echo "$gas_cv_decl_needed_ffs" >&6; }
  12089. if test $gas_cv_decl_needed_ffs = yes; then
  12090. $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
  12091. fi
  12092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
  12093. $as_echo_n "checking whether declaration is required for free... " >&6; }
  12094. if test "${gas_cv_decl_needed_free+set}" = set; then :
  12095. $as_echo_n "(cached) " >&6
  12096. else
  12097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12098. /* end confdefs.h. */
  12099. $gas_test_headers
  12100. int
  12101. main ()
  12102. {
  12103. typedef void (*f)();
  12104. f x;
  12105. x = (f) free;
  12106. ;
  12107. return 0;
  12108. }
  12109. _ACEOF
  12110. if ac_fn_c_try_link "$LINENO"; then :
  12111. gas_cv_decl_needed_free=no
  12112. else
  12113. gas_cv_decl_needed_free=yes
  12114. fi
  12115. rm -f core conftest.err conftest.$ac_objext \
  12116. conftest$ac_exeext conftest.$ac_ext
  12117. fi
  12118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
  12119. $as_echo "$gas_cv_decl_needed_free" >&6; }
  12120. if test $gas_cv_decl_needed_free = yes; then
  12121. $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
  12122. fi
  12123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
  12124. $as_echo_n "checking whether declaration is required for malloc... " >&6; }
  12125. if test "${gas_cv_decl_needed_malloc+set}" = set; then :
  12126. $as_echo_n "(cached) " >&6
  12127. else
  12128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12129. /* end confdefs.h. */
  12130. $gas_test_headers
  12131. int
  12132. main ()
  12133. {
  12134. typedef char *(*f)();
  12135. f x;
  12136. x = (f) malloc;
  12137. ;
  12138. return 0;
  12139. }
  12140. _ACEOF
  12141. if ac_fn_c_try_link "$LINENO"; then :
  12142. gas_cv_decl_needed_malloc=no
  12143. else
  12144. gas_cv_decl_needed_malloc=yes
  12145. fi
  12146. rm -f core conftest.err conftest.$ac_objext \
  12147. conftest$ac_exeext conftest.$ac_ext
  12148. fi
  12149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
  12150. $as_echo "$gas_cv_decl_needed_malloc" >&6; }
  12151. if test $gas_cv_decl_needed_malloc = yes; then
  12152. $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
  12153. fi
  12154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
  12155. $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
  12156. if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
  12157. $as_echo_n "(cached) " >&6
  12158. else
  12159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12160. /* end confdefs.h. */
  12161. $gas_test_headers
  12162. int
  12163. main ()
  12164. {
  12165. typedef char *(*f)();
  12166. f x;
  12167. x = (f) sbrk;
  12168. ;
  12169. return 0;
  12170. }
  12171. _ACEOF
  12172. if ac_fn_c_try_link "$LINENO"; then :
  12173. gas_cv_decl_needed_sbrk=no
  12174. else
  12175. gas_cv_decl_needed_sbrk=yes
  12176. fi
  12177. rm -f core conftest.err conftest.$ac_objext \
  12178. conftest$ac_exeext conftest.$ac_ext
  12179. fi
  12180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
  12181. $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
  12182. if test $gas_cv_decl_needed_sbrk = yes; then
  12183. $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
  12184. fi
  12185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
  12186. $as_echo_n "checking whether declaration is required for strstr... " >&6; }
  12187. if test "${gas_cv_decl_needed_strstr+set}" = set; then :
  12188. $as_echo_n "(cached) " >&6
  12189. else
  12190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12191. /* end confdefs.h. */
  12192. $gas_test_headers
  12193. int
  12194. main ()
  12195. {
  12196. typedef char *(*f)();
  12197. f x;
  12198. x = (f) strstr;
  12199. ;
  12200. return 0;
  12201. }
  12202. _ACEOF
  12203. if ac_fn_c_try_link "$LINENO"; then :
  12204. gas_cv_decl_needed_strstr=no
  12205. else
  12206. gas_cv_decl_needed_strstr=yes
  12207. fi
  12208. rm -f core conftest.err conftest.$ac_objext \
  12209. conftest$ac_exeext conftest.$ac_ext
  12210. fi
  12211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
  12212. $as_echo "$gas_cv_decl_needed_strstr" >&6; }
  12213. if test $gas_cv_decl_needed_strstr = yes; then
  12214. $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
  12215. fi
  12216. ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
  12217. if test "x$ac_cv_have_decl_free" = x""yes; then :
  12218. ac_have_decl=1
  12219. else
  12220. ac_have_decl=0
  12221. fi
  12222. cat >>confdefs.h <<_ACEOF
  12223. #define HAVE_DECL_FREE $ac_have_decl
  12224. _ACEOF
  12225. ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
  12226. if test "x$ac_cv_have_decl_getenv" = x""yes; then :
  12227. ac_have_decl=1
  12228. else
  12229. ac_have_decl=0
  12230. fi
  12231. cat >>confdefs.h <<_ACEOF
  12232. #define HAVE_DECL_GETENV $ac_have_decl
  12233. _ACEOF
  12234. ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
  12235. if test "x$ac_cv_have_decl_malloc" = x""yes; then :
  12236. ac_have_decl=1
  12237. else
  12238. ac_have_decl=0
  12239. fi
  12240. cat >>confdefs.h <<_ACEOF
  12241. #define HAVE_DECL_MALLOC $ac_have_decl
  12242. _ACEOF
  12243. ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
  12244. if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
  12245. ac_have_decl=1
  12246. else
  12247. ac_have_decl=0
  12248. fi
  12249. cat >>confdefs.h <<_ACEOF
  12250. #define HAVE_DECL_MEMPCPY $ac_have_decl
  12251. _ACEOF
  12252. ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
  12253. if test "x$ac_cv_have_decl_realloc" = x""yes; then :
  12254. ac_have_decl=1
  12255. else
  12256. ac_have_decl=0
  12257. fi
  12258. cat >>confdefs.h <<_ACEOF
  12259. #define HAVE_DECL_REALLOC $ac_have_decl
  12260. _ACEOF
  12261. ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
  12262. if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
  12263. ac_have_decl=1
  12264. else
  12265. ac_have_decl=0
  12266. fi
  12267. cat >>confdefs.h <<_ACEOF
  12268. #define HAVE_DECL_STPCPY $ac_have_decl
  12269. _ACEOF
  12270. ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
  12271. if test "x$ac_cv_have_decl_strstr" = x""yes; then :
  12272. ac_have_decl=1
  12273. else
  12274. ac_have_decl=0
  12275. fi
  12276. cat >>confdefs.h <<_ACEOF
  12277. #define HAVE_DECL_STRSTR $ac_have_decl
  12278. _ACEOF
  12279. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  12280. if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
  12281. ac_have_decl=1
  12282. else
  12283. ac_have_decl=0
  12284. fi
  12285. cat >>confdefs.h <<_ACEOF
  12286. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  12287. _ACEOF
  12288. ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
  12289. if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
  12290. ac_have_decl=1
  12291. else
  12292. ac_have_decl=0
  12293. fi
  12294. cat >>confdefs.h <<_ACEOF
  12295. #define HAVE_DECL_ASPRINTF $ac_have_decl
  12296. _ACEOF
  12297. case "${host}" in
  12298. *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
  12299. $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
  12300. ;;
  12301. esac
  12302. # Link in zlib if we can. This allows us to write compressed debug sections.
  12303. # Use the system's zlib library.
  12304. zlibdir="-L\$(top_builddir)/../zlib"
  12305. zlibinc="-I\$(top_srcdir)/../zlib"
  12306. # Check whether --with-system-zlib was given.
  12307. if test "${with_system_zlib+set}" = set; then :
  12308. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  12309. zlibdir=
  12310. zlibinc=
  12311. fi
  12312. fi
  12313. # Support for VMS timestamps via cross compile
  12314. if test "$ac_cv_header_time_h" = yes; then
  12315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
  12316. $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
  12317. if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
  12318. $as_echo_n "(cached) " >&6
  12319. else
  12320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12321. /* end confdefs.h. */
  12322. #define _BSD_SOURCE 1
  12323. #include <time.h>
  12324. int
  12325. main ()
  12326. {
  12327. struct tm avar; void* aref = (void*) &avar.tm_gmtoff
  12328. ;
  12329. return 0;
  12330. }
  12331. _ACEOF
  12332. if ac_fn_c_try_compile "$LINENO"; then :
  12333. gas_cv_have_time_type_member_tm_gmtoff=yes
  12334. else
  12335. gas_cv_have_time_type_member_tm_gmtoff=no
  12336. fi
  12337. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12338. fi
  12339. if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
  12340. $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
  12341. fi
  12342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
  12343. $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
  12344. fi
  12345. if test "$ac_cv_header_sys_stat_h" = yes; then
  12346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
  12347. $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
  12348. if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
  12349. $as_echo_n "(cached) " >&6
  12350. else
  12351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12352. /* end confdefs.h. */
  12353. #define _BSD_SOURCE 1
  12354. #include <sys/stat.h>
  12355. int
  12356. main ()
  12357. {
  12358. struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
  12359. ;
  12360. return 0;
  12361. }
  12362. _ACEOF
  12363. if ac_fn_c_try_compile "$LINENO"; then :
  12364. gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
  12365. else
  12366. gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
  12367. fi
  12368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12369. fi
  12370. if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
  12371. $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
  12372. fi
  12373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
  12374. $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
  12375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
  12376. $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
  12377. if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
  12378. $as_echo_n "(cached) " >&6
  12379. else
  12380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12381. /* end confdefs.h. */
  12382. #define _BSD_SOURCE 1
  12383. #include <sys/stat.h>
  12384. int
  12385. main ()
  12386. {
  12387. struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
  12388. ;
  12389. return 0;
  12390. }
  12391. _ACEOF
  12392. if ac_fn_c_try_compile "$LINENO"; then :
  12393. gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
  12394. else
  12395. gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
  12396. fi
  12397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12398. fi
  12399. if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
  12400. $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
  12401. fi
  12402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
  12403. $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
  12404. fi
  12405. ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
  12406. ac_config_commands="$ac_config_commands default"
  12407. cat >confcache <<\_ACEOF
  12408. # This file is a shell script that caches the results of configure
  12409. # tests run on this system so they can be shared between configure
  12410. # scripts and configure runs, see configure's option --config-cache.
  12411. # It is not useful on other systems. If it contains results you don't
  12412. # want to keep, you may remove or edit it.
  12413. #
  12414. # config.status only pays attention to the cache file if you give it
  12415. # the --recheck option to rerun configure.
  12416. #
  12417. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12418. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12419. # following values.
  12420. _ACEOF
  12421. # The following way of writing the cache mishandles newlines in values,
  12422. # but we know of no workaround that is simple, portable, and efficient.
  12423. # So, we kill variables containing newlines.
  12424. # Ultrix sh set writes to stderr and can't be redirected directly,
  12425. # and sets the high bit in the cache file unless we assign to the vars.
  12426. (
  12427. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12428. eval ac_val=\$$ac_var
  12429. case $ac_val in #(
  12430. *${as_nl}*)
  12431. case $ac_var in #(
  12432. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12433. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12434. esac
  12435. case $ac_var in #(
  12436. _ | IFS | as_nl) ;; #(
  12437. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12438. *) { eval $ac_var=; unset $ac_var;} ;;
  12439. esac ;;
  12440. esac
  12441. done
  12442. (set) 2>&1 |
  12443. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12444. *${as_nl}ac_space=\ *)
  12445. # `set' does not quote correctly, so add quotes: double-quote
  12446. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12447. sed -n \
  12448. "s/'/'\\\\''/g;
  12449. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12450. ;; #(
  12451. *)
  12452. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12453. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12454. ;;
  12455. esac |
  12456. sort
  12457. ) |
  12458. sed '
  12459. /^ac_cv_env_/b end
  12460. t clear
  12461. :clear
  12462. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12463. t end
  12464. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12465. :end' >>confcache
  12466. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12467. if test -w "$cache_file"; then
  12468. test "x$cache_file" != "x/dev/null" &&
  12469. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12470. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12471. cat confcache >$cache_file
  12472. else
  12473. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12474. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12475. fi
  12476. fi
  12477. rm -f confcache
  12478. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12479. # Let make expand exec_prefix.
  12480. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12481. DEFS=-DHAVE_CONFIG_H
  12482. ac_libobjs=
  12483. ac_ltlibobjs=
  12484. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12485. # 1. Remove the extension, and $U if already installed.
  12486. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12487. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12488. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12489. # will be set to the directory where LIBOBJS objects are built.
  12490. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12491. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12492. done
  12493. LIBOBJS=$ac_libobjs
  12494. LTLIBOBJS=$ac_ltlibobjs
  12495. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12496. as_fn_error "conditional \"AMDEP\" was never defined.
  12497. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12498. fi
  12499. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12500. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  12501. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12502. fi
  12503. if test -n "$EXEEXT"; then
  12504. am__EXEEXT_TRUE=
  12505. am__EXEEXT_FALSE='#'
  12506. else
  12507. am__EXEEXT_TRUE='#'
  12508. am__EXEEXT_FALSE=
  12509. fi
  12510. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12511. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  12512. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12513. fi
  12514. if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
  12515. as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
  12516. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12517. fi
  12518. : ${CONFIG_STATUS=./config.status}
  12519. ac_write_fail=0
  12520. ac_clean_files_save=$ac_clean_files
  12521. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12523. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12524. as_write_fail=0
  12525. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12526. #! $SHELL
  12527. # Generated by $as_me.
  12528. # Run this file to recreate the current configuration.
  12529. # Compiler output produced by configure, useful for debugging
  12530. # configure, is in config.log if it exists.
  12531. debug=false
  12532. ac_cs_recheck=false
  12533. ac_cs_silent=false
  12534. SHELL=\${CONFIG_SHELL-$SHELL}
  12535. export SHELL
  12536. _ASEOF
  12537. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12538. ## -------------------- ##
  12539. ## M4sh Initialization. ##
  12540. ## -------------------- ##
  12541. # Be more Bourne compatible
  12542. DUALCASE=1; export DUALCASE # for MKS sh
  12543. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12544. emulate sh
  12545. NULLCMD=:
  12546. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12547. # is contrary to our usage. Disable this feature.
  12548. alias -g '${1+"$@"}'='"$@"'
  12549. setopt NO_GLOB_SUBST
  12550. else
  12551. case `(set -o) 2>/dev/null` in #(
  12552. *posix*) :
  12553. set -o posix ;; #(
  12554. *) :
  12555. ;;
  12556. esac
  12557. fi
  12558. as_nl='
  12559. '
  12560. export as_nl
  12561. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12562. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12563. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12564. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12565. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12566. # but without wasting forks for bash or zsh.
  12567. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12568. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12569. as_echo='print -r --'
  12570. as_echo_n='print -rn --'
  12571. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12572. as_echo='printf %s\n'
  12573. as_echo_n='printf %s'
  12574. else
  12575. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12576. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12577. as_echo_n='/usr/ucb/echo -n'
  12578. else
  12579. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12580. as_echo_n_body='eval
  12581. arg=$1;
  12582. case $arg in #(
  12583. *"$as_nl"*)
  12584. expr "X$arg" : "X\\(.*\\)$as_nl";
  12585. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12586. esac;
  12587. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12588. '
  12589. export as_echo_n_body
  12590. as_echo_n='sh -c $as_echo_n_body as_echo'
  12591. fi
  12592. export as_echo_body
  12593. as_echo='sh -c $as_echo_body as_echo'
  12594. fi
  12595. # The user is always right.
  12596. if test "${PATH_SEPARATOR+set}" != set; then
  12597. PATH_SEPARATOR=:
  12598. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12599. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12600. PATH_SEPARATOR=';'
  12601. }
  12602. fi
  12603. # IFS
  12604. # We need space, tab and new line, in precisely that order. Quoting is
  12605. # there to prevent editors from complaining about space-tab.
  12606. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12607. # splitting by setting IFS to empty value.)
  12608. IFS=" "" $as_nl"
  12609. # Find who we are. Look in the path if we contain no directory separator.
  12610. case $0 in #((
  12611. *[\\/]* ) as_myself=$0 ;;
  12612. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12613. for as_dir in $PATH
  12614. do
  12615. IFS=$as_save_IFS
  12616. test -z "$as_dir" && as_dir=.
  12617. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12618. done
  12619. IFS=$as_save_IFS
  12620. ;;
  12621. esac
  12622. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12623. # in which case we are not to be found in the path.
  12624. if test "x$as_myself" = x; then
  12625. as_myself=$0
  12626. fi
  12627. if test ! -f "$as_myself"; then
  12628. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12629. exit 1
  12630. fi
  12631. # Unset variables that we do not need and which cause bugs (e.g. in
  12632. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12633. # suppresses any "Segmentation fault" message there. '((' could
  12634. # trigger a bug in pdksh 5.2.14.
  12635. for as_var in BASH_ENV ENV MAIL MAILPATH
  12636. do eval test x\${$as_var+set} = xset \
  12637. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12638. done
  12639. PS1='$ '
  12640. PS2='> '
  12641. PS4='+ '
  12642. # NLS nuisances.
  12643. LC_ALL=C
  12644. export LC_ALL
  12645. LANGUAGE=C
  12646. export LANGUAGE
  12647. # CDPATH.
  12648. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12649. # as_fn_error ERROR [LINENO LOG_FD]
  12650. # ---------------------------------
  12651. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12652. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12653. # script with status $?, using 1 if that was 0.
  12654. as_fn_error ()
  12655. {
  12656. as_status=$?; test $as_status -eq 0 && as_status=1
  12657. if test "$3"; then
  12658. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12659. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12660. fi
  12661. $as_echo "$as_me: error: $1" >&2
  12662. as_fn_exit $as_status
  12663. } # as_fn_error
  12664. # as_fn_set_status STATUS
  12665. # -----------------------
  12666. # Set $? to STATUS, without forking.
  12667. as_fn_set_status ()
  12668. {
  12669. return $1
  12670. } # as_fn_set_status
  12671. # as_fn_exit STATUS
  12672. # -----------------
  12673. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12674. as_fn_exit ()
  12675. {
  12676. set +e
  12677. as_fn_set_status $1
  12678. exit $1
  12679. } # as_fn_exit
  12680. # as_fn_unset VAR
  12681. # ---------------
  12682. # Portably unset VAR.
  12683. as_fn_unset ()
  12684. {
  12685. { eval $1=; unset $1;}
  12686. }
  12687. as_unset=as_fn_unset
  12688. # as_fn_append VAR VALUE
  12689. # ----------------------
  12690. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12691. # advantage of any shell optimizations that allow amortized linear growth over
  12692. # repeated appends, instead of the typical quadratic growth present in naive
  12693. # implementations.
  12694. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12695. eval 'as_fn_append ()
  12696. {
  12697. eval $1+=\$2
  12698. }'
  12699. else
  12700. as_fn_append ()
  12701. {
  12702. eval $1=\$$1\$2
  12703. }
  12704. fi # as_fn_append
  12705. # as_fn_arith ARG...
  12706. # ------------------
  12707. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12708. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12709. # must be portable across $(()) and expr.
  12710. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12711. eval 'as_fn_arith ()
  12712. {
  12713. as_val=$(( $* ))
  12714. }'
  12715. else
  12716. as_fn_arith ()
  12717. {
  12718. as_val=`expr "$@" || test $? -eq 1`
  12719. }
  12720. fi # as_fn_arith
  12721. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12722. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12723. as_expr=expr
  12724. else
  12725. as_expr=false
  12726. fi
  12727. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12728. as_basename=basename
  12729. else
  12730. as_basename=false
  12731. fi
  12732. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12733. as_dirname=dirname
  12734. else
  12735. as_dirname=false
  12736. fi
  12737. as_me=`$as_basename -- "$0" ||
  12738. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12739. X"$0" : 'X\(//\)$' \| \
  12740. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12741. $as_echo X/"$0" |
  12742. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12743. s//\1/
  12744. q
  12745. }
  12746. /^X\/\(\/\/\)$/{
  12747. s//\1/
  12748. q
  12749. }
  12750. /^X\/\(\/\).*/{
  12751. s//\1/
  12752. q
  12753. }
  12754. s/.*/./; q'`
  12755. # Avoid depending upon Character Ranges.
  12756. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12757. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12758. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12759. as_cr_digits='0123456789'
  12760. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12761. ECHO_C= ECHO_N= ECHO_T=
  12762. case `echo -n x` in #(((((
  12763. -n*)
  12764. case `echo 'xy\c'` in
  12765. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12766. xy) ECHO_C='\c';;
  12767. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12768. ECHO_T=' ';;
  12769. esac;;
  12770. *)
  12771. ECHO_N='-n';;
  12772. esac
  12773. rm -f conf$$ conf$$.exe conf$$.file
  12774. if test -d conf$$.dir; then
  12775. rm -f conf$$.dir/conf$$.file
  12776. else
  12777. rm -f conf$$.dir
  12778. mkdir conf$$.dir 2>/dev/null
  12779. fi
  12780. if (echo >conf$$.file) 2>/dev/null; then
  12781. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12782. as_ln_s='ln -s'
  12783. # ... but there are two gotchas:
  12784. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12785. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12786. # In both cases, we have to default to `cp -p'.
  12787. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12788. as_ln_s='cp -p'
  12789. elif ln conf$$.file conf$$ 2>/dev/null; then
  12790. as_ln_s=ln
  12791. else
  12792. as_ln_s='cp -p'
  12793. fi
  12794. else
  12795. as_ln_s='cp -p'
  12796. fi
  12797. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12798. rmdir conf$$.dir 2>/dev/null
  12799. # as_fn_mkdir_p
  12800. # -------------
  12801. # Create "$as_dir" as a directory, including parents if necessary.
  12802. as_fn_mkdir_p ()
  12803. {
  12804. case $as_dir in #(
  12805. -*) as_dir=./$as_dir;;
  12806. esac
  12807. test -d "$as_dir" || eval $as_mkdir_p || {
  12808. as_dirs=
  12809. while :; do
  12810. case $as_dir in #(
  12811. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12812. *) as_qdir=$as_dir;;
  12813. esac
  12814. as_dirs="'$as_qdir' $as_dirs"
  12815. as_dir=`$as_dirname -- "$as_dir" ||
  12816. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12817. X"$as_dir" : 'X\(//\)[^/]' \| \
  12818. X"$as_dir" : 'X\(//\)$' \| \
  12819. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12820. $as_echo X"$as_dir" |
  12821. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12822. s//\1/
  12823. q
  12824. }
  12825. /^X\(\/\/\)[^/].*/{
  12826. s//\1/
  12827. q
  12828. }
  12829. /^X\(\/\/\)$/{
  12830. s//\1/
  12831. q
  12832. }
  12833. /^X\(\/\).*/{
  12834. s//\1/
  12835. q
  12836. }
  12837. s/.*/./; q'`
  12838. test -d "$as_dir" && break
  12839. done
  12840. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12841. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  12842. } # as_fn_mkdir_p
  12843. if mkdir -p . 2>/dev/null; then
  12844. as_mkdir_p='mkdir -p "$as_dir"'
  12845. else
  12846. test -d ./-p && rmdir ./-p
  12847. as_mkdir_p=false
  12848. fi
  12849. if test -x / >/dev/null 2>&1; then
  12850. as_test_x='test -x'
  12851. else
  12852. if ls -dL / >/dev/null 2>&1; then
  12853. as_ls_L_option=L
  12854. else
  12855. as_ls_L_option=
  12856. fi
  12857. as_test_x='
  12858. eval sh -c '\''
  12859. if test -d "$1"; then
  12860. test -d "$1/.";
  12861. else
  12862. case $1 in #(
  12863. -*)set "./$1";;
  12864. esac;
  12865. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  12866. ???[sx]*):;;*)false;;esac;fi
  12867. '\'' sh
  12868. '
  12869. fi
  12870. as_executable_p=$as_test_x
  12871. # Sed expression to map a string onto a valid CPP name.
  12872. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12873. # Sed expression to map a string onto a valid variable name.
  12874. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12875. exec 6>&1
  12876. ## ----------------------------------- ##
  12877. ## Main body of $CONFIG_STATUS script. ##
  12878. ## ----------------------------------- ##
  12879. _ASEOF
  12880. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12881. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12882. # Save the log message, to keep $0 and so on meaningful, and to
  12883. # report actual input values of CONFIG_FILES etc. instead of their
  12884. # values after options handling.
  12885. ac_log="
  12886. This file was extended by gas $as_me 2.25.51, which was
  12887. generated by GNU Autoconf 2.64. Invocation command line was
  12888. CONFIG_FILES = $CONFIG_FILES
  12889. CONFIG_HEADERS = $CONFIG_HEADERS
  12890. CONFIG_LINKS = $CONFIG_LINKS
  12891. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12892. $ $0 $@
  12893. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12894. "
  12895. _ACEOF
  12896. case $ac_config_files in *"
  12897. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12898. esac
  12899. case $ac_config_headers in *"
  12900. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12901. esac
  12902. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12903. # Files that config.status was made for.
  12904. config_files="$ac_config_files"
  12905. config_headers="$ac_config_headers"
  12906. config_commands="$ac_config_commands"
  12907. _ACEOF
  12908. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12909. ac_cs_usage="\
  12910. \`$as_me' instantiates files and other configuration actions
  12911. from templates according to the current configuration. Unless the files
  12912. and actions are specified as TAGs, all are instantiated by default.
  12913. Usage: $0 [OPTION]... [TAG]...
  12914. -h, --help print this help, then exit
  12915. -V, --version print version number and configuration settings, then exit
  12916. -q, --quiet, --silent
  12917. do not print progress messages
  12918. -d, --debug don't remove temporary files
  12919. --recheck update $as_me by reconfiguring in the same conditions
  12920. --file=FILE[:TEMPLATE]
  12921. instantiate the configuration file FILE
  12922. --header=FILE[:TEMPLATE]
  12923. instantiate the configuration header FILE
  12924. Configuration files:
  12925. $config_files
  12926. Configuration headers:
  12927. $config_headers
  12928. Configuration commands:
  12929. $config_commands
  12930. Report bugs to the package provider."
  12931. _ACEOF
  12932. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12933. ac_cs_version="\\
  12934. gas config.status 2.25.51
  12935. configured by $0, generated by GNU Autoconf 2.64,
  12936. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12937. Copyright (C) 2009 Free Software Foundation, Inc.
  12938. This config.status script is free software; the Free Software Foundation
  12939. gives unlimited permission to copy, distribute and modify it."
  12940. ac_pwd='$ac_pwd'
  12941. srcdir='$srcdir'
  12942. INSTALL='$INSTALL'
  12943. MKDIR_P='$MKDIR_P'
  12944. AWK='$AWK'
  12945. test -n "\$AWK" || AWK=awk
  12946. _ACEOF
  12947. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12948. # The default lists apply if the user does not specify any file.
  12949. ac_need_defaults=:
  12950. while test $# != 0
  12951. do
  12952. case $1 in
  12953. --*=*)
  12954. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12955. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12956. ac_shift=:
  12957. ;;
  12958. *)
  12959. ac_option=$1
  12960. ac_optarg=$2
  12961. ac_shift=shift
  12962. ;;
  12963. esac
  12964. case $ac_option in
  12965. # Handling of the options.
  12966. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12967. ac_cs_recheck=: ;;
  12968. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12969. $as_echo "$ac_cs_version"; exit ;;
  12970. --debug | --debu | --deb | --de | --d | -d )
  12971. debug=: ;;
  12972. --file | --fil | --fi | --f )
  12973. $ac_shift
  12974. case $ac_optarg in
  12975. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12976. esac
  12977. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12978. ac_need_defaults=false;;
  12979. --header | --heade | --head | --hea )
  12980. $ac_shift
  12981. case $ac_optarg in
  12982. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12983. esac
  12984. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12985. ac_need_defaults=false;;
  12986. --he | --h)
  12987. # Conflict between --help and --header
  12988. as_fn_error "ambiguous option: \`$1'
  12989. Try \`$0 --help' for more information.";;
  12990. --help | --hel | -h )
  12991. $as_echo "$ac_cs_usage"; exit ;;
  12992. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12993. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12994. ac_cs_silent=: ;;
  12995. # This is an error.
  12996. -*) as_fn_error "unrecognized option: \`$1'
  12997. Try \`$0 --help' for more information." ;;
  12998. *) as_fn_append ac_config_targets " $1"
  12999. ac_need_defaults=false ;;
  13000. esac
  13001. shift
  13002. done
  13003. ac_configure_extra_args=
  13004. if $ac_cs_silent; then
  13005. exec 6>/dev/null
  13006. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13007. fi
  13008. _ACEOF
  13009. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13010. if \$ac_cs_recheck; then
  13011. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13012. shift
  13013. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13014. CONFIG_SHELL='$SHELL'
  13015. export CONFIG_SHELL
  13016. exec "\$@"
  13017. fi
  13018. _ACEOF
  13019. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13020. exec 5>>config.log
  13021. {
  13022. echo
  13023. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13024. ## Running $as_me. ##
  13025. _ASBOX
  13026. $as_echo "$ac_log"
  13027. } >&5
  13028. _ACEOF
  13029. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13030. #
  13031. # INIT-COMMANDS
  13032. #
  13033. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13034. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13035. # if CDPATH is set.
  13036. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13037. sed_quote_subst='$sed_quote_subst'
  13038. double_quote_subst='$double_quote_subst'
  13039. delay_variable_subst='$delay_variable_subst'
  13040. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13041. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13042. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13043. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13044. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13045. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13046. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13047. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13048. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13049. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13050. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13051. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13052. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13053. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13054. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13055. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13056. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13057. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13058. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13059. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13060. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13061. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13062. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13063. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13064. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13065. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13066. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13067. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13068. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13069. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13070. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13071. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13072. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13073. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13074. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13075. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13076. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13077. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13078. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13079. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13080. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13081. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13082. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13083. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13084. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13085. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13086. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13087. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13088. 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"`'
  13089. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13090. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13091. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13092. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13093. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13094. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13095. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13096. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13097. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13098. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13099. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13100. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13101. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13102. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13103. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13104. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13105. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13106. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13107. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13108. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13109. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13110. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13111. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13112. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13113. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13114. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13115. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13116. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13117. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13118. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13119. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13120. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  13121. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13122. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13123. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13124. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13125. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13126. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13127. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13128. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13129. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  13130. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13131. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13132. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13133. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13134. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13135. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13136. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13137. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13138. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13139. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13140. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13141. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13142. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13143. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13144. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13145. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13146. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13147. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13148. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13149. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13150. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13151. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13152. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13153. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13154. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13155. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13156. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13157. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13158. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13159. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13160. LTCC='$LTCC'
  13161. LTCFLAGS='$LTCFLAGS'
  13162. compiler='$compiler_DEFAULT'
  13163. # A function that is used when there is no print builtin or printf.
  13164. func_fallback_echo ()
  13165. {
  13166. eval 'cat <<_LTECHO_EOF
  13167. \$1
  13168. _LTECHO_EOF'
  13169. }
  13170. # Quote evaled strings.
  13171. for var in SHELL \
  13172. ECHO \
  13173. SED \
  13174. GREP \
  13175. EGREP \
  13176. FGREP \
  13177. LD \
  13178. NM \
  13179. LN_S \
  13180. lt_SP2NL \
  13181. lt_NL2SP \
  13182. reload_flag \
  13183. OBJDUMP \
  13184. deplibs_check_method \
  13185. file_magic_cmd \
  13186. AR \
  13187. AR_FLAGS \
  13188. STRIP \
  13189. RANLIB \
  13190. CC \
  13191. CFLAGS \
  13192. compiler \
  13193. lt_cv_sys_global_symbol_pipe \
  13194. lt_cv_sys_global_symbol_to_cdecl \
  13195. lt_cv_sys_global_symbol_to_c_name_address \
  13196. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13197. lt_prog_compiler_no_builtin_flag \
  13198. lt_prog_compiler_wl \
  13199. lt_prog_compiler_pic \
  13200. lt_prog_compiler_static \
  13201. lt_cv_prog_compiler_c_o \
  13202. need_locks \
  13203. DSYMUTIL \
  13204. NMEDIT \
  13205. LIPO \
  13206. OTOOL \
  13207. OTOOL64 \
  13208. shrext_cmds \
  13209. export_dynamic_flag_spec \
  13210. whole_archive_flag_spec \
  13211. compiler_needs_object \
  13212. with_gnu_ld \
  13213. allow_undefined_flag \
  13214. no_undefined_flag \
  13215. hardcode_libdir_flag_spec \
  13216. hardcode_libdir_flag_spec_ld \
  13217. hardcode_libdir_separator \
  13218. fix_srcfile_path \
  13219. exclude_expsyms \
  13220. include_expsyms \
  13221. file_list_spec \
  13222. variables_saved_for_relink \
  13223. libname_spec \
  13224. library_names_spec \
  13225. soname_spec \
  13226. install_override_mode \
  13227. finish_eval \
  13228. old_striplib \
  13229. striplib; do
  13230. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13231. *[\\\\\\\`\\"\\\$]*)
  13232. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13233. ;;
  13234. *)
  13235. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13236. ;;
  13237. esac
  13238. done
  13239. # Double-quote double-evaled strings.
  13240. for var in reload_cmds \
  13241. old_postinstall_cmds \
  13242. old_postuninstall_cmds \
  13243. old_archive_cmds \
  13244. extract_expsyms_cmds \
  13245. old_archive_from_new_cmds \
  13246. old_archive_from_expsyms_cmds \
  13247. archive_cmds \
  13248. archive_expsym_cmds \
  13249. module_cmds \
  13250. module_expsym_cmds \
  13251. export_symbols_cmds \
  13252. prelink_cmds \
  13253. postinstall_cmds \
  13254. postuninstall_cmds \
  13255. finish_cmds \
  13256. sys_lib_search_path_spec \
  13257. sys_lib_dlsearch_path_spec; do
  13258. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13259. *[\\\\\\\`\\"\\\$]*)
  13260. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13261. ;;
  13262. *)
  13263. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13264. ;;
  13265. esac
  13266. done
  13267. ac_aux_dir='$ac_aux_dir'
  13268. xsi_shell='$xsi_shell'
  13269. lt_shell_append='$lt_shell_append'
  13270. # See if we are running on zsh, and set the options which allow our
  13271. # commands through without removal of \ escapes INIT.
  13272. if test -n "\${ZSH_VERSION+set}" ; then
  13273. setopt NO_GLOB_SUBST
  13274. fi
  13275. PACKAGE='$PACKAGE'
  13276. VERSION='$VERSION'
  13277. TIMESTAMP='$TIMESTAMP'
  13278. RM='$RM'
  13279. ofile='$ofile'
  13280. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  13281. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  13282. # from automake.
  13283. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  13284. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  13285. LINGUAS="${LINGUAS-%UNSET%}"
  13286. target_cpu_type=${target_cpu_type}
  13287. cgen_cpu_prefix=${cgen_cpu_prefix}
  13288. obj_format=${obj_format}
  13289. te_file=${te_file}
  13290. _ACEOF
  13291. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13292. # Handling of arguments.
  13293. for ac_config_target in $ac_config_targets
  13294. do
  13295. case $ac_config_target in
  13296. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13297. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13298. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  13299. "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
  13300. ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
  13301. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  13302. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13303. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13304. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
  13305. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  13306. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13307. esac
  13308. done
  13309. # If the user did not use the arguments to specify the items to instantiate,
  13310. # then the envvar interface is used. Set only those that are not.
  13311. # We use the long form for the default assignment because of an extremely
  13312. # bizarre bug on SunOS 4.1.3.
  13313. if $ac_need_defaults; then
  13314. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13315. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13316. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13317. fi
  13318. # Have a temporary directory for convenience. Make it in the build tree
  13319. # simply because there is no reason against having it here, and in addition,
  13320. # creating and moving files from /tmp can sometimes cause problems.
  13321. # Hook for its removal unless debugging.
  13322. # Note that there is a small window in which the directory will not be cleaned:
  13323. # after its creation but before its name has been assigned to `$tmp'.
  13324. $debug ||
  13325. {
  13326. tmp=
  13327. trap 'exit_status=$?
  13328. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13329. ' 0
  13330. trap 'as_fn_exit 1' 1 2 13 15
  13331. }
  13332. # Create a (secure) tmp directory for tmp files.
  13333. {
  13334. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13335. test -n "$tmp" && test -d "$tmp"
  13336. } ||
  13337. {
  13338. tmp=./conf$$-$RANDOM
  13339. (umask 077 && mkdir "$tmp")
  13340. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13341. # Set up the scripts for CONFIG_FILES section.
  13342. # No need to generate them if there are no CONFIG_FILES.
  13343. # This happens for instance with `./config.status config.h'.
  13344. if test -n "$CONFIG_FILES"; then
  13345. ac_cr=`echo X | tr X '\015'`
  13346. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13347. # But we know of no other shell where ac_cr would be empty at this
  13348. # point, so we can use a bashism as a fallback.
  13349. if test "x$ac_cr" = x; then
  13350. eval ac_cr=\$\'\\r\'
  13351. fi
  13352. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13353. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13354. ac_cs_awk_cr='\r'
  13355. else
  13356. ac_cs_awk_cr=$ac_cr
  13357. fi
  13358. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13359. _ACEOF
  13360. {
  13361. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13362. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13363. echo "_ACEOF"
  13364. } >conf$$subs.sh ||
  13365. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13366. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13367. ac_delim='%!_!# '
  13368. for ac_last_try in false false false false false :; do
  13369. . ./conf$$subs.sh ||
  13370. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13371. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13372. if test $ac_delim_n = $ac_delim_num; then
  13373. break
  13374. elif $ac_last_try; then
  13375. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13376. else
  13377. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13378. fi
  13379. done
  13380. rm -f conf$$subs.sh
  13381. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13382. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13383. _ACEOF
  13384. sed -n '
  13385. h
  13386. s/^/S["/; s/!.*/"]=/
  13387. p
  13388. g
  13389. s/^[^!]*!//
  13390. :repl
  13391. t repl
  13392. s/'"$ac_delim"'$//
  13393. t delim
  13394. :nl
  13395. h
  13396. s/\(.\{148\}\).*/\1/
  13397. t more1
  13398. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13399. p
  13400. n
  13401. b repl
  13402. :more1
  13403. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13404. p
  13405. g
  13406. s/.\{148\}//
  13407. t nl
  13408. :delim
  13409. h
  13410. s/\(.\{148\}\).*/\1/
  13411. t more2
  13412. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13413. p
  13414. b
  13415. :more2
  13416. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13417. p
  13418. g
  13419. s/.\{148\}//
  13420. t delim
  13421. ' <conf$$subs.awk | sed '
  13422. /^[^""]/{
  13423. N
  13424. s/\n//
  13425. }
  13426. ' >>$CONFIG_STATUS || ac_write_fail=1
  13427. rm -f conf$$subs.awk
  13428. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13429. _ACAWK
  13430. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13431. for (key in S) S_is_set[key] = 1
  13432. FS = ""
  13433. }
  13434. {
  13435. line = $ 0
  13436. nfields = split(line, field, "@")
  13437. substed = 0
  13438. len = length(field[1])
  13439. for (i = 2; i < nfields; i++) {
  13440. key = field[i]
  13441. keylen = length(key)
  13442. if (S_is_set[key]) {
  13443. value = S[key]
  13444. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13445. len += length(value) + length(field[++i])
  13446. substed = 1
  13447. } else
  13448. len += 1 + keylen
  13449. }
  13450. print line
  13451. }
  13452. _ACAWK
  13453. _ACEOF
  13454. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13455. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13456. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13457. else
  13458. cat
  13459. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13460. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13461. _ACEOF
  13462. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13463. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13464. # trailing colons and then remove the whole line if VPATH becomes empty
  13465. # (actually we leave an empty line to preserve line numbers).
  13466. if test "x$srcdir" = x.; then
  13467. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13468. s/:*\$(srcdir):*/:/
  13469. s/:*\${srcdir}:*/:/
  13470. s/:*@srcdir@:*/:/
  13471. s/^\([^=]*=[ ]*\):*/\1/
  13472. s/:*$//
  13473. s/^[^=]*=[ ]*$//
  13474. }'
  13475. fi
  13476. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13477. fi # test -n "$CONFIG_FILES"
  13478. # Set up the scripts for CONFIG_HEADERS section.
  13479. # No need to generate them if there are no CONFIG_HEADERS.
  13480. # This happens for instance with `./config.status Makefile'.
  13481. if test -n "$CONFIG_HEADERS"; then
  13482. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13483. BEGIN {
  13484. _ACEOF
  13485. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13486. # here-document in config.status, that substitutes the proper values into
  13487. # config.h.in to produce config.h.
  13488. # Create a delimiter string that does not exist in confdefs.h, to ease
  13489. # handling of long lines.
  13490. ac_delim='%!_!# '
  13491. for ac_last_try in false false :; do
  13492. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13493. if test -z "$ac_t"; then
  13494. break
  13495. elif $ac_last_try; then
  13496. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  13497. else
  13498. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13499. fi
  13500. done
  13501. # For the awk script, D is an array of macro values keyed by name,
  13502. # likewise P contains macro parameters if any. Preserve backslash
  13503. # newline sequences.
  13504. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13505. sed -n '
  13506. s/.\{148\}/&'"$ac_delim"'/g
  13507. t rset
  13508. :rset
  13509. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13510. t def
  13511. d
  13512. :def
  13513. s/\\$//
  13514. t bsnl
  13515. s/["\\]/\\&/g
  13516. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13517. D["\1"]=" \3"/p
  13518. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13519. d
  13520. :bsnl
  13521. s/["\\]/\\&/g
  13522. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13523. D["\1"]=" \3\\\\\\n"\\/p
  13524. t cont
  13525. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13526. t cont
  13527. d
  13528. :cont
  13529. n
  13530. s/.\{148\}/&'"$ac_delim"'/g
  13531. t clear
  13532. :clear
  13533. s/\\$//
  13534. t bsnlc
  13535. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13536. d
  13537. :bsnlc
  13538. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13539. b cont
  13540. ' <confdefs.h | sed '
  13541. s/'"$ac_delim"'/"\\\
  13542. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13543. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13544. for (key in D) D_is_set[key] = 1
  13545. FS = ""
  13546. }
  13547. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13548. line = \$ 0
  13549. split(line, arg, " ")
  13550. if (arg[1] == "#") {
  13551. defundef = arg[2]
  13552. mac1 = arg[3]
  13553. } else {
  13554. defundef = substr(arg[1], 2)
  13555. mac1 = arg[2]
  13556. }
  13557. split(mac1, mac2, "(") #)
  13558. macro = mac2[1]
  13559. prefix = substr(line, 1, index(line, defundef) - 1)
  13560. if (D_is_set[macro]) {
  13561. # Preserve the white space surrounding the "#".
  13562. print prefix "define", macro P[macro] D[macro]
  13563. next
  13564. } else {
  13565. # Replace #undef with comments. This is necessary, for example,
  13566. # in the case of _POSIX_SOURCE, which is predefined and required
  13567. # on some systems where configure will not decide to define it.
  13568. if (defundef == "undef") {
  13569. print "/*", prefix defundef, macro, "*/"
  13570. next
  13571. }
  13572. }
  13573. }
  13574. { print }
  13575. _ACAWK
  13576. _ACEOF
  13577. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13578. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  13579. fi # test -n "$CONFIG_HEADERS"
  13580. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13581. shift
  13582. for ac_tag
  13583. do
  13584. case $ac_tag in
  13585. :[FHLC]) ac_mode=$ac_tag; continue;;
  13586. esac
  13587. case $ac_mode$ac_tag in
  13588. :[FHL]*:*);;
  13589. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13590. :[FH]-) ac_tag=-:-;;
  13591. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13592. esac
  13593. ac_save_IFS=$IFS
  13594. IFS=:
  13595. set x $ac_tag
  13596. IFS=$ac_save_IFS
  13597. shift
  13598. ac_file=$1
  13599. shift
  13600. case $ac_mode in
  13601. :L) ac_source=$1;;
  13602. :[FH])
  13603. ac_file_inputs=
  13604. for ac_f
  13605. do
  13606. case $ac_f in
  13607. -) ac_f="$tmp/stdin";;
  13608. *) # Look for the file first in the build tree, then in the source tree
  13609. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13610. # because $ac_f cannot contain `:'.
  13611. test -f "$ac_f" ||
  13612. case $ac_f in
  13613. [\\/$]*) false;;
  13614. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13615. esac ||
  13616. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13617. esac
  13618. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13619. as_fn_append ac_file_inputs " '$ac_f'"
  13620. done
  13621. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13622. # use $as_me), people would be surprised to read:
  13623. # /* config.h. Generated by config.status. */
  13624. configure_input='Generated from '`
  13625. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13626. `' by configure.'
  13627. if test x"$ac_file" != x-; then
  13628. configure_input="$ac_file. $configure_input"
  13629. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13630. $as_echo "$as_me: creating $ac_file" >&6;}
  13631. fi
  13632. # Neutralize special characters interpreted by sed in replacement strings.
  13633. case $configure_input in #(
  13634. *\&* | *\|* | *\\* )
  13635. ac_sed_conf_input=`$as_echo "$configure_input" |
  13636. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13637. *) ac_sed_conf_input=$configure_input;;
  13638. esac
  13639. case $ac_tag in
  13640. *:-:* | *:-) cat >"$tmp/stdin" \
  13641. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13642. esac
  13643. ;;
  13644. esac
  13645. ac_dir=`$as_dirname -- "$ac_file" ||
  13646. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13647. X"$ac_file" : 'X\(//\)[^/]' \| \
  13648. X"$ac_file" : 'X\(//\)$' \| \
  13649. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13650. $as_echo X"$ac_file" |
  13651. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13652. s//\1/
  13653. q
  13654. }
  13655. /^X\(\/\/\)[^/].*/{
  13656. s//\1/
  13657. q
  13658. }
  13659. /^X\(\/\/\)$/{
  13660. s//\1/
  13661. q
  13662. }
  13663. /^X\(\/\).*/{
  13664. s//\1/
  13665. q
  13666. }
  13667. s/.*/./; q'`
  13668. as_dir="$ac_dir"; as_fn_mkdir_p
  13669. ac_builddir=.
  13670. case "$ac_dir" in
  13671. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13672. *)
  13673. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13674. # A ".." for each directory in $ac_dir_suffix.
  13675. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13676. case $ac_top_builddir_sub in
  13677. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13678. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13679. esac ;;
  13680. esac
  13681. ac_abs_top_builddir=$ac_pwd
  13682. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13683. # for backward compatibility:
  13684. ac_top_builddir=$ac_top_build_prefix
  13685. case $srcdir in
  13686. .) # We are building in place.
  13687. ac_srcdir=.
  13688. ac_top_srcdir=$ac_top_builddir_sub
  13689. ac_abs_top_srcdir=$ac_pwd ;;
  13690. [\\/]* | ?:[\\/]* ) # Absolute name.
  13691. ac_srcdir=$srcdir$ac_dir_suffix;
  13692. ac_top_srcdir=$srcdir
  13693. ac_abs_top_srcdir=$srcdir ;;
  13694. *) # Relative name.
  13695. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13696. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13697. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13698. esac
  13699. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13700. case $ac_mode in
  13701. :F)
  13702. #
  13703. # CONFIG_FILE
  13704. #
  13705. case $INSTALL in
  13706. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13707. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13708. esac
  13709. ac_MKDIR_P=$MKDIR_P
  13710. case $MKDIR_P in
  13711. [\\/$]* | ?:[\\/]* ) ;;
  13712. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13713. esac
  13714. _ACEOF
  13715. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13716. # If the template does not know about datarootdir, expand it.
  13717. # FIXME: This hack should be removed a few years after 2.60.
  13718. ac_datarootdir_hack=; ac_datarootdir_seen=
  13719. ac_sed_dataroot='
  13720. /datarootdir/ {
  13721. p
  13722. q
  13723. }
  13724. /@datadir@/p
  13725. /@docdir@/p
  13726. /@infodir@/p
  13727. /@localedir@/p
  13728. /@mandir@/p'
  13729. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13730. *datarootdir*) ac_datarootdir_seen=yes;;
  13731. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13732. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13733. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13734. _ACEOF
  13735. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13736. ac_datarootdir_hack='
  13737. s&@datadir@&$datadir&g
  13738. s&@docdir@&$docdir&g
  13739. s&@infodir@&$infodir&g
  13740. s&@localedir@&$localedir&g
  13741. s&@mandir@&$mandir&g
  13742. s&\\\${datarootdir}&$datarootdir&g' ;;
  13743. esac
  13744. _ACEOF
  13745. # Neutralize VPATH when `$srcdir' = `.'.
  13746. # Shell code in configure.ac might set extrasub.
  13747. # FIXME: do we really want to maintain this feature?
  13748. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13749. ac_sed_extra="$ac_vpsub
  13750. $extrasub
  13751. _ACEOF
  13752. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13753. :t
  13754. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13755. s|@configure_input@|$ac_sed_conf_input|;t t
  13756. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13757. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13758. s&@srcdir@&$ac_srcdir&;t t
  13759. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13760. s&@top_srcdir@&$ac_top_srcdir&;t t
  13761. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13762. s&@builddir@&$ac_builddir&;t t
  13763. s&@abs_builddir@&$ac_abs_builddir&;t t
  13764. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13765. s&@INSTALL@&$ac_INSTALL&;t t
  13766. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13767. $ac_datarootdir_hack
  13768. "
  13769. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13770. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13771. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13772. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13773. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13775. which seems to be undefined. Please make sure it is defined." >&5
  13776. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13777. which seems to be undefined. Please make sure it is defined." >&2;}
  13778. rm -f "$tmp/stdin"
  13779. case $ac_file in
  13780. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13781. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13782. esac \
  13783. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13784. ;;
  13785. :H)
  13786. #
  13787. # CONFIG_HEADER
  13788. #
  13789. if test x"$ac_file" != x-; then
  13790. {
  13791. $as_echo "/* $configure_input */" \
  13792. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13793. } >"$tmp/config.h" \
  13794. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13795. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13796. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13797. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13798. else
  13799. rm -f "$ac_file"
  13800. mv "$tmp/config.h" "$ac_file" \
  13801. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13802. fi
  13803. else
  13804. $as_echo "/* $configure_input */" \
  13805. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13806. || as_fn_error "could not create -" "$LINENO" 5
  13807. fi
  13808. # Compute "$ac_file"'s index in $config_headers.
  13809. _am_arg="$ac_file"
  13810. _am_stamp_count=1
  13811. for _am_header in $config_headers :; do
  13812. case $_am_header in
  13813. $_am_arg | $_am_arg:* )
  13814. break ;;
  13815. * )
  13816. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13817. esac
  13818. done
  13819. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13820. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13821. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13822. X"$_am_arg" : 'X\(//\)$' \| \
  13823. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13824. $as_echo X"$_am_arg" |
  13825. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13826. s//\1/
  13827. q
  13828. }
  13829. /^X\(\/\/\)[^/].*/{
  13830. s//\1/
  13831. q
  13832. }
  13833. /^X\(\/\/\)$/{
  13834. s//\1/
  13835. q
  13836. }
  13837. /^X\(\/\).*/{
  13838. s//\1/
  13839. q
  13840. }
  13841. s/.*/./; q'`/stamp-h$_am_stamp_count
  13842. ;;
  13843. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13844. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13845. ;;
  13846. esac
  13847. case $ac_file$ac_mode in
  13848. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13849. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13850. # are listed without --file. Let's play safe and only enable the eval
  13851. # if we detect the quoting.
  13852. case $CONFIG_FILES in
  13853. *\'*) eval set x "$CONFIG_FILES" ;;
  13854. *) set x $CONFIG_FILES ;;
  13855. esac
  13856. shift
  13857. for mf
  13858. do
  13859. # Strip MF so we end up with the name of the file.
  13860. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13861. # Check whether this is an Automake generated Makefile or not.
  13862. # We used to match only the files named `Makefile.in', but
  13863. # some people rename them; so instead we look at the file content.
  13864. # Grep'ing the first line is not enough: some people post-process
  13865. # each Makefile.in and add a new line on top of each file to say so.
  13866. # Grep'ing the whole file is not good either: AIX grep has a line
  13867. # limit of 2048, but all sed's we know have understand at least 4000.
  13868. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13869. dirpart=`$as_dirname -- "$mf" ||
  13870. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13871. X"$mf" : 'X\(//\)[^/]' \| \
  13872. X"$mf" : 'X\(//\)$' \| \
  13873. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13874. $as_echo X"$mf" |
  13875. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13876. s//\1/
  13877. q
  13878. }
  13879. /^X\(\/\/\)[^/].*/{
  13880. s//\1/
  13881. q
  13882. }
  13883. /^X\(\/\/\)$/{
  13884. s//\1/
  13885. q
  13886. }
  13887. /^X\(\/\).*/{
  13888. s//\1/
  13889. q
  13890. }
  13891. s/.*/./; q'`
  13892. else
  13893. continue
  13894. fi
  13895. # Extract the definition of DEPDIR, am__include, and am__quote
  13896. # from the Makefile without running `make'.
  13897. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13898. test -z "$DEPDIR" && continue
  13899. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13900. test -z "am__include" && continue
  13901. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13902. # When using ansi2knr, U may be empty or an underscore; expand it
  13903. U=`sed -n 's/^U = //p' < "$mf"`
  13904. # Find all dependency output files, they are included files with
  13905. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13906. # simplest approach to changing $(DEPDIR) to its actual value in the
  13907. # expansion.
  13908. for file in `sed -n "
  13909. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13910. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13911. # Make sure the directory exists.
  13912. test -f "$dirpart/$file" && continue
  13913. fdir=`$as_dirname -- "$file" ||
  13914. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13915. X"$file" : 'X\(//\)[^/]' \| \
  13916. X"$file" : 'X\(//\)$' \| \
  13917. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13918. $as_echo X"$file" |
  13919. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13920. s//\1/
  13921. q
  13922. }
  13923. /^X\(\/\/\)[^/].*/{
  13924. s//\1/
  13925. q
  13926. }
  13927. /^X\(\/\/\)$/{
  13928. s//\1/
  13929. q
  13930. }
  13931. /^X\(\/\).*/{
  13932. s//\1/
  13933. q
  13934. }
  13935. s/.*/./; q'`
  13936. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13937. # echo "creating $dirpart/$file"
  13938. echo '# dummy' > "$dirpart/$file"
  13939. done
  13940. done
  13941. }
  13942. ;;
  13943. "libtool":C)
  13944. # See if we are running on zsh, and set the options which allow our
  13945. # commands through without removal of \ escapes.
  13946. if test -n "${ZSH_VERSION+set}" ; then
  13947. setopt NO_GLOB_SUBST
  13948. fi
  13949. cfgfile="${ofile}T"
  13950. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13951. $RM "$cfgfile"
  13952. cat <<_LT_EOF >> "$cfgfile"
  13953. #! $SHELL
  13954. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13955. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13956. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13957. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13958. #
  13959. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13960. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  13961. # Written by Gordon Matzigkeit, 1996
  13962. #
  13963. # This file is part of GNU Libtool.
  13964. #
  13965. # GNU Libtool is free software; you can redistribute it and/or
  13966. # modify it under the terms of the GNU General Public License as
  13967. # published by the Free Software Foundation; either version 2 of
  13968. # the License, or (at your option) any later version.
  13969. #
  13970. # As a special exception to the GNU General Public License,
  13971. # if you distribute this file as part of a program or library that
  13972. # is built using GNU Libtool, you may include this file under the
  13973. # same distribution terms that you use for the rest of that program.
  13974. #
  13975. # GNU Libtool is distributed in the hope that it will be useful,
  13976. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13977. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13978. # GNU General Public License for more details.
  13979. #
  13980. # You should have received a copy of the GNU General Public License
  13981. # along with GNU Libtool; see the file COPYING. If not, a copy
  13982. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13983. # obtained by writing to the Free Software Foundation, Inc.,
  13984. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13985. # The names of the tagged configurations supported by this script.
  13986. available_tags=""
  13987. # ### BEGIN LIBTOOL CONFIG
  13988. # Which release of libtool.m4 was used?
  13989. macro_version=$macro_version
  13990. macro_revision=$macro_revision
  13991. # Whether or not to build shared libraries.
  13992. build_libtool_libs=$enable_shared
  13993. # Whether or not to build static libraries.
  13994. build_old_libs=$enable_static
  13995. # What type of objects to build.
  13996. pic_mode=$pic_mode
  13997. # Whether or not to optimize for fast installation.
  13998. fast_install=$enable_fast_install
  13999. # Shell to use when invoking shell scripts.
  14000. SHELL=$lt_SHELL
  14001. # An echo program that protects backslashes.
  14002. ECHO=$lt_ECHO
  14003. # The host system.
  14004. host_alias=$host_alias
  14005. host=$host
  14006. host_os=$host_os
  14007. # The build system.
  14008. build_alias=$build_alias
  14009. build=$build
  14010. build_os=$build_os
  14011. # A sed program that does not truncate output.
  14012. SED=$lt_SED
  14013. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14014. Xsed="\$SED -e 1s/^X//"
  14015. # A grep program that handles long lines.
  14016. GREP=$lt_GREP
  14017. # An ERE matcher.
  14018. EGREP=$lt_EGREP
  14019. # A literal string matcher.
  14020. FGREP=$lt_FGREP
  14021. # A BSD- or MS-compatible name lister.
  14022. NM=$lt_NM
  14023. # Whether we need soft or hard links.
  14024. LN_S=$lt_LN_S
  14025. # What is the maximum length of a command?
  14026. max_cmd_len=$max_cmd_len
  14027. # Object file suffix (normally "o").
  14028. objext=$ac_objext
  14029. # Executable file suffix (normally "").
  14030. exeext=$exeext
  14031. # whether the shell understands "unset".
  14032. lt_unset=$lt_unset
  14033. # turn spaces into newlines.
  14034. SP2NL=$lt_lt_SP2NL
  14035. # turn newlines into spaces.
  14036. NL2SP=$lt_lt_NL2SP
  14037. # An object symbol dumper.
  14038. OBJDUMP=$lt_OBJDUMP
  14039. # Method to check whether dependent libraries are shared objects.
  14040. deplibs_check_method=$lt_deplibs_check_method
  14041. # Command to use when deplibs_check_method == "file_magic".
  14042. file_magic_cmd=$lt_file_magic_cmd
  14043. # The archiver.
  14044. AR=$lt_AR
  14045. AR_FLAGS=$lt_AR_FLAGS
  14046. # A symbol stripping program.
  14047. STRIP=$lt_STRIP
  14048. # Commands used to install an old-style archive.
  14049. RANLIB=$lt_RANLIB
  14050. old_postinstall_cmds=$lt_old_postinstall_cmds
  14051. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14052. # Whether to use a lock for old archive extraction.
  14053. lock_old_archive_extraction=$lock_old_archive_extraction
  14054. # A C compiler.
  14055. LTCC=$lt_CC
  14056. # LTCC compiler flags.
  14057. LTCFLAGS=$lt_CFLAGS
  14058. # Take the output of nm and produce a listing of raw symbols and C names.
  14059. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14060. # Transform the output of nm in a proper C declaration.
  14061. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14062. # Transform the output of nm in a C name address pair.
  14063. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14064. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14065. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14066. # The name of the directory that contains temporary libtool files.
  14067. objdir=$objdir
  14068. # Used to examine libraries when file_magic_cmd begins with "file".
  14069. MAGIC_CMD=$MAGIC_CMD
  14070. # Must we lock files when doing compilation?
  14071. need_locks=$lt_need_locks
  14072. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14073. DSYMUTIL=$lt_DSYMUTIL
  14074. # Tool to change global to local symbols on Mac OS X.
  14075. NMEDIT=$lt_NMEDIT
  14076. # Tool to manipulate fat objects and archives on Mac OS X.
  14077. LIPO=$lt_LIPO
  14078. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14079. OTOOL=$lt_OTOOL
  14080. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14081. OTOOL64=$lt_OTOOL64
  14082. # Old archive suffix (normally "a").
  14083. libext=$libext
  14084. # Shared library suffix (normally ".so").
  14085. shrext_cmds=$lt_shrext_cmds
  14086. # The commands to extract the exported symbol list from a shared archive.
  14087. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14088. # Variables whose values should be saved in libtool wrapper scripts and
  14089. # restored at link time.
  14090. variables_saved_for_relink=$lt_variables_saved_for_relink
  14091. # Do we need the "lib" prefix for modules?
  14092. need_lib_prefix=$need_lib_prefix
  14093. # Do we need a version for libraries?
  14094. need_version=$need_version
  14095. # Library versioning type.
  14096. version_type=$version_type
  14097. # Shared library runtime path variable.
  14098. runpath_var=$runpath_var
  14099. # Shared library path variable.
  14100. shlibpath_var=$shlibpath_var
  14101. # Is shlibpath searched before the hard-coded library search path?
  14102. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14103. # Format of library name prefix.
  14104. libname_spec=$lt_libname_spec
  14105. # List of archive names. First name is the real one, the rest are links.
  14106. # The last name is the one that the linker finds with -lNAME
  14107. library_names_spec=$lt_library_names_spec
  14108. # The coded name of the library, if different from the real name.
  14109. soname_spec=$lt_soname_spec
  14110. # Permission mode override for installation of shared libraries.
  14111. install_override_mode=$lt_install_override_mode
  14112. # Command to use after installation of a shared archive.
  14113. postinstall_cmds=$lt_postinstall_cmds
  14114. # Command to use after uninstallation of a shared archive.
  14115. postuninstall_cmds=$lt_postuninstall_cmds
  14116. # Commands used to finish a libtool library installation in a directory.
  14117. finish_cmds=$lt_finish_cmds
  14118. # As "finish_cmds", except a single script fragment to be evaled but
  14119. # not shown.
  14120. finish_eval=$lt_finish_eval
  14121. # Whether we should hardcode library paths into libraries.
  14122. hardcode_into_libs=$hardcode_into_libs
  14123. # Compile-time system search path for libraries.
  14124. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14125. # Run-time system search path for libraries.
  14126. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14127. # Whether dlopen is supported.
  14128. dlopen_support=$enable_dlopen
  14129. # Whether dlopen of programs is supported.
  14130. dlopen_self=$enable_dlopen_self
  14131. # Whether dlopen of statically linked programs is supported.
  14132. dlopen_self_static=$enable_dlopen_self_static
  14133. # Commands to strip libraries.
  14134. old_striplib=$lt_old_striplib
  14135. striplib=$lt_striplib
  14136. # The linker used to build libraries.
  14137. LD=$lt_LD
  14138. # How to create reloadable object files.
  14139. reload_flag=$lt_reload_flag
  14140. reload_cmds=$lt_reload_cmds
  14141. # Commands used to build an old-style archive.
  14142. old_archive_cmds=$lt_old_archive_cmds
  14143. # A language specific compiler.
  14144. CC=$lt_compiler
  14145. # Is the compiler the GNU compiler?
  14146. with_gcc=$GCC
  14147. # Compiler flag to turn off builtin functions.
  14148. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14149. # How to pass a linker flag through the compiler.
  14150. wl=$lt_lt_prog_compiler_wl
  14151. # Additional compiler flags for building library objects.
  14152. pic_flag=$lt_lt_prog_compiler_pic
  14153. # Compiler flag to prevent dynamic linking.
  14154. link_static_flag=$lt_lt_prog_compiler_static
  14155. # Does compiler simultaneously support -c and -o options?
  14156. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14157. # Whether or not to add -lc for building shared libraries.
  14158. build_libtool_need_lc=$archive_cmds_need_lc
  14159. # Whether or not to disallow shared libs when runtime libs are static.
  14160. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14161. # Compiler flag to allow reflexive dlopens.
  14162. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14163. # Compiler flag to generate shared objects directly from archives.
  14164. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14165. # Whether the compiler copes with passing no objects directly.
  14166. compiler_needs_object=$lt_compiler_needs_object
  14167. # Create an old-style archive from a shared archive.
  14168. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14169. # Create a temporary old-style archive to link instead of a shared archive.
  14170. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14171. # Commands used to build a shared archive.
  14172. archive_cmds=$lt_archive_cmds
  14173. archive_expsym_cmds=$lt_archive_expsym_cmds
  14174. # Commands used to build a loadable module if different from building
  14175. # a shared archive.
  14176. module_cmds=$lt_module_cmds
  14177. module_expsym_cmds=$lt_module_expsym_cmds
  14178. # Whether we are building with GNU ld or not.
  14179. with_gnu_ld=$lt_with_gnu_ld
  14180. # Flag that allows shared libraries with undefined symbols to be built.
  14181. allow_undefined_flag=$lt_allow_undefined_flag
  14182. # Flag that enforces no undefined symbols.
  14183. no_undefined_flag=$lt_no_undefined_flag
  14184. # Flag to hardcode \$libdir into a binary during linking.
  14185. # This must work even if \$libdir does not exist
  14186. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14187. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14188. # during linking. This must work even if \$libdir does not exist.
  14189. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14190. # Whether we need a single "-rpath" flag with a separated argument.
  14191. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14192. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14193. # DIR into the resulting binary.
  14194. hardcode_direct=$hardcode_direct
  14195. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14196. # DIR into the resulting binary and the resulting library dependency is
  14197. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14198. # library is relocated.
  14199. hardcode_direct_absolute=$hardcode_direct_absolute
  14200. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14201. # into the resulting binary.
  14202. hardcode_minus_L=$hardcode_minus_L
  14203. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14204. # into the resulting binary.
  14205. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14206. # Set to "yes" if building a shared library automatically hardcodes DIR
  14207. # into the library and all subsequent libraries and executables linked
  14208. # against it.
  14209. hardcode_automatic=$hardcode_automatic
  14210. # Set to yes if linker adds runtime paths of dependent libraries
  14211. # to runtime path list.
  14212. inherit_rpath=$inherit_rpath
  14213. # Whether libtool must link a program against all its dependency libraries.
  14214. link_all_deplibs=$link_all_deplibs
  14215. # Fix the shell variable \$srcfile for the compiler.
  14216. fix_srcfile_path=$lt_fix_srcfile_path
  14217. # Set to "yes" if exported symbols are required.
  14218. always_export_symbols=$always_export_symbols
  14219. # The commands to list exported symbols.
  14220. export_symbols_cmds=$lt_export_symbols_cmds
  14221. # Symbols that should not be listed in the preloaded symbols.
  14222. exclude_expsyms=$lt_exclude_expsyms
  14223. # Symbols that must always be exported.
  14224. include_expsyms=$lt_include_expsyms
  14225. # Commands necessary for linking programs (against libraries) with templates.
  14226. prelink_cmds=$lt_prelink_cmds
  14227. # Specify filename containing input files.
  14228. file_list_spec=$lt_file_list_spec
  14229. # How to hardcode a shared library path into an executable.
  14230. hardcode_action=$hardcode_action
  14231. # ### END LIBTOOL CONFIG
  14232. _LT_EOF
  14233. case $host_os in
  14234. aix3*)
  14235. cat <<\_LT_EOF >> "$cfgfile"
  14236. # AIX sometimes has problems with the GCC collect2 program. For some
  14237. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14238. # vanish in a puff of smoke.
  14239. if test "X${COLLECT_NAMES+set}" != Xset; then
  14240. COLLECT_NAMES=
  14241. export COLLECT_NAMES
  14242. fi
  14243. _LT_EOF
  14244. ;;
  14245. esac
  14246. ltmain="$ac_aux_dir/ltmain.sh"
  14247. # We use sed instead of cat because bash on DJGPP gets confused if
  14248. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14249. # text mode, it properly converts lines to CR/LF. This bash problem
  14250. # is reportedly fixed, but why not run on old versions too?
  14251. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14252. || (rm -f "$cfgfile"; exit 1)
  14253. case $xsi_shell in
  14254. yes)
  14255. cat << \_LT_EOF >> "$cfgfile"
  14256. # func_dirname file append nondir_replacement
  14257. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14258. # otherwise set result to NONDIR_REPLACEMENT.
  14259. func_dirname ()
  14260. {
  14261. case ${1} in
  14262. */*) func_dirname_result="${1%/*}${2}" ;;
  14263. * ) func_dirname_result="${3}" ;;
  14264. esac
  14265. }
  14266. # func_basename file
  14267. func_basename ()
  14268. {
  14269. func_basename_result="${1##*/}"
  14270. }
  14271. # func_dirname_and_basename file append nondir_replacement
  14272. # perform func_basename and func_dirname in a single function
  14273. # call:
  14274. # dirname: Compute the dirname of FILE. If nonempty,
  14275. # add APPEND to the result, otherwise set result
  14276. # to NONDIR_REPLACEMENT.
  14277. # value returned in "$func_dirname_result"
  14278. # basename: Compute filename of FILE.
  14279. # value retuned in "$func_basename_result"
  14280. # Implementation must be kept synchronized with func_dirname
  14281. # and func_basename. For efficiency, we do not delegate to
  14282. # those functions but instead duplicate the functionality here.
  14283. func_dirname_and_basename ()
  14284. {
  14285. case ${1} in
  14286. */*) func_dirname_result="${1%/*}${2}" ;;
  14287. * ) func_dirname_result="${3}" ;;
  14288. esac
  14289. func_basename_result="${1##*/}"
  14290. }
  14291. # func_stripname prefix suffix name
  14292. # strip PREFIX and SUFFIX off of NAME.
  14293. # PREFIX and SUFFIX must not contain globbing or regex special
  14294. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14295. # dot (in which case that matches only a dot).
  14296. func_stripname ()
  14297. {
  14298. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14299. # positional parameters, so assign one to ordinary parameter first.
  14300. func_stripname_result=${3}
  14301. func_stripname_result=${func_stripname_result#"${1}"}
  14302. func_stripname_result=${func_stripname_result%"${2}"}
  14303. }
  14304. # func_opt_split
  14305. func_opt_split ()
  14306. {
  14307. func_opt_split_opt=${1%%=*}
  14308. func_opt_split_arg=${1#*=}
  14309. }
  14310. # func_lo2o object
  14311. func_lo2o ()
  14312. {
  14313. case ${1} in
  14314. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14315. *) func_lo2o_result=${1} ;;
  14316. esac
  14317. }
  14318. # func_xform libobj-or-source
  14319. func_xform ()
  14320. {
  14321. func_xform_result=${1%.*}.lo
  14322. }
  14323. # func_arith arithmetic-term...
  14324. func_arith ()
  14325. {
  14326. func_arith_result=$(( $* ))
  14327. }
  14328. # func_len string
  14329. # STRING may not start with a hyphen.
  14330. func_len ()
  14331. {
  14332. func_len_result=${#1}
  14333. }
  14334. _LT_EOF
  14335. ;;
  14336. *) # Bourne compatible functions.
  14337. cat << \_LT_EOF >> "$cfgfile"
  14338. # func_dirname file append nondir_replacement
  14339. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14340. # otherwise set result to NONDIR_REPLACEMENT.
  14341. func_dirname ()
  14342. {
  14343. # Extract subdirectory from the argument.
  14344. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  14345. if test "X$func_dirname_result" = "X${1}"; then
  14346. func_dirname_result="${3}"
  14347. else
  14348. func_dirname_result="$func_dirname_result${2}"
  14349. fi
  14350. }
  14351. # func_basename file
  14352. func_basename ()
  14353. {
  14354. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  14355. }
  14356. # func_stripname prefix suffix name
  14357. # strip PREFIX and SUFFIX off of NAME.
  14358. # PREFIX and SUFFIX must not contain globbing or regex special
  14359. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14360. # dot (in which case that matches only a dot).
  14361. # func_strip_suffix prefix name
  14362. func_stripname ()
  14363. {
  14364. case ${2} in
  14365. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  14366. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  14367. esac
  14368. }
  14369. # sed scripts:
  14370. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14371. my_sed_long_arg='1s/^-[^=]*=//'
  14372. # func_opt_split
  14373. func_opt_split ()
  14374. {
  14375. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  14376. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  14377. }
  14378. # func_lo2o object
  14379. func_lo2o ()
  14380. {
  14381. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  14382. }
  14383. # func_xform libobj-or-source
  14384. func_xform ()
  14385. {
  14386. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  14387. }
  14388. # func_arith arithmetic-term...
  14389. func_arith ()
  14390. {
  14391. func_arith_result=`expr "$@"`
  14392. }
  14393. # func_len string
  14394. # STRING may not start with a hyphen.
  14395. func_len ()
  14396. {
  14397. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14398. }
  14399. _LT_EOF
  14400. esac
  14401. case $lt_shell_append in
  14402. yes)
  14403. cat << \_LT_EOF >> "$cfgfile"
  14404. # func_append var value
  14405. # Append VALUE to the end of shell variable VAR.
  14406. func_append ()
  14407. {
  14408. eval "$1+=\$2"
  14409. }
  14410. _LT_EOF
  14411. ;;
  14412. *)
  14413. cat << \_LT_EOF >> "$cfgfile"
  14414. # func_append var value
  14415. # Append VALUE to the end of shell variable VAR.
  14416. func_append ()
  14417. {
  14418. eval "$1=\$$1\$2"
  14419. }
  14420. _LT_EOF
  14421. ;;
  14422. esac
  14423. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14424. || (rm -f "$cfgfile"; exit 1)
  14425. mv -f "$cfgfile" "$ofile" ||
  14426. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14427. chmod +x "$ofile"
  14428. ;;
  14429. "default-1":C)
  14430. for ac_file in $CONFIG_FILES; do
  14431. # Support "outfile[:infile[:infile...]]"
  14432. case "$ac_file" in
  14433. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14434. esac
  14435. # PO directories have a Makefile.in generated from Makefile.in.in.
  14436. case "$ac_file" in */Makefile.in)
  14437. # Adjust a relative srcdir.
  14438. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14439. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  14440. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14441. # In autoconf-2.13 it is called $ac_given_srcdir.
  14442. # In autoconf-2.50 it is called $srcdir.
  14443. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14444. case "$ac_given_srcdir" in
  14445. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14446. /*) top_srcdir="$ac_given_srcdir" ;;
  14447. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14448. esac
  14449. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14450. rm -f "$ac_dir/POTFILES"
  14451. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14452. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14453. POMAKEFILEDEPS="POTFILES.in"
  14454. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  14455. # on $ac_dir but don't depend on user-specified configuration
  14456. # parameters.
  14457. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14458. # The LINGUAS file contains the set of available languages.
  14459. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14460. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
  14461. fi
  14462. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14463. # Hide the ALL_LINGUAS assigment from automake.
  14464. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14465. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14466. else
  14467. # The set of available languages was given in configure.ac.
  14468. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14469. fi
  14470. case "$ac_given_srcdir" in
  14471. .) srcdirpre= ;;
  14472. *) srcdirpre='$(srcdir)/' ;;
  14473. esac
  14474. POFILES=
  14475. GMOFILES=
  14476. UPDATEPOFILES=
  14477. DUMMYPOFILES=
  14478. for lang in $ALL_LINGUAS; do
  14479. POFILES="$POFILES $srcdirpre$lang.po"
  14480. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14481. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14482. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14483. done
  14484. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14485. # environment variable.
  14486. INST_LINGUAS=
  14487. if test -n "$ALL_LINGUAS"; then
  14488. for presentlang in $ALL_LINGUAS; do
  14489. useit=no
  14490. if test "%UNSET%" != "$LINGUAS"; then
  14491. desiredlanguages="$LINGUAS"
  14492. else
  14493. desiredlanguages="$ALL_LINGUAS"
  14494. fi
  14495. for desiredlang in $desiredlanguages; do
  14496. # Use the presentlang catalog if desiredlang is
  14497. # a. equal to presentlang, or
  14498. # b. a variant of presentlang (because in this case,
  14499. # presentlang can be used as a fallback for messages
  14500. # which are not translated in the desiredlang catalog).
  14501. case "$desiredlang" in
  14502. "$presentlang"*) useit=yes;;
  14503. esac
  14504. done
  14505. if test $useit = yes; then
  14506. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14507. fi
  14508. done
  14509. fi
  14510. CATALOGS=
  14511. if test -n "$INST_LINGUAS"; then
  14512. for lang in $INST_LINGUAS; do
  14513. CATALOGS="$CATALOGS $lang.gmo"
  14514. done
  14515. fi
  14516. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14517. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  14518. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14519. if test -f "$f"; then
  14520. case "$f" in
  14521. *.orig | *.bak | *~) ;;
  14522. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14523. esac
  14524. fi
  14525. done
  14526. fi
  14527. ;;
  14528. esac
  14529. done ;;
  14530. "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
  14531. echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
  14532. echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
  14533. echo '#include "te-'"${te_file}"'.h"' > targ-env.h
  14534. echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
  14535. if test "x$cgen_cpu_prefix" != x ; then
  14536. echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
  14537. fi ;;
  14538. esac
  14539. done # for ac_tag
  14540. as_fn_exit 0
  14541. _ACEOF
  14542. ac_clean_files=$ac_clean_files_save
  14543. test $ac_write_fail = 0 ||
  14544. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14545. # configure is writing to config.log, and then calls config.status.
  14546. # config.status does its own redirection, appending to config.log.
  14547. # Unfortunately, on DOS this fails, as config.log is still kept open
  14548. # by configure, so config.status won't be able to write to it; its
  14549. # output is simply discarded. So we exec the FD to /dev/null,
  14550. # effectively closing config.log, so it can be properly (re)opened and
  14551. # appended to by config.status. When coming back to configure, we
  14552. # need to make the FD available again.
  14553. if test "$no_create" != yes; then
  14554. ac_cs_success=:
  14555. ac_config_status_args=
  14556. test "$silent" = yes &&
  14557. ac_config_status_args="$ac_config_status_args --quiet"
  14558. exec 5>/dev/null
  14559. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14560. exec 5>>config.log
  14561. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14562. # would make configure fail if this is the last instruction.
  14563. $ac_cs_success || as_fn_exit $?
  14564. fi
  14565. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14567. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14568. fi