configure 487 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for binutils 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='binutils'
  509. PACKAGE_TARNAME='binutils'
  510. PACKAGE_VERSION='2.25.51'
  511. PACKAGE_STRING='binutils 2.25.51'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL=''
  514. ac_unique_file="ar.c"
  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. EMULATION_VECTOR
  555. EMULATION
  556. OBJDUMP_PRIVATE_OFILES
  557. OBJDUMP_DEFS
  558. BUILD_INSTALL_MISC
  559. BUILD_MISC
  560. BUILD_DLLWRAP
  561. BUILD_WINDMC
  562. BUILD_WINDRES
  563. DLLTOOL_DEFS
  564. BUILD_DLLTOOL
  565. BUILD_SRCONV
  566. BUILD_NLMCONV
  567. NLMCONV_DEFS
  568. LTLIBICONV
  569. LIBICONV
  570. zlibinc
  571. zlibdir
  572. ALLOCA
  573. DEMANGLER_NAME
  574. EXEEXT_FOR_BUILD
  575. CC_FOR_BUILD
  576. HDEFINES
  577. GENINSRC_NEVER_FALSE
  578. GENINSRC_NEVER_TRUE
  579. MAINT
  580. MAINTAINER_MODE_FALSE
  581. MAINTAINER_MODE_TRUE
  582. MSGMERGE
  583. MSGFMT
  584. MKINSTALLDIRS
  585. CATOBJEXT
  586. GENCAT
  587. INSTOBJEXT
  588. DATADIRNAME
  589. CATALOGS
  590. POSUB
  591. GMSGFMT
  592. XGETTEXT
  593. INCINTL
  594. LIBINTL_DEP
  595. LIBINTL
  596. USE_NLS
  597. LEXLIB
  598. LEX_OUTPUT_ROOT
  599. LEX
  600. YFLAGS
  601. YACC
  602. NO_WERROR
  603. WARN_CFLAGS
  604. OTOOL64
  605. OTOOL
  606. LIPO
  607. NMEDIT
  608. DSYMUTIL
  609. RANLIB
  610. AR
  611. OBJDUMP
  612. LN_S
  613. NM
  614. ac_ct_DUMPBIN
  615. DUMPBIN
  616. LD
  617. FGREP
  618. SED
  619. LIBTOOL
  620. EGREP
  621. GREP
  622. CPP
  623. am__fastdepCC_FALSE
  624. am__fastdepCC_TRUE
  625. CCDEPMODE
  626. AMDEPBACKSLASH
  627. AMDEP_FALSE
  628. AMDEP_TRUE
  629. am__quote
  630. am__include
  631. DEPDIR
  632. am__untar
  633. am__tar
  634. AMTAR
  635. am__leading_dot
  636. SET_MAKE
  637. AWK
  638. mkdir_p
  639. MKDIR_P
  640. INSTALL_STRIP_PROGRAM
  641. STRIP
  642. install_sh
  643. MAKEINFO
  644. AUTOHEADER
  645. AUTOMAKE
  646. AUTOCONF
  647. ACLOCAL
  648. VERSION
  649. PACKAGE
  650. CYGPATH_W
  651. am__isrc
  652. INSTALL_DATA
  653. INSTALL_SCRIPT
  654. INSTALL_PROGRAM
  655. OBJEXT
  656. EXEEXT
  657. ac_ct_CC
  658. CPPFLAGS
  659. LDFLAGS
  660. CFLAGS
  661. CC
  662. target_os
  663. target_vendor
  664. target_cpu
  665. target
  666. host_os
  667. host_vendor
  668. host_cpu
  669. host
  670. build_os
  671. build_vendor
  672. build_cpu
  673. build
  674. target_alias
  675. host_alias
  676. build_alias
  677. LIBS
  678. ECHO_T
  679. ECHO_N
  680. ECHO_C
  681. DEFS
  682. mandir
  683. localedir
  684. libdir
  685. psdir
  686. pdfdir
  687. dvidir
  688. htmldir
  689. infodir
  690. docdir
  691. oldincludedir
  692. includedir
  693. localstatedir
  694. sharedstatedir
  695. sysconfdir
  696. datadir
  697. datarootdir
  698. libexecdir
  699. sbindir
  700. bindir
  701. program_transform_name
  702. prefix
  703. exec_prefix
  704. PACKAGE_URL
  705. PACKAGE_BUGREPORT
  706. PACKAGE_STRING
  707. PACKAGE_VERSION
  708. PACKAGE_TARNAME
  709. PACKAGE_NAME
  710. PATH_SEPARATOR
  711. SHELL'
  712. ac_subst_files=''
  713. ac_user_opts='
  714. enable_option_checking
  715. enable_dependency_tracking
  716. enable_shared
  717. enable_static
  718. with_pic
  719. enable_fast_install
  720. with_gnu_ld
  721. enable_libtool_lock
  722. enable_plugins
  723. enable_largefile
  724. enable_targets
  725. enable_deterministic_archives
  726. enable_default_strings_all
  727. enable_werror
  728. enable_build_warnings
  729. enable_nls
  730. enable_maintainer_mode
  731. with_system_zlib
  732. enable_rpath
  733. with_libiconv_prefix
  734. '
  735. ac_precious_vars='build_alias
  736. host_alias
  737. target_alias
  738. CC
  739. CFLAGS
  740. LDFLAGS
  741. LIBS
  742. CPPFLAGS
  743. CPP
  744. YACC
  745. YFLAGS'
  746. # Initialize some variables set by options.
  747. ac_init_help=
  748. ac_init_version=false
  749. ac_unrecognized_opts=
  750. ac_unrecognized_sep=
  751. # The variables have the same names as the options, with
  752. # dashes changed to underlines.
  753. cache_file=/dev/null
  754. exec_prefix=NONE
  755. no_create=
  756. no_recursion=
  757. prefix=NONE
  758. program_prefix=NONE
  759. program_suffix=NONE
  760. program_transform_name=s,x,x,
  761. silent=
  762. site=
  763. srcdir=
  764. verbose=
  765. x_includes=NONE
  766. x_libraries=NONE
  767. # Installation directory options.
  768. # These are left unexpanded so users can "make install exec_prefix=/foo"
  769. # and all the variables that are supposed to be based on exec_prefix
  770. # by default will actually change.
  771. # Use braces instead of parens because sh, perl, etc. also accept them.
  772. # (The list follows the same order as the GNU Coding Standards.)
  773. bindir='${exec_prefix}/bin'
  774. sbindir='${exec_prefix}/sbin'
  775. libexecdir='${exec_prefix}/libexec'
  776. datarootdir='${prefix}/share'
  777. datadir='${datarootdir}'
  778. sysconfdir='${prefix}/etc'
  779. sharedstatedir='${prefix}/com'
  780. localstatedir='${prefix}/var'
  781. includedir='${prefix}/include'
  782. oldincludedir='/usr/include'
  783. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  784. infodir='${datarootdir}/info'
  785. htmldir='${docdir}'
  786. dvidir='${docdir}'
  787. pdfdir='${docdir}'
  788. psdir='${docdir}'
  789. libdir='${exec_prefix}/lib'
  790. localedir='${datarootdir}/locale'
  791. mandir='${datarootdir}/man'
  792. ac_prev=
  793. ac_dashdash=
  794. for ac_option
  795. do
  796. # If the previous option needs an argument, assign it.
  797. if test -n "$ac_prev"; then
  798. eval $ac_prev=\$ac_option
  799. ac_prev=
  800. continue
  801. fi
  802. case $ac_option in
  803. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  804. *) ac_optarg=yes ;;
  805. esac
  806. # Accept the important Cygnus configure options, so we can diagnose typos.
  807. case $ac_dashdash$ac_option in
  808. --)
  809. ac_dashdash=yes ;;
  810. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  811. ac_prev=bindir ;;
  812. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  813. bindir=$ac_optarg ;;
  814. -build | --build | --buil | --bui | --bu)
  815. ac_prev=build_alias ;;
  816. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  817. build_alias=$ac_optarg ;;
  818. -cache-file | --cache-file | --cache-fil | --cache-fi \
  819. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  820. ac_prev=cache_file ;;
  821. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  822. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  823. cache_file=$ac_optarg ;;
  824. --config-cache | -C)
  825. cache_file=config.cache ;;
  826. -datadir | --datadir | --datadi | --datad)
  827. ac_prev=datadir ;;
  828. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  829. datadir=$ac_optarg ;;
  830. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  831. | --dataroo | --dataro | --datar)
  832. ac_prev=datarootdir ;;
  833. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  834. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  835. datarootdir=$ac_optarg ;;
  836. -disable-* | --disable-*)
  837. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  838. # Reject names that are not valid shell variable names.
  839. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  840. as_fn_error "invalid feature name: $ac_useropt"
  841. ac_useropt_orig=$ac_useropt
  842. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  843. case $ac_user_opts in
  844. *"
  845. "enable_$ac_useropt"
  846. "*) ;;
  847. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  848. ac_unrecognized_sep=', ';;
  849. esac
  850. eval enable_$ac_useropt=no ;;
  851. -docdir | --docdir | --docdi | --doc | --do)
  852. ac_prev=docdir ;;
  853. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  854. docdir=$ac_optarg ;;
  855. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  856. ac_prev=dvidir ;;
  857. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  858. dvidir=$ac_optarg ;;
  859. -enable-* | --enable-*)
  860. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  861. # Reject names that are not valid shell variable names.
  862. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  863. as_fn_error "invalid feature name: $ac_useropt"
  864. ac_useropt_orig=$ac_useropt
  865. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  866. case $ac_user_opts in
  867. *"
  868. "enable_$ac_useropt"
  869. "*) ;;
  870. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  871. ac_unrecognized_sep=', ';;
  872. esac
  873. eval enable_$ac_useropt=\$ac_optarg ;;
  874. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  875. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  876. | --exec | --exe | --ex)
  877. ac_prev=exec_prefix ;;
  878. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  879. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  880. | --exec=* | --exe=* | --ex=*)
  881. exec_prefix=$ac_optarg ;;
  882. -gas | --gas | --ga | --g)
  883. # Obsolete; use --with-gas.
  884. with_gas=yes ;;
  885. -help | --help | --hel | --he | -h)
  886. ac_init_help=long ;;
  887. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  888. ac_init_help=recursive ;;
  889. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  890. ac_init_help=short ;;
  891. -host | --host | --hos | --ho)
  892. ac_prev=host_alias ;;
  893. -host=* | --host=* | --hos=* | --ho=*)
  894. host_alias=$ac_optarg ;;
  895. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  896. ac_prev=htmldir ;;
  897. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  898. | --ht=*)
  899. htmldir=$ac_optarg ;;
  900. -includedir | --includedir | --includedi | --included | --include \
  901. | --includ | --inclu | --incl | --inc)
  902. ac_prev=includedir ;;
  903. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  904. | --includ=* | --inclu=* | --incl=* | --inc=*)
  905. includedir=$ac_optarg ;;
  906. -infodir | --infodir | --infodi | --infod | --info | --inf)
  907. ac_prev=infodir ;;
  908. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  909. infodir=$ac_optarg ;;
  910. -libdir | --libdir | --libdi | --libd)
  911. ac_prev=libdir ;;
  912. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  913. libdir=$ac_optarg ;;
  914. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  915. | --libexe | --libex | --libe)
  916. ac_prev=libexecdir ;;
  917. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  918. | --libexe=* | --libex=* | --libe=*)
  919. libexecdir=$ac_optarg ;;
  920. -localedir | --localedir | --localedi | --localed | --locale)
  921. ac_prev=localedir ;;
  922. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  923. localedir=$ac_optarg ;;
  924. -localstatedir | --localstatedir | --localstatedi | --localstated \
  925. | --localstate | --localstat | --localsta | --localst | --locals)
  926. ac_prev=localstatedir ;;
  927. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  928. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  929. localstatedir=$ac_optarg ;;
  930. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  931. ac_prev=mandir ;;
  932. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  933. mandir=$ac_optarg ;;
  934. -nfp | --nfp | --nf)
  935. # Obsolete; use --without-fp.
  936. with_fp=no ;;
  937. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  938. | --no-cr | --no-c | -n)
  939. no_create=yes ;;
  940. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  941. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  942. no_recursion=yes ;;
  943. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  944. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  945. | --oldin | --oldi | --old | --ol | --o)
  946. ac_prev=oldincludedir ;;
  947. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  948. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  949. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  950. oldincludedir=$ac_optarg ;;
  951. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  952. ac_prev=prefix ;;
  953. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  954. prefix=$ac_optarg ;;
  955. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  956. | --program-pre | --program-pr | --program-p)
  957. ac_prev=program_prefix ;;
  958. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  959. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  960. program_prefix=$ac_optarg ;;
  961. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  962. | --program-suf | --program-su | --program-s)
  963. ac_prev=program_suffix ;;
  964. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  965. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  966. program_suffix=$ac_optarg ;;
  967. -program-transform-name | --program-transform-name \
  968. | --program-transform-nam | --program-transform-na \
  969. | --program-transform-n | --program-transform- \
  970. | --program-transform | --program-transfor \
  971. | --program-transfo | --program-transf \
  972. | --program-trans | --program-tran \
  973. | --progr-tra | --program-tr | --program-t)
  974. ac_prev=program_transform_name ;;
  975. -program-transform-name=* | --program-transform-name=* \
  976. | --program-transform-nam=* | --program-transform-na=* \
  977. | --program-transform-n=* | --program-transform-=* \
  978. | --program-transform=* | --program-transfor=* \
  979. | --program-transfo=* | --program-transf=* \
  980. | --program-trans=* | --program-tran=* \
  981. | --progr-tra=* | --program-tr=* | --program-t=*)
  982. program_transform_name=$ac_optarg ;;
  983. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  984. ac_prev=pdfdir ;;
  985. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  986. pdfdir=$ac_optarg ;;
  987. -psdir | --psdir | --psdi | --psd | --ps)
  988. ac_prev=psdir ;;
  989. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  990. psdir=$ac_optarg ;;
  991. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  992. | -silent | --silent | --silen | --sile | --sil)
  993. silent=yes ;;
  994. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  995. ac_prev=sbindir ;;
  996. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  997. | --sbi=* | --sb=*)
  998. sbindir=$ac_optarg ;;
  999. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1000. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1001. | --sharedst | --shareds | --shared | --share | --shar \
  1002. | --sha | --sh)
  1003. ac_prev=sharedstatedir ;;
  1004. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1005. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1006. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1007. | --sha=* | --sh=*)
  1008. sharedstatedir=$ac_optarg ;;
  1009. -site | --site | --sit)
  1010. ac_prev=site ;;
  1011. -site=* | --site=* | --sit=*)
  1012. site=$ac_optarg ;;
  1013. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1014. ac_prev=srcdir ;;
  1015. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1016. srcdir=$ac_optarg ;;
  1017. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1018. | --syscon | --sysco | --sysc | --sys | --sy)
  1019. ac_prev=sysconfdir ;;
  1020. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1021. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1022. sysconfdir=$ac_optarg ;;
  1023. -target | --target | --targe | --targ | --tar | --ta | --t)
  1024. ac_prev=target_alias ;;
  1025. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1026. target_alias=$ac_optarg ;;
  1027. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1028. verbose=yes ;;
  1029. -version | --version | --versio | --versi | --vers | -V)
  1030. ac_init_version=: ;;
  1031. -with-* | --with-*)
  1032. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1033. # Reject names that are not valid shell variable names.
  1034. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1035. as_fn_error "invalid package name: $ac_useropt"
  1036. ac_useropt_orig=$ac_useropt
  1037. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1038. case $ac_user_opts in
  1039. *"
  1040. "with_$ac_useropt"
  1041. "*) ;;
  1042. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1043. ac_unrecognized_sep=', ';;
  1044. esac
  1045. eval with_$ac_useropt=\$ac_optarg ;;
  1046. -without-* | --without-*)
  1047. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1048. # Reject names that are not valid shell variable names.
  1049. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1050. as_fn_error "invalid package name: $ac_useropt"
  1051. ac_useropt_orig=$ac_useropt
  1052. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1053. case $ac_user_opts in
  1054. *"
  1055. "with_$ac_useropt"
  1056. "*) ;;
  1057. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1058. ac_unrecognized_sep=', ';;
  1059. esac
  1060. eval with_$ac_useropt=no ;;
  1061. --x)
  1062. # Obsolete; use --with-x.
  1063. with_x=yes ;;
  1064. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1065. | --x-incl | --x-inc | --x-in | --x-i)
  1066. ac_prev=x_includes ;;
  1067. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1068. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1069. x_includes=$ac_optarg ;;
  1070. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1071. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1072. ac_prev=x_libraries ;;
  1073. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1074. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1075. x_libraries=$ac_optarg ;;
  1076. -*) as_fn_error "unrecognized option: \`$ac_option'
  1077. Try \`$0 --help' for more information."
  1078. ;;
  1079. *=*)
  1080. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1081. # Reject names that are not valid shell variable names.
  1082. case $ac_envvar in #(
  1083. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1084. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1085. esac
  1086. eval $ac_envvar=\$ac_optarg
  1087. export $ac_envvar ;;
  1088. *)
  1089. # FIXME: should be removed in autoconf 3.0.
  1090. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1091. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1092. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1093. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1094. ;;
  1095. esac
  1096. done
  1097. if test -n "$ac_prev"; then
  1098. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1099. as_fn_error "missing argument to $ac_option"
  1100. fi
  1101. if test -n "$ac_unrecognized_opts"; then
  1102. case $enable_option_checking in
  1103. no) ;;
  1104. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1105. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1106. esac
  1107. fi
  1108. # Check all directory arguments for consistency.
  1109. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1110. datadir sysconfdir sharedstatedir localstatedir includedir \
  1111. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1112. libdir localedir mandir
  1113. do
  1114. eval ac_val=\$$ac_var
  1115. # Remove trailing slashes.
  1116. case $ac_val in
  1117. */ )
  1118. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1119. eval $ac_var=\$ac_val;;
  1120. esac
  1121. # Be sure to have absolute directory names.
  1122. case $ac_val in
  1123. [\\/$]* | ?:[\\/]* ) continue;;
  1124. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1125. esac
  1126. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1127. done
  1128. # There might be people who depend on the old broken behavior: `$host'
  1129. # used to hold the argument of --host etc.
  1130. # FIXME: To remove some day.
  1131. build=$build_alias
  1132. host=$host_alias
  1133. target=$target_alias
  1134. # FIXME: To remove some day.
  1135. if test "x$host_alias" != x; then
  1136. if test "x$build_alias" = x; then
  1137. cross_compiling=maybe
  1138. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1139. If a cross compiler is detected then cross compile mode will be used." >&2
  1140. elif test "x$build_alias" != "x$host_alias"; then
  1141. cross_compiling=yes
  1142. fi
  1143. fi
  1144. ac_tool_prefix=
  1145. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1146. test "$silent" = yes && exec 6>/dev/null
  1147. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1148. ac_ls_di=`ls -di .` &&
  1149. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1150. as_fn_error "working directory cannot be determined"
  1151. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1152. as_fn_error "pwd does not report name of working directory"
  1153. # Find the source files, if location was not specified.
  1154. if test -z "$srcdir"; then
  1155. ac_srcdir_defaulted=yes
  1156. # Try the directory containing this script, then the parent directory.
  1157. ac_confdir=`$as_dirname -- "$as_myself" ||
  1158. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1159. X"$as_myself" : 'X\(//\)[^/]' \| \
  1160. X"$as_myself" : 'X\(//\)$' \| \
  1161. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1162. $as_echo X"$as_myself" |
  1163. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1164. s//\1/
  1165. q
  1166. }
  1167. /^X\(\/\/\)[^/].*/{
  1168. s//\1/
  1169. q
  1170. }
  1171. /^X\(\/\/\)$/{
  1172. s//\1/
  1173. q
  1174. }
  1175. /^X\(\/\).*/{
  1176. s//\1/
  1177. q
  1178. }
  1179. s/.*/./; q'`
  1180. srcdir=$ac_confdir
  1181. if test ! -r "$srcdir/$ac_unique_file"; then
  1182. srcdir=..
  1183. fi
  1184. else
  1185. ac_srcdir_defaulted=no
  1186. fi
  1187. if test ! -r "$srcdir/$ac_unique_file"; then
  1188. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1189. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1190. fi
  1191. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1192. ac_abs_confdir=`(
  1193. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1194. pwd)`
  1195. # When building in place, set srcdir=.
  1196. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1197. srcdir=.
  1198. fi
  1199. # Remove unnecessary trailing slashes from srcdir.
  1200. # Double slashes in file names in object file debugging info
  1201. # mess up M-x gdb in Emacs.
  1202. case $srcdir in
  1203. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1204. esac
  1205. for ac_var in $ac_precious_vars; do
  1206. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1207. eval ac_env_${ac_var}_value=\$${ac_var}
  1208. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1209. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1210. done
  1211. #
  1212. # Report the --help message.
  1213. #
  1214. if test "$ac_init_help" = "long"; then
  1215. # Omit some internal or obsolete options to make the list less imposing.
  1216. # This message is too long to be a string in the A/UX 3.1 sh.
  1217. cat <<_ACEOF
  1218. \`configure' configures binutils 2.25.51 to adapt to many kinds of systems.
  1219. Usage: $0 [OPTION]... [VAR=VALUE]...
  1220. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1221. VAR=VALUE. See below for descriptions of some of the useful variables.
  1222. Defaults for the options are specified in brackets.
  1223. Configuration:
  1224. -h, --help display this help and exit
  1225. --help=short display options specific to this package
  1226. --help=recursive display the short help of all the included packages
  1227. -V, --version display version information and exit
  1228. -q, --quiet, --silent do not print \`checking...' messages
  1229. --cache-file=FILE cache test results in FILE [disabled]
  1230. -C, --config-cache alias for \`--cache-file=config.cache'
  1231. -n, --no-create do not create output files
  1232. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1233. Installation directories:
  1234. --prefix=PREFIX install architecture-independent files in PREFIX
  1235. [$ac_default_prefix]
  1236. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1237. [PREFIX]
  1238. By default, \`make install' will install all the files in
  1239. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1240. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1241. for instance \`--prefix=\$HOME'.
  1242. For better control, use the options below.
  1243. Fine tuning of the installation directories:
  1244. --bindir=DIR user executables [EPREFIX/bin]
  1245. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1246. --libexecdir=DIR program executables [EPREFIX/libexec]
  1247. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1248. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1249. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1250. --libdir=DIR object code libraries [EPREFIX/lib]
  1251. --includedir=DIR C header files [PREFIX/include]
  1252. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1253. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1254. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1255. --infodir=DIR info documentation [DATAROOTDIR/info]
  1256. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1257. --mandir=DIR man documentation [DATAROOTDIR/man]
  1258. --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
  1259. --htmldir=DIR html documentation [DOCDIR]
  1260. --dvidir=DIR dvi documentation [DOCDIR]
  1261. --pdfdir=DIR pdf documentation [DOCDIR]
  1262. --psdir=DIR ps documentation [DOCDIR]
  1263. _ACEOF
  1264. cat <<\_ACEOF
  1265. Program names:
  1266. --program-prefix=PREFIX prepend PREFIX to installed program names
  1267. --program-suffix=SUFFIX append SUFFIX to installed program names
  1268. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1269. System types:
  1270. --build=BUILD configure for building on BUILD [guessed]
  1271. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1272. --target=TARGET configure for building compilers for TARGET [HOST]
  1273. _ACEOF
  1274. fi
  1275. if test -n "$ac_init_help"; then
  1276. case $ac_init_help in
  1277. short | recursive ) echo "Configuration of binutils 2.25.51:";;
  1278. esac
  1279. cat <<\_ACEOF
  1280. Optional Features:
  1281. --disable-option-checking ignore unrecognized --enable/--with options
  1282. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1283. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1284. --disable-dependency-tracking speeds up one-time build
  1285. --enable-dependency-tracking do not reject slow dependency extractors
  1286. --enable-shared[=PKGS] build shared libraries [default=yes]
  1287. --enable-static[=PKGS] build static libraries [default=yes]
  1288. --enable-fast-install[=PKGS]
  1289. optimize for fast installation [default=yes]
  1290. --disable-libtool-lock avoid locking (might break parallel builds)
  1291. --enable-plugins Enable support for plugins
  1292. --disable-largefile omit support for large files
  1293. --enable-targets alternative target configurations
  1294. --enable-deterministic-archives
  1295. ar and ranlib default to -D behavior
  1296. --disable-default-strings-all
  1297. strings defaults to --data behavior
  1298. --enable-werror treat compile warnings as errors
  1299. --enable-build-warnings enable build-time compiler warnings
  1300. --disable-nls do not use Native Language Support
  1301. --enable-maintainer-mode enable make rules and dependencies not useful
  1302. (and sometimes confusing) to the casual installer
  1303. --disable-rpath do not hardcode runtime library paths
  1304. Optional Packages:
  1305. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1306. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1307. --with-pic try to use only PIC/non-PIC objects [default=use
  1308. both]
  1309. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1310. --with-system-zlib use installed libz
  1311. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1312. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1313. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1314. Some influential environment variables:
  1315. CC C compiler command
  1316. CFLAGS C compiler flags
  1317. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1318. nonstandard directory <lib dir>
  1319. LIBS libraries to pass to the linker, e.g. -l<library>
  1320. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1321. you have headers in a nonstandard directory <include dir>
  1322. CPP C preprocessor
  1323. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1324. the first program found out of: `bison -y', `byacc', `yacc'.
  1325. YFLAGS The list of arguments that will be passed by default to $YACC.
  1326. This script will default YFLAGS to the empty string to avoid a
  1327. default value of `-d' given by some make applications.
  1328. Use these variables to override the choices made by `configure' or to help
  1329. it to find libraries and programs with nonstandard names/locations.
  1330. Report bugs to the package provider.
  1331. _ACEOF
  1332. ac_status=$?
  1333. fi
  1334. if test "$ac_init_help" = "recursive"; then
  1335. # If there are subdirs, report their specific --help.
  1336. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1337. test -d "$ac_dir" ||
  1338. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1339. continue
  1340. ac_builddir=.
  1341. case "$ac_dir" in
  1342. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1343. *)
  1344. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1345. # A ".." for each directory in $ac_dir_suffix.
  1346. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1347. case $ac_top_builddir_sub in
  1348. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1349. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1350. esac ;;
  1351. esac
  1352. ac_abs_top_builddir=$ac_pwd
  1353. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1354. # for backward compatibility:
  1355. ac_top_builddir=$ac_top_build_prefix
  1356. case $srcdir in
  1357. .) # We are building in place.
  1358. ac_srcdir=.
  1359. ac_top_srcdir=$ac_top_builddir_sub
  1360. ac_abs_top_srcdir=$ac_pwd ;;
  1361. [\\/]* | ?:[\\/]* ) # Absolute name.
  1362. ac_srcdir=$srcdir$ac_dir_suffix;
  1363. ac_top_srcdir=$srcdir
  1364. ac_abs_top_srcdir=$srcdir ;;
  1365. *) # Relative name.
  1366. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1367. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1368. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1369. esac
  1370. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1371. cd "$ac_dir" || { ac_status=$?; continue; }
  1372. # Check for guested configure.
  1373. if test -f "$ac_srcdir/configure.gnu"; then
  1374. echo &&
  1375. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1376. elif test -f "$ac_srcdir/configure"; then
  1377. echo &&
  1378. $SHELL "$ac_srcdir/configure" --help=recursive
  1379. else
  1380. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1381. fi || ac_status=$?
  1382. cd "$ac_pwd" || { ac_status=$?; break; }
  1383. done
  1384. fi
  1385. test -n "$ac_init_help" && exit $ac_status
  1386. if $ac_init_version; then
  1387. cat <<\_ACEOF
  1388. binutils configure 2.25.51
  1389. generated by GNU Autoconf 2.64
  1390. Copyright (C) 2009 Free Software Foundation, Inc.
  1391. This configure script is free software; the Free Software Foundation
  1392. gives unlimited permission to copy, distribute and modify it.
  1393. _ACEOF
  1394. exit
  1395. fi
  1396. ## ------------------------ ##
  1397. ## Autoconf initialization. ##
  1398. ## ------------------------ ##
  1399. # ac_fn_c_try_compile LINENO
  1400. # --------------------------
  1401. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1402. ac_fn_c_try_compile ()
  1403. {
  1404. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1405. rm -f conftest.$ac_objext
  1406. if { { ac_try="$ac_compile"
  1407. case "(($ac_try" in
  1408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1409. *) ac_try_echo=$ac_try;;
  1410. esac
  1411. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1412. $as_echo "$ac_try_echo"; } >&5
  1413. (eval "$ac_compile") 2>conftest.err
  1414. ac_status=$?
  1415. if test -s conftest.err; then
  1416. grep -v '^ *+' conftest.err >conftest.er1
  1417. cat conftest.er1 >&5
  1418. mv -f conftest.er1 conftest.err
  1419. fi
  1420. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1421. test $ac_status = 0; } && {
  1422. test -z "$ac_c_werror_flag" ||
  1423. test ! -s conftest.err
  1424. } && test -s conftest.$ac_objext; then :
  1425. ac_retval=0
  1426. else
  1427. $as_echo "$as_me: failed program was:" >&5
  1428. sed 's/^/| /' conftest.$ac_ext >&5
  1429. ac_retval=1
  1430. fi
  1431. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1432. return $ac_retval
  1433. } # ac_fn_c_try_compile
  1434. # ac_fn_c_try_link LINENO
  1435. # -----------------------
  1436. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1437. ac_fn_c_try_link ()
  1438. {
  1439. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1440. rm -f conftest.$ac_objext conftest$ac_exeext
  1441. if { { ac_try="$ac_link"
  1442. case "(($ac_try" in
  1443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1444. *) ac_try_echo=$ac_try;;
  1445. esac
  1446. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1447. $as_echo "$ac_try_echo"; } >&5
  1448. (eval "$ac_link") 2>conftest.err
  1449. ac_status=$?
  1450. if test -s conftest.err; then
  1451. grep -v '^ *+' conftest.err >conftest.er1
  1452. cat conftest.er1 >&5
  1453. mv -f conftest.er1 conftest.err
  1454. fi
  1455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1456. test $ac_status = 0; } && {
  1457. test -z "$ac_c_werror_flag" ||
  1458. test ! -s conftest.err
  1459. } && test -s conftest$ac_exeext && {
  1460. test "$cross_compiling" = yes ||
  1461. $as_test_x conftest$ac_exeext
  1462. }; then :
  1463. ac_retval=0
  1464. else
  1465. $as_echo "$as_me: failed program was:" >&5
  1466. sed 's/^/| /' conftest.$ac_ext >&5
  1467. ac_retval=1
  1468. fi
  1469. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1470. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1471. # interfere with the next link command; also delete a directory that is
  1472. # left behind by Apple's compiler. We do this before executing the actions.
  1473. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1474. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1475. return $ac_retval
  1476. } # ac_fn_c_try_link
  1477. # ac_fn_c_try_cpp LINENO
  1478. # ----------------------
  1479. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1480. ac_fn_c_try_cpp ()
  1481. {
  1482. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1483. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1484. case "(($ac_try" in
  1485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1486. *) ac_try_echo=$ac_try;;
  1487. esac
  1488. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1489. $as_echo "$ac_try_echo"; } >&5
  1490. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1491. ac_status=$?
  1492. if test -s conftest.err; then
  1493. grep -v '^ *+' conftest.err >conftest.er1
  1494. cat conftest.er1 >&5
  1495. mv -f conftest.er1 conftest.err
  1496. fi
  1497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1498. test $ac_status = 0; } >/dev/null && {
  1499. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1500. test ! -s conftest.err
  1501. }; then :
  1502. ac_retval=0
  1503. else
  1504. $as_echo "$as_me: failed program was:" >&5
  1505. sed 's/^/| /' conftest.$ac_ext >&5
  1506. ac_retval=1
  1507. fi
  1508. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1509. return $ac_retval
  1510. } # ac_fn_c_try_cpp
  1511. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1512. # -------------------------------------------------------
  1513. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1514. # the include files in INCLUDES and setting the cache variable VAR
  1515. # accordingly.
  1516. ac_fn_c_check_header_mongrel ()
  1517. {
  1518. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1519. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1521. $as_echo_n "checking for $2... " >&6; }
  1522. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1523. $as_echo_n "(cached) " >&6
  1524. fi
  1525. eval ac_res=\$$3
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1527. $as_echo "$ac_res" >&6; }
  1528. else
  1529. # Is the header compilable?
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1531. $as_echo_n "checking $2 usability... " >&6; }
  1532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1533. /* end confdefs.h. */
  1534. $4
  1535. #include <$2>
  1536. _ACEOF
  1537. if ac_fn_c_try_compile "$LINENO"; then :
  1538. ac_header_compiler=yes
  1539. else
  1540. ac_header_compiler=no
  1541. fi
  1542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1544. $as_echo "$ac_header_compiler" >&6; }
  1545. # Is the header present?
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1547. $as_echo_n "checking $2 presence... " >&6; }
  1548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1549. /* end confdefs.h. */
  1550. #include <$2>
  1551. _ACEOF
  1552. if ac_fn_c_try_cpp "$LINENO"; then :
  1553. ac_header_preproc=yes
  1554. else
  1555. ac_header_preproc=no
  1556. fi
  1557. rm -f conftest.err conftest.$ac_ext
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1559. $as_echo "$ac_header_preproc" >&6; }
  1560. # So? What about this header?
  1561. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1562. yes:no: )
  1563. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1564. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1565. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1566. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1567. ;;
  1568. no:yes:* )
  1569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1570. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1572. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1573. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1574. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1575. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1576. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1577. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1578. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1579. ;;
  1580. esac
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1582. $as_echo_n "checking for $2... " >&6; }
  1583. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1584. $as_echo_n "(cached) " >&6
  1585. else
  1586. eval "$3=\$ac_header_compiler"
  1587. fi
  1588. eval ac_res=\$$3
  1589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1590. $as_echo "$ac_res" >&6; }
  1591. fi
  1592. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1593. } # ac_fn_c_check_header_mongrel
  1594. # ac_fn_c_try_run LINENO
  1595. # ----------------------
  1596. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1597. # that executables *can* be run.
  1598. ac_fn_c_try_run ()
  1599. {
  1600. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1601. if { { ac_try="$ac_link"
  1602. case "(($ac_try" in
  1603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1604. *) ac_try_echo=$ac_try;;
  1605. esac
  1606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1607. $as_echo "$ac_try_echo"; } >&5
  1608. (eval "$ac_link") 2>&5
  1609. ac_status=$?
  1610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1611. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1612. { { case "(($ac_try" in
  1613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1614. *) ac_try_echo=$ac_try;;
  1615. esac
  1616. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1617. $as_echo "$ac_try_echo"; } >&5
  1618. (eval "$ac_try") 2>&5
  1619. ac_status=$?
  1620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1621. test $ac_status = 0; }; }; then :
  1622. ac_retval=0
  1623. else
  1624. $as_echo "$as_me: program exited with status $ac_status" >&5
  1625. $as_echo "$as_me: failed program was:" >&5
  1626. sed 's/^/| /' conftest.$ac_ext >&5
  1627. ac_retval=$ac_status
  1628. fi
  1629. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1630. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1631. return $ac_retval
  1632. } # ac_fn_c_try_run
  1633. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1634. # -------------------------------------------------------
  1635. # Tests whether HEADER exists and can be compiled using the include files in
  1636. # INCLUDES, setting the cache variable VAR accordingly.
  1637. ac_fn_c_check_header_compile ()
  1638. {
  1639. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1641. $as_echo_n "checking for $2... " >&6; }
  1642. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1643. $as_echo_n "(cached) " >&6
  1644. else
  1645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1646. /* end confdefs.h. */
  1647. $4
  1648. #include <$2>
  1649. _ACEOF
  1650. if ac_fn_c_try_compile "$LINENO"; then :
  1651. eval "$3=yes"
  1652. else
  1653. eval "$3=no"
  1654. fi
  1655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1656. fi
  1657. eval ac_res=\$$3
  1658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1659. $as_echo "$ac_res" >&6; }
  1660. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1661. } # ac_fn_c_check_header_compile
  1662. # ac_fn_c_check_func LINENO FUNC VAR
  1663. # ----------------------------------
  1664. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1665. ac_fn_c_check_func ()
  1666. {
  1667. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1669. $as_echo_n "checking for $2... " >&6; }
  1670. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1671. $as_echo_n "(cached) " >&6
  1672. else
  1673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1674. /* end confdefs.h. */
  1675. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1676. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1677. #define $2 innocuous_$2
  1678. /* System header to define __stub macros and hopefully few prototypes,
  1679. which can conflict with char $2 (); below.
  1680. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1681. <limits.h> exists even on freestanding compilers. */
  1682. #ifdef __STDC__
  1683. # include <limits.h>
  1684. #else
  1685. # include <assert.h>
  1686. #endif
  1687. #undef $2
  1688. /* Override any GCC internal prototype to avoid an error.
  1689. Use char because int might match the return type of a GCC
  1690. builtin and then its argument prototype would still apply. */
  1691. #ifdef __cplusplus
  1692. extern "C"
  1693. #endif
  1694. char $2 ();
  1695. /* The GNU C library defines this for functions which it implements
  1696. to always fail with ENOSYS. Some functions are actually named
  1697. something starting with __ and the normal name is an alias. */
  1698. #if defined __stub_$2 || defined __stub___$2
  1699. choke me
  1700. #endif
  1701. int
  1702. main ()
  1703. {
  1704. return $2 ();
  1705. ;
  1706. return 0;
  1707. }
  1708. _ACEOF
  1709. if ac_fn_c_try_link "$LINENO"; then :
  1710. eval "$3=yes"
  1711. else
  1712. eval "$3=no"
  1713. fi
  1714. rm -f core conftest.err conftest.$ac_objext \
  1715. conftest$ac_exeext conftest.$ac_ext
  1716. fi
  1717. eval ac_res=\$$3
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1719. $as_echo "$ac_res" >&6; }
  1720. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1721. } # ac_fn_c_check_func
  1722. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1723. # --------------------------------------------
  1724. # Tries to find the compile-time value of EXPR in a program that includes
  1725. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1726. # computed
  1727. ac_fn_c_compute_int ()
  1728. {
  1729. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1730. if test "$cross_compiling" = yes; then
  1731. # Depending upon the size, compute the lo and hi bounds.
  1732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1733. /* end confdefs.h. */
  1734. $4
  1735. int
  1736. main ()
  1737. {
  1738. static int test_array [1 - 2 * !(($2) >= 0)];
  1739. test_array [0] = 0
  1740. ;
  1741. return 0;
  1742. }
  1743. _ACEOF
  1744. if ac_fn_c_try_compile "$LINENO"; then :
  1745. ac_lo=0 ac_mid=0
  1746. while :; do
  1747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1748. /* end confdefs.h. */
  1749. $4
  1750. int
  1751. main ()
  1752. {
  1753. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1754. test_array [0] = 0
  1755. ;
  1756. return 0;
  1757. }
  1758. _ACEOF
  1759. if ac_fn_c_try_compile "$LINENO"; then :
  1760. ac_hi=$ac_mid; break
  1761. else
  1762. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1763. if test $ac_lo -le $ac_mid; then
  1764. ac_lo= ac_hi=
  1765. break
  1766. fi
  1767. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1768. fi
  1769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1770. done
  1771. else
  1772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1773. /* end confdefs.h. */
  1774. $4
  1775. int
  1776. main ()
  1777. {
  1778. static int test_array [1 - 2 * !(($2) < 0)];
  1779. test_array [0] = 0
  1780. ;
  1781. return 0;
  1782. }
  1783. _ACEOF
  1784. if ac_fn_c_try_compile "$LINENO"; then :
  1785. ac_hi=-1 ac_mid=-1
  1786. while :; do
  1787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1788. /* end confdefs.h. */
  1789. $4
  1790. int
  1791. main ()
  1792. {
  1793. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1794. test_array [0] = 0
  1795. ;
  1796. return 0;
  1797. }
  1798. _ACEOF
  1799. if ac_fn_c_try_compile "$LINENO"; then :
  1800. ac_lo=$ac_mid; break
  1801. else
  1802. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1803. if test $ac_mid -le $ac_hi; then
  1804. ac_lo= ac_hi=
  1805. break
  1806. fi
  1807. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1808. fi
  1809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1810. done
  1811. else
  1812. ac_lo= ac_hi=
  1813. fi
  1814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1815. fi
  1816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1817. # Binary search between lo and hi bounds.
  1818. while test "x$ac_lo" != "x$ac_hi"; do
  1819. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1821. /* end confdefs.h. */
  1822. $4
  1823. int
  1824. main ()
  1825. {
  1826. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1827. test_array [0] = 0
  1828. ;
  1829. return 0;
  1830. }
  1831. _ACEOF
  1832. if ac_fn_c_try_compile "$LINENO"; then :
  1833. ac_hi=$ac_mid
  1834. else
  1835. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1836. fi
  1837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1838. done
  1839. case $ac_lo in #((
  1840. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1841. '') ac_retval=1 ;;
  1842. esac
  1843. else
  1844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1845. /* end confdefs.h. */
  1846. $4
  1847. static long int longval () { return $2; }
  1848. static unsigned long int ulongval () { return $2; }
  1849. #include <stdio.h>
  1850. #include <stdlib.h>
  1851. int
  1852. main ()
  1853. {
  1854. FILE *f = fopen ("conftest.val", "w");
  1855. if (! f)
  1856. return 1;
  1857. if (($2) < 0)
  1858. {
  1859. long int i = longval ();
  1860. if (i != ($2))
  1861. return 1;
  1862. fprintf (f, "%ld", i);
  1863. }
  1864. else
  1865. {
  1866. unsigned long int i = ulongval ();
  1867. if (i != ($2))
  1868. return 1;
  1869. fprintf (f, "%lu", i);
  1870. }
  1871. /* Do not output a trailing newline, as this causes \r\n confusion
  1872. on some platforms. */
  1873. return ferror (f) || fclose (f) != 0;
  1874. ;
  1875. return 0;
  1876. }
  1877. _ACEOF
  1878. if ac_fn_c_try_run "$LINENO"; then :
  1879. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1880. else
  1881. ac_retval=1
  1882. fi
  1883. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1884. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1885. rm -f conftest.val
  1886. fi
  1887. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1888. return $ac_retval
  1889. } # ac_fn_c_compute_int
  1890. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1891. # -------------------------------------------
  1892. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1893. # variable VAR accordingly.
  1894. ac_fn_c_check_type ()
  1895. {
  1896. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1898. $as_echo_n "checking for $2... " >&6; }
  1899. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1900. $as_echo_n "(cached) " >&6
  1901. else
  1902. eval "$3=no"
  1903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1904. /* end confdefs.h. */
  1905. $4
  1906. int
  1907. main ()
  1908. {
  1909. if (sizeof ($2))
  1910. return 0;
  1911. ;
  1912. return 0;
  1913. }
  1914. _ACEOF
  1915. if ac_fn_c_try_compile "$LINENO"; then :
  1916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1917. /* end confdefs.h. */
  1918. $4
  1919. int
  1920. main ()
  1921. {
  1922. if (sizeof (($2)))
  1923. return 0;
  1924. ;
  1925. return 0;
  1926. }
  1927. _ACEOF
  1928. if ac_fn_c_try_compile "$LINENO"; then :
  1929. else
  1930. eval "$3=yes"
  1931. fi
  1932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1933. fi
  1934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1935. fi
  1936. eval ac_res=\$$3
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1938. $as_echo "$ac_res" >&6; }
  1939. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1940. } # ac_fn_c_check_type
  1941. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1942. # ------------------------------------
  1943. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1944. ac_fn_c_check_decl ()
  1945. {
  1946. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1947. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1948. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1950. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1951. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1952. $as_echo_n "(cached) " >&6
  1953. else
  1954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1955. /* end confdefs.h. */
  1956. $4
  1957. int
  1958. main ()
  1959. {
  1960. #ifndef $as_decl_name
  1961. #ifdef __cplusplus
  1962. (void) $as_decl_use;
  1963. #else
  1964. (void) $as_decl_name;
  1965. #endif
  1966. #endif
  1967. ;
  1968. return 0;
  1969. }
  1970. _ACEOF
  1971. if ac_fn_c_try_compile "$LINENO"; then :
  1972. eval "$3=yes"
  1973. else
  1974. eval "$3=no"
  1975. fi
  1976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1977. fi
  1978. eval ac_res=\$$3
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1980. $as_echo "$ac_res" >&6; }
  1981. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1982. } # ac_fn_c_check_decl
  1983. cat >config.log <<_ACEOF
  1984. This file contains any messages produced by compilers while
  1985. running configure, to aid debugging if configure makes a mistake.
  1986. It was created by binutils $as_me 2.25.51, which was
  1987. generated by GNU Autoconf 2.64. Invocation command line was
  1988. $ $0 $@
  1989. _ACEOF
  1990. exec 5>>config.log
  1991. {
  1992. cat <<_ASUNAME
  1993. ## --------- ##
  1994. ## Platform. ##
  1995. ## --------- ##
  1996. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1997. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1998. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1999. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2000. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2001. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2002. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2003. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2004. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2005. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2006. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2007. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2008. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2009. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2010. _ASUNAME
  2011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2012. for as_dir in $PATH
  2013. do
  2014. IFS=$as_save_IFS
  2015. test -z "$as_dir" && as_dir=.
  2016. $as_echo "PATH: $as_dir"
  2017. done
  2018. IFS=$as_save_IFS
  2019. } >&5
  2020. cat >&5 <<_ACEOF
  2021. ## ----------- ##
  2022. ## Core tests. ##
  2023. ## ----------- ##
  2024. _ACEOF
  2025. # Keep a trace of the command line.
  2026. # Strip out --no-create and --no-recursion so they do not pile up.
  2027. # Strip out --silent because we don't want to record it for future runs.
  2028. # Also quote any args containing shell meta-characters.
  2029. # Make two passes to allow for proper duplicate-argument suppression.
  2030. ac_configure_args=
  2031. ac_configure_args0=
  2032. ac_configure_args1=
  2033. ac_must_keep_next=false
  2034. for ac_pass in 1 2
  2035. do
  2036. for ac_arg
  2037. do
  2038. case $ac_arg in
  2039. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2040. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2041. | -silent | --silent | --silen | --sile | --sil)
  2042. continue ;;
  2043. *\'*)
  2044. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2045. esac
  2046. case $ac_pass in
  2047. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2048. 2)
  2049. as_fn_append ac_configure_args1 " '$ac_arg'"
  2050. if test $ac_must_keep_next = true; then
  2051. ac_must_keep_next=false # Got value, back to normal.
  2052. else
  2053. case $ac_arg in
  2054. *=* | --config-cache | -C | -disable-* | --disable-* \
  2055. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2056. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2057. | -with-* | --with-* | -without-* | --without-* | --x)
  2058. case "$ac_configure_args0 " in
  2059. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2060. esac
  2061. ;;
  2062. -* ) ac_must_keep_next=true ;;
  2063. esac
  2064. fi
  2065. as_fn_append ac_configure_args " '$ac_arg'"
  2066. ;;
  2067. esac
  2068. done
  2069. done
  2070. { ac_configure_args0=; unset ac_configure_args0;}
  2071. { ac_configure_args1=; unset ac_configure_args1;}
  2072. # When interrupted or exit'd, cleanup temporary files, and complete
  2073. # config.log. We remove comments because anyway the quotes in there
  2074. # would cause problems or look ugly.
  2075. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2076. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2077. trap 'exit_status=$?
  2078. # Save into config.log some information that might help in debugging.
  2079. {
  2080. echo
  2081. cat <<\_ASBOX
  2082. ## ---------------- ##
  2083. ## Cache variables. ##
  2084. ## ---------------- ##
  2085. _ASBOX
  2086. echo
  2087. # The following way of writing the cache mishandles newlines in values,
  2088. (
  2089. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2090. eval ac_val=\$$ac_var
  2091. case $ac_val in #(
  2092. *${as_nl}*)
  2093. case $ac_var in #(
  2094. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2095. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2096. esac
  2097. case $ac_var in #(
  2098. _ | IFS | as_nl) ;; #(
  2099. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2100. *) { eval $ac_var=; unset $ac_var;} ;;
  2101. esac ;;
  2102. esac
  2103. done
  2104. (set) 2>&1 |
  2105. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2106. *${as_nl}ac_space=\ *)
  2107. sed -n \
  2108. "s/'\''/'\''\\\\'\'''\''/g;
  2109. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2110. ;; #(
  2111. *)
  2112. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2113. ;;
  2114. esac |
  2115. sort
  2116. )
  2117. echo
  2118. cat <<\_ASBOX
  2119. ## ----------------- ##
  2120. ## Output variables. ##
  2121. ## ----------------- ##
  2122. _ASBOX
  2123. echo
  2124. for ac_var in $ac_subst_vars
  2125. do
  2126. eval ac_val=\$$ac_var
  2127. case $ac_val in
  2128. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2129. esac
  2130. $as_echo "$ac_var='\''$ac_val'\''"
  2131. done | sort
  2132. echo
  2133. if test -n "$ac_subst_files"; then
  2134. cat <<\_ASBOX
  2135. ## ------------------- ##
  2136. ## File substitutions. ##
  2137. ## ------------------- ##
  2138. _ASBOX
  2139. echo
  2140. for ac_var in $ac_subst_files
  2141. do
  2142. eval ac_val=\$$ac_var
  2143. case $ac_val in
  2144. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2145. esac
  2146. $as_echo "$ac_var='\''$ac_val'\''"
  2147. done | sort
  2148. echo
  2149. fi
  2150. if test -s confdefs.h; then
  2151. cat <<\_ASBOX
  2152. ## ----------- ##
  2153. ## confdefs.h. ##
  2154. ## ----------- ##
  2155. _ASBOX
  2156. echo
  2157. cat confdefs.h
  2158. echo
  2159. fi
  2160. test "$ac_signal" != 0 &&
  2161. $as_echo "$as_me: caught signal $ac_signal"
  2162. $as_echo "$as_me: exit $exit_status"
  2163. } >&5
  2164. rm -f core *.core core.conftest.* &&
  2165. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2166. exit $exit_status
  2167. ' 0
  2168. for ac_signal in 1 2 13 15; do
  2169. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2170. done
  2171. ac_signal=0
  2172. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2173. rm -f -r conftest* confdefs.h
  2174. $as_echo "/* confdefs.h */" > confdefs.h
  2175. # Predefined preprocessor variables.
  2176. cat >>confdefs.h <<_ACEOF
  2177. #define PACKAGE_NAME "$PACKAGE_NAME"
  2178. _ACEOF
  2179. cat >>confdefs.h <<_ACEOF
  2180. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2181. _ACEOF
  2182. cat >>confdefs.h <<_ACEOF
  2183. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2184. _ACEOF
  2185. cat >>confdefs.h <<_ACEOF
  2186. #define PACKAGE_STRING "$PACKAGE_STRING"
  2187. _ACEOF
  2188. cat >>confdefs.h <<_ACEOF
  2189. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2190. _ACEOF
  2191. cat >>confdefs.h <<_ACEOF
  2192. #define PACKAGE_URL "$PACKAGE_URL"
  2193. _ACEOF
  2194. # Let the site file select an alternate cache file if it wants to.
  2195. # Prefer an explicitly selected file to automatically selected ones.
  2196. ac_site_file1=NONE
  2197. ac_site_file2=NONE
  2198. if test -n "$CONFIG_SITE"; then
  2199. ac_site_file1=$CONFIG_SITE
  2200. elif test "x$prefix" != xNONE; then
  2201. ac_site_file1=$prefix/share/config.site
  2202. ac_site_file2=$prefix/etc/config.site
  2203. else
  2204. ac_site_file1=$ac_default_prefix/share/config.site
  2205. ac_site_file2=$ac_default_prefix/etc/config.site
  2206. fi
  2207. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2208. do
  2209. test "x$ac_site_file" = xNONE && continue
  2210. if test -r "$ac_site_file"; then
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2212. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2213. sed 's/^/| /' "$ac_site_file" >&5
  2214. . "$ac_site_file"
  2215. fi
  2216. done
  2217. if test -r "$cache_file"; then
  2218. # Some versions of bash will fail to source /dev/null (special
  2219. # files actually), so we avoid doing that.
  2220. if test -f "$cache_file"; then
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2222. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2223. case $cache_file in
  2224. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2225. *) . "./$cache_file";;
  2226. esac
  2227. fi
  2228. else
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2230. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2231. >$cache_file
  2232. fi
  2233. # Check that the precious variables saved in the cache have kept the same
  2234. # value.
  2235. ac_cache_corrupted=false
  2236. for ac_var in $ac_precious_vars; do
  2237. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2238. eval ac_new_set=\$ac_env_${ac_var}_set
  2239. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2240. eval ac_new_val=\$ac_env_${ac_var}_value
  2241. case $ac_old_set,$ac_new_set in
  2242. set,)
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2244. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2245. ac_cache_corrupted=: ;;
  2246. ,set)
  2247. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2248. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2249. ac_cache_corrupted=: ;;
  2250. ,);;
  2251. *)
  2252. if test "x$ac_old_val" != "x$ac_new_val"; then
  2253. # differences in whitespace do not lead to failure.
  2254. ac_old_val_w=`echo x $ac_old_val`
  2255. ac_new_val_w=`echo x $ac_new_val`
  2256. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2257. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2258. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2259. ac_cache_corrupted=:
  2260. else
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2262. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2263. eval $ac_var=\$ac_old_val
  2264. fi
  2265. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2266. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2268. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2269. fi;;
  2270. esac
  2271. # Pass precious variables to config.status.
  2272. if test "$ac_new_set" = set; then
  2273. case $ac_new_val in
  2274. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2275. *) ac_arg=$ac_var=$ac_new_val ;;
  2276. esac
  2277. case " $ac_configure_args " in
  2278. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2279. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2280. esac
  2281. fi
  2282. done
  2283. if $ac_cache_corrupted; then
  2284. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2285. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2287. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2288. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2289. fi
  2290. ## -------------------- ##
  2291. ## Main body of script. ##
  2292. ## -------------------- ##
  2293. ac_ext=c
  2294. ac_cpp='$CPP $CPPFLAGS'
  2295. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2296. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2297. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2298. ac_aux_dir=
  2299. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2300. for ac_t in install-sh install.sh shtool; do
  2301. if test -f "$ac_dir/$ac_t"; then
  2302. ac_aux_dir=$ac_dir
  2303. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2304. break 2
  2305. fi
  2306. done
  2307. done
  2308. if test -z "$ac_aux_dir"; then
  2309. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2310. fi
  2311. # These three variables are undocumented and unsupported,
  2312. # and are intended to be withdrawn in a future Autoconf release.
  2313. # They can cause serious problems if a builder's source tree is in a directory
  2314. # whose full name contains unusual characters.
  2315. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2316. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2317. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2318. # Make sure we can run config.sub.
  2319. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2320. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2322. $as_echo_n "checking build system type... " >&6; }
  2323. if test "${ac_cv_build+set}" = set; then :
  2324. $as_echo_n "(cached) " >&6
  2325. else
  2326. ac_build_alias=$build_alias
  2327. test "x$ac_build_alias" = x &&
  2328. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2329. test "x$ac_build_alias" = x &&
  2330. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2331. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2332. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2333. fi
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2335. $as_echo "$ac_cv_build" >&6; }
  2336. case $ac_cv_build in
  2337. *-*-*) ;;
  2338. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2339. esac
  2340. build=$ac_cv_build
  2341. ac_save_IFS=$IFS; IFS='-'
  2342. set x $ac_cv_build
  2343. shift
  2344. build_cpu=$1
  2345. build_vendor=$2
  2346. shift; shift
  2347. # Remember, the first character of IFS is used to create $*,
  2348. # except with old shells:
  2349. build_os=$*
  2350. IFS=$ac_save_IFS
  2351. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2353. $as_echo_n "checking host system type... " >&6; }
  2354. if test "${ac_cv_host+set}" = set; then :
  2355. $as_echo_n "(cached) " >&6
  2356. else
  2357. if test "x$host_alias" = x; then
  2358. ac_cv_host=$ac_cv_build
  2359. else
  2360. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2361. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2362. fi
  2363. fi
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2365. $as_echo "$ac_cv_host" >&6; }
  2366. case $ac_cv_host in
  2367. *-*-*) ;;
  2368. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2369. esac
  2370. host=$ac_cv_host
  2371. ac_save_IFS=$IFS; IFS='-'
  2372. set x $ac_cv_host
  2373. shift
  2374. host_cpu=$1
  2375. host_vendor=$2
  2376. shift; shift
  2377. # Remember, the first character of IFS is used to create $*,
  2378. # except with old shells:
  2379. host_os=$*
  2380. IFS=$ac_save_IFS
  2381. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2383. $as_echo_n "checking target system type... " >&6; }
  2384. if test "${ac_cv_target+set}" = set; then :
  2385. $as_echo_n "(cached) " >&6
  2386. else
  2387. if test "x$target_alias" = x; then
  2388. ac_cv_target=$ac_cv_host
  2389. else
  2390. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2391. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2392. fi
  2393. fi
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2395. $as_echo "$ac_cv_target" >&6; }
  2396. case $ac_cv_target in
  2397. *-*-*) ;;
  2398. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2399. esac
  2400. target=$ac_cv_target
  2401. ac_save_IFS=$IFS; IFS='-'
  2402. set x $ac_cv_target
  2403. shift
  2404. target_cpu=$1
  2405. target_vendor=$2
  2406. shift; shift
  2407. # Remember, the first character of IFS is used to create $*,
  2408. # except with old shells:
  2409. target_os=$*
  2410. IFS=$ac_save_IFS
  2411. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2412. # The aliases save the names the user supplied, while $host etc.
  2413. # will get canonicalized.
  2414. test -n "$target_alias" &&
  2415. test "$program_prefix$program_suffix$program_transform_name" = \
  2416. NONENONEs,x,x, &&
  2417. program_prefix=${target_alias}-
  2418. ac_ext=c
  2419. ac_cpp='$CPP $CPPFLAGS'
  2420. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2421. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2422. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2423. if test -n "$ac_tool_prefix"; then
  2424. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2425. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2427. $as_echo_n "checking for $ac_word... " >&6; }
  2428. if test "${ac_cv_prog_CC+set}" = set; then :
  2429. $as_echo_n "(cached) " >&6
  2430. else
  2431. if test -n "$CC"; then
  2432. ac_cv_prog_CC="$CC" # Let the user override the test.
  2433. else
  2434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2435. for as_dir in $PATH
  2436. do
  2437. IFS=$as_save_IFS
  2438. test -z "$as_dir" && as_dir=.
  2439. for ac_exec_ext in '' $ac_executable_extensions; do
  2440. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2441. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2443. break 2
  2444. fi
  2445. done
  2446. done
  2447. IFS=$as_save_IFS
  2448. fi
  2449. fi
  2450. CC=$ac_cv_prog_CC
  2451. if test -n "$CC"; then
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2453. $as_echo "$CC" >&6; }
  2454. else
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2456. $as_echo "no" >&6; }
  2457. fi
  2458. fi
  2459. if test -z "$ac_cv_prog_CC"; then
  2460. ac_ct_CC=$CC
  2461. # Extract the first word of "gcc", so it can be a program name with args.
  2462. set dummy gcc; ac_word=$2
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2464. $as_echo_n "checking for $ac_word... " >&6; }
  2465. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2466. $as_echo_n "(cached) " >&6
  2467. else
  2468. if test -n "$ac_ct_CC"; then
  2469. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2470. else
  2471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2472. for as_dir in $PATH
  2473. do
  2474. IFS=$as_save_IFS
  2475. test -z "$as_dir" && as_dir=.
  2476. for ac_exec_ext in '' $ac_executable_extensions; do
  2477. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2478. ac_cv_prog_ac_ct_CC="gcc"
  2479. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2480. break 2
  2481. fi
  2482. done
  2483. done
  2484. IFS=$as_save_IFS
  2485. fi
  2486. fi
  2487. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2488. if test -n "$ac_ct_CC"; then
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2490. $as_echo "$ac_ct_CC" >&6; }
  2491. else
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2493. $as_echo "no" >&6; }
  2494. fi
  2495. if test "x$ac_ct_CC" = x; then
  2496. CC=""
  2497. else
  2498. case $cross_compiling:$ac_tool_warned in
  2499. yes:)
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2501. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2502. ac_tool_warned=yes ;;
  2503. esac
  2504. CC=$ac_ct_CC
  2505. fi
  2506. else
  2507. CC="$ac_cv_prog_CC"
  2508. fi
  2509. if test -z "$CC"; then
  2510. if test -n "$ac_tool_prefix"; then
  2511. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2512. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2514. $as_echo_n "checking for $ac_word... " >&6; }
  2515. if test "${ac_cv_prog_CC+set}" = set; then :
  2516. $as_echo_n "(cached) " >&6
  2517. else
  2518. if test -n "$CC"; then
  2519. ac_cv_prog_CC="$CC" # Let the user override the test.
  2520. else
  2521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2522. for as_dir in $PATH
  2523. do
  2524. IFS=$as_save_IFS
  2525. test -z "$as_dir" && as_dir=.
  2526. for ac_exec_ext in '' $ac_executable_extensions; do
  2527. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2528. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2530. break 2
  2531. fi
  2532. done
  2533. done
  2534. IFS=$as_save_IFS
  2535. fi
  2536. fi
  2537. CC=$ac_cv_prog_CC
  2538. if test -n "$CC"; then
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2540. $as_echo "$CC" >&6; }
  2541. else
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2543. $as_echo "no" >&6; }
  2544. fi
  2545. fi
  2546. fi
  2547. if test -z "$CC"; then
  2548. # Extract the first word of "cc", so it can be a program name with args.
  2549. set dummy cc; ac_word=$2
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2551. $as_echo_n "checking for $ac_word... " >&6; }
  2552. if test "${ac_cv_prog_CC+set}" = set; then :
  2553. $as_echo_n "(cached) " >&6
  2554. else
  2555. if test -n "$CC"; then
  2556. ac_cv_prog_CC="$CC" # Let the user override the test.
  2557. else
  2558. ac_prog_rejected=no
  2559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2560. for as_dir in $PATH
  2561. do
  2562. IFS=$as_save_IFS
  2563. test -z "$as_dir" && as_dir=.
  2564. for ac_exec_ext in '' $ac_executable_extensions; do
  2565. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2566. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2567. ac_prog_rejected=yes
  2568. continue
  2569. fi
  2570. ac_cv_prog_CC="cc"
  2571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2572. break 2
  2573. fi
  2574. done
  2575. done
  2576. IFS=$as_save_IFS
  2577. if test $ac_prog_rejected = yes; then
  2578. # We found a bogon in the path, so make sure we never use it.
  2579. set dummy $ac_cv_prog_CC
  2580. shift
  2581. if test $# != 0; then
  2582. # We chose a different compiler from the bogus one.
  2583. # However, it has the same basename, so the bogon will be chosen
  2584. # first if we set CC to just the basename; use the full file name.
  2585. shift
  2586. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2587. fi
  2588. fi
  2589. fi
  2590. fi
  2591. CC=$ac_cv_prog_CC
  2592. if test -n "$CC"; then
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2594. $as_echo "$CC" >&6; }
  2595. else
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2597. $as_echo "no" >&6; }
  2598. fi
  2599. fi
  2600. if test -z "$CC"; then
  2601. if test -n "$ac_tool_prefix"; then
  2602. for ac_prog in cl.exe
  2603. do
  2604. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2605. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2607. $as_echo_n "checking for $ac_word... " >&6; }
  2608. if test "${ac_cv_prog_CC+set}" = set; then :
  2609. $as_echo_n "(cached) " >&6
  2610. else
  2611. if test -n "$CC"; then
  2612. ac_cv_prog_CC="$CC" # Let the user override the test.
  2613. else
  2614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2615. for as_dir in $PATH
  2616. do
  2617. IFS=$as_save_IFS
  2618. test -z "$as_dir" && as_dir=.
  2619. for ac_exec_ext in '' $ac_executable_extensions; do
  2620. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2621. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2623. break 2
  2624. fi
  2625. done
  2626. done
  2627. IFS=$as_save_IFS
  2628. fi
  2629. fi
  2630. CC=$ac_cv_prog_CC
  2631. if test -n "$CC"; then
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2633. $as_echo "$CC" >&6; }
  2634. else
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2636. $as_echo "no" >&6; }
  2637. fi
  2638. test -n "$CC" && break
  2639. done
  2640. fi
  2641. if test -z "$CC"; then
  2642. ac_ct_CC=$CC
  2643. for ac_prog in cl.exe
  2644. do
  2645. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2646. set dummy $ac_prog; ac_word=$2
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2648. $as_echo_n "checking for $ac_word... " >&6; }
  2649. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2650. $as_echo_n "(cached) " >&6
  2651. else
  2652. if test -n "$ac_ct_CC"; then
  2653. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2654. else
  2655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2656. for as_dir in $PATH
  2657. do
  2658. IFS=$as_save_IFS
  2659. test -z "$as_dir" && as_dir=.
  2660. for ac_exec_ext in '' $ac_executable_extensions; do
  2661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2662. ac_cv_prog_ac_ct_CC="$ac_prog"
  2663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2664. break 2
  2665. fi
  2666. done
  2667. done
  2668. IFS=$as_save_IFS
  2669. fi
  2670. fi
  2671. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2672. if test -n "$ac_ct_CC"; then
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2674. $as_echo "$ac_ct_CC" >&6; }
  2675. else
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2677. $as_echo "no" >&6; }
  2678. fi
  2679. test -n "$ac_ct_CC" && break
  2680. done
  2681. if test "x$ac_ct_CC" = x; then
  2682. CC=""
  2683. else
  2684. case $cross_compiling:$ac_tool_warned in
  2685. yes:)
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2687. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2688. ac_tool_warned=yes ;;
  2689. esac
  2690. CC=$ac_ct_CC
  2691. fi
  2692. fi
  2693. fi
  2694. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2695. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2696. as_fn_error "no acceptable C compiler found in \$PATH
  2697. See \`config.log' for more details." "$LINENO" 5; }
  2698. # Provide some information about the compiler.
  2699. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2700. set X $ac_compile
  2701. ac_compiler=$2
  2702. for ac_option in --version -v -V -qversion; do
  2703. { { ac_try="$ac_compiler $ac_option >&5"
  2704. case "(($ac_try" in
  2705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2706. *) ac_try_echo=$ac_try;;
  2707. esac
  2708. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2709. $as_echo "$ac_try_echo"; } >&5
  2710. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2711. ac_status=$?
  2712. if test -s conftest.err; then
  2713. sed '10a\
  2714. ... rest of stderr output deleted ...
  2715. 10q' conftest.err >conftest.er1
  2716. cat conftest.er1 >&5
  2717. rm -f conftest.er1 conftest.err
  2718. fi
  2719. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2720. test $ac_status = 0; }
  2721. done
  2722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2723. /* end confdefs.h. */
  2724. int
  2725. main ()
  2726. {
  2727. ;
  2728. return 0;
  2729. }
  2730. _ACEOF
  2731. ac_clean_files_save=$ac_clean_files
  2732. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2733. # Try to create an executable without -o first, disregard a.out.
  2734. # It will help us diagnose broken compilers, and finding out an intuition
  2735. # of exeext.
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2737. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2738. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2739. # The possible output files:
  2740. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2741. ac_rmfiles=
  2742. for ac_file in $ac_files
  2743. do
  2744. case $ac_file in
  2745. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2746. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2747. esac
  2748. done
  2749. rm -f $ac_rmfiles
  2750. if { { ac_try="$ac_link_default"
  2751. case "(($ac_try" in
  2752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2753. *) ac_try_echo=$ac_try;;
  2754. esac
  2755. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2756. $as_echo "$ac_try_echo"; } >&5
  2757. (eval "$ac_link_default") 2>&5
  2758. ac_status=$?
  2759. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2760. test $ac_status = 0; }; then :
  2761. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2762. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2763. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2764. # so that the user can short-circuit this test for compilers unknown to
  2765. # Autoconf.
  2766. for ac_file in $ac_files ''
  2767. do
  2768. test -f "$ac_file" || continue
  2769. case $ac_file in
  2770. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2771. ;;
  2772. [ab].out )
  2773. # We found the default executable, but exeext='' is most
  2774. # certainly right.
  2775. break;;
  2776. *.* )
  2777. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2778. then :; else
  2779. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2780. fi
  2781. # We set ac_cv_exeext here because the later test for it is not
  2782. # safe: cross compilers may not add the suffix if given an `-o'
  2783. # argument, so we may need to know it at that point already.
  2784. # Even if this section looks crufty: it has the advantage of
  2785. # actually working.
  2786. break;;
  2787. * )
  2788. break;;
  2789. esac
  2790. done
  2791. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2792. else
  2793. ac_file=''
  2794. fi
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2796. $as_echo "$ac_file" >&6; }
  2797. if test -z "$ac_file"; then :
  2798. $as_echo "$as_me: failed program was:" >&5
  2799. sed 's/^/| /' conftest.$ac_ext >&5
  2800. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2801. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2802. { as_fn_set_status 77
  2803. as_fn_error "C compiler cannot create executables
  2804. See \`config.log' for more details." "$LINENO" 5; }; }
  2805. fi
  2806. ac_exeext=$ac_cv_exeext
  2807. # Check that the compiler produces executables we can run. If not, either
  2808. # the compiler is broken, or we cross compile.
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2810. $as_echo_n "checking whether the C compiler works... " >&6; }
  2811. # If not cross compiling, check that we can run a simple program.
  2812. if test "$cross_compiling" != yes; then
  2813. if { ac_try='./$ac_file'
  2814. { { case "(($ac_try" in
  2815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2816. *) ac_try_echo=$ac_try;;
  2817. esac
  2818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2819. $as_echo "$ac_try_echo"; } >&5
  2820. (eval "$ac_try") 2>&5
  2821. ac_status=$?
  2822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2823. test $ac_status = 0; }; }; then
  2824. cross_compiling=no
  2825. else
  2826. if test "$cross_compiling" = maybe; then
  2827. cross_compiling=yes
  2828. else
  2829. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2830. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2831. as_fn_error "cannot run C compiled programs.
  2832. If you meant to cross compile, use \`--host'.
  2833. See \`config.log' for more details." "$LINENO" 5; }
  2834. fi
  2835. fi
  2836. fi
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2838. $as_echo "yes" >&6; }
  2839. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2840. ac_clean_files=$ac_clean_files_save
  2841. # Check that the compiler produces executables we can run. If not, either
  2842. # the compiler is broken, or we cross compile.
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2844. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2846. $as_echo "$cross_compiling" >&6; }
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2848. $as_echo_n "checking for suffix of executables... " >&6; }
  2849. if { { ac_try="$ac_link"
  2850. case "(($ac_try" in
  2851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2852. *) ac_try_echo=$ac_try;;
  2853. esac
  2854. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2855. $as_echo "$ac_try_echo"; } >&5
  2856. (eval "$ac_link") 2>&5
  2857. ac_status=$?
  2858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2859. test $ac_status = 0; }; then :
  2860. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2861. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2862. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2863. # `rm'.
  2864. for ac_file in conftest.exe conftest conftest.*; do
  2865. test -f "$ac_file" || continue
  2866. case $ac_file in
  2867. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2868. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2869. break;;
  2870. * ) break;;
  2871. esac
  2872. done
  2873. else
  2874. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2875. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2876. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2877. See \`config.log' for more details." "$LINENO" 5; }
  2878. fi
  2879. rm -f conftest$ac_cv_exeext
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2881. $as_echo "$ac_cv_exeext" >&6; }
  2882. rm -f conftest.$ac_ext
  2883. EXEEXT=$ac_cv_exeext
  2884. ac_exeext=$EXEEXT
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2886. $as_echo_n "checking for suffix of object files... " >&6; }
  2887. if test "${ac_cv_objext+set}" = set; then :
  2888. $as_echo_n "(cached) " >&6
  2889. else
  2890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2891. /* end confdefs.h. */
  2892. int
  2893. main ()
  2894. {
  2895. ;
  2896. return 0;
  2897. }
  2898. _ACEOF
  2899. rm -f conftest.o conftest.obj
  2900. if { { ac_try="$ac_compile"
  2901. case "(($ac_try" in
  2902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2903. *) ac_try_echo=$ac_try;;
  2904. esac
  2905. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2906. $as_echo "$ac_try_echo"; } >&5
  2907. (eval "$ac_compile") 2>&5
  2908. ac_status=$?
  2909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2910. test $ac_status = 0; }; then :
  2911. for ac_file in conftest.o conftest.obj conftest.*; do
  2912. test -f "$ac_file" || continue;
  2913. case $ac_file in
  2914. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2915. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2916. break;;
  2917. esac
  2918. done
  2919. else
  2920. $as_echo "$as_me: failed program was:" >&5
  2921. sed 's/^/| /' conftest.$ac_ext >&5
  2922. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2923. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2924. as_fn_error "cannot compute suffix of object files: cannot compile
  2925. See \`config.log' for more details." "$LINENO" 5; }
  2926. fi
  2927. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2928. fi
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2930. $as_echo "$ac_cv_objext" >&6; }
  2931. OBJEXT=$ac_cv_objext
  2932. ac_objext=$OBJEXT
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2934. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2935. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  2936. $as_echo_n "(cached) " >&6
  2937. else
  2938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2939. /* end confdefs.h. */
  2940. int
  2941. main ()
  2942. {
  2943. #ifndef __GNUC__
  2944. choke me
  2945. #endif
  2946. ;
  2947. return 0;
  2948. }
  2949. _ACEOF
  2950. if ac_fn_c_try_compile "$LINENO"; then :
  2951. ac_compiler_gnu=yes
  2952. else
  2953. ac_compiler_gnu=no
  2954. fi
  2955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2956. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2957. fi
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2959. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2960. if test $ac_compiler_gnu = yes; then
  2961. GCC=yes
  2962. else
  2963. GCC=
  2964. fi
  2965. ac_test_CFLAGS=${CFLAGS+set}
  2966. ac_save_CFLAGS=$CFLAGS
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2968. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2969. if test "${ac_cv_prog_cc_g+set}" = set; then :
  2970. $as_echo_n "(cached) " >&6
  2971. else
  2972. ac_save_c_werror_flag=$ac_c_werror_flag
  2973. ac_c_werror_flag=yes
  2974. ac_cv_prog_cc_g=no
  2975. CFLAGS="-g"
  2976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2977. /* end confdefs.h. */
  2978. int
  2979. main ()
  2980. {
  2981. ;
  2982. return 0;
  2983. }
  2984. _ACEOF
  2985. if ac_fn_c_try_compile "$LINENO"; then :
  2986. ac_cv_prog_cc_g=yes
  2987. else
  2988. CFLAGS=""
  2989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2990. /* end confdefs.h. */
  2991. int
  2992. main ()
  2993. {
  2994. ;
  2995. return 0;
  2996. }
  2997. _ACEOF
  2998. if ac_fn_c_try_compile "$LINENO"; then :
  2999. else
  3000. ac_c_werror_flag=$ac_save_c_werror_flag
  3001. CFLAGS="-g"
  3002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3003. /* end confdefs.h. */
  3004. int
  3005. main ()
  3006. {
  3007. ;
  3008. return 0;
  3009. }
  3010. _ACEOF
  3011. if ac_fn_c_try_compile "$LINENO"; then :
  3012. ac_cv_prog_cc_g=yes
  3013. fi
  3014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3015. fi
  3016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3017. fi
  3018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3019. ac_c_werror_flag=$ac_save_c_werror_flag
  3020. fi
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3022. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3023. if test "$ac_test_CFLAGS" = set; then
  3024. CFLAGS=$ac_save_CFLAGS
  3025. elif test $ac_cv_prog_cc_g = yes; then
  3026. if test "$GCC" = yes; then
  3027. CFLAGS="-g -O2"
  3028. else
  3029. CFLAGS="-g"
  3030. fi
  3031. else
  3032. if test "$GCC" = yes; then
  3033. CFLAGS="-O2"
  3034. else
  3035. CFLAGS=
  3036. fi
  3037. fi
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3039. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3040. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3041. $as_echo_n "(cached) " >&6
  3042. else
  3043. ac_cv_prog_cc_c89=no
  3044. ac_save_CC=$CC
  3045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3046. /* end confdefs.h. */
  3047. #include <stdarg.h>
  3048. #include <stdio.h>
  3049. #include <sys/types.h>
  3050. #include <sys/stat.h>
  3051. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3052. struct buf { int x; };
  3053. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3054. static char *e (p, i)
  3055. char **p;
  3056. int i;
  3057. {
  3058. return p[i];
  3059. }
  3060. static char *f (char * (*g) (char **, int), char **p, ...)
  3061. {
  3062. char *s;
  3063. va_list v;
  3064. va_start (v,p);
  3065. s = g (p, va_arg (v,int));
  3066. va_end (v);
  3067. return s;
  3068. }
  3069. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3070. function prototypes and stuff, but not '\xHH' hex character constants.
  3071. These don't provoke an error unfortunately, instead are silently treated
  3072. as 'x'. The following induces an error, until -std is added to get
  3073. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3074. array size at least. It's necessary to write '\x00'==0 to get something
  3075. that's true only with -std. */
  3076. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3077. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3078. inside strings and character constants. */
  3079. #define FOO(x) 'x'
  3080. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3081. int test (int i, double x);
  3082. struct s1 {int (*f) (int a);};
  3083. struct s2 {int (*f) (double a);};
  3084. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3085. int argc;
  3086. char **argv;
  3087. int
  3088. main ()
  3089. {
  3090. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3091. ;
  3092. return 0;
  3093. }
  3094. _ACEOF
  3095. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3096. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3097. do
  3098. CC="$ac_save_CC $ac_arg"
  3099. if ac_fn_c_try_compile "$LINENO"; then :
  3100. ac_cv_prog_cc_c89=$ac_arg
  3101. fi
  3102. rm -f core conftest.err conftest.$ac_objext
  3103. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3104. done
  3105. rm -f conftest.$ac_ext
  3106. CC=$ac_save_CC
  3107. fi
  3108. # AC_CACHE_VAL
  3109. case "x$ac_cv_prog_cc_c89" in
  3110. x)
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3112. $as_echo "none needed" >&6; } ;;
  3113. xno)
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3115. $as_echo "unsupported" >&6; } ;;
  3116. *)
  3117. CC="$CC $ac_cv_prog_cc_c89"
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3119. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3120. esac
  3121. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3122. fi
  3123. ac_ext=c
  3124. ac_cpp='$CPP $CPPFLAGS'
  3125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  3129. $as_echo_n "checking for library containing strerror... " >&6; }
  3130. if test "${ac_cv_search_strerror+set}" = set; then :
  3131. $as_echo_n "(cached) " >&6
  3132. else
  3133. ac_func_search_save_LIBS=$LIBS
  3134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3135. /* end confdefs.h. */
  3136. /* Override any GCC internal prototype to avoid an error.
  3137. Use char because int might match the return type of a GCC
  3138. builtin and then its argument prototype would still apply. */
  3139. #ifdef __cplusplus
  3140. extern "C"
  3141. #endif
  3142. char strerror ();
  3143. int
  3144. main ()
  3145. {
  3146. return strerror ();
  3147. ;
  3148. return 0;
  3149. }
  3150. _ACEOF
  3151. for ac_lib in '' cposix; do
  3152. if test -z "$ac_lib"; then
  3153. ac_res="none required"
  3154. else
  3155. ac_res=-l$ac_lib
  3156. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3157. fi
  3158. if ac_fn_c_try_link "$LINENO"; then :
  3159. ac_cv_search_strerror=$ac_res
  3160. fi
  3161. rm -f core conftest.err conftest.$ac_objext \
  3162. conftest$ac_exeext
  3163. if test "${ac_cv_search_strerror+set}" = set; then :
  3164. break
  3165. fi
  3166. done
  3167. if test "${ac_cv_search_strerror+set}" = set; then :
  3168. else
  3169. ac_cv_search_strerror=no
  3170. fi
  3171. rm conftest.$ac_ext
  3172. LIBS=$ac_func_search_save_LIBS
  3173. fi
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  3175. $as_echo "$ac_cv_search_strerror" >&6; }
  3176. ac_res=$ac_cv_search_strerror
  3177. if test "$ac_res" != no; then :
  3178. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  3179. fi
  3180. am__api_version='1.11'
  3181. # Find a good install program. We prefer a C program (faster),
  3182. # so one script is as good as another. But avoid the broken or
  3183. # incompatible versions:
  3184. # SysV /etc/install, /usr/sbin/install
  3185. # SunOS /usr/etc/install
  3186. # IRIX /sbin/install
  3187. # AIX /bin/install
  3188. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3189. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3190. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3191. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3192. # OS/2's system install, which has a completely different semantic
  3193. # ./install, which can be erroneously created by make from ./install.sh.
  3194. # Reject install programs that cannot install multiple files.
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3196. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3197. if test -z "$INSTALL"; then
  3198. if test "${ac_cv_path_install+set}" = set; then :
  3199. $as_echo_n "(cached) " >&6
  3200. else
  3201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3202. for as_dir in $PATH
  3203. do
  3204. IFS=$as_save_IFS
  3205. test -z "$as_dir" && as_dir=.
  3206. # Account for people who put trailing slashes in PATH elements.
  3207. case $as_dir/ in #((
  3208. ./ | .// | /[cC]/* | \
  3209. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3210. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3211. /usr/ucb/* ) ;;
  3212. *)
  3213. # OSF1 and SCO ODT 3.0 have their own names for install.
  3214. # Don't use installbsd from OSF since it installs stuff as root
  3215. # by default.
  3216. for ac_prog in ginstall scoinst install; do
  3217. for ac_exec_ext in '' $ac_executable_extensions; do
  3218. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3219. if test $ac_prog = install &&
  3220. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3221. # AIX install. It has an incompatible calling convention.
  3222. :
  3223. elif test $ac_prog = install &&
  3224. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3225. # program-specific install script used by HP pwplus--don't use.
  3226. :
  3227. else
  3228. rm -rf conftest.one conftest.two conftest.dir
  3229. echo one > conftest.one
  3230. echo two > conftest.two
  3231. mkdir conftest.dir
  3232. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3233. test -s conftest.one && test -s conftest.two &&
  3234. test -s conftest.dir/conftest.one &&
  3235. test -s conftest.dir/conftest.two
  3236. then
  3237. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3238. break 3
  3239. fi
  3240. fi
  3241. fi
  3242. done
  3243. done
  3244. ;;
  3245. esac
  3246. done
  3247. IFS=$as_save_IFS
  3248. rm -rf conftest.one conftest.two conftest.dir
  3249. fi
  3250. if test "${ac_cv_path_install+set}" = set; then
  3251. INSTALL=$ac_cv_path_install
  3252. else
  3253. # As a last resort, use the slow shell script. Don't cache a
  3254. # value for INSTALL within a source directory, because that will
  3255. # break other packages using the cache if that directory is
  3256. # removed, or if the value is a relative name.
  3257. INSTALL=$ac_install_sh
  3258. fi
  3259. fi
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3261. $as_echo "$INSTALL" >&6; }
  3262. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3263. # It thinks the first close brace ends the variable substitution.
  3264. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3265. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3266. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3268. $as_echo_n "checking whether build environment is sane... " >&6; }
  3269. # Just in case
  3270. sleep 1
  3271. echo timestamp > conftest.file
  3272. # Reject unsafe characters in $srcdir or the absolute working directory
  3273. # name. Accept space and tab only in the latter.
  3274. am_lf='
  3275. '
  3276. case `pwd` in
  3277. *[\\\"\#\$\&\'\`$am_lf]*)
  3278. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  3279. esac
  3280. case $srcdir in
  3281. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3282. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  3283. esac
  3284. # Do `set' in a subshell so we don't clobber the current shell's
  3285. # arguments. Must try -L first in case configure is actually a
  3286. # symlink; some systems play weird games with the mod time of symlinks
  3287. # (eg FreeBSD returns the mod time of the symlink's containing
  3288. # directory).
  3289. if (
  3290. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3291. if test "$*" = "X"; then
  3292. # -L didn't work.
  3293. set X `ls -t "$srcdir/configure" conftest.file`
  3294. fi
  3295. rm -f conftest.file
  3296. if test "$*" != "X $srcdir/configure conftest.file" \
  3297. && test "$*" != "X conftest.file $srcdir/configure"; then
  3298. # If neither matched, then we have a broken ls. This can happen
  3299. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3300. # broken ls alias from the environment. This has actually
  3301. # happened. Such a system could not be considered "sane".
  3302. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  3303. alias in your environment" "$LINENO" 5
  3304. fi
  3305. test "$2" = conftest.file
  3306. )
  3307. then
  3308. # Ok.
  3309. :
  3310. else
  3311. as_fn_error "newly created file is older than distributed files!
  3312. Check your system clock" "$LINENO" 5
  3313. fi
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3315. $as_echo "yes" >&6; }
  3316. test "$program_prefix" != NONE &&
  3317. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3318. # Use a double $ so make ignores it.
  3319. test "$program_suffix" != NONE &&
  3320. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3321. # Double any \ or $.
  3322. # By default was `s,x,x', remove it if useless.
  3323. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3324. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3325. # expand $ac_aux_dir to an absolute path
  3326. am_aux_dir=`cd $ac_aux_dir && pwd`
  3327. if test x"${MISSING+set}" != xset; then
  3328. case $am_aux_dir in
  3329. *\ * | *\ *)
  3330. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3331. *)
  3332. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3333. esac
  3334. fi
  3335. # Use eval to expand $SHELL
  3336. if eval "$MISSING --run true"; then
  3337. am_missing_run="$MISSING --run "
  3338. else
  3339. am_missing_run=
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  3341. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  3342. fi
  3343. if test x"${install_sh}" != xset; then
  3344. case $am_aux_dir in
  3345. *\ * | *\ *)
  3346. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3347. *)
  3348. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3349. esac
  3350. fi
  3351. # Installed binaries are usually stripped using `strip' when the user
  3352. # run `make install-strip'. However `strip' might not be the right
  3353. # tool to use in cross-compilation environments, therefore Automake
  3354. # will honor the `STRIP' environment variable to overrule this program.
  3355. if test "$cross_compiling" != no; then
  3356. if test -n "$ac_tool_prefix"; then
  3357. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3358. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3360. $as_echo_n "checking for $ac_word... " >&6; }
  3361. if test "${ac_cv_prog_STRIP+set}" = set; then :
  3362. $as_echo_n "(cached) " >&6
  3363. else
  3364. if test -n "$STRIP"; then
  3365. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3366. else
  3367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3368. for as_dir in $PATH
  3369. do
  3370. IFS=$as_save_IFS
  3371. test -z "$as_dir" && as_dir=.
  3372. for ac_exec_ext in '' $ac_executable_extensions; do
  3373. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3374. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3375. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3376. break 2
  3377. fi
  3378. done
  3379. done
  3380. IFS=$as_save_IFS
  3381. fi
  3382. fi
  3383. STRIP=$ac_cv_prog_STRIP
  3384. if test -n "$STRIP"; then
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3386. $as_echo "$STRIP" >&6; }
  3387. else
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3389. $as_echo "no" >&6; }
  3390. fi
  3391. fi
  3392. if test -z "$ac_cv_prog_STRIP"; then
  3393. ac_ct_STRIP=$STRIP
  3394. # Extract the first word of "strip", so it can be a program name with args.
  3395. set dummy strip; ac_word=$2
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3397. $as_echo_n "checking for $ac_word... " >&6; }
  3398. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  3399. $as_echo_n "(cached) " >&6
  3400. else
  3401. if test -n "$ac_ct_STRIP"; then
  3402. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3403. else
  3404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3405. for as_dir in $PATH
  3406. do
  3407. IFS=$as_save_IFS
  3408. test -z "$as_dir" && as_dir=.
  3409. for ac_exec_ext in '' $ac_executable_extensions; do
  3410. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3411. ac_cv_prog_ac_ct_STRIP="strip"
  3412. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3413. break 2
  3414. fi
  3415. done
  3416. done
  3417. IFS=$as_save_IFS
  3418. fi
  3419. fi
  3420. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3421. if test -n "$ac_ct_STRIP"; then
  3422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3423. $as_echo "$ac_ct_STRIP" >&6; }
  3424. else
  3425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3426. $as_echo "no" >&6; }
  3427. fi
  3428. if test "x$ac_ct_STRIP" = x; then
  3429. STRIP=":"
  3430. else
  3431. case $cross_compiling:$ac_tool_warned in
  3432. yes:)
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3434. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3435. ac_tool_warned=yes ;;
  3436. esac
  3437. STRIP=$ac_ct_STRIP
  3438. fi
  3439. else
  3440. STRIP="$ac_cv_prog_STRIP"
  3441. fi
  3442. fi
  3443. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3445. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3446. if test -z "$MKDIR_P"; then
  3447. if test "${ac_cv_path_mkdir+set}" = set; then :
  3448. $as_echo_n "(cached) " >&6
  3449. else
  3450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3451. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3452. do
  3453. IFS=$as_save_IFS
  3454. test -z "$as_dir" && as_dir=.
  3455. for ac_prog in mkdir gmkdir; do
  3456. for ac_exec_ext in '' $ac_executable_extensions; do
  3457. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3458. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3459. 'mkdir (GNU coreutils) '* | \
  3460. 'mkdir (coreutils) '* | \
  3461. 'mkdir (fileutils) '4.1*)
  3462. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3463. break 3;;
  3464. esac
  3465. done
  3466. done
  3467. done
  3468. IFS=$as_save_IFS
  3469. fi
  3470. if test "${ac_cv_path_mkdir+set}" = set; then
  3471. MKDIR_P="$ac_cv_path_mkdir -p"
  3472. else
  3473. # As a last resort, use the slow shell script. Don't cache a
  3474. # value for MKDIR_P within a source directory, because that will
  3475. # break other packages using the cache if that directory is
  3476. # removed, or if the value is a relative name.
  3477. test -d ./--version && rmdir ./--version
  3478. MKDIR_P="$ac_install_sh -d"
  3479. fi
  3480. fi
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3482. $as_echo "$MKDIR_P" >&6; }
  3483. mkdir_p="$MKDIR_P"
  3484. case $mkdir_p in
  3485. [\\/$]* | ?:[\\/]*) ;;
  3486. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  3487. esac
  3488. for ac_prog in gawk mawk nawk awk
  3489. do
  3490. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3491. set dummy $ac_prog; ac_word=$2
  3492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3493. $as_echo_n "checking for $ac_word... " >&6; }
  3494. if test "${ac_cv_prog_AWK+set}" = set; then :
  3495. $as_echo_n "(cached) " >&6
  3496. else
  3497. if test -n "$AWK"; then
  3498. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3499. else
  3500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3501. for as_dir in $PATH
  3502. do
  3503. IFS=$as_save_IFS
  3504. test -z "$as_dir" && as_dir=.
  3505. for ac_exec_ext in '' $ac_executable_extensions; do
  3506. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3507. ac_cv_prog_AWK="$ac_prog"
  3508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3509. break 2
  3510. fi
  3511. done
  3512. done
  3513. IFS=$as_save_IFS
  3514. fi
  3515. fi
  3516. AWK=$ac_cv_prog_AWK
  3517. if test -n "$AWK"; then
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3519. $as_echo "$AWK" >&6; }
  3520. else
  3521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3522. $as_echo "no" >&6; }
  3523. fi
  3524. test -n "$AWK" && break
  3525. done
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3527. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3528. set x ${MAKE-make}
  3529. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3530. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  3531. $as_echo_n "(cached) " >&6
  3532. else
  3533. cat >conftest.make <<\_ACEOF
  3534. SHELL = /bin/sh
  3535. all:
  3536. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3537. _ACEOF
  3538. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3539. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3540. *@@@%%%=?*=@@@%%%*)
  3541. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3542. *)
  3543. eval ac_cv_prog_make_${ac_make}_set=no;;
  3544. esac
  3545. rm -f conftest.make
  3546. fi
  3547. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3549. $as_echo "yes" >&6; }
  3550. SET_MAKE=
  3551. else
  3552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3553. $as_echo "no" >&6; }
  3554. SET_MAKE="MAKE=${MAKE-make}"
  3555. fi
  3556. rm -rf .tst 2>/dev/null
  3557. mkdir .tst 2>/dev/null
  3558. if test -d .tst; then
  3559. am__leading_dot=.
  3560. else
  3561. am__leading_dot=_
  3562. fi
  3563. rmdir .tst 2>/dev/null
  3564. DEPDIR="${am__leading_dot}deps"
  3565. ac_config_commands="$ac_config_commands depfiles"
  3566. am_make=${MAKE-make}
  3567. cat > confinc << 'END'
  3568. am__doit:
  3569. @echo this is the am__doit target
  3570. .PHONY: am__doit
  3571. END
  3572. # If we don't find an include directive, just comment out the code.
  3573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3574. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3575. am__include="#"
  3576. am__quote=
  3577. _am_result=none
  3578. # First try GNU make style include.
  3579. echo "include confinc" > confmf
  3580. # Ignore all kinds of additional output from `make'.
  3581. case `$am_make -s -f confmf 2> /dev/null` in #(
  3582. *the\ am__doit\ target*)
  3583. am__include=include
  3584. am__quote=
  3585. _am_result=GNU
  3586. ;;
  3587. esac
  3588. # Now try BSD make style include.
  3589. if test "$am__include" = "#"; then
  3590. echo '.include "confinc"' > confmf
  3591. case `$am_make -s -f confmf 2> /dev/null` in #(
  3592. *the\ am__doit\ target*)
  3593. am__include=.include
  3594. am__quote="\""
  3595. _am_result=BSD
  3596. ;;
  3597. esac
  3598. fi
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3600. $as_echo "$_am_result" >&6; }
  3601. rm -f confinc confmf
  3602. # Check whether --enable-dependency-tracking was given.
  3603. if test "${enable_dependency_tracking+set}" = set; then :
  3604. enableval=$enable_dependency_tracking;
  3605. fi
  3606. if test "x$enable_dependency_tracking" != xno; then
  3607. am_depcomp="$ac_aux_dir/depcomp"
  3608. AMDEPBACKSLASH='\'
  3609. fi
  3610. if test "x$enable_dependency_tracking" != xno; then
  3611. AMDEP_TRUE=
  3612. AMDEP_FALSE='#'
  3613. else
  3614. AMDEP_TRUE='#'
  3615. AMDEP_FALSE=
  3616. fi
  3617. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3618. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3619. # is not polluted with repeated "-I."
  3620. am__isrc=' -I$(srcdir)'
  3621. # test to see if srcdir already configured
  3622. if test -f $srcdir/config.status; then
  3623. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3624. fi
  3625. fi
  3626. # test whether we have cygpath
  3627. if test -z "$CYGPATH_W"; then
  3628. if (cygpath --version) >/dev/null 2>/dev/null; then
  3629. CYGPATH_W='cygpath -w'
  3630. else
  3631. CYGPATH_W=echo
  3632. fi
  3633. fi
  3634. # Define the identity of the package.
  3635. PACKAGE='binutils'
  3636. VERSION='2.25.51'
  3637. cat >>confdefs.h <<_ACEOF
  3638. #define PACKAGE "$PACKAGE"
  3639. _ACEOF
  3640. cat >>confdefs.h <<_ACEOF
  3641. #define VERSION "$VERSION"
  3642. _ACEOF
  3643. # Some tools Automake needs.
  3644. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3645. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3646. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3647. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3648. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3649. # We need awk for the "check" target. The system "awk" is bad on
  3650. # some platforms.
  3651. # Always define AMTAR for backward compatibility.
  3652. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3653. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3654. depcc="$CC" am_compiler_list=
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3656. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3657. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3658. $as_echo_n "(cached) " >&6
  3659. else
  3660. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3661. # We make a subdir and do the tests there. Otherwise we can end up
  3662. # making bogus files that we don't know about and never remove. For
  3663. # instance it was reported that on HP-UX the gcc test will end up
  3664. # making a dummy file named `D' -- because `-MD' means `put the output
  3665. # in D'.
  3666. mkdir conftest.dir
  3667. # Copy depcomp to subdir because otherwise we won't find it if we're
  3668. # using a relative directory.
  3669. cp "$am_depcomp" conftest.dir
  3670. cd conftest.dir
  3671. # We will build objects and dependencies in a subdirectory because
  3672. # it helps to detect inapplicable dependency modes. For instance
  3673. # both Tru64's cc and ICC support -MD to output dependencies as a
  3674. # side effect of compilation, but ICC will put the dependencies in
  3675. # the current directory while Tru64 will put them in the object
  3676. # directory.
  3677. mkdir sub
  3678. am_cv_CC_dependencies_compiler_type=none
  3679. if test "$am_compiler_list" = ""; then
  3680. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3681. fi
  3682. am__universal=false
  3683. case " $depcc " in #(
  3684. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3685. esac
  3686. for depmode in $am_compiler_list; do
  3687. # Setup a source with many dependencies, because some compilers
  3688. # like to wrap large dependency lists on column 80 (with \), and
  3689. # we should not choose a depcomp mode which is confused by this.
  3690. #
  3691. # We need to recreate these files for each test, as the compiler may
  3692. # overwrite some of them when testing with obscure command lines.
  3693. # This happens at least with the AIX C compiler.
  3694. : > sub/conftest.c
  3695. for i in 1 2 3 4 5 6; do
  3696. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3697. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3698. # Solaris 8's {/usr,}/bin/sh.
  3699. touch sub/conftst$i.h
  3700. done
  3701. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3702. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3703. # mode. It turns out that the SunPro C++ compiler does not properly
  3704. # handle `-M -o', and we need to detect this. Also, some Intel
  3705. # versions had trouble with output in subdirs
  3706. am__obj=sub/conftest.${OBJEXT-o}
  3707. am__minus_obj="-o $am__obj"
  3708. case $depmode in
  3709. gcc)
  3710. # This depmode causes a compiler race in universal mode.
  3711. test "$am__universal" = false || continue
  3712. ;;
  3713. nosideeffect)
  3714. # after this tag, mechanisms are not by side-effect, so they'll
  3715. # only be used when explicitly requested
  3716. if test "x$enable_dependency_tracking" = xyes; then
  3717. continue
  3718. else
  3719. break
  3720. fi
  3721. ;;
  3722. msvisualcpp | msvcmsys)
  3723. # This compiler won't grok `-c -o', but also, the minuso test has
  3724. # not run yet. These depmodes are late enough in the game, and
  3725. # so weak that their functioning should not be impacted.
  3726. am__obj=conftest.${OBJEXT-o}
  3727. am__minus_obj=
  3728. ;;
  3729. none) break ;;
  3730. esac
  3731. if depmode=$depmode \
  3732. source=sub/conftest.c object=$am__obj \
  3733. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3734. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3735. >/dev/null 2>conftest.err &&
  3736. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3737. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3738. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3739. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3740. # icc doesn't choke on unknown options, it will just issue warnings
  3741. # or remarks (even with -Werror). So we grep stderr for any message
  3742. # that says an option was ignored or not supported.
  3743. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3744. # icc: Command line warning: ignoring option '-M'; no argument required
  3745. # The diagnosis changed in icc 8.0:
  3746. # icc: Command line remark: option '-MP' not supported
  3747. if (grep 'ignoring option' conftest.err ||
  3748. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3749. am_cv_CC_dependencies_compiler_type=$depmode
  3750. break
  3751. fi
  3752. fi
  3753. done
  3754. cd ..
  3755. rm -rf conftest.dir
  3756. else
  3757. am_cv_CC_dependencies_compiler_type=none
  3758. fi
  3759. fi
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3761. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3762. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3763. if
  3764. test "x$enable_dependency_tracking" != xno \
  3765. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3766. am__fastdepCC_TRUE=
  3767. am__fastdepCC_FALSE='#'
  3768. else
  3769. am__fastdepCC_TRUE='#'
  3770. am__fastdepCC_FALSE=
  3771. fi
  3772. ac_ext=c
  3773. ac_cpp='$CPP $CPPFLAGS'
  3774. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3775. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3776. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3777. if test -n "$ac_tool_prefix"; then
  3778. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3779. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3781. $as_echo_n "checking for $ac_word... " >&6; }
  3782. if test "${ac_cv_prog_CC+set}" = set; then :
  3783. $as_echo_n "(cached) " >&6
  3784. else
  3785. if test -n "$CC"; then
  3786. ac_cv_prog_CC="$CC" # Let the user override the test.
  3787. else
  3788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3789. for as_dir in $PATH
  3790. do
  3791. IFS=$as_save_IFS
  3792. test -z "$as_dir" && as_dir=.
  3793. for ac_exec_ext in '' $ac_executable_extensions; do
  3794. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3795. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3797. break 2
  3798. fi
  3799. done
  3800. done
  3801. IFS=$as_save_IFS
  3802. fi
  3803. fi
  3804. CC=$ac_cv_prog_CC
  3805. if test -n "$CC"; then
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3807. $as_echo "$CC" >&6; }
  3808. else
  3809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3810. $as_echo "no" >&6; }
  3811. fi
  3812. fi
  3813. if test -z "$ac_cv_prog_CC"; then
  3814. ac_ct_CC=$CC
  3815. # Extract the first word of "gcc", so it can be a program name with args.
  3816. set dummy gcc; ac_word=$2
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3818. $as_echo_n "checking for $ac_word... " >&6; }
  3819. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3820. $as_echo_n "(cached) " >&6
  3821. else
  3822. if test -n "$ac_ct_CC"; then
  3823. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3824. else
  3825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3826. for as_dir in $PATH
  3827. do
  3828. IFS=$as_save_IFS
  3829. test -z "$as_dir" && as_dir=.
  3830. for ac_exec_ext in '' $ac_executable_extensions; do
  3831. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3832. ac_cv_prog_ac_ct_CC="gcc"
  3833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3834. break 2
  3835. fi
  3836. done
  3837. done
  3838. IFS=$as_save_IFS
  3839. fi
  3840. fi
  3841. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3842. if test -n "$ac_ct_CC"; then
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3844. $as_echo "$ac_ct_CC" >&6; }
  3845. else
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3847. $as_echo "no" >&6; }
  3848. fi
  3849. if test "x$ac_ct_CC" = x; then
  3850. CC=""
  3851. else
  3852. case $cross_compiling:$ac_tool_warned in
  3853. yes:)
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3855. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3856. ac_tool_warned=yes ;;
  3857. esac
  3858. CC=$ac_ct_CC
  3859. fi
  3860. else
  3861. CC="$ac_cv_prog_CC"
  3862. fi
  3863. if test -z "$CC"; then
  3864. if test -n "$ac_tool_prefix"; then
  3865. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3866. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3868. $as_echo_n "checking for $ac_word... " >&6; }
  3869. if test "${ac_cv_prog_CC+set}" = set; then :
  3870. $as_echo_n "(cached) " >&6
  3871. else
  3872. if test -n "$CC"; then
  3873. ac_cv_prog_CC="$CC" # Let the user override the test.
  3874. else
  3875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3876. for as_dir in $PATH
  3877. do
  3878. IFS=$as_save_IFS
  3879. test -z "$as_dir" && as_dir=.
  3880. for ac_exec_ext in '' $ac_executable_extensions; do
  3881. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3882. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3884. break 2
  3885. fi
  3886. done
  3887. done
  3888. IFS=$as_save_IFS
  3889. fi
  3890. fi
  3891. CC=$ac_cv_prog_CC
  3892. if test -n "$CC"; then
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3894. $as_echo "$CC" >&6; }
  3895. else
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3897. $as_echo "no" >&6; }
  3898. fi
  3899. fi
  3900. fi
  3901. if test -z "$CC"; then
  3902. # Extract the first word of "cc", so it can be a program name with args.
  3903. set dummy cc; ac_word=$2
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3905. $as_echo_n "checking for $ac_word... " >&6; }
  3906. if test "${ac_cv_prog_CC+set}" = set; then :
  3907. $as_echo_n "(cached) " >&6
  3908. else
  3909. if test -n "$CC"; then
  3910. ac_cv_prog_CC="$CC" # Let the user override the test.
  3911. else
  3912. ac_prog_rejected=no
  3913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3914. for as_dir in $PATH
  3915. do
  3916. IFS=$as_save_IFS
  3917. test -z "$as_dir" && as_dir=.
  3918. for ac_exec_ext in '' $ac_executable_extensions; do
  3919. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3920. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3921. ac_prog_rejected=yes
  3922. continue
  3923. fi
  3924. ac_cv_prog_CC="cc"
  3925. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3926. break 2
  3927. fi
  3928. done
  3929. done
  3930. IFS=$as_save_IFS
  3931. if test $ac_prog_rejected = yes; then
  3932. # We found a bogon in the path, so make sure we never use it.
  3933. set dummy $ac_cv_prog_CC
  3934. shift
  3935. if test $# != 0; then
  3936. # We chose a different compiler from the bogus one.
  3937. # However, it has the same basename, so the bogon will be chosen
  3938. # first if we set CC to just the basename; use the full file name.
  3939. shift
  3940. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3941. fi
  3942. fi
  3943. fi
  3944. fi
  3945. CC=$ac_cv_prog_CC
  3946. if test -n "$CC"; then
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3948. $as_echo "$CC" >&6; }
  3949. else
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3951. $as_echo "no" >&6; }
  3952. fi
  3953. fi
  3954. if test -z "$CC"; then
  3955. if test -n "$ac_tool_prefix"; then
  3956. for ac_prog in cl.exe
  3957. do
  3958. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3959. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3961. $as_echo_n "checking for $ac_word... " >&6; }
  3962. if test "${ac_cv_prog_CC+set}" = set; then :
  3963. $as_echo_n "(cached) " >&6
  3964. else
  3965. if test -n "$CC"; then
  3966. ac_cv_prog_CC="$CC" # Let the user override the test.
  3967. else
  3968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3969. for as_dir in $PATH
  3970. do
  3971. IFS=$as_save_IFS
  3972. test -z "$as_dir" && as_dir=.
  3973. for ac_exec_ext in '' $ac_executable_extensions; do
  3974. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3975. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3976. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3977. break 2
  3978. fi
  3979. done
  3980. done
  3981. IFS=$as_save_IFS
  3982. fi
  3983. fi
  3984. CC=$ac_cv_prog_CC
  3985. if test -n "$CC"; then
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3987. $as_echo "$CC" >&6; }
  3988. else
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3990. $as_echo "no" >&6; }
  3991. fi
  3992. test -n "$CC" && break
  3993. done
  3994. fi
  3995. if test -z "$CC"; then
  3996. ac_ct_CC=$CC
  3997. for ac_prog in cl.exe
  3998. do
  3999. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4000. set dummy $ac_prog; ac_word=$2
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4002. $as_echo_n "checking for $ac_word... " >&6; }
  4003. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4004. $as_echo_n "(cached) " >&6
  4005. else
  4006. if test -n "$ac_ct_CC"; then
  4007. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4008. else
  4009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4010. for as_dir in $PATH
  4011. do
  4012. IFS=$as_save_IFS
  4013. test -z "$as_dir" && as_dir=.
  4014. for ac_exec_ext in '' $ac_executable_extensions; do
  4015. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4016. ac_cv_prog_ac_ct_CC="$ac_prog"
  4017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4018. break 2
  4019. fi
  4020. done
  4021. done
  4022. IFS=$as_save_IFS
  4023. fi
  4024. fi
  4025. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4026. if test -n "$ac_ct_CC"; then
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4028. $as_echo "$ac_ct_CC" >&6; }
  4029. else
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4031. $as_echo "no" >&6; }
  4032. fi
  4033. test -n "$ac_ct_CC" && break
  4034. done
  4035. if test "x$ac_ct_CC" = x; then
  4036. CC=""
  4037. else
  4038. case $cross_compiling:$ac_tool_warned in
  4039. yes:)
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4041. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4042. ac_tool_warned=yes ;;
  4043. esac
  4044. CC=$ac_ct_CC
  4045. fi
  4046. fi
  4047. fi
  4048. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4049. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4050. as_fn_error "no acceptable C compiler found in \$PATH
  4051. See \`config.log' for more details." "$LINENO" 5; }
  4052. # Provide some information about the compiler.
  4053. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4054. set X $ac_compile
  4055. ac_compiler=$2
  4056. for ac_option in --version -v -V -qversion; do
  4057. { { ac_try="$ac_compiler $ac_option >&5"
  4058. case "(($ac_try" in
  4059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4060. *) ac_try_echo=$ac_try;;
  4061. esac
  4062. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4063. $as_echo "$ac_try_echo"; } >&5
  4064. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4065. ac_status=$?
  4066. if test -s conftest.err; then
  4067. sed '10a\
  4068. ... rest of stderr output deleted ...
  4069. 10q' conftest.err >conftest.er1
  4070. cat conftest.er1 >&5
  4071. rm -f conftest.er1 conftest.err
  4072. fi
  4073. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4074. test $ac_status = 0; }
  4075. done
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4077. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4078. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4079. $as_echo_n "(cached) " >&6
  4080. else
  4081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4082. /* end confdefs.h. */
  4083. int
  4084. main ()
  4085. {
  4086. #ifndef __GNUC__
  4087. choke me
  4088. #endif
  4089. ;
  4090. return 0;
  4091. }
  4092. _ACEOF
  4093. if ac_fn_c_try_compile "$LINENO"; then :
  4094. ac_compiler_gnu=yes
  4095. else
  4096. ac_compiler_gnu=no
  4097. fi
  4098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4099. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4100. fi
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4102. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4103. if test $ac_compiler_gnu = yes; then
  4104. GCC=yes
  4105. else
  4106. GCC=
  4107. fi
  4108. ac_test_CFLAGS=${CFLAGS+set}
  4109. ac_save_CFLAGS=$CFLAGS
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4111. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4112. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4113. $as_echo_n "(cached) " >&6
  4114. else
  4115. ac_save_c_werror_flag=$ac_c_werror_flag
  4116. ac_c_werror_flag=yes
  4117. ac_cv_prog_cc_g=no
  4118. CFLAGS="-g"
  4119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4120. /* end confdefs.h. */
  4121. int
  4122. main ()
  4123. {
  4124. ;
  4125. return 0;
  4126. }
  4127. _ACEOF
  4128. if ac_fn_c_try_compile "$LINENO"; then :
  4129. ac_cv_prog_cc_g=yes
  4130. else
  4131. CFLAGS=""
  4132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4133. /* end confdefs.h. */
  4134. int
  4135. main ()
  4136. {
  4137. ;
  4138. return 0;
  4139. }
  4140. _ACEOF
  4141. if ac_fn_c_try_compile "$LINENO"; then :
  4142. else
  4143. ac_c_werror_flag=$ac_save_c_werror_flag
  4144. CFLAGS="-g"
  4145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4146. /* end confdefs.h. */
  4147. int
  4148. main ()
  4149. {
  4150. ;
  4151. return 0;
  4152. }
  4153. _ACEOF
  4154. if ac_fn_c_try_compile "$LINENO"; then :
  4155. ac_cv_prog_cc_g=yes
  4156. fi
  4157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4158. fi
  4159. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4160. fi
  4161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4162. ac_c_werror_flag=$ac_save_c_werror_flag
  4163. fi
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4165. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4166. if test "$ac_test_CFLAGS" = set; then
  4167. CFLAGS=$ac_save_CFLAGS
  4168. elif test $ac_cv_prog_cc_g = yes; then
  4169. if test "$GCC" = yes; then
  4170. CFLAGS="-g -O2"
  4171. else
  4172. CFLAGS="-g"
  4173. fi
  4174. else
  4175. if test "$GCC" = yes; then
  4176. CFLAGS="-O2"
  4177. else
  4178. CFLAGS=
  4179. fi
  4180. fi
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4182. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4183. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4184. $as_echo_n "(cached) " >&6
  4185. else
  4186. ac_cv_prog_cc_c89=no
  4187. ac_save_CC=$CC
  4188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4189. /* end confdefs.h. */
  4190. #include <stdarg.h>
  4191. #include <stdio.h>
  4192. #include <sys/types.h>
  4193. #include <sys/stat.h>
  4194. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4195. struct buf { int x; };
  4196. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4197. static char *e (p, i)
  4198. char **p;
  4199. int i;
  4200. {
  4201. return p[i];
  4202. }
  4203. static char *f (char * (*g) (char **, int), char **p, ...)
  4204. {
  4205. char *s;
  4206. va_list v;
  4207. va_start (v,p);
  4208. s = g (p, va_arg (v,int));
  4209. va_end (v);
  4210. return s;
  4211. }
  4212. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4213. function prototypes and stuff, but not '\xHH' hex character constants.
  4214. These don't provoke an error unfortunately, instead are silently treated
  4215. as 'x'. The following induces an error, until -std is added to get
  4216. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4217. array size at least. It's necessary to write '\x00'==0 to get something
  4218. that's true only with -std. */
  4219. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4220. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4221. inside strings and character constants. */
  4222. #define FOO(x) 'x'
  4223. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4224. int test (int i, double x);
  4225. struct s1 {int (*f) (int a);};
  4226. struct s2 {int (*f) (double a);};
  4227. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4228. int argc;
  4229. char **argv;
  4230. int
  4231. main ()
  4232. {
  4233. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4234. ;
  4235. return 0;
  4236. }
  4237. _ACEOF
  4238. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4239. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4240. do
  4241. CC="$ac_save_CC $ac_arg"
  4242. if ac_fn_c_try_compile "$LINENO"; then :
  4243. ac_cv_prog_cc_c89=$ac_arg
  4244. fi
  4245. rm -f core conftest.err conftest.$ac_objext
  4246. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4247. done
  4248. rm -f conftest.$ac_ext
  4249. CC=$ac_save_CC
  4250. fi
  4251. # AC_CACHE_VAL
  4252. case "x$ac_cv_prog_cc_c89" in
  4253. x)
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4255. $as_echo "none needed" >&6; } ;;
  4256. xno)
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4258. $as_echo "unsupported" >&6; } ;;
  4259. *)
  4260. CC="$CC $ac_cv_prog_cc_c89"
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4262. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4263. esac
  4264. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4265. fi
  4266. ac_ext=c
  4267. ac_cpp='$CPP $CPPFLAGS'
  4268. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4269. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4270. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4271. ac_ext=c
  4272. ac_cpp='$CPP $CPPFLAGS'
  4273. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4274. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4275. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4277. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4278. # On Suns, sometimes $CPP names a directory.
  4279. if test -n "$CPP" && test -d "$CPP"; then
  4280. CPP=
  4281. fi
  4282. if test -z "$CPP"; then
  4283. if test "${ac_cv_prog_CPP+set}" = set; then :
  4284. $as_echo_n "(cached) " >&6
  4285. else
  4286. # Double quotes because CPP needs to be expanded
  4287. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4288. do
  4289. ac_preproc_ok=false
  4290. for ac_c_preproc_warn_flag in '' yes
  4291. do
  4292. # Use a header file that comes with gcc, so configuring glibc
  4293. # with a fresh cross-compiler works.
  4294. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4295. # <limits.h> exists even on freestanding compilers.
  4296. # On the NeXT, cc -E runs the code through the compiler's parser,
  4297. # not just through cpp. "Syntax error" is here to catch this case.
  4298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4299. /* end confdefs.h. */
  4300. #ifdef __STDC__
  4301. # include <limits.h>
  4302. #else
  4303. # include <assert.h>
  4304. #endif
  4305. Syntax error
  4306. _ACEOF
  4307. if ac_fn_c_try_cpp "$LINENO"; then :
  4308. else
  4309. # Broken: fails on valid input.
  4310. continue
  4311. fi
  4312. rm -f conftest.err conftest.$ac_ext
  4313. # OK, works on sane cases. Now check whether nonexistent headers
  4314. # can be detected and how.
  4315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4316. /* end confdefs.h. */
  4317. #include <ac_nonexistent.h>
  4318. _ACEOF
  4319. if ac_fn_c_try_cpp "$LINENO"; then :
  4320. # Broken: success on invalid input.
  4321. continue
  4322. else
  4323. # Passes both tests.
  4324. ac_preproc_ok=:
  4325. break
  4326. fi
  4327. rm -f conftest.err conftest.$ac_ext
  4328. done
  4329. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4330. rm -f conftest.err conftest.$ac_ext
  4331. if $ac_preproc_ok; then :
  4332. break
  4333. fi
  4334. done
  4335. ac_cv_prog_CPP=$CPP
  4336. fi
  4337. CPP=$ac_cv_prog_CPP
  4338. else
  4339. ac_cv_prog_CPP=$CPP
  4340. fi
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4342. $as_echo "$CPP" >&6; }
  4343. ac_preproc_ok=false
  4344. for ac_c_preproc_warn_flag in '' yes
  4345. do
  4346. # Use a header file that comes with gcc, so configuring glibc
  4347. # with a fresh cross-compiler works.
  4348. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4349. # <limits.h> exists even on freestanding compilers.
  4350. # On the NeXT, cc -E runs the code through the compiler's parser,
  4351. # not just through cpp. "Syntax error" is here to catch this case.
  4352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4353. /* end confdefs.h. */
  4354. #ifdef __STDC__
  4355. # include <limits.h>
  4356. #else
  4357. # include <assert.h>
  4358. #endif
  4359. Syntax error
  4360. _ACEOF
  4361. if ac_fn_c_try_cpp "$LINENO"; then :
  4362. else
  4363. # Broken: fails on valid input.
  4364. continue
  4365. fi
  4366. rm -f conftest.err conftest.$ac_ext
  4367. # OK, works on sane cases. Now check whether nonexistent headers
  4368. # can be detected and how.
  4369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4370. /* end confdefs.h. */
  4371. #include <ac_nonexistent.h>
  4372. _ACEOF
  4373. if ac_fn_c_try_cpp "$LINENO"; then :
  4374. # Broken: success on invalid input.
  4375. continue
  4376. else
  4377. # Passes both tests.
  4378. ac_preproc_ok=:
  4379. break
  4380. fi
  4381. rm -f conftest.err conftest.$ac_ext
  4382. done
  4383. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4384. rm -f conftest.err conftest.$ac_ext
  4385. if $ac_preproc_ok; then :
  4386. else
  4387. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4388. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4389. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4390. See \`config.log' for more details." "$LINENO" 5; }
  4391. fi
  4392. ac_ext=c
  4393. ac_cpp='$CPP $CPPFLAGS'
  4394. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4395. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4396. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4398. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4399. if test "${ac_cv_path_GREP+set}" = set; then :
  4400. $as_echo_n "(cached) " >&6
  4401. else
  4402. if test -z "$GREP"; then
  4403. ac_path_GREP_found=false
  4404. # Loop through the user's path and test for each of PROGNAME-LIST
  4405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4406. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4407. do
  4408. IFS=$as_save_IFS
  4409. test -z "$as_dir" && as_dir=.
  4410. for ac_prog in grep ggrep; do
  4411. for ac_exec_ext in '' $ac_executable_extensions; do
  4412. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4413. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4414. # Check for GNU ac_path_GREP and select it if it is found.
  4415. # Check for GNU $ac_path_GREP
  4416. case `"$ac_path_GREP" --version 2>&1` in
  4417. *GNU*)
  4418. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4419. *)
  4420. ac_count=0
  4421. $as_echo_n 0123456789 >"conftest.in"
  4422. while :
  4423. do
  4424. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4425. mv "conftest.tmp" "conftest.in"
  4426. cp "conftest.in" "conftest.nl"
  4427. $as_echo 'GREP' >> "conftest.nl"
  4428. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4429. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4430. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4431. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4432. # Best one so far, save it but keep looking for a better one
  4433. ac_cv_path_GREP="$ac_path_GREP"
  4434. ac_path_GREP_max=$ac_count
  4435. fi
  4436. # 10*(2^10) chars as input seems more than enough
  4437. test $ac_count -gt 10 && break
  4438. done
  4439. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4440. esac
  4441. $ac_path_GREP_found && break 3
  4442. done
  4443. done
  4444. done
  4445. IFS=$as_save_IFS
  4446. if test -z "$ac_cv_path_GREP"; then
  4447. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4448. fi
  4449. else
  4450. ac_cv_path_GREP=$GREP
  4451. fi
  4452. fi
  4453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4454. $as_echo "$ac_cv_path_GREP" >&6; }
  4455. GREP="$ac_cv_path_GREP"
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4457. $as_echo_n "checking for egrep... " >&6; }
  4458. if test "${ac_cv_path_EGREP+set}" = set; then :
  4459. $as_echo_n "(cached) " >&6
  4460. else
  4461. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4462. then ac_cv_path_EGREP="$GREP -E"
  4463. else
  4464. if test -z "$EGREP"; then
  4465. ac_path_EGREP_found=false
  4466. # Loop through the user's path and test for each of PROGNAME-LIST
  4467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4468. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4469. do
  4470. IFS=$as_save_IFS
  4471. test -z "$as_dir" && as_dir=.
  4472. for ac_prog in egrep; do
  4473. for ac_exec_ext in '' $ac_executable_extensions; do
  4474. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4475. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4476. # Check for GNU ac_path_EGREP and select it if it is found.
  4477. # Check for GNU $ac_path_EGREP
  4478. case `"$ac_path_EGREP" --version 2>&1` in
  4479. *GNU*)
  4480. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4481. *)
  4482. ac_count=0
  4483. $as_echo_n 0123456789 >"conftest.in"
  4484. while :
  4485. do
  4486. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4487. mv "conftest.tmp" "conftest.in"
  4488. cp "conftest.in" "conftest.nl"
  4489. $as_echo 'EGREP' >> "conftest.nl"
  4490. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4491. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4492. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4493. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4494. # Best one so far, save it but keep looking for a better one
  4495. ac_cv_path_EGREP="$ac_path_EGREP"
  4496. ac_path_EGREP_max=$ac_count
  4497. fi
  4498. # 10*(2^10) chars as input seems more than enough
  4499. test $ac_count -gt 10 && break
  4500. done
  4501. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4502. esac
  4503. $ac_path_EGREP_found && break 3
  4504. done
  4505. done
  4506. done
  4507. IFS=$as_save_IFS
  4508. if test -z "$ac_cv_path_EGREP"; then
  4509. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4510. fi
  4511. else
  4512. ac_cv_path_EGREP=$EGREP
  4513. fi
  4514. fi
  4515. fi
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4517. $as_echo "$ac_cv_path_EGREP" >&6; }
  4518. EGREP="$ac_cv_path_EGREP"
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4520. $as_echo_n "checking for ANSI C header files... " >&6; }
  4521. if test "${ac_cv_header_stdc+set}" = set; then :
  4522. $as_echo_n "(cached) " >&6
  4523. else
  4524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4525. /* end confdefs.h. */
  4526. #include <stdlib.h>
  4527. #include <stdarg.h>
  4528. #include <string.h>
  4529. #include <float.h>
  4530. int
  4531. main ()
  4532. {
  4533. ;
  4534. return 0;
  4535. }
  4536. _ACEOF
  4537. if ac_fn_c_try_compile "$LINENO"; then :
  4538. ac_cv_header_stdc=yes
  4539. else
  4540. ac_cv_header_stdc=no
  4541. fi
  4542. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4543. if test $ac_cv_header_stdc = yes; then
  4544. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4546. /* end confdefs.h. */
  4547. #include <string.h>
  4548. _ACEOF
  4549. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4550. $EGREP "memchr" >/dev/null 2>&1; then :
  4551. else
  4552. ac_cv_header_stdc=no
  4553. fi
  4554. rm -f conftest*
  4555. fi
  4556. if test $ac_cv_header_stdc = yes; then
  4557. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4559. /* end confdefs.h. */
  4560. #include <stdlib.h>
  4561. _ACEOF
  4562. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4563. $EGREP "free" >/dev/null 2>&1; then :
  4564. else
  4565. ac_cv_header_stdc=no
  4566. fi
  4567. rm -f conftest*
  4568. fi
  4569. if test $ac_cv_header_stdc = yes; then
  4570. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4571. if test "$cross_compiling" = yes; then :
  4572. :
  4573. else
  4574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4575. /* end confdefs.h. */
  4576. #include <ctype.h>
  4577. #include <stdlib.h>
  4578. #if ((' ' & 0x0FF) == 0x020)
  4579. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4580. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4581. #else
  4582. # define ISLOWER(c) \
  4583. (('a' <= (c) && (c) <= 'i') \
  4584. || ('j' <= (c) && (c) <= 'r') \
  4585. || ('s' <= (c) && (c) <= 'z'))
  4586. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4587. #endif
  4588. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4589. int
  4590. main ()
  4591. {
  4592. int i;
  4593. for (i = 0; i < 256; i++)
  4594. if (XOR (islower (i), ISLOWER (i))
  4595. || toupper (i) != TOUPPER (i))
  4596. return 2;
  4597. return 0;
  4598. }
  4599. _ACEOF
  4600. if ac_fn_c_try_run "$LINENO"; then :
  4601. else
  4602. ac_cv_header_stdc=no
  4603. fi
  4604. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4605. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4606. fi
  4607. fi
  4608. fi
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4610. $as_echo "$ac_cv_header_stdc" >&6; }
  4611. if test $ac_cv_header_stdc = yes; then
  4612. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4613. fi
  4614. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4615. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4616. inttypes.h stdint.h unistd.h
  4617. do :
  4618. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4619. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4620. "
  4621. eval as_val=\$$as_ac_Header
  4622. if test "x$as_val" = x""yes; then :
  4623. cat >>confdefs.h <<_ACEOF
  4624. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4625. _ACEOF
  4626. fi
  4627. done
  4628. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4629. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4630. MINIX=yes
  4631. else
  4632. MINIX=
  4633. fi
  4634. if test "$MINIX" = yes; then
  4635. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4636. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4637. $as_echo "#define _MINIX 1" >>confdefs.h
  4638. fi
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4640. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4641. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4642. $as_echo_n "(cached) " >&6
  4643. else
  4644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4645. /* end confdefs.h. */
  4646. # define __EXTENSIONS__ 1
  4647. $ac_includes_default
  4648. int
  4649. main ()
  4650. {
  4651. ;
  4652. return 0;
  4653. }
  4654. _ACEOF
  4655. if ac_fn_c_try_compile "$LINENO"; then :
  4656. ac_cv_safe_to_define___extensions__=yes
  4657. else
  4658. ac_cv_safe_to_define___extensions__=no
  4659. fi
  4660. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4661. fi
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4663. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4664. test $ac_cv_safe_to_define___extensions__ = yes &&
  4665. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4666. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4667. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4668. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4669. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4670. case `pwd` in
  4671. *\ * | *\ *)
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4673. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4674. esac
  4675. macro_version='2.2.7a'
  4676. macro_revision='1.3134'
  4677. ltmain="$ac_aux_dir/ltmain.sh"
  4678. # Backslashify metacharacters that are still active within
  4679. # double-quoted strings.
  4680. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4681. # Same as above, but do not quote variable references.
  4682. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4683. # Sed substitution to delay expansion of an escaped shell variable in a
  4684. # double_quote_subst'ed string.
  4685. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4686. # Sed substitution to delay expansion of an escaped single quote.
  4687. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4688. # Sed substitution to avoid accidental globbing in evaled expressions
  4689. no_glob_subst='s/\*/\\\*/g'
  4690. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4691. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4692. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4694. $as_echo_n "checking how to print strings... " >&6; }
  4695. # Test print first, because it will be a builtin if present.
  4696. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4697. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4698. ECHO='print -r --'
  4699. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4700. ECHO='printf %s\n'
  4701. else
  4702. # Use this function as a fallback that always works.
  4703. func_fallback_echo ()
  4704. {
  4705. eval 'cat <<_LTECHO_EOF
  4706. $1
  4707. _LTECHO_EOF'
  4708. }
  4709. ECHO='func_fallback_echo'
  4710. fi
  4711. # func_echo_all arg...
  4712. # Invoke $ECHO with all args, space-separated.
  4713. func_echo_all ()
  4714. {
  4715. $ECHO ""
  4716. }
  4717. case "$ECHO" in
  4718. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4719. $as_echo "printf" >&6; } ;;
  4720. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4721. $as_echo "print -r" >&6; } ;;
  4722. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4723. $as_echo "cat" >&6; } ;;
  4724. esac
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4726. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4727. if test "${ac_cv_path_SED+set}" = set; then :
  4728. $as_echo_n "(cached) " >&6
  4729. else
  4730. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4731. for ac_i in 1 2 3 4 5 6 7; do
  4732. ac_script="$ac_script$as_nl$ac_script"
  4733. done
  4734. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4735. { ac_script=; unset ac_script;}
  4736. if test -z "$SED"; then
  4737. ac_path_SED_found=false
  4738. # Loop through the user's path and test for each of PROGNAME-LIST
  4739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4740. for as_dir in $PATH
  4741. do
  4742. IFS=$as_save_IFS
  4743. test -z "$as_dir" && as_dir=.
  4744. for ac_prog in sed gsed; do
  4745. for ac_exec_ext in '' $ac_executable_extensions; do
  4746. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4747. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4748. # Check for GNU ac_path_SED and select it if it is found.
  4749. # Check for GNU $ac_path_SED
  4750. case `"$ac_path_SED" --version 2>&1` in
  4751. *GNU*)
  4752. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4753. *)
  4754. ac_count=0
  4755. $as_echo_n 0123456789 >"conftest.in"
  4756. while :
  4757. do
  4758. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4759. mv "conftest.tmp" "conftest.in"
  4760. cp "conftest.in" "conftest.nl"
  4761. $as_echo '' >> "conftest.nl"
  4762. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4763. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4764. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4765. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4766. # Best one so far, save it but keep looking for a better one
  4767. ac_cv_path_SED="$ac_path_SED"
  4768. ac_path_SED_max=$ac_count
  4769. fi
  4770. # 10*(2^10) chars as input seems more than enough
  4771. test $ac_count -gt 10 && break
  4772. done
  4773. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4774. esac
  4775. $ac_path_SED_found && break 3
  4776. done
  4777. done
  4778. done
  4779. IFS=$as_save_IFS
  4780. if test -z "$ac_cv_path_SED"; then
  4781. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4782. fi
  4783. else
  4784. ac_cv_path_SED=$SED
  4785. fi
  4786. fi
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4788. $as_echo "$ac_cv_path_SED" >&6; }
  4789. SED="$ac_cv_path_SED"
  4790. rm -f conftest.sed
  4791. test -z "$SED" && SED=sed
  4792. Xsed="$SED -e 1s/^X//"
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4794. $as_echo_n "checking for fgrep... " >&6; }
  4795. if test "${ac_cv_path_FGREP+set}" = set; then :
  4796. $as_echo_n "(cached) " >&6
  4797. else
  4798. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4799. then ac_cv_path_FGREP="$GREP -F"
  4800. else
  4801. if test -z "$FGREP"; then
  4802. ac_path_FGREP_found=false
  4803. # Loop through the user's path and test for each of PROGNAME-LIST
  4804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4805. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4806. do
  4807. IFS=$as_save_IFS
  4808. test -z "$as_dir" && as_dir=.
  4809. for ac_prog in fgrep; do
  4810. for ac_exec_ext in '' $ac_executable_extensions; do
  4811. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4812. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4813. # Check for GNU ac_path_FGREP and select it if it is found.
  4814. # Check for GNU $ac_path_FGREP
  4815. case `"$ac_path_FGREP" --version 2>&1` in
  4816. *GNU*)
  4817. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4818. *)
  4819. ac_count=0
  4820. $as_echo_n 0123456789 >"conftest.in"
  4821. while :
  4822. do
  4823. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4824. mv "conftest.tmp" "conftest.in"
  4825. cp "conftest.in" "conftest.nl"
  4826. $as_echo 'FGREP' >> "conftest.nl"
  4827. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4828. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4829. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4830. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4831. # Best one so far, save it but keep looking for a better one
  4832. ac_cv_path_FGREP="$ac_path_FGREP"
  4833. ac_path_FGREP_max=$ac_count
  4834. fi
  4835. # 10*(2^10) chars as input seems more than enough
  4836. test $ac_count -gt 10 && break
  4837. done
  4838. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4839. esac
  4840. $ac_path_FGREP_found && break 3
  4841. done
  4842. done
  4843. done
  4844. IFS=$as_save_IFS
  4845. if test -z "$ac_cv_path_FGREP"; then
  4846. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4847. fi
  4848. else
  4849. ac_cv_path_FGREP=$FGREP
  4850. fi
  4851. fi
  4852. fi
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4854. $as_echo "$ac_cv_path_FGREP" >&6; }
  4855. FGREP="$ac_cv_path_FGREP"
  4856. test -z "$GREP" && GREP=grep
  4857. # Check whether --with-gnu-ld was given.
  4858. if test "${with_gnu_ld+set}" = set; then :
  4859. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4860. else
  4861. with_gnu_ld=no
  4862. fi
  4863. ac_prog=ld
  4864. if test "$GCC" = yes; then
  4865. # Check if gcc -print-prog-name=ld gives a path.
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4867. $as_echo_n "checking for ld used by $CC... " >&6; }
  4868. case $host in
  4869. *-*-mingw*)
  4870. # gcc leaves a trailing carriage return which upsets mingw
  4871. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4872. *)
  4873. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4874. esac
  4875. case $ac_prog in
  4876. # Accept absolute paths.
  4877. [\\/]* | ?:[\\/]*)
  4878. re_direlt='/[^/][^/]*/\.\./'
  4879. # Canonicalize the pathname of ld
  4880. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4881. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4882. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4883. done
  4884. test -z "$LD" && LD="$ac_prog"
  4885. ;;
  4886. "")
  4887. # If it fails, then pretend we aren't using GCC.
  4888. ac_prog=ld
  4889. ;;
  4890. *)
  4891. # If it is relative, then search for the first ld in PATH.
  4892. with_gnu_ld=unknown
  4893. ;;
  4894. esac
  4895. elif test "$with_gnu_ld" = yes; then
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4897. $as_echo_n "checking for GNU ld... " >&6; }
  4898. else
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4900. $as_echo_n "checking for non-GNU ld... " >&6; }
  4901. fi
  4902. if test "${lt_cv_path_LD+set}" = set; then :
  4903. $as_echo_n "(cached) " >&6
  4904. else
  4905. if test -z "$LD"; then
  4906. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4907. for ac_dir in $PATH; do
  4908. IFS="$lt_save_ifs"
  4909. test -z "$ac_dir" && ac_dir=.
  4910. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4911. lt_cv_path_LD="$ac_dir/$ac_prog"
  4912. # Check to see if the program is GNU ld. I'd rather use --version,
  4913. # but apparently some variants of GNU ld only accept -v.
  4914. # Break only if it was the GNU/non-GNU ld that we prefer.
  4915. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4916. *GNU* | *'with BFD'*)
  4917. test "$with_gnu_ld" != no && break
  4918. ;;
  4919. *)
  4920. test "$with_gnu_ld" != yes && break
  4921. ;;
  4922. esac
  4923. fi
  4924. done
  4925. IFS="$lt_save_ifs"
  4926. else
  4927. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4928. fi
  4929. fi
  4930. LD="$lt_cv_path_LD"
  4931. if test -n "$LD"; then
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4933. $as_echo "$LD" >&6; }
  4934. else
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4936. $as_echo "no" >&6; }
  4937. fi
  4938. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4940. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4941. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4942. $as_echo_n "(cached) " >&6
  4943. else
  4944. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4945. case `$LD -v 2>&1 </dev/null` in
  4946. *GNU* | *'with BFD'*)
  4947. lt_cv_prog_gnu_ld=yes
  4948. ;;
  4949. *)
  4950. lt_cv_prog_gnu_ld=no
  4951. ;;
  4952. esac
  4953. fi
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4955. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4956. with_gnu_ld=$lt_cv_prog_gnu_ld
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4958. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4959. if test "${lt_cv_path_NM+set}" = set; then :
  4960. $as_echo_n "(cached) " >&6
  4961. else
  4962. if test -n "$NM"; then
  4963. # Let the user override the test.
  4964. lt_cv_path_NM="$NM"
  4965. else
  4966. lt_nm_to_check="${ac_tool_prefix}nm"
  4967. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4968. lt_nm_to_check="$lt_nm_to_check nm"
  4969. fi
  4970. for lt_tmp_nm in $lt_nm_to_check; do
  4971. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4972. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4973. IFS="$lt_save_ifs"
  4974. test -z "$ac_dir" && ac_dir=.
  4975. tmp_nm="$ac_dir/$lt_tmp_nm"
  4976. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4977. # Check to see if the nm accepts a BSD-compat flag.
  4978. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4979. # nm: unknown option "B" ignored
  4980. # Tru64's nm complains that /dev/null is an invalid object file
  4981. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4982. */dev/null* | *'Invalid file or object type'*)
  4983. lt_cv_path_NM="$tmp_nm -B"
  4984. break
  4985. ;;
  4986. *)
  4987. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4988. */dev/null*)
  4989. lt_cv_path_NM="$tmp_nm -p"
  4990. break
  4991. ;;
  4992. *)
  4993. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4994. continue # so that we can try to find one that supports BSD flags
  4995. ;;
  4996. esac
  4997. ;;
  4998. esac
  4999. fi
  5000. done
  5001. IFS="$lt_save_ifs"
  5002. done
  5003. : ${lt_cv_path_NM=no}
  5004. fi
  5005. fi
  5006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5007. $as_echo "$lt_cv_path_NM" >&6; }
  5008. if test "$lt_cv_path_NM" != "no"; then
  5009. NM="$lt_cv_path_NM"
  5010. else
  5011. # Didn't find any BSD compatible name lister, look for dumpbin.
  5012. if test -n "$DUMPBIN"; then :
  5013. # Let the user override the test.
  5014. else
  5015. if test -n "$ac_tool_prefix"; then
  5016. for ac_prog in dumpbin "link -dump"
  5017. do
  5018. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5019. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5021. $as_echo_n "checking for $ac_word... " >&6; }
  5022. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  5023. $as_echo_n "(cached) " >&6
  5024. else
  5025. if test -n "$DUMPBIN"; then
  5026. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5027. else
  5028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5029. for as_dir in $PATH
  5030. do
  5031. IFS=$as_save_IFS
  5032. test -z "$as_dir" && as_dir=.
  5033. for ac_exec_ext in '' $ac_executable_extensions; do
  5034. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5035. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5037. break 2
  5038. fi
  5039. done
  5040. done
  5041. IFS=$as_save_IFS
  5042. fi
  5043. fi
  5044. DUMPBIN=$ac_cv_prog_DUMPBIN
  5045. if test -n "$DUMPBIN"; then
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5047. $as_echo "$DUMPBIN" >&6; }
  5048. else
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5050. $as_echo "no" >&6; }
  5051. fi
  5052. test -n "$DUMPBIN" && break
  5053. done
  5054. fi
  5055. if test -z "$DUMPBIN"; then
  5056. ac_ct_DUMPBIN=$DUMPBIN
  5057. for ac_prog in dumpbin "link -dump"
  5058. do
  5059. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5060. set dummy $ac_prog; ac_word=$2
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5062. $as_echo_n "checking for $ac_word... " >&6; }
  5063. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  5064. $as_echo_n "(cached) " >&6
  5065. else
  5066. if test -n "$ac_ct_DUMPBIN"; then
  5067. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5068. else
  5069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5070. for as_dir in $PATH
  5071. do
  5072. IFS=$as_save_IFS
  5073. test -z "$as_dir" && as_dir=.
  5074. for ac_exec_ext in '' $ac_executable_extensions; do
  5075. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5076. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5078. break 2
  5079. fi
  5080. done
  5081. done
  5082. IFS=$as_save_IFS
  5083. fi
  5084. fi
  5085. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5086. if test -n "$ac_ct_DUMPBIN"; then
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5088. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5089. else
  5090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5091. $as_echo "no" >&6; }
  5092. fi
  5093. test -n "$ac_ct_DUMPBIN" && break
  5094. done
  5095. if test "x$ac_ct_DUMPBIN" = x; then
  5096. DUMPBIN=":"
  5097. else
  5098. case $cross_compiling:$ac_tool_warned in
  5099. yes:)
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5101. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5102. ac_tool_warned=yes ;;
  5103. esac
  5104. DUMPBIN=$ac_ct_DUMPBIN
  5105. fi
  5106. fi
  5107. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5108. *COFF*)
  5109. DUMPBIN="$DUMPBIN -symbols"
  5110. ;;
  5111. *)
  5112. DUMPBIN=:
  5113. ;;
  5114. esac
  5115. fi
  5116. if test "$DUMPBIN" != ":"; then
  5117. NM="$DUMPBIN"
  5118. fi
  5119. fi
  5120. test -z "$NM" && NM=nm
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5122. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5123. if test "${lt_cv_nm_interface+set}" = set; then :
  5124. $as_echo_n "(cached) " >&6
  5125. else
  5126. lt_cv_nm_interface="BSD nm"
  5127. echo "int some_variable = 0;" > conftest.$ac_ext
  5128. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5129. (eval "$ac_compile" 2>conftest.err)
  5130. cat conftest.err >&5
  5131. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5132. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5133. cat conftest.err >&5
  5134. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5135. cat conftest.out >&5
  5136. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5137. lt_cv_nm_interface="MS dumpbin"
  5138. fi
  5139. rm -f conftest*
  5140. fi
  5141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5142. $as_echo "$lt_cv_nm_interface" >&6; }
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5144. $as_echo_n "checking whether ln -s works... " >&6; }
  5145. LN_S=$as_ln_s
  5146. if test "$LN_S" = "ln -s"; then
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5148. $as_echo "yes" >&6; }
  5149. else
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5151. $as_echo "no, using $LN_S" >&6; }
  5152. fi
  5153. # find the maximum length of command line arguments
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5155. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5156. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  5157. $as_echo_n "(cached) " >&6
  5158. else
  5159. i=0
  5160. teststring="ABCD"
  5161. case $build_os in
  5162. msdosdjgpp*)
  5163. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5164. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5165. # during glob expansion). Even if it were fixed, the result of this
  5166. # check would be larger than it should be.
  5167. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5168. ;;
  5169. gnu*)
  5170. # Under GNU Hurd, this test is not required because there is
  5171. # no limit to the length of command line arguments.
  5172. # Libtool will interpret -1 as no limit whatsoever
  5173. lt_cv_sys_max_cmd_len=-1;
  5174. ;;
  5175. cygwin* | mingw* | cegcc*)
  5176. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5177. # about 5 minutes as the teststring grows exponentially.
  5178. # Worse, since 9x/ME are not pre-emptively multitasking,
  5179. # you end up with a "frozen" computer, even though with patience
  5180. # the test eventually succeeds (with a max line length of 256k).
  5181. # Instead, let's just punt: use the minimum linelength reported by
  5182. # all of the supported platforms: 8192 (on NT/2K/XP).
  5183. lt_cv_sys_max_cmd_len=8192;
  5184. ;;
  5185. mint*)
  5186. # On MiNT this can take a long time and run out of memory.
  5187. lt_cv_sys_max_cmd_len=8192;
  5188. ;;
  5189. amigaos*)
  5190. # On AmigaOS with pdksh, this test takes hours, literally.
  5191. # So we just punt and use a minimum line length of 8192.
  5192. lt_cv_sys_max_cmd_len=8192;
  5193. ;;
  5194. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5195. # This has been around since 386BSD, at least. Likely further.
  5196. if test -x /sbin/sysctl; then
  5197. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5198. elif test -x /usr/sbin/sysctl; then
  5199. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5200. else
  5201. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5202. fi
  5203. # And add a safety zone
  5204. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5205. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5206. ;;
  5207. interix*)
  5208. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5209. lt_cv_sys_max_cmd_len=196608
  5210. ;;
  5211. osf*)
  5212. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5213. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5214. # nice to cause kernel panics so lets avoid the loop below.
  5215. # First set a reasonable default.
  5216. lt_cv_sys_max_cmd_len=16384
  5217. #
  5218. if test -x /sbin/sysconfig; then
  5219. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5220. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5221. esac
  5222. fi
  5223. ;;
  5224. sco3.2v5*)
  5225. lt_cv_sys_max_cmd_len=102400
  5226. ;;
  5227. sysv5* | sco5v6* | sysv4.2uw2*)
  5228. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5229. if test -n "$kargmax"; then
  5230. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5231. else
  5232. lt_cv_sys_max_cmd_len=32768
  5233. fi
  5234. ;;
  5235. *)
  5236. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5237. if test -n "$lt_cv_sys_max_cmd_len"; then
  5238. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5239. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5240. else
  5241. # Make teststring a little bigger before we do anything with it.
  5242. # a 1K string should be a reasonable start.
  5243. for i in 1 2 3 4 5 6 7 8 ; do
  5244. teststring=$teststring$teststring
  5245. done
  5246. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5247. # If test is not a shell built-in, we'll probably end up computing a
  5248. # maximum length that is only half of the actual maximum length, but
  5249. # we can't tell.
  5250. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5251. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5252. test $i != 17 # 1/2 MB should be enough
  5253. do
  5254. i=`expr $i + 1`
  5255. teststring=$teststring$teststring
  5256. done
  5257. # Only check the string length outside the loop.
  5258. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5259. teststring=
  5260. # Add a significant safety factor because C++ compilers can tack on
  5261. # massive amounts of additional arguments before passing them to the
  5262. # linker. It appears as though 1/2 is a usable value.
  5263. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5264. fi
  5265. ;;
  5266. esac
  5267. fi
  5268. if test -n $lt_cv_sys_max_cmd_len ; then
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5270. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5271. else
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5273. $as_echo "none" >&6; }
  5274. fi
  5275. max_cmd_len=$lt_cv_sys_max_cmd_len
  5276. : ${CP="cp -f"}
  5277. : ${MV="mv -f"}
  5278. : ${RM="rm -f"}
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5280. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5281. # Try some XSI features
  5282. xsi_shell=no
  5283. ( _lt_dummy="a/b/c"
  5284. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5285. = c,a/b,, \
  5286. && eval 'test $(( 1 + 1 )) -eq 2 \
  5287. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5288. && xsi_shell=yes
  5289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5290. $as_echo "$xsi_shell" >&6; }
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5292. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5293. lt_shell_append=no
  5294. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5295. >/dev/null 2>&1 \
  5296. && lt_shell_append=yes
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5298. $as_echo "$lt_shell_append" >&6; }
  5299. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5300. lt_unset=unset
  5301. else
  5302. lt_unset=false
  5303. fi
  5304. # test EBCDIC or ASCII
  5305. case `echo X|tr X '\101'` in
  5306. A) # ASCII based system
  5307. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5308. lt_SP2NL='tr \040 \012'
  5309. lt_NL2SP='tr \015\012 \040\040'
  5310. ;;
  5311. *) # EBCDIC based system
  5312. lt_SP2NL='tr \100 \n'
  5313. lt_NL2SP='tr \r\n \100\100'
  5314. ;;
  5315. esac
  5316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5317. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5318. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5319. $as_echo_n "(cached) " >&6
  5320. else
  5321. lt_cv_ld_reload_flag='-r'
  5322. fi
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5324. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5325. reload_flag=$lt_cv_ld_reload_flag
  5326. case $reload_flag in
  5327. "" | " "*) ;;
  5328. *) reload_flag=" $reload_flag" ;;
  5329. esac
  5330. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5331. case $host_os in
  5332. darwin*)
  5333. if test "$GCC" = yes; then
  5334. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5335. else
  5336. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5337. fi
  5338. ;;
  5339. esac
  5340. if test -n "$ac_tool_prefix"; then
  5341. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5342. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5344. $as_echo_n "checking for $ac_word... " >&6; }
  5345. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5346. $as_echo_n "(cached) " >&6
  5347. else
  5348. if test -n "$OBJDUMP"; then
  5349. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5350. else
  5351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5352. for as_dir in $PATH
  5353. do
  5354. IFS=$as_save_IFS
  5355. test -z "$as_dir" && as_dir=.
  5356. for ac_exec_ext in '' $ac_executable_extensions; do
  5357. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5358. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5360. break 2
  5361. fi
  5362. done
  5363. done
  5364. IFS=$as_save_IFS
  5365. fi
  5366. fi
  5367. OBJDUMP=$ac_cv_prog_OBJDUMP
  5368. if test -n "$OBJDUMP"; then
  5369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5370. $as_echo "$OBJDUMP" >&6; }
  5371. else
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5373. $as_echo "no" >&6; }
  5374. fi
  5375. fi
  5376. if test -z "$ac_cv_prog_OBJDUMP"; then
  5377. ac_ct_OBJDUMP=$OBJDUMP
  5378. # Extract the first word of "objdump", so it can be a program name with args.
  5379. set dummy objdump; ac_word=$2
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5381. $as_echo_n "checking for $ac_word... " >&6; }
  5382. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5383. $as_echo_n "(cached) " >&6
  5384. else
  5385. if test -n "$ac_ct_OBJDUMP"; then
  5386. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5387. else
  5388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5389. for as_dir in $PATH
  5390. do
  5391. IFS=$as_save_IFS
  5392. test -z "$as_dir" && as_dir=.
  5393. for ac_exec_ext in '' $ac_executable_extensions; do
  5394. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5395. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5397. break 2
  5398. fi
  5399. done
  5400. done
  5401. IFS=$as_save_IFS
  5402. fi
  5403. fi
  5404. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5405. if test -n "$ac_ct_OBJDUMP"; then
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5407. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5408. else
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5410. $as_echo "no" >&6; }
  5411. fi
  5412. if test "x$ac_ct_OBJDUMP" = x; then
  5413. OBJDUMP="false"
  5414. else
  5415. case $cross_compiling:$ac_tool_warned in
  5416. yes:)
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5418. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5419. ac_tool_warned=yes ;;
  5420. esac
  5421. OBJDUMP=$ac_ct_OBJDUMP
  5422. fi
  5423. else
  5424. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5425. fi
  5426. test -z "$OBJDUMP" && OBJDUMP=objdump
  5427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5428. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5429. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5430. $as_echo_n "(cached) " >&6
  5431. else
  5432. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5433. lt_cv_file_magic_test_file=
  5434. lt_cv_deplibs_check_method='unknown'
  5435. # Need to set the preceding variable on all platforms that support
  5436. # interlibrary dependencies.
  5437. # 'none' -- dependencies not supported.
  5438. # `unknown' -- same as none, but documents that we really don't know.
  5439. # 'pass_all' -- all dependencies passed with no checks.
  5440. # 'test_compile' -- check by making test program.
  5441. # 'file_magic [[regex]]' -- check by looking for files in library path
  5442. # which responds to the $file_magic_cmd with a given extended regex.
  5443. # If you have `file' or equivalent on your system and you're not sure
  5444. # whether `pass_all' will *always* work, you probably want this one.
  5445. case $host_os in
  5446. aix[4-9]*)
  5447. lt_cv_deplibs_check_method=pass_all
  5448. ;;
  5449. beos*)
  5450. lt_cv_deplibs_check_method=pass_all
  5451. ;;
  5452. bsdi[45]*)
  5453. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5454. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5455. lt_cv_file_magic_test_file=/shlib/libc.so
  5456. ;;
  5457. cygwin*)
  5458. # func_win32_libid is a shell function defined in ltmain.sh
  5459. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5460. lt_cv_file_magic_cmd='func_win32_libid'
  5461. ;;
  5462. mingw* | pw32*)
  5463. # Base MSYS/MinGW do not provide the 'file' command needed by
  5464. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5465. # unless we find 'file', for example because we are cross-compiling.
  5466. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5467. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5468. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5469. lt_cv_file_magic_cmd='func_win32_libid'
  5470. else
  5471. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5472. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5473. fi
  5474. ;;
  5475. cegcc*)
  5476. # use the weaker test based on 'objdump'. See mingw*.
  5477. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5478. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5479. ;;
  5480. darwin* | rhapsody*)
  5481. lt_cv_deplibs_check_method=pass_all
  5482. ;;
  5483. freebsd* | dragonfly*)
  5484. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5485. case $host_cpu in
  5486. i*86 )
  5487. # Not sure whether the presence of OpenBSD here was a mistake.
  5488. # Let's accept both of them until this is cleared up.
  5489. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5490. lt_cv_file_magic_cmd=/usr/bin/file
  5491. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5492. ;;
  5493. esac
  5494. else
  5495. lt_cv_deplibs_check_method=pass_all
  5496. fi
  5497. ;;
  5498. gnu*)
  5499. lt_cv_deplibs_check_method=pass_all
  5500. ;;
  5501. haiku*)
  5502. lt_cv_deplibs_check_method=pass_all
  5503. ;;
  5504. hpux10.20* | hpux11*)
  5505. lt_cv_file_magic_cmd=/usr/bin/file
  5506. case $host_cpu in
  5507. ia64*)
  5508. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5509. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5510. ;;
  5511. hppa*64*)
  5512. 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]'
  5513. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5514. ;;
  5515. *)
  5516. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5517. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5518. ;;
  5519. esac
  5520. ;;
  5521. interix[3-9]*)
  5522. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5523. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5524. ;;
  5525. irix5* | irix6* | nonstopux*)
  5526. case $LD in
  5527. *-32|*"-32 ") libmagic=32-bit;;
  5528. *-n32|*"-n32 ") libmagic=N32;;
  5529. *-64|*"-64 ") libmagic=64-bit;;
  5530. *) libmagic=never-match;;
  5531. esac
  5532. lt_cv_deplibs_check_method=pass_all
  5533. ;;
  5534. # This must be Linux ELF.
  5535. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5536. lt_cv_deplibs_check_method=pass_all
  5537. ;;
  5538. netbsd*)
  5539. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5540. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5541. else
  5542. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5543. fi
  5544. ;;
  5545. newos6*)
  5546. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5547. lt_cv_file_magic_cmd=/usr/bin/file
  5548. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5549. ;;
  5550. *nto* | *qnx*)
  5551. lt_cv_deplibs_check_method=pass_all
  5552. ;;
  5553. openbsd*)
  5554. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5555. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5556. else
  5557. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5558. fi
  5559. ;;
  5560. osf3* | osf4* | osf5*)
  5561. lt_cv_deplibs_check_method=pass_all
  5562. ;;
  5563. rdos*)
  5564. lt_cv_deplibs_check_method=pass_all
  5565. ;;
  5566. solaris*)
  5567. lt_cv_deplibs_check_method=pass_all
  5568. ;;
  5569. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5570. lt_cv_deplibs_check_method=pass_all
  5571. ;;
  5572. sysv4 | sysv4.3*)
  5573. case $host_vendor in
  5574. motorola)
  5575. 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]'
  5576. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5577. ;;
  5578. ncr)
  5579. lt_cv_deplibs_check_method=pass_all
  5580. ;;
  5581. sequent)
  5582. lt_cv_file_magic_cmd='/bin/file'
  5583. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5584. ;;
  5585. sni)
  5586. lt_cv_file_magic_cmd='/bin/file'
  5587. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5588. lt_cv_file_magic_test_file=/lib/libc.so
  5589. ;;
  5590. siemens)
  5591. lt_cv_deplibs_check_method=pass_all
  5592. ;;
  5593. pc)
  5594. lt_cv_deplibs_check_method=pass_all
  5595. ;;
  5596. esac
  5597. ;;
  5598. tpf*)
  5599. lt_cv_deplibs_check_method=pass_all
  5600. ;;
  5601. esac
  5602. fi
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5604. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5605. file_magic_cmd=$lt_cv_file_magic_cmd
  5606. deplibs_check_method=$lt_cv_deplibs_check_method
  5607. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5608. if test -n "$ac_tool_prefix"; then
  5609. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5610. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5612. $as_echo_n "checking for $ac_word... " >&6; }
  5613. if test "${ac_cv_prog_AR+set}" = set; then :
  5614. $as_echo_n "(cached) " >&6
  5615. else
  5616. if test -n "$AR"; then
  5617. ac_cv_prog_AR="$AR" # Let the user override the test.
  5618. else
  5619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5620. for as_dir in $PATH
  5621. do
  5622. IFS=$as_save_IFS
  5623. test -z "$as_dir" && as_dir=.
  5624. for ac_exec_ext in '' $ac_executable_extensions; do
  5625. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5626. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5627. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5628. break 2
  5629. fi
  5630. done
  5631. done
  5632. IFS=$as_save_IFS
  5633. fi
  5634. fi
  5635. AR=$ac_cv_prog_AR
  5636. if test -n "$AR"; then
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5638. $as_echo "$AR" >&6; }
  5639. else
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5641. $as_echo "no" >&6; }
  5642. fi
  5643. fi
  5644. if test -z "$ac_cv_prog_AR"; then
  5645. ac_ct_AR=$AR
  5646. # Extract the first word of "ar", so it can be a program name with args.
  5647. set dummy ar; ac_word=$2
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5649. $as_echo_n "checking for $ac_word... " >&6; }
  5650. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5651. $as_echo_n "(cached) " >&6
  5652. else
  5653. if test -n "$ac_ct_AR"; then
  5654. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5655. else
  5656. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5657. for as_dir in $PATH
  5658. do
  5659. IFS=$as_save_IFS
  5660. test -z "$as_dir" && as_dir=.
  5661. for ac_exec_ext in '' $ac_executable_extensions; do
  5662. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5663. ac_cv_prog_ac_ct_AR="ar"
  5664. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5665. break 2
  5666. fi
  5667. done
  5668. done
  5669. IFS=$as_save_IFS
  5670. fi
  5671. fi
  5672. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5673. if test -n "$ac_ct_AR"; then
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5675. $as_echo "$ac_ct_AR" >&6; }
  5676. else
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5678. $as_echo "no" >&6; }
  5679. fi
  5680. if test "x$ac_ct_AR" = x; then
  5681. AR="false"
  5682. else
  5683. case $cross_compiling:$ac_tool_warned in
  5684. yes:)
  5685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5686. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5687. ac_tool_warned=yes ;;
  5688. esac
  5689. AR=$ac_ct_AR
  5690. fi
  5691. else
  5692. AR="$ac_cv_prog_AR"
  5693. fi
  5694. test -z "$AR" && AR=ar
  5695. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5696. if test -n "$ac_tool_prefix"; then
  5697. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5698. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5700. $as_echo_n "checking for $ac_word... " >&6; }
  5701. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5702. $as_echo_n "(cached) " >&6
  5703. else
  5704. if test -n "$STRIP"; then
  5705. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5706. else
  5707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5708. for as_dir in $PATH
  5709. do
  5710. IFS=$as_save_IFS
  5711. test -z "$as_dir" && as_dir=.
  5712. for ac_exec_ext in '' $ac_executable_extensions; do
  5713. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5714. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5716. break 2
  5717. fi
  5718. done
  5719. done
  5720. IFS=$as_save_IFS
  5721. fi
  5722. fi
  5723. STRIP=$ac_cv_prog_STRIP
  5724. if test -n "$STRIP"; then
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5726. $as_echo "$STRIP" >&6; }
  5727. else
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5729. $as_echo "no" >&6; }
  5730. fi
  5731. fi
  5732. if test -z "$ac_cv_prog_STRIP"; then
  5733. ac_ct_STRIP=$STRIP
  5734. # Extract the first word of "strip", so it can be a program name with args.
  5735. set dummy strip; ac_word=$2
  5736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5737. $as_echo_n "checking for $ac_word... " >&6; }
  5738. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5739. $as_echo_n "(cached) " >&6
  5740. else
  5741. if test -n "$ac_ct_STRIP"; then
  5742. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5743. else
  5744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5745. for as_dir in $PATH
  5746. do
  5747. IFS=$as_save_IFS
  5748. test -z "$as_dir" && as_dir=.
  5749. for ac_exec_ext in '' $ac_executable_extensions; do
  5750. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5751. ac_cv_prog_ac_ct_STRIP="strip"
  5752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5753. break 2
  5754. fi
  5755. done
  5756. done
  5757. IFS=$as_save_IFS
  5758. fi
  5759. fi
  5760. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5761. if test -n "$ac_ct_STRIP"; then
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5763. $as_echo "$ac_ct_STRIP" >&6; }
  5764. else
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5766. $as_echo "no" >&6; }
  5767. fi
  5768. if test "x$ac_ct_STRIP" = x; then
  5769. STRIP=":"
  5770. else
  5771. case $cross_compiling:$ac_tool_warned in
  5772. yes:)
  5773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5774. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5775. ac_tool_warned=yes ;;
  5776. esac
  5777. STRIP=$ac_ct_STRIP
  5778. fi
  5779. else
  5780. STRIP="$ac_cv_prog_STRIP"
  5781. fi
  5782. test -z "$STRIP" && STRIP=:
  5783. if test -n "$ac_tool_prefix"; then
  5784. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5785. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5787. $as_echo_n "checking for $ac_word... " >&6; }
  5788. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5789. $as_echo_n "(cached) " >&6
  5790. else
  5791. if test -n "$RANLIB"; then
  5792. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5793. else
  5794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5795. for as_dir in $PATH
  5796. do
  5797. IFS=$as_save_IFS
  5798. test -z "$as_dir" && as_dir=.
  5799. for ac_exec_ext in '' $ac_executable_extensions; do
  5800. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5801. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5803. break 2
  5804. fi
  5805. done
  5806. done
  5807. IFS=$as_save_IFS
  5808. fi
  5809. fi
  5810. RANLIB=$ac_cv_prog_RANLIB
  5811. if test -n "$RANLIB"; then
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5813. $as_echo "$RANLIB" >&6; }
  5814. else
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5816. $as_echo "no" >&6; }
  5817. fi
  5818. fi
  5819. if test -z "$ac_cv_prog_RANLIB"; then
  5820. ac_ct_RANLIB=$RANLIB
  5821. # Extract the first word of "ranlib", so it can be a program name with args.
  5822. set dummy ranlib; ac_word=$2
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5824. $as_echo_n "checking for $ac_word... " >&6; }
  5825. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5826. $as_echo_n "(cached) " >&6
  5827. else
  5828. if test -n "$ac_ct_RANLIB"; then
  5829. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5830. else
  5831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5832. for as_dir in $PATH
  5833. do
  5834. IFS=$as_save_IFS
  5835. test -z "$as_dir" && as_dir=.
  5836. for ac_exec_ext in '' $ac_executable_extensions; do
  5837. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5838. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5840. break 2
  5841. fi
  5842. done
  5843. done
  5844. IFS=$as_save_IFS
  5845. fi
  5846. fi
  5847. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5848. if test -n "$ac_ct_RANLIB"; then
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5850. $as_echo "$ac_ct_RANLIB" >&6; }
  5851. else
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5853. $as_echo "no" >&6; }
  5854. fi
  5855. if test "x$ac_ct_RANLIB" = x; then
  5856. RANLIB=":"
  5857. else
  5858. case $cross_compiling:$ac_tool_warned in
  5859. yes:)
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5861. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5862. ac_tool_warned=yes ;;
  5863. esac
  5864. RANLIB=$ac_ct_RANLIB
  5865. fi
  5866. else
  5867. RANLIB="$ac_cv_prog_RANLIB"
  5868. fi
  5869. test -z "$RANLIB" && RANLIB=:
  5870. # Determine commands to create old-style static archives.
  5871. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5872. old_postinstall_cmds='chmod 644 $oldlib'
  5873. old_postuninstall_cmds=
  5874. if test -n "$RANLIB"; then
  5875. case $host_os in
  5876. openbsd*)
  5877. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5878. ;;
  5879. *)
  5880. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5881. ;;
  5882. esac
  5883. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5884. fi
  5885. case $host_os in
  5886. darwin*)
  5887. lock_old_archive_extraction=yes ;;
  5888. *)
  5889. lock_old_archive_extraction=no ;;
  5890. esac
  5891. # If no C compiler was specified, use CC.
  5892. LTCC=${LTCC-"$CC"}
  5893. # If no C compiler flags were specified, use CFLAGS.
  5894. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5895. # Allow CC to be a program name with arguments.
  5896. compiler=$CC
  5897. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5899. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5900. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5901. $as_echo_n "(cached) " >&6
  5902. else
  5903. # These are sane defaults that work on at least a few old systems.
  5904. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5905. # Character class describing NM global symbol codes.
  5906. symcode='[BCDEGRST]'
  5907. # Regexp to match symbols that can be accessed directly from C.
  5908. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5909. # Define system-specific variables.
  5910. case $host_os in
  5911. aix*)
  5912. symcode='[BCDT]'
  5913. ;;
  5914. cygwin* | mingw* | pw32* | cegcc*)
  5915. symcode='[ABCDGISTW]'
  5916. ;;
  5917. hpux*)
  5918. if test "$host_cpu" = ia64; then
  5919. symcode='[ABCDEGRST]'
  5920. fi
  5921. ;;
  5922. irix* | nonstopux*)
  5923. symcode='[BCDEGRST]'
  5924. ;;
  5925. osf*)
  5926. symcode='[BCDEGQRST]'
  5927. ;;
  5928. solaris*)
  5929. symcode='[BDRT]'
  5930. ;;
  5931. sco3.2v5*)
  5932. symcode='[DT]'
  5933. ;;
  5934. sysv4.2uw2*)
  5935. symcode='[DT]'
  5936. ;;
  5937. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5938. symcode='[ABDT]'
  5939. ;;
  5940. sysv4)
  5941. symcode='[DFNSTU]'
  5942. ;;
  5943. esac
  5944. # If we're using GNU nm, then use its standard symbol codes.
  5945. case `$NM -V 2>&1` in
  5946. *GNU* | *'with BFD'*)
  5947. symcode='[ABCDGIRSTW]' ;;
  5948. esac
  5949. # Transform an extracted symbol line into a proper C declaration.
  5950. # Some systems (esp. on ia64) link data and code symbols differently,
  5951. # so use this general approach.
  5952. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5953. # Transform an extracted symbol line into symbol name and symbol address
  5954. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5955. 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'"
  5956. # Handle CRLF in mingw tool chain
  5957. opt_cr=
  5958. case $build_os in
  5959. mingw*)
  5960. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5961. ;;
  5962. esac
  5963. # Try without a prefix underscore, then with it.
  5964. for ac_symprfx in "" "_"; do
  5965. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5966. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5967. # Write the raw and C identifiers.
  5968. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5969. # Fake it for dumpbin and say T for any non-static function
  5970. # and D for any global variable.
  5971. # Also find C++ and __fastcall symbols from MSVC++,
  5972. # which start with @ or ?.
  5973. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5974. " {last_section=section; section=\$ 3};"\
  5975. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5976. " \$ 0!~/External *\|/{next};"\
  5977. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5978. " {if(hide[section]) next};"\
  5979. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5980. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5981. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5982. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5983. " ' prfx=^$ac_symprfx"
  5984. else
  5985. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5986. fi
  5987. # Check to see that the pipe works correctly.
  5988. pipe_works=no
  5989. rm -f conftest*
  5990. cat > conftest.$ac_ext <<_LT_EOF
  5991. #ifdef __cplusplus
  5992. extern "C" {
  5993. #endif
  5994. char nm_test_var;
  5995. void nm_test_func(void);
  5996. void nm_test_func(void){}
  5997. #ifdef __cplusplus
  5998. }
  5999. #endif
  6000. int main(){nm_test_var='a';nm_test_func();return(0);}
  6001. _LT_EOF
  6002. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6003. (eval $ac_compile) 2>&5
  6004. ac_status=$?
  6005. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6006. test $ac_status = 0; }; then
  6007. # Now try to grab the symbols.
  6008. nlist=conftest.nm
  6009. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6010. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6011. ac_status=$?
  6012. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6013. test $ac_status = 0; } && test -s "$nlist"; then
  6014. # Try sorting and uniquifying the output.
  6015. if sort "$nlist" | uniq > "$nlist"T; then
  6016. mv -f "$nlist"T "$nlist"
  6017. else
  6018. rm -f "$nlist"T
  6019. fi
  6020. # Make sure that we snagged all the symbols we need.
  6021. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6022. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6023. cat <<_LT_EOF > conftest.$ac_ext
  6024. #ifdef __cplusplus
  6025. extern "C" {
  6026. #endif
  6027. _LT_EOF
  6028. # Now generate the symbol file.
  6029. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6030. cat <<_LT_EOF >> conftest.$ac_ext
  6031. /* The mapping between symbol names and symbols. */
  6032. const struct {
  6033. const char *name;
  6034. void *address;
  6035. }
  6036. lt__PROGRAM__LTX_preloaded_symbols[] =
  6037. {
  6038. { "@PROGRAM@", (void *) 0 },
  6039. _LT_EOF
  6040. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6041. cat <<\_LT_EOF >> conftest.$ac_ext
  6042. {0, (void *) 0}
  6043. };
  6044. /* This works around a problem in FreeBSD linker */
  6045. #ifdef FREEBSD_WORKAROUND
  6046. static const void *lt_preloaded_setup() {
  6047. return lt__PROGRAM__LTX_preloaded_symbols;
  6048. }
  6049. #endif
  6050. #ifdef __cplusplus
  6051. }
  6052. #endif
  6053. _LT_EOF
  6054. # Now try linking the two files.
  6055. mv conftest.$ac_objext conftstm.$ac_objext
  6056. lt_save_LIBS="$LIBS"
  6057. lt_save_CFLAGS="$CFLAGS"
  6058. LIBS="conftstm.$ac_objext"
  6059. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6060. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6061. (eval $ac_link) 2>&5
  6062. ac_status=$?
  6063. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6064. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6065. pipe_works=yes
  6066. fi
  6067. LIBS="$lt_save_LIBS"
  6068. CFLAGS="$lt_save_CFLAGS"
  6069. else
  6070. echo "cannot find nm_test_func in $nlist" >&5
  6071. fi
  6072. else
  6073. echo "cannot find nm_test_var in $nlist" >&5
  6074. fi
  6075. else
  6076. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6077. fi
  6078. else
  6079. echo "$progname: failed program was:" >&5
  6080. cat conftest.$ac_ext >&5
  6081. fi
  6082. rm -rf conftest* conftst*
  6083. # Do not use the global_symbol_pipe unless it works.
  6084. if test "$pipe_works" = yes; then
  6085. break
  6086. else
  6087. lt_cv_sys_global_symbol_pipe=
  6088. fi
  6089. done
  6090. fi
  6091. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6092. lt_cv_sys_global_symbol_to_cdecl=
  6093. fi
  6094. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6096. $as_echo "failed" >&6; }
  6097. else
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6099. $as_echo "ok" >&6; }
  6100. fi
  6101. # Check whether --enable-libtool-lock was given.
  6102. if test "${enable_libtool_lock+set}" = set; then :
  6103. enableval=$enable_libtool_lock;
  6104. fi
  6105. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6106. # Some flags need to be propagated to the compiler or linker for good
  6107. # libtool support.
  6108. case $host in
  6109. ia64-*-hpux*)
  6110. # Find out which ABI we are using.
  6111. echo 'int i;' > conftest.$ac_ext
  6112. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6113. (eval $ac_compile) 2>&5
  6114. ac_status=$?
  6115. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6116. test $ac_status = 0; }; then
  6117. case `/usr/bin/file conftest.$ac_objext` in
  6118. *ELF-32*)
  6119. HPUX_IA64_MODE="32"
  6120. ;;
  6121. *ELF-64*)
  6122. HPUX_IA64_MODE="64"
  6123. ;;
  6124. esac
  6125. fi
  6126. rm -rf conftest*
  6127. ;;
  6128. *-*-irix6*)
  6129. # Find out which ABI we are using.
  6130. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6131. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6132. (eval $ac_compile) 2>&5
  6133. ac_status=$?
  6134. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6135. test $ac_status = 0; }; then
  6136. if test "$lt_cv_prog_gnu_ld" = yes; then
  6137. case `/usr/bin/file conftest.$ac_objext` in
  6138. *32-bit*)
  6139. LD="${LD-ld} -melf32bsmip"
  6140. ;;
  6141. *N32*)
  6142. LD="${LD-ld} -melf32bmipn32"
  6143. ;;
  6144. *64-bit*)
  6145. LD="${LD-ld} -melf64bmip"
  6146. ;;
  6147. esac
  6148. else
  6149. case `/usr/bin/file conftest.$ac_objext` in
  6150. *32-bit*)
  6151. LD="${LD-ld} -32"
  6152. ;;
  6153. *N32*)
  6154. LD="${LD-ld} -n32"
  6155. ;;
  6156. *64-bit*)
  6157. LD="${LD-ld} -64"
  6158. ;;
  6159. esac
  6160. fi
  6161. fi
  6162. rm -rf conftest*
  6163. ;;
  6164. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6165. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6166. # Find out which ABI we are using.
  6167. echo 'int i;' > conftest.$ac_ext
  6168. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6169. (eval $ac_compile) 2>&5
  6170. ac_status=$?
  6171. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6172. test $ac_status = 0; }; then
  6173. case `/usr/bin/file conftest.o` in
  6174. *32-bit*)
  6175. case $host in
  6176. x86_64-*kfreebsd*-gnu)
  6177. LD="${LD-ld} -m elf_i386_fbsd"
  6178. ;;
  6179. x86_64-*linux*)
  6180. case `/usr/bin/file conftest.o` in
  6181. *x86-64*)
  6182. LD="${LD-ld} -m elf32_x86_64"
  6183. ;;
  6184. *)
  6185. LD="${LD-ld} -m elf_i386"
  6186. ;;
  6187. esac
  6188. ;;
  6189. powerpc64le-*linux*)
  6190. LD="${LD-ld} -m elf32lppclinux"
  6191. ;;
  6192. powerpc64-*linux*)
  6193. LD="${LD-ld} -m elf32ppclinux"
  6194. ;;
  6195. s390x-*linux*)
  6196. LD="${LD-ld} -m elf_s390"
  6197. ;;
  6198. sparc64-*linux*)
  6199. LD="${LD-ld} -m elf32_sparc"
  6200. ;;
  6201. esac
  6202. ;;
  6203. *64-bit*)
  6204. case $host in
  6205. x86_64-*kfreebsd*-gnu)
  6206. LD="${LD-ld} -m elf_x86_64_fbsd"
  6207. ;;
  6208. x86_64-*linux*)
  6209. LD="${LD-ld} -m elf_x86_64"
  6210. ;;
  6211. powerpcle-*linux*)
  6212. LD="${LD-ld} -m elf64lppc"
  6213. ;;
  6214. powerpc-*linux*)
  6215. LD="${LD-ld} -m elf64ppc"
  6216. ;;
  6217. s390*-*linux*|s390*-*tpf*)
  6218. LD="${LD-ld} -m elf64_s390"
  6219. ;;
  6220. sparc*-*linux*)
  6221. LD="${LD-ld} -m elf64_sparc"
  6222. ;;
  6223. esac
  6224. ;;
  6225. esac
  6226. fi
  6227. rm -rf conftest*
  6228. ;;
  6229. *-*-sco3.2v5*)
  6230. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6231. SAVE_CFLAGS="$CFLAGS"
  6232. CFLAGS="$CFLAGS -belf"
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6234. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6235. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6236. $as_echo_n "(cached) " >&6
  6237. else
  6238. ac_ext=c
  6239. ac_cpp='$CPP $CPPFLAGS'
  6240. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6241. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6242. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6244. /* end confdefs.h. */
  6245. int
  6246. main ()
  6247. {
  6248. ;
  6249. return 0;
  6250. }
  6251. _ACEOF
  6252. if ac_fn_c_try_link "$LINENO"; then :
  6253. lt_cv_cc_needs_belf=yes
  6254. else
  6255. lt_cv_cc_needs_belf=no
  6256. fi
  6257. rm -f core conftest.err conftest.$ac_objext \
  6258. conftest$ac_exeext conftest.$ac_ext
  6259. ac_ext=c
  6260. ac_cpp='$CPP $CPPFLAGS'
  6261. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6262. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6263. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6264. fi
  6265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6266. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6267. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6268. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6269. CFLAGS="$SAVE_CFLAGS"
  6270. fi
  6271. ;;
  6272. sparc*-*solaris*)
  6273. # Find out which ABI we are using.
  6274. echo 'int i;' > conftest.$ac_ext
  6275. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6276. (eval $ac_compile) 2>&5
  6277. ac_status=$?
  6278. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6279. test $ac_status = 0; }; then
  6280. case `/usr/bin/file conftest.o` in
  6281. *64-bit*)
  6282. case $lt_cv_prog_gnu_ld in
  6283. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6284. *)
  6285. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6286. LD="${LD-ld} -64"
  6287. fi
  6288. ;;
  6289. esac
  6290. ;;
  6291. esac
  6292. fi
  6293. rm -rf conftest*
  6294. ;;
  6295. esac
  6296. need_locks="$enable_libtool_lock"
  6297. case $host_os in
  6298. rhapsody* | darwin*)
  6299. if test -n "$ac_tool_prefix"; then
  6300. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6301. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6303. $as_echo_n "checking for $ac_word... " >&6; }
  6304. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6305. $as_echo_n "(cached) " >&6
  6306. else
  6307. if test -n "$DSYMUTIL"; then
  6308. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6309. else
  6310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6311. for as_dir in $PATH
  6312. do
  6313. IFS=$as_save_IFS
  6314. test -z "$as_dir" && as_dir=.
  6315. for ac_exec_ext in '' $ac_executable_extensions; do
  6316. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6317. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6318. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6319. break 2
  6320. fi
  6321. done
  6322. done
  6323. IFS=$as_save_IFS
  6324. fi
  6325. fi
  6326. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6327. if test -n "$DSYMUTIL"; then
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6329. $as_echo "$DSYMUTIL" >&6; }
  6330. else
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6332. $as_echo "no" >&6; }
  6333. fi
  6334. fi
  6335. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6336. ac_ct_DSYMUTIL=$DSYMUTIL
  6337. # Extract the first word of "dsymutil", so it can be a program name with args.
  6338. set dummy dsymutil; ac_word=$2
  6339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6340. $as_echo_n "checking for $ac_word... " >&6; }
  6341. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6342. $as_echo_n "(cached) " >&6
  6343. else
  6344. if test -n "$ac_ct_DSYMUTIL"; then
  6345. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6346. else
  6347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6348. for as_dir in $PATH
  6349. do
  6350. IFS=$as_save_IFS
  6351. test -z "$as_dir" && as_dir=.
  6352. for ac_exec_ext in '' $ac_executable_extensions; do
  6353. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6354. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6355. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6356. break 2
  6357. fi
  6358. done
  6359. done
  6360. IFS=$as_save_IFS
  6361. fi
  6362. fi
  6363. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6364. if test -n "$ac_ct_DSYMUTIL"; then
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6366. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6367. else
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6369. $as_echo "no" >&6; }
  6370. fi
  6371. if test "x$ac_ct_DSYMUTIL" = x; then
  6372. DSYMUTIL=":"
  6373. else
  6374. case $cross_compiling:$ac_tool_warned in
  6375. yes:)
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6377. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6378. ac_tool_warned=yes ;;
  6379. esac
  6380. DSYMUTIL=$ac_ct_DSYMUTIL
  6381. fi
  6382. else
  6383. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6384. fi
  6385. if test -n "$ac_tool_prefix"; then
  6386. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6387. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6389. $as_echo_n "checking for $ac_word... " >&6; }
  6390. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6391. $as_echo_n "(cached) " >&6
  6392. else
  6393. if test -n "$NMEDIT"; then
  6394. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6395. else
  6396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6397. for as_dir in $PATH
  6398. do
  6399. IFS=$as_save_IFS
  6400. test -z "$as_dir" && as_dir=.
  6401. for ac_exec_ext in '' $ac_executable_extensions; do
  6402. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6403. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6405. break 2
  6406. fi
  6407. done
  6408. done
  6409. IFS=$as_save_IFS
  6410. fi
  6411. fi
  6412. NMEDIT=$ac_cv_prog_NMEDIT
  6413. if test -n "$NMEDIT"; then
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6415. $as_echo "$NMEDIT" >&6; }
  6416. else
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6418. $as_echo "no" >&6; }
  6419. fi
  6420. fi
  6421. if test -z "$ac_cv_prog_NMEDIT"; then
  6422. ac_ct_NMEDIT=$NMEDIT
  6423. # Extract the first word of "nmedit", so it can be a program name with args.
  6424. set dummy nmedit; ac_word=$2
  6425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6426. $as_echo_n "checking for $ac_word... " >&6; }
  6427. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6428. $as_echo_n "(cached) " >&6
  6429. else
  6430. if test -n "$ac_ct_NMEDIT"; then
  6431. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6432. else
  6433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6434. for as_dir in $PATH
  6435. do
  6436. IFS=$as_save_IFS
  6437. test -z "$as_dir" && as_dir=.
  6438. for ac_exec_ext in '' $ac_executable_extensions; do
  6439. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6440. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6442. break 2
  6443. fi
  6444. done
  6445. done
  6446. IFS=$as_save_IFS
  6447. fi
  6448. fi
  6449. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6450. if test -n "$ac_ct_NMEDIT"; then
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6452. $as_echo "$ac_ct_NMEDIT" >&6; }
  6453. else
  6454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6455. $as_echo "no" >&6; }
  6456. fi
  6457. if test "x$ac_ct_NMEDIT" = x; then
  6458. NMEDIT=":"
  6459. else
  6460. case $cross_compiling:$ac_tool_warned in
  6461. yes:)
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6463. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6464. ac_tool_warned=yes ;;
  6465. esac
  6466. NMEDIT=$ac_ct_NMEDIT
  6467. fi
  6468. else
  6469. NMEDIT="$ac_cv_prog_NMEDIT"
  6470. fi
  6471. if test -n "$ac_tool_prefix"; then
  6472. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6473. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6475. $as_echo_n "checking for $ac_word... " >&6; }
  6476. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6477. $as_echo_n "(cached) " >&6
  6478. else
  6479. if test -n "$LIPO"; then
  6480. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6481. else
  6482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6483. for as_dir in $PATH
  6484. do
  6485. IFS=$as_save_IFS
  6486. test -z "$as_dir" && as_dir=.
  6487. for ac_exec_ext in '' $ac_executable_extensions; do
  6488. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6489. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6491. break 2
  6492. fi
  6493. done
  6494. done
  6495. IFS=$as_save_IFS
  6496. fi
  6497. fi
  6498. LIPO=$ac_cv_prog_LIPO
  6499. if test -n "$LIPO"; then
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6501. $as_echo "$LIPO" >&6; }
  6502. else
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6504. $as_echo "no" >&6; }
  6505. fi
  6506. fi
  6507. if test -z "$ac_cv_prog_LIPO"; then
  6508. ac_ct_LIPO=$LIPO
  6509. # Extract the first word of "lipo", so it can be a program name with args.
  6510. set dummy lipo; ac_word=$2
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6512. $as_echo_n "checking for $ac_word... " >&6; }
  6513. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6514. $as_echo_n "(cached) " >&6
  6515. else
  6516. if test -n "$ac_ct_LIPO"; then
  6517. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6518. else
  6519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6520. for as_dir in $PATH
  6521. do
  6522. IFS=$as_save_IFS
  6523. test -z "$as_dir" && as_dir=.
  6524. for ac_exec_ext in '' $ac_executable_extensions; do
  6525. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6526. ac_cv_prog_ac_ct_LIPO="lipo"
  6527. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6528. break 2
  6529. fi
  6530. done
  6531. done
  6532. IFS=$as_save_IFS
  6533. fi
  6534. fi
  6535. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6536. if test -n "$ac_ct_LIPO"; then
  6537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6538. $as_echo "$ac_ct_LIPO" >&6; }
  6539. else
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6541. $as_echo "no" >&6; }
  6542. fi
  6543. if test "x$ac_ct_LIPO" = x; then
  6544. LIPO=":"
  6545. else
  6546. case $cross_compiling:$ac_tool_warned in
  6547. yes:)
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6549. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6550. ac_tool_warned=yes ;;
  6551. esac
  6552. LIPO=$ac_ct_LIPO
  6553. fi
  6554. else
  6555. LIPO="$ac_cv_prog_LIPO"
  6556. fi
  6557. if test -n "$ac_tool_prefix"; then
  6558. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6559. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6561. $as_echo_n "checking for $ac_word... " >&6; }
  6562. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6563. $as_echo_n "(cached) " >&6
  6564. else
  6565. if test -n "$OTOOL"; then
  6566. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6567. else
  6568. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6569. for as_dir in $PATH
  6570. do
  6571. IFS=$as_save_IFS
  6572. test -z "$as_dir" && as_dir=.
  6573. for ac_exec_ext in '' $ac_executable_extensions; do
  6574. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6575. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6576. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6577. break 2
  6578. fi
  6579. done
  6580. done
  6581. IFS=$as_save_IFS
  6582. fi
  6583. fi
  6584. OTOOL=$ac_cv_prog_OTOOL
  6585. if test -n "$OTOOL"; then
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6587. $as_echo "$OTOOL" >&6; }
  6588. else
  6589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6590. $as_echo "no" >&6; }
  6591. fi
  6592. fi
  6593. if test -z "$ac_cv_prog_OTOOL"; then
  6594. ac_ct_OTOOL=$OTOOL
  6595. # Extract the first word of "otool", so it can be a program name with args.
  6596. set dummy otool; ac_word=$2
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6598. $as_echo_n "checking for $ac_word... " >&6; }
  6599. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6600. $as_echo_n "(cached) " >&6
  6601. else
  6602. if test -n "$ac_ct_OTOOL"; then
  6603. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6604. else
  6605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6606. for as_dir in $PATH
  6607. do
  6608. IFS=$as_save_IFS
  6609. test -z "$as_dir" && as_dir=.
  6610. for ac_exec_ext in '' $ac_executable_extensions; do
  6611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6612. ac_cv_prog_ac_ct_OTOOL="otool"
  6613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6614. break 2
  6615. fi
  6616. done
  6617. done
  6618. IFS=$as_save_IFS
  6619. fi
  6620. fi
  6621. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6622. if test -n "$ac_ct_OTOOL"; then
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6624. $as_echo "$ac_ct_OTOOL" >&6; }
  6625. else
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6627. $as_echo "no" >&6; }
  6628. fi
  6629. if test "x$ac_ct_OTOOL" = x; then
  6630. OTOOL=":"
  6631. else
  6632. case $cross_compiling:$ac_tool_warned in
  6633. yes:)
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6635. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6636. ac_tool_warned=yes ;;
  6637. esac
  6638. OTOOL=$ac_ct_OTOOL
  6639. fi
  6640. else
  6641. OTOOL="$ac_cv_prog_OTOOL"
  6642. fi
  6643. if test -n "$ac_tool_prefix"; then
  6644. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6645. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6647. $as_echo_n "checking for $ac_word... " >&6; }
  6648. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6649. $as_echo_n "(cached) " >&6
  6650. else
  6651. if test -n "$OTOOL64"; then
  6652. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6653. else
  6654. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6655. for as_dir in $PATH
  6656. do
  6657. IFS=$as_save_IFS
  6658. test -z "$as_dir" && as_dir=.
  6659. for ac_exec_ext in '' $ac_executable_extensions; do
  6660. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6661. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6662. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6663. break 2
  6664. fi
  6665. done
  6666. done
  6667. IFS=$as_save_IFS
  6668. fi
  6669. fi
  6670. OTOOL64=$ac_cv_prog_OTOOL64
  6671. if test -n "$OTOOL64"; then
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6673. $as_echo "$OTOOL64" >&6; }
  6674. else
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6676. $as_echo "no" >&6; }
  6677. fi
  6678. fi
  6679. if test -z "$ac_cv_prog_OTOOL64"; then
  6680. ac_ct_OTOOL64=$OTOOL64
  6681. # Extract the first word of "otool64", so it can be a program name with args.
  6682. set dummy otool64; ac_word=$2
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6684. $as_echo_n "checking for $ac_word... " >&6; }
  6685. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6686. $as_echo_n "(cached) " >&6
  6687. else
  6688. if test -n "$ac_ct_OTOOL64"; then
  6689. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6690. else
  6691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6692. for as_dir in $PATH
  6693. do
  6694. IFS=$as_save_IFS
  6695. test -z "$as_dir" && as_dir=.
  6696. for ac_exec_ext in '' $ac_executable_extensions; do
  6697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6698. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6700. break 2
  6701. fi
  6702. done
  6703. done
  6704. IFS=$as_save_IFS
  6705. fi
  6706. fi
  6707. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6708. if test -n "$ac_ct_OTOOL64"; then
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6710. $as_echo "$ac_ct_OTOOL64" >&6; }
  6711. else
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6713. $as_echo "no" >&6; }
  6714. fi
  6715. if test "x$ac_ct_OTOOL64" = x; then
  6716. OTOOL64=":"
  6717. else
  6718. case $cross_compiling:$ac_tool_warned in
  6719. yes:)
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6721. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6722. ac_tool_warned=yes ;;
  6723. esac
  6724. OTOOL64=$ac_ct_OTOOL64
  6725. fi
  6726. else
  6727. OTOOL64="$ac_cv_prog_OTOOL64"
  6728. fi
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6730. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6731. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6732. $as_echo_n "(cached) " >&6
  6733. else
  6734. lt_cv_apple_cc_single_mod=no
  6735. if test -z "${LT_MULTI_MODULE}"; then
  6736. # By default we will add the -single_module flag. You can override
  6737. # by either setting the environment variable LT_MULTI_MODULE
  6738. # non-empty at configure time, or by adding -multi_module to the
  6739. # link flags.
  6740. rm -rf libconftest.dylib*
  6741. echo "int foo(void){return 1;}" > conftest.c
  6742. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6743. -dynamiclib -Wl,-single_module conftest.c" >&5
  6744. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6745. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6746. _lt_result=$?
  6747. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6748. lt_cv_apple_cc_single_mod=yes
  6749. else
  6750. cat conftest.err >&5
  6751. fi
  6752. rm -rf libconftest.dylib*
  6753. rm -f conftest.*
  6754. fi
  6755. fi
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6757. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6759. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6760. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6761. $as_echo_n "(cached) " >&6
  6762. else
  6763. lt_cv_ld_exported_symbols_list=no
  6764. save_LDFLAGS=$LDFLAGS
  6765. echo "_main" > conftest.sym
  6766. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6768. /* end confdefs.h. */
  6769. int
  6770. main ()
  6771. {
  6772. ;
  6773. return 0;
  6774. }
  6775. _ACEOF
  6776. if ac_fn_c_try_link "$LINENO"; then :
  6777. lt_cv_ld_exported_symbols_list=yes
  6778. else
  6779. lt_cv_ld_exported_symbols_list=no
  6780. fi
  6781. rm -f core conftest.err conftest.$ac_objext \
  6782. conftest$ac_exeext conftest.$ac_ext
  6783. LDFLAGS="$save_LDFLAGS"
  6784. fi
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6786. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6788. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6789. if test "${lt_cv_ld_force_load+set}" = set; then :
  6790. $as_echo_n "(cached) " >&6
  6791. else
  6792. lt_cv_ld_force_load=no
  6793. cat > conftest.c << _LT_EOF
  6794. int forced_loaded() { return 2;}
  6795. _LT_EOF
  6796. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6797. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6798. echo "$AR cru libconftest.a conftest.o" >&5
  6799. $AR cru libconftest.a conftest.o 2>&5
  6800. cat > conftest.c << _LT_EOF
  6801. int main() { return 0;}
  6802. _LT_EOF
  6803. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6804. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6805. _lt_result=$?
  6806. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6807. lt_cv_ld_force_load=yes
  6808. else
  6809. cat conftest.err >&5
  6810. fi
  6811. rm -f conftest.err libconftest.a conftest conftest.c
  6812. rm -rf conftest.dSYM
  6813. fi
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6815. $as_echo "$lt_cv_ld_force_load" >&6; }
  6816. case $host_os in
  6817. rhapsody* | darwin1.[012])
  6818. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6819. darwin1.*)
  6820. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6821. darwin*) # darwin 5.x on
  6822. # if running on 10.5 or later, the deployment target defaults
  6823. # to the OS version, if on x86, and 10.4, the deployment
  6824. # target defaults to 10.4. Don't you love it?
  6825. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6826. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6827. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6828. 10.[012][,.]*)
  6829. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6830. 10.*)
  6831. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6832. esac
  6833. ;;
  6834. esac
  6835. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6836. _lt_dar_single_mod='$single_module'
  6837. fi
  6838. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6839. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6840. else
  6841. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6842. fi
  6843. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6844. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6845. else
  6846. _lt_dsymutil=
  6847. fi
  6848. ;;
  6849. esac
  6850. for ac_header in dlfcn.h
  6851. do :
  6852. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6853. "
  6854. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6855. cat >>confdefs.h <<_ACEOF
  6856. #define HAVE_DLFCN_H 1
  6857. _ACEOF
  6858. fi
  6859. done
  6860. # Set options
  6861. enable_dlopen=no
  6862. enable_win32_dll=no
  6863. # Check whether --enable-shared was given.
  6864. if test "${enable_shared+set}" = set; then :
  6865. enableval=$enable_shared; p=${PACKAGE-default}
  6866. case $enableval in
  6867. yes) enable_shared=yes ;;
  6868. no) enable_shared=no ;;
  6869. *)
  6870. enable_shared=no
  6871. # Look at the argument we got. We use all the common list separators.
  6872. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6873. for pkg in $enableval; do
  6874. IFS="$lt_save_ifs"
  6875. if test "X$pkg" = "X$p"; then
  6876. enable_shared=yes
  6877. fi
  6878. done
  6879. IFS="$lt_save_ifs"
  6880. ;;
  6881. esac
  6882. else
  6883. enable_shared=yes
  6884. fi
  6885. # Check whether --enable-static was given.
  6886. if test "${enable_static+set}" = set; then :
  6887. enableval=$enable_static; p=${PACKAGE-default}
  6888. case $enableval in
  6889. yes) enable_static=yes ;;
  6890. no) enable_static=no ;;
  6891. *)
  6892. enable_static=no
  6893. # Look at the argument we got. We use all the common list separators.
  6894. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6895. for pkg in $enableval; do
  6896. IFS="$lt_save_ifs"
  6897. if test "X$pkg" = "X$p"; then
  6898. enable_static=yes
  6899. fi
  6900. done
  6901. IFS="$lt_save_ifs"
  6902. ;;
  6903. esac
  6904. else
  6905. enable_static=yes
  6906. fi
  6907. # Check whether --with-pic was given.
  6908. if test "${with_pic+set}" = set; then :
  6909. withval=$with_pic; pic_mode="$withval"
  6910. else
  6911. pic_mode=default
  6912. fi
  6913. test -z "$pic_mode" && pic_mode=default
  6914. # Check whether --enable-fast-install was given.
  6915. if test "${enable_fast_install+set}" = set; then :
  6916. enableval=$enable_fast_install; p=${PACKAGE-default}
  6917. case $enableval in
  6918. yes) enable_fast_install=yes ;;
  6919. no) enable_fast_install=no ;;
  6920. *)
  6921. enable_fast_install=no
  6922. # Look at the argument we got. We use all the common list separators.
  6923. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6924. for pkg in $enableval; do
  6925. IFS="$lt_save_ifs"
  6926. if test "X$pkg" = "X$p"; then
  6927. enable_fast_install=yes
  6928. fi
  6929. done
  6930. IFS="$lt_save_ifs"
  6931. ;;
  6932. esac
  6933. else
  6934. enable_fast_install=yes
  6935. fi
  6936. # This can be used to rebuild libtool when needed
  6937. LIBTOOL_DEPS="$ltmain"
  6938. # Always use our own libtool.
  6939. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6940. test -z "$LN_S" && LN_S="ln -s"
  6941. if test -n "${ZSH_VERSION+set}" ; then
  6942. setopt NO_GLOB_SUBST
  6943. fi
  6944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6945. $as_echo_n "checking for objdir... " >&6; }
  6946. if test "${lt_cv_objdir+set}" = set; then :
  6947. $as_echo_n "(cached) " >&6
  6948. else
  6949. rm -f .libs 2>/dev/null
  6950. mkdir .libs 2>/dev/null
  6951. if test -d .libs; then
  6952. lt_cv_objdir=.libs
  6953. else
  6954. # MS-DOS does not allow filenames that begin with a dot.
  6955. lt_cv_objdir=_libs
  6956. fi
  6957. rmdir .libs 2>/dev/null
  6958. fi
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6960. $as_echo "$lt_cv_objdir" >&6; }
  6961. objdir=$lt_cv_objdir
  6962. cat >>confdefs.h <<_ACEOF
  6963. #define LT_OBJDIR "$lt_cv_objdir/"
  6964. _ACEOF
  6965. case $host_os in
  6966. aix3*)
  6967. # AIX sometimes has problems with the GCC collect2 program. For some
  6968. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6969. # vanish in a puff of smoke.
  6970. if test "X${COLLECT_NAMES+set}" != Xset; then
  6971. COLLECT_NAMES=
  6972. export COLLECT_NAMES
  6973. fi
  6974. ;;
  6975. esac
  6976. # Global variables:
  6977. ofile=libtool
  6978. can_build_shared=yes
  6979. # All known linkers require a `.a' archive for static linking (except MSVC,
  6980. # which needs '.lib').
  6981. libext=a
  6982. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6983. old_CC="$CC"
  6984. old_CFLAGS="$CFLAGS"
  6985. # Set sane defaults for various variables
  6986. test -z "$CC" && CC=cc
  6987. test -z "$LTCC" && LTCC=$CC
  6988. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6989. test -z "$LD" && LD=ld
  6990. test -z "$ac_objext" && ac_objext=o
  6991. for cc_temp in $compiler""; do
  6992. case $cc_temp in
  6993. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6994. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6995. \-*) ;;
  6996. *) break;;
  6997. esac
  6998. done
  6999. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7000. # Only perform the check for file, if the check method requires it
  7001. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7002. case $deplibs_check_method in
  7003. file_magic*)
  7004. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7006. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7007. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7008. $as_echo_n "(cached) " >&6
  7009. else
  7010. case $MAGIC_CMD in
  7011. [\\/*] | ?:[\\/]*)
  7012. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7013. ;;
  7014. *)
  7015. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7016. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7017. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7018. for ac_dir in $ac_dummy; do
  7019. IFS="$lt_save_ifs"
  7020. test -z "$ac_dir" && ac_dir=.
  7021. if test -f $ac_dir/${ac_tool_prefix}file; then
  7022. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7023. if test -n "$file_magic_test_file"; then
  7024. case $deplibs_check_method in
  7025. "file_magic "*)
  7026. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7027. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7028. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7029. $EGREP "$file_magic_regex" > /dev/null; then
  7030. :
  7031. else
  7032. cat <<_LT_EOF 1>&2
  7033. *** Warning: the command libtool uses to detect shared libraries,
  7034. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7035. *** The result is that libtool may fail to recognize shared libraries
  7036. *** as such. This will affect the creation of libtool libraries that
  7037. *** depend on shared libraries, but programs linked with such libtool
  7038. *** libraries will work regardless of this problem. Nevertheless, you
  7039. *** may want to report the problem to your system manager and/or to
  7040. *** bug-libtool@gnu.org
  7041. _LT_EOF
  7042. fi ;;
  7043. esac
  7044. fi
  7045. break
  7046. fi
  7047. done
  7048. IFS="$lt_save_ifs"
  7049. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7050. ;;
  7051. esac
  7052. fi
  7053. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7054. if test -n "$MAGIC_CMD"; then
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7056. $as_echo "$MAGIC_CMD" >&6; }
  7057. else
  7058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7059. $as_echo "no" >&6; }
  7060. fi
  7061. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7062. if test -n "$ac_tool_prefix"; then
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7064. $as_echo_n "checking for file... " >&6; }
  7065. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7066. $as_echo_n "(cached) " >&6
  7067. else
  7068. case $MAGIC_CMD in
  7069. [\\/*] | ?:[\\/]*)
  7070. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7071. ;;
  7072. *)
  7073. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7074. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7075. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7076. for ac_dir in $ac_dummy; do
  7077. IFS="$lt_save_ifs"
  7078. test -z "$ac_dir" && ac_dir=.
  7079. if test -f $ac_dir/file; then
  7080. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7081. if test -n "$file_magic_test_file"; then
  7082. case $deplibs_check_method in
  7083. "file_magic "*)
  7084. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7085. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7086. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7087. $EGREP "$file_magic_regex" > /dev/null; then
  7088. :
  7089. else
  7090. cat <<_LT_EOF 1>&2
  7091. *** Warning: the command libtool uses to detect shared libraries,
  7092. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7093. *** The result is that libtool may fail to recognize shared libraries
  7094. *** as such. This will affect the creation of libtool libraries that
  7095. *** depend on shared libraries, but programs linked with such libtool
  7096. *** libraries will work regardless of this problem. Nevertheless, you
  7097. *** may want to report the problem to your system manager and/or to
  7098. *** bug-libtool@gnu.org
  7099. _LT_EOF
  7100. fi ;;
  7101. esac
  7102. fi
  7103. break
  7104. fi
  7105. done
  7106. IFS="$lt_save_ifs"
  7107. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7108. ;;
  7109. esac
  7110. fi
  7111. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7112. if test -n "$MAGIC_CMD"; then
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7114. $as_echo "$MAGIC_CMD" >&6; }
  7115. else
  7116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7117. $as_echo "no" >&6; }
  7118. fi
  7119. else
  7120. MAGIC_CMD=:
  7121. fi
  7122. fi
  7123. fi
  7124. ;;
  7125. esac
  7126. # Use C for the default configuration in the libtool script
  7127. lt_save_CC="$CC"
  7128. ac_ext=c
  7129. ac_cpp='$CPP $CPPFLAGS'
  7130. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7131. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7132. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7133. # Source file extension for C test sources.
  7134. ac_ext=c
  7135. # Object file extension for compiled C test sources.
  7136. objext=o
  7137. objext=$objext
  7138. # Code to be used in simple compile tests
  7139. lt_simple_compile_test_code="int some_variable = 0;"
  7140. # Code to be used in simple link tests
  7141. lt_simple_link_test_code='int main(){return(0);}'
  7142. # If no C compiler was specified, use CC.
  7143. LTCC=${LTCC-"$CC"}
  7144. # If no C compiler flags were specified, use CFLAGS.
  7145. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7146. # Allow CC to be a program name with arguments.
  7147. compiler=$CC
  7148. # Save the default compiler, since it gets overwritten when the other
  7149. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7150. compiler_DEFAULT=$CC
  7151. # save warnings/boilerplate of simple test code
  7152. ac_outfile=conftest.$ac_objext
  7153. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7154. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7155. _lt_compiler_boilerplate=`cat conftest.err`
  7156. $RM conftest*
  7157. ac_outfile=conftest.$ac_objext
  7158. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7159. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7160. _lt_linker_boilerplate=`cat conftest.err`
  7161. $RM -r conftest*
  7162. ## CAVEAT EMPTOR:
  7163. ## There is no encapsulation within the following macros, do not change
  7164. ## the running order or otherwise move them around unless you know exactly
  7165. ## what you are doing...
  7166. if test -n "$compiler"; then
  7167. lt_prog_compiler_no_builtin_flag=
  7168. if test "$GCC" = yes; then
  7169. case $cc_basename in
  7170. nvcc*)
  7171. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7172. *)
  7173. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7174. esac
  7175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7176. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7177. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7178. $as_echo_n "(cached) " >&6
  7179. else
  7180. lt_cv_prog_compiler_rtti_exceptions=no
  7181. ac_outfile=conftest.$ac_objext
  7182. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7183. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7184. # Insert the option either (1) after the last *FLAGS variable, or
  7185. # (2) before a word containing "conftest.", or (3) at the end.
  7186. # Note that $ac_compile itself does not contain backslashes and begins
  7187. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7188. # The option is referenced via a variable to avoid confusing sed.
  7189. lt_compile=`echo "$ac_compile" | $SED \
  7190. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7191. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7192. -e 's:$: $lt_compiler_flag:'`
  7193. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7194. (eval "$lt_compile" 2>conftest.err)
  7195. ac_status=$?
  7196. cat conftest.err >&5
  7197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7198. if (exit $ac_status) && test -s "$ac_outfile"; then
  7199. # The compiler can only warn and ignore the option if not recognized
  7200. # So say no if there are warnings other than the usual output.
  7201. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7202. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7203. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7204. lt_cv_prog_compiler_rtti_exceptions=yes
  7205. fi
  7206. fi
  7207. $RM conftest*
  7208. fi
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7210. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7211. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7212. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7213. else
  7214. :
  7215. fi
  7216. fi
  7217. lt_prog_compiler_wl=
  7218. lt_prog_compiler_pic=
  7219. lt_prog_compiler_static=
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7221. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7222. if test "$GCC" = yes; then
  7223. lt_prog_compiler_wl='-Wl,'
  7224. lt_prog_compiler_static='-static'
  7225. case $host_os in
  7226. aix*)
  7227. # All AIX code is PIC.
  7228. if test "$host_cpu" = ia64; then
  7229. # AIX 5 now supports IA64 processor
  7230. lt_prog_compiler_static='-Bstatic'
  7231. fi
  7232. lt_prog_compiler_pic='-fPIC'
  7233. ;;
  7234. amigaos*)
  7235. case $host_cpu in
  7236. powerpc)
  7237. # see comment about AmigaOS4 .so support
  7238. lt_prog_compiler_pic='-fPIC'
  7239. ;;
  7240. m68k)
  7241. # FIXME: we need at least 68020 code to build shared libraries, but
  7242. # adding the `-m68020' flag to GCC prevents building anything better,
  7243. # like `-m68040'.
  7244. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7245. ;;
  7246. esac
  7247. ;;
  7248. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7249. # PIC is the default for these OSes.
  7250. ;;
  7251. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7252. # This hack is so that the source file can tell whether it is being
  7253. # built for inclusion in a dll (and should export symbols for example).
  7254. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7255. # (--disable-auto-import) libraries
  7256. lt_prog_compiler_pic='-DDLL_EXPORT'
  7257. ;;
  7258. darwin* | rhapsody*)
  7259. # PIC is the default on this platform
  7260. # Common symbols not allowed in MH_DYLIB files
  7261. lt_prog_compiler_pic='-fno-common'
  7262. ;;
  7263. haiku*)
  7264. # PIC is the default for Haiku.
  7265. # The "-static" flag exists, but is broken.
  7266. lt_prog_compiler_static=
  7267. ;;
  7268. hpux*)
  7269. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7270. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7271. # sets the default TLS model and affects inlining.
  7272. case $host_cpu in
  7273. hppa*64*)
  7274. # +Z the default
  7275. ;;
  7276. *)
  7277. lt_prog_compiler_pic='-fPIC'
  7278. ;;
  7279. esac
  7280. ;;
  7281. interix[3-9]*)
  7282. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7283. # Instead, we relocate shared libraries at runtime.
  7284. ;;
  7285. msdosdjgpp*)
  7286. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7287. # on systems that don't support them.
  7288. lt_prog_compiler_can_build_shared=no
  7289. enable_shared=no
  7290. ;;
  7291. *nto* | *qnx*)
  7292. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7293. # it will coredump.
  7294. lt_prog_compiler_pic='-fPIC -shared'
  7295. ;;
  7296. sysv4*MP*)
  7297. if test -d /usr/nec; then
  7298. lt_prog_compiler_pic=-Kconform_pic
  7299. fi
  7300. ;;
  7301. *)
  7302. lt_prog_compiler_pic='-fPIC'
  7303. ;;
  7304. esac
  7305. case $cc_basename in
  7306. nvcc*) # Cuda Compiler Driver 2.2
  7307. lt_prog_compiler_wl='-Xlinker '
  7308. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7309. ;;
  7310. esac
  7311. else
  7312. # PORTME Check for flag to pass linker flags through the system compiler.
  7313. case $host_os in
  7314. aix*)
  7315. lt_prog_compiler_wl='-Wl,'
  7316. if test "$host_cpu" = ia64; then
  7317. # AIX 5 now supports IA64 processor
  7318. lt_prog_compiler_static='-Bstatic'
  7319. else
  7320. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7321. fi
  7322. ;;
  7323. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7324. # This hack is so that the source file can tell whether it is being
  7325. # built for inclusion in a dll (and should export symbols for example).
  7326. lt_prog_compiler_pic='-DDLL_EXPORT'
  7327. ;;
  7328. hpux9* | hpux10* | hpux11*)
  7329. lt_prog_compiler_wl='-Wl,'
  7330. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7331. # not for PA HP-UX.
  7332. case $host_cpu in
  7333. hppa*64*|ia64*)
  7334. # +Z the default
  7335. ;;
  7336. *)
  7337. lt_prog_compiler_pic='+Z'
  7338. ;;
  7339. esac
  7340. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7341. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7342. ;;
  7343. irix5* | irix6* | nonstopux*)
  7344. lt_prog_compiler_wl='-Wl,'
  7345. # PIC (with -KPIC) is the default.
  7346. lt_prog_compiler_static='-non_shared'
  7347. ;;
  7348. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7349. case $cc_basename in
  7350. # old Intel for x86_64 which still supported -KPIC.
  7351. ecc*)
  7352. lt_prog_compiler_wl='-Wl,'
  7353. lt_prog_compiler_pic='-KPIC'
  7354. lt_prog_compiler_static='-static'
  7355. ;;
  7356. # icc used to be incompatible with GCC.
  7357. # ICC 10 doesn't accept -KPIC any more.
  7358. icc* | ifort*)
  7359. lt_prog_compiler_wl='-Wl,'
  7360. lt_prog_compiler_pic='-fPIC'
  7361. lt_prog_compiler_static='-static'
  7362. ;;
  7363. # Lahey Fortran 8.1.
  7364. lf95*)
  7365. lt_prog_compiler_wl='-Wl,'
  7366. lt_prog_compiler_pic='--shared'
  7367. lt_prog_compiler_static='--static'
  7368. ;;
  7369. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7370. # Portland Group compilers (*not* the Pentium gcc compiler,
  7371. # which looks to be a dead project)
  7372. lt_prog_compiler_wl='-Wl,'
  7373. lt_prog_compiler_pic='-fpic'
  7374. lt_prog_compiler_static='-Bstatic'
  7375. ;;
  7376. ccc*)
  7377. lt_prog_compiler_wl='-Wl,'
  7378. # All Alpha code is PIC.
  7379. lt_prog_compiler_static='-non_shared'
  7380. ;;
  7381. xl* | bgxl* | bgf* | mpixl*)
  7382. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7383. lt_prog_compiler_wl='-Wl,'
  7384. lt_prog_compiler_pic='-qpic'
  7385. lt_prog_compiler_static='-qstaticlink'
  7386. ;;
  7387. *)
  7388. case `$CC -V 2>&1 | sed 5q` in
  7389. *Sun\ F* | *Sun*Fortran*)
  7390. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7391. lt_prog_compiler_pic='-KPIC'
  7392. lt_prog_compiler_static='-Bstatic'
  7393. lt_prog_compiler_wl=''
  7394. ;;
  7395. *Sun\ C*)
  7396. # Sun C 5.9
  7397. lt_prog_compiler_pic='-KPIC'
  7398. lt_prog_compiler_static='-Bstatic'
  7399. lt_prog_compiler_wl='-Wl,'
  7400. ;;
  7401. esac
  7402. ;;
  7403. esac
  7404. ;;
  7405. newsos6)
  7406. lt_prog_compiler_pic='-KPIC'
  7407. lt_prog_compiler_static='-Bstatic'
  7408. ;;
  7409. *nto* | *qnx*)
  7410. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7411. # it will coredump.
  7412. lt_prog_compiler_pic='-fPIC -shared'
  7413. ;;
  7414. osf3* | osf4* | osf5*)
  7415. lt_prog_compiler_wl='-Wl,'
  7416. # All OSF/1 code is PIC.
  7417. lt_prog_compiler_static='-non_shared'
  7418. ;;
  7419. rdos*)
  7420. lt_prog_compiler_static='-non_shared'
  7421. ;;
  7422. solaris*)
  7423. lt_prog_compiler_pic='-KPIC'
  7424. lt_prog_compiler_static='-Bstatic'
  7425. case $cc_basename in
  7426. f77* | f90* | f95*)
  7427. lt_prog_compiler_wl='-Qoption ld ';;
  7428. *)
  7429. lt_prog_compiler_wl='-Wl,';;
  7430. esac
  7431. ;;
  7432. sunos4*)
  7433. lt_prog_compiler_wl='-Qoption ld '
  7434. lt_prog_compiler_pic='-PIC'
  7435. lt_prog_compiler_static='-Bstatic'
  7436. ;;
  7437. sysv4 | sysv4.2uw2* | sysv4.3*)
  7438. lt_prog_compiler_wl='-Wl,'
  7439. lt_prog_compiler_pic='-KPIC'
  7440. lt_prog_compiler_static='-Bstatic'
  7441. ;;
  7442. sysv4*MP*)
  7443. if test -d /usr/nec ;then
  7444. lt_prog_compiler_pic='-Kconform_pic'
  7445. lt_prog_compiler_static='-Bstatic'
  7446. fi
  7447. ;;
  7448. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7449. lt_prog_compiler_wl='-Wl,'
  7450. lt_prog_compiler_pic='-KPIC'
  7451. lt_prog_compiler_static='-Bstatic'
  7452. ;;
  7453. unicos*)
  7454. lt_prog_compiler_wl='-Wl,'
  7455. lt_prog_compiler_can_build_shared=no
  7456. ;;
  7457. uts4*)
  7458. lt_prog_compiler_pic='-pic'
  7459. lt_prog_compiler_static='-Bstatic'
  7460. ;;
  7461. *)
  7462. lt_prog_compiler_can_build_shared=no
  7463. ;;
  7464. esac
  7465. fi
  7466. case $host_os in
  7467. # For platforms which do not support PIC, -DPIC is meaningless:
  7468. *djgpp*)
  7469. lt_prog_compiler_pic=
  7470. ;;
  7471. *)
  7472. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7473. ;;
  7474. esac
  7475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7476. $as_echo "$lt_prog_compiler_pic" >&6; }
  7477. #
  7478. # Check to make sure the PIC flag actually works.
  7479. #
  7480. if test -n "$lt_prog_compiler_pic"; then
  7481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7482. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7483. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7484. $as_echo_n "(cached) " >&6
  7485. else
  7486. lt_cv_prog_compiler_pic_works=no
  7487. ac_outfile=conftest.$ac_objext
  7488. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7489. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7490. # Insert the option either (1) after the last *FLAGS variable, or
  7491. # (2) before a word containing "conftest.", or (3) at the end.
  7492. # Note that $ac_compile itself does not contain backslashes and begins
  7493. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7494. # The option is referenced via a variable to avoid confusing sed.
  7495. lt_compile=`echo "$ac_compile" | $SED \
  7496. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7497. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7498. -e 's:$: $lt_compiler_flag:'`
  7499. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7500. (eval "$lt_compile" 2>conftest.err)
  7501. ac_status=$?
  7502. cat conftest.err >&5
  7503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7504. if (exit $ac_status) && test -s "$ac_outfile"; then
  7505. # The compiler can only warn and ignore the option if not recognized
  7506. # So say no if there are warnings other than the usual output.
  7507. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7508. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7509. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7510. lt_cv_prog_compiler_pic_works=yes
  7511. fi
  7512. fi
  7513. $RM conftest*
  7514. fi
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7516. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7517. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7518. case $lt_prog_compiler_pic in
  7519. "" | " "*) ;;
  7520. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7521. esac
  7522. else
  7523. lt_prog_compiler_pic=
  7524. lt_prog_compiler_can_build_shared=no
  7525. fi
  7526. fi
  7527. #
  7528. # Check to make sure the static flag actually works.
  7529. #
  7530. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7532. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7533. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7534. $as_echo_n "(cached) " >&6
  7535. else
  7536. lt_cv_prog_compiler_static_works=no
  7537. save_LDFLAGS="$LDFLAGS"
  7538. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7539. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7540. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7541. # The linker can only warn and ignore the option if not recognized
  7542. # So say no if there are warnings
  7543. if test -s conftest.err; then
  7544. # Append any errors to the config.log.
  7545. cat conftest.err 1>&5
  7546. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7547. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7548. if diff conftest.exp conftest.er2 >/dev/null; then
  7549. lt_cv_prog_compiler_static_works=yes
  7550. fi
  7551. else
  7552. lt_cv_prog_compiler_static_works=yes
  7553. fi
  7554. fi
  7555. $RM -r conftest*
  7556. LDFLAGS="$save_LDFLAGS"
  7557. fi
  7558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7559. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7560. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7561. :
  7562. else
  7563. lt_prog_compiler_static=
  7564. fi
  7565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7566. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7567. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7568. $as_echo_n "(cached) " >&6
  7569. else
  7570. lt_cv_prog_compiler_c_o=no
  7571. $RM -r conftest 2>/dev/null
  7572. mkdir conftest
  7573. cd conftest
  7574. mkdir out
  7575. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7576. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7577. # Insert the option either (1) after the last *FLAGS variable, or
  7578. # (2) before a word containing "conftest.", or (3) at the end.
  7579. # Note that $ac_compile itself does not contain backslashes and begins
  7580. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7581. lt_compile=`echo "$ac_compile" | $SED \
  7582. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7583. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7584. -e 's:$: $lt_compiler_flag:'`
  7585. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7586. (eval "$lt_compile" 2>out/conftest.err)
  7587. ac_status=$?
  7588. cat out/conftest.err >&5
  7589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7590. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7591. then
  7592. # The compiler can only warn and ignore the option if not recognized
  7593. # So say no if there are warnings
  7594. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7595. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7596. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7597. lt_cv_prog_compiler_c_o=yes
  7598. fi
  7599. fi
  7600. chmod u+w . 2>&5
  7601. $RM conftest*
  7602. # SGI C++ compiler will create directory out/ii_files/ for
  7603. # template instantiation
  7604. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7605. $RM out/* && rmdir out
  7606. cd ..
  7607. $RM -r conftest
  7608. $RM conftest*
  7609. fi
  7610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7611. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7613. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7614. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7615. $as_echo_n "(cached) " >&6
  7616. else
  7617. lt_cv_prog_compiler_c_o=no
  7618. $RM -r conftest 2>/dev/null
  7619. mkdir conftest
  7620. cd conftest
  7621. mkdir out
  7622. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7623. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7624. # Insert the option either (1) after the last *FLAGS variable, or
  7625. # (2) before a word containing "conftest.", or (3) at the end.
  7626. # Note that $ac_compile itself does not contain backslashes and begins
  7627. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7628. lt_compile=`echo "$ac_compile" | $SED \
  7629. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7630. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7631. -e 's:$: $lt_compiler_flag:'`
  7632. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7633. (eval "$lt_compile" 2>out/conftest.err)
  7634. ac_status=$?
  7635. cat out/conftest.err >&5
  7636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7637. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7638. then
  7639. # The compiler can only warn and ignore the option if not recognized
  7640. # So say no if there are warnings
  7641. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7642. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7643. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7644. lt_cv_prog_compiler_c_o=yes
  7645. fi
  7646. fi
  7647. chmod u+w . 2>&5
  7648. $RM conftest*
  7649. # SGI C++ compiler will create directory out/ii_files/ for
  7650. # template instantiation
  7651. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7652. $RM out/* && rmdir out
  7653. cd ..
  7654. $RM -r conftest
  7655. $RM conftest*
  7656. fi
  7657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7658. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7659. hard_links="nottested"
  7660. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7661. # do not overwrite the value of need_locks provided by the user
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7663. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7664. hard_links=yes
  7665. $RM conftest*
  7666. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7667. touch conftest.a
  7668. ln conftest.a conftest.b 2>&5 || hard_links=no
  7669. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7671. $as_echo "$hard_links" >&6; }
  7672. if test "$hard_links" = no; then
  7673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7674. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7675. need_locks=warn
  7676. fi
  7677. else
  7678. need_locks=no
  7679. fi
  7680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7681. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7682. runpath_var=
  7683. allow_undefined_flag=
  7684. always_export_symbols=no
  7685. archive_cmds=
  7686. archive_expsym_cmds=
  7687. compiler_needs_object=no
  7688. enable_shared_with_static_runtimes=no
  7689. export_dynamic_flag_spec=
  7690. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7691. hardcode_automatic=no
  7692. hardcode_direct=no
  7693. hardcode_direct_absolute=no
  7694. hardcode_libdir_flag_spec=
  7695. hardcode_libdir_flag_spec_ld=
  7696. hardcode_libdir_separator=
  7697. hardcode_minus_L=no
  7698. hardcode_shlibpath_var=unsupported
  7699. inherit_rpath=no
  7700. link_all_deplibs=unknown
  7701. module_cmds=
  7702. module_expsym_cmds=
  7703. old_archive_from_new_cmds=
  7704. old_archive_from_expsyms_cmds=
  7705. thread_safe_flag_spec=
  7706. whole_archive_flag_spec=
  7707. # include_expsyms should be a list of space-separated symbols to be *always*
  7708. # included in the symbol list
  7709. include_expsyms=
  7710. # exclude_expsyms can be an extended regexp of symbols to exclude
  7711. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7712. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7713. # as well as any symbol that contains `d'.
  7714. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7715. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7716. # platforms (ab)use it in PIC code, but their linkers get confused if
  7717. # the symbol is explicitly referenced. Since portable code cannot
  7718. # rely on this symbol name, it's probably fine to never include it in
  7719. # preloaded symbol tables.
  7720. # Exclude shared library initialization/finalization symbols.
  7721. extract_expsyms_cmds=
  7722. case $host_os in
  7723. cygwin* | mingw* | pw32* | cegcc*)
  7724. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7725. # When not using gcc, we currently assume that we are using
  7726. # Microsoft Visual C++.
  7727. if test "$GCC" != yes; then
  7728. with_gnu_ld=no
  7729. fi
  7730. ;;
  7731. interix*)
  7732. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7733. with_gnu_ld=yes
  7734. ;;
  7735. openbsd*)
  7736. with_gnu_ld=no
  7737. ;;
  7738. esac
  7739. ld_shlibs=yes
  7740. # On some targets, GNU ld is compatible enough with the native linker
  7741. # that we're better off using the native interface for both.
  7742. lt_use_gnu_ld_interface=no
  7743. if test "$with_gnu_ld" = yes; then
  7744. case $host_os in
  7745. aix*)
  7746. # The AIX port of GNU ld has always aspired to compatibility
  7747. # with the native linker. However, as the warning in the GNU ld
  7748. # block says, versions before 2.19.5* couldn't really create working
  7749. # shared libraries, regardless of the interface used.
  7750. case `$LD -v 2>&1` in
  7751. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7752. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7753. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7754. *)
  7755. lt_use_gnu_ld_interface=yes
  7756. ;;
  7757. esac
  7758. ;;
  7759. *)
  7760. lt_use_gnu_ld_interface=yes
  7761. ;;
  7762. esac
  7763. fi
  7764. if test "$lt_use_gnu_ld_interface" = yes; then
  7765. # If archive_cmds runs LD, not CC, wlarc should be empty
  7766. wlarc='${wl}'
  7767. # Set some defaults for GNU ld with shared library support. These
  7768. # are reset later if shared libraries are not supported. Putting them
  7769. # here allows them to be overridden if necessary.
  7770. runpath_var=LD_RUN_PATH
  7771. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7772. export_dynamic_flag_spec='${wl}--export-dynamic'
  7773. # ancient GNU ld didn't support --whole-archive et. al.
  7774. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7775. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7776. else
  7777. whole_archive_flag_spec=
  7778. fi
  7779. supports_anon_versioning=no
  7780. case `$LD -v 2>&1` in
  7781. *GNU\ gold*) supports_anon_versioning=yes ;;
  7782. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7783. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7784. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7785. *\ 2.11.*) ;; # other 2.11 versions
  7786. *) supports_anon_versioning=yes ;;
  7787. esac
  7788. # See if GNU ld supports shared libraries.
  7789. case $host_os in
  7790. aix[3-9]*)
  7791. # On AIX/PPC, the GNU linker is very broken
  7792. if test "$host_cpu" != ia64; then
  7793. ld_shlibs=no
  7794. cat <<_LT_EOF 1>&2
  7795. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7796. *** to be unable to reliably create shared libraries on AIX.
  7797. *** Therefore, libtool is disabling shared libraries support. If you
  7798. *** really care for shared libraries, you may want to install binutils
  7799. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7800. *** You will then need to restart the configuration process.
  7801. _LT_EOF
  7802. fi
  7803. ;;
  7804. amigaos*)
  7805. case $host_cpu in
  7806. powerpc)
  7807. # see comment about AmigaOS4 .so support
  7808. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7809. archive_expsym_cmds=''
  7810. ;;
  7811. m68k)
  7812. 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)'
  7813. hardcode_libdir_flag_spec='-L$libdir'
  7814. hardcode_minus_L=yes
  7815. ;;
  7816. esac
  7817. ;;
  7818. beos*)
  7819. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7820. allow_undefined_flag=unsupported
  7821. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7822. # support --undefined. This deserves some investigation. FIXME
  7823. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7824. else
  7825. ld_shlibs=no
  7826. fi
  7827. ;;
  7828. cygwin* | mingw* | pw32* | cegcc*)
  7829. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7830. # as there is no search path for DLLs.
  7831. hardcode_libdir_flag_spec='-L$libdir'
  7832. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7833. allow_undefined_flag=unsupported
  7834. always_export_symbols=no
  7835. enable_shared_with_static_runtimes=yes
  7836. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7837. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7838. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7839. # If the export-symbols file already is a .def file (1st line
  7840. # is EXPORTS), use it as is; otherwise, prepend...
  7841. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7842. cp $export_symbols $output_objdir/$soname.def;
  7843. else
  7844. echo EXPORTS > $output_objdir/$soname.def;
  7845. cat $export_symbols >> $output_objdir/$soname.def;
  7846. fi~
  7847. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7848. else
  7849. ld_shlibs=no
  7850. fi
  7851. ;;
  7852. haiku*)
  7853. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7854. link_all_deplibs=yes
  7855. ;;
  7856. interix[3-9]*)
  7857. hardcode_direct=no
  7858. hardcode_shlibpath_var=no
  7859. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7860. export_dynamic_flag_spec='${wl}-E'
  7861. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7862. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7863. # default) and relocated if they conflict, which is a slow very memory
  7864. # consuming and fragmenting process. To avoid this, we pick a random,
  7865. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7866. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7867. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7868. 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'
  7869. ;;
  7870. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7871. tmp_diet=no
  7872. if test "$host_os" = linux-dietlibc; then
  7873. case $cc_basename in
  7874. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7875. esac
  7876. fi
  7877. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7878. && test "$tmp_diet" = no
  7879. then
  7880. tmp_addflag=' $pic_flag'
  7881. tmp_sharedflag='-shared'
  7882. case $cc_basename,$host_cpu in
  7883. pgcc*) # Portland Group C compiler
  7884. 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'
  7885. tmp_addflag=' $pic_flag'
  7886. ;;
  7887. pgf77* | pgf90* | pgf95* | pgfortran*)
  7888. # Portland Group f77 and f90 compilers
  7889. 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'
  7890. tmp_addflag=' $pic_flag -Mnomain' ;;
  7891. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7892. tmp_addflag=' -i_dynamic' ;;
  7893. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7894. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7895. ifc* | ifort*) # Intel Fortran compiler
  7896. tmp_addflag=' -nofor_main' ;;
  7897. lf95*) # Lahey Fortran 8.1
  7898. whole_archive_flag_spec=
  7899. tmp_sharedflag='--shared' ;;
  7900. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7901. tmp_sharedflag='-qmkshrobj'
  7902. tmp_addflag= ;;
  7903. nvcc*) # Cuda Compiler Driver 2.2
  7904. 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'
  7905. compiler_needs_object=yes
  7906. ;;
  7907. esac
  7908. case `$CC -V 2>&1 | sed 5q` in
  7909. *Sun\ C*) # Sun C 5.9
  7910. 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'
  7911. compiler_needs_object=yes
  7912. tmp_sharedflag='-G' ;;
  7913. *Sun\ F*) # Sun Fortran 8.3
  7914. tmp_sharedflag='-G' ;;
  7915. esac
  7916. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7917. if test "x$supports_anon_versioning" = xyes; then
  7918. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7919. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7920. echo "local: *; };" >> $output_objdir/$libname.ver~
  7921. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7922. fi
  7923. case $cc_basename in
  7924. xlf* | bgf* | bgxlf* | mpixlf*)
  7925. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7926. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7927. hardcode_libdir_flag_spec=
  7928. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7929. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7930. if test "x$supports_anon_versioning" = xyes; then
  7931. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7932. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7933. echo "local: *; };" >> $output_objdir/$libname.ver~
  7934. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7935. fi
  7936. ;;
  7937. esac
  7938. else
  7939. ld_shlibs=no
  7940. fi
  7941. ;;
  7942. netbsd*)
  7943. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7944. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7945. wlarc=
  7946. else
  7947. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7948. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7949. fi
  7950. ;;
  7951. solaris*)
  7952. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7953. ld_shlibs=no
  7954. cat <<_LT_EOF 1>&2
  7955. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7956. *** create shared libraries on Solaris systems. Therefore, libtool
  7957. *** is disabling shared libraries support. We urge you to upgrade GNU
  7958. *** binutils to release 2.9.1 or newer. Another option is to modify
  7959. *** your PATH or compiler configuration so that the native linker is
  7960. *** used, and then restart.
  7961. _LT_EOF
  7962. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7963. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7964. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7965. else
  7966. ld_shlibs=no
  7967. fi
  7968. ;;
  7969. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7970. case `$LD -v 2>&1` in
  7971. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7972. ld_shlibs=no
  7973. cat <<_LT_EOF 1>&2
  7974. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7975. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7976. *** is disabling shared libraries support. We urge you to upgrade GNU
  7977. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7978. *** your PATH or compiler configuration so that the native linker is
  7979. *** used, and then restart.
  7980. _LT_EOF
  7981. ;;
  7982. *)
  7983. # For security reasons, it is highly recommended that you always
  7984. # use absolute paths for naming shared libraries, and exclude the
  7985. # DT_RUNPATH tag from executables and libraries. But doing so
  7986. # requires that you compile everything twice, which is a pain.
  7987. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7988. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7989. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7990. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7991. else
  7992. ld_shlibs=no
  7993. fi
  7994. ;;
  7995. esac
  7996. ;;
  7997. sunos4*)
  7998. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7999. wlarc=
  8000. hardcode_direct=yes
  8001. hardcode_shlibpath_var=no
  8002. ;;
  8003. *)
  8004. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8005. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8006. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8007. else
  8008. ld_shlibs=no
  8009. fi
  8010. ;;
  8011. esac
  8012. if test "$ld_shlibs" = no; then
  8013. runpath_var=
  8014. hardcode_libdir_flag_spec=
  8015. export_dynamic_flag_spec=
  8016. whole_archive_flag_spec=
  8017. fi
  8018. else
  8019. # PORTME fill in a description of your system's linker (not GNU ld)
  8020. case $host_os in
  8021. aix3*)
  8022. allow_undefined_flag=unsupported
  8023. always_export_symbols=yes
  8024. 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'
  8025. # Note: this linker hardcodes the directories in LIBPATH if there
  8026. # are no directories specified by -L.
  8027. hardcode_minus_L=yes
  8028. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8029. # Neither direct hardcoding nor static linking is supported with a
  8030. # broken collect2.
  8031. hardcode_direct=unsupported
  8032. fi
  8033. ;;
  8034. aix[4-9]*)
  8035. if test "$host_cpu" = ia64; then
  8036. # On IA64, the linker does run time linking by default, so we don't
  8037. # have to do anything special.
  8038. aix_use_runtimelinking=no
  8039. exp_sym_flag='-Bexport'
  8040. no_entry_flag=""
  8041. else
  8042. # If we're using GNU nm, then we don't want the "-C" option.
  8043. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8044. # Also, AIX nm treats weak defined symbols like other global
  8045. # defined symbols, whereas GNU nm marks them as "W".
  8046. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8047. 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'
  8048. else
  8049. 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'
  8050. fi
  8051. aix_use_runtimelinking=no
  8052. # Test if we are trying to use run time linking or normal
  8053. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8054. # need to do runtime linking.
  8055. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8056. for ld_flag in $LDFLAGS; do
  8057. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8058. aix_use_runtimelinking=yes
  8059. break
  8060. fi
  8061. done
  8062. ;;
  8063. esac
  8064. exp_sym_flag='-bexport'
  8065. no_entry_flag='-bnoentry'
  8066. fi
  8067. # When large executables or shared objects are built, AIX ld can
  8068. # have problems creating the table of contents. If linking a library
  8069. # or program results in "error TOC overflow" add -mminimal-toc to
  8070. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8071. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8072. archive_cmds=''
  8073. hardcode_direct=yes
  8074. hardcode_direct_absolute=yes
  8075. hardcode_libdir_separator=':'
  8076. link_all_deplibs=yes
  8077. file_list_spec='${wl}-f,'
  8078. if test "$GCC" = yes; then
  8079. case $host_os in aix4.[012]|aix4.[012].*)
  8080. # We only want to do this on AIX 4.2 and lower, the check
  8081. # below for broken collect2 doesn't work under 4.3+
  8082. collect2name=`${CC} -print-prog-name=collect2`
  8083. if test -f "$collect2name" &&
  8084. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8085. then
  8086. # We have reworked collect2
  8087. :
  8088. else
  8089. # We have old collect2
  8090. hardcode_direct=unsupported
  8091. # It fails to find uninstalled libraries when the uninstalled
  8092. # path is not listed in the libpath. Setting hardcode_minus_L
  8093. # to unsupported forces relinking
  8094. hardcode_minus_L=yes
  8095. hardcode_libdir_flag_spec='-L$libdir'
  8096. hardcode_libdir_separator=
  8097. fi
  8098. ;;
  8099. esac
  8100. shared_flag='-shared'
  8101. if test "$aix_use_runtimelinking" = yes; then
  8102. shared_flag="$shared_flag "'${wl}-G'
  8103. fi
  8104. else
  8105. # not using gcc
  8106. if test "$host_cpu" = ia64; then
  8107. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8108. # chokes on -Wl,-G. The following line is correct:
  8109. shared_flag='-G'
  8110. else
  8111. if test "$aix_use_runtimelinking" = yes; then
  8112. shared_flag='${wl}-G'
  8113. else
  8114. shared_flag='${wl}-bM:SRE'
  8115. fi
  8116. fi
  8117. fi
  8118. export_dynamic_flag_spec='${wl}-bexpall'
  8119. # It seems that -bexpall does not export symbols beginning with
  8120. # underscore (_), so it is better to generate a list of symbols to export.
  8121. always_export_symbols=yes
  8122. if test "$aix_use_runtimelinking" = yes; then
  8123. # Warning - without using the other runtime loading flags (-brtl),
  8124. # -berok will link without error, but may produce a broken library.
  8125. allow_undefined_flag='-berok'
  8126. # Determine the default libpath from the value encoded in an
  8127. # empty executable.
  8128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8129. /* end confdefs.h. */
  8130. int
  8131. main ()
  8132. {
  8133. ;
  8134. return 0;
  8135. }
  8136. _ACEOF
  8137. if ac_fn_c_try_link "$LINENO"; then :
  8138. lt_aix_libpath_sed='
  8139. /Import File Strings/,/^$/ {
  8140. /^0/ {
  8141. s/^0 *\(.*\)$/\1/
  8142. p
  8143. }
  8144. }'
  8145. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8146. # Check for a 64-bit object if we didn't find anything.
  8147. if test -z "$aix_libpath"; then
  8148. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8149. fi
  8150. fi
  8151. rm -f core conftest.err conftest.$ac_objext \
  8152. conftest$ac_exeext conftest.$ac_ext
  8153. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8154. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8155. 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"
  8156. else
  8157. if test "$host_cpu" = ia64; then
  8158. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8159. allow_undefined_flag="-z nodefs"
  8160. 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"
  8161. else
  8162. # Determine the default libpath from the value encoded in an
  8163. # empty executable.
  8164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8165. /* end confdefs.h. */
  8166. int
  8167. main ()
  8168. {
  8169. ;
  8170. return 0;
  8171. }
  8172. _ACEOF
  8173. if ac_fn_c_try_link "$LINENO"; then :
  8174. lt_aix_libpath_sed='
  8175. /Import File Strings/,/^$/ {
  8176. /^0/ {
  8177. s/^0 *\(.*\)$/\1/
  8178. p
  8179. }
  8180. }'
  8181. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8182. # Check for a 64-bit object if we didn't find anything.
  8183. if test -z "$aix_libpath"; then
  8184. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8185. fi
  8186. fi
  8187. rm -f core conftest.err conftest.$ac_objext \
  8188. conftest$ac_exeext conftest.$ac_ext
  8189. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8190. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8191. # Warning - without using the other run time loading flags,
  8192. # -berok will link without error, but may produce a broken library.
  8193. no_undefined_flag=' ${wl}-bernotok'
  8194. allow_undefined_flag=' ${wl}-berok'
  8195. if test "$with_gnu_ld" = yes; then
  8196. # We only use this code for GNU lds that support --whole-archive.
  8197. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8198. else
  8199. # Exported symbols can be pulled into shared objects from archives
  8200. whole_archive_flag_spec='$convenience'
  8201. fi
  8202. archive_cmds_need_lc=yes
  8203. # This is similar to how AIX traditionally builds its shared libraries.
  8204. 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'
  8205. fi
  8206. fi
  8207. ;;
  8208. amigaos*)
  8209. case $host_cpu in
  8210. powerpc)
  8211. # see comment about AmigaOS4 .so support
  8212. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8213. archive_expsym_cmds=''
  8214. ;;
  8215. m68k)
  8216. 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)'
  8217. hardcode_libdir_flag_spec='-L$libdir'
  8218. hardcode_minus_L=yes
  8219. ;;
  8220. esac
  8221. ;;
  8222. bsdi[45]*)
  8223. export_dynamic_flag_spec=-rdynamic
  8224. ;;
  8225. cygwin* | mingw* | pw32* | cegcc*)
  8226. # When not using gcc, we currently assume that we are using
  8227. # Microsoft Visual C++.
  8228. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8229. # no search path for DLLs.
  8230. hardcode_libdir_flag_spec=' '
  8231. allow_undefined_flag=unsupported
  8232. # Tell ltmain to make .lib files, not .a files.
  8233. libext=lib
  8234. # Tell ltmain to make .dll files, not .so files.
  8235. shrext_cmds=".dll"
  8236. # FIXME: Setting linknames here is a bad hack.
  8237. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8238. # The linker will automatically build a .lib file if we build a DLL.
  8239. old_archive_from_new_cmds='true'
  8240. # FIXME: Should let the user specify the lib program.
  8241. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8242. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8243. enable_shared_with_static_runtimes=yes
  8244. ;;
  8245. darwin* | rhapsody*)
  8246. archive_cmds_need_lc=no
  8247. hardcode_direct=no
  8248. hardcode_automatic=yes
  8249. hardcode_shlibpath_var=unsupported
  8250. if test "$lt_cv_ld_force_load" = "yes"; then
  8251. 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\"`'
  8252. else
  8253. whole_archive_flag_spec=''
  8254. fi
  8255. link_all_deplibs=yes
  8256. allow_undefined_flag="$_lt_dar_allow_undefined"
  8257. case $cc_basename in
  8258. ifort*) _lt_dar_can_shared=yes ;;
  8259. *) _lt_dar_can_shared=$GCC ;;
  8260. esac
  8261. if test "$_lt_dar_can_shared" = "yes"; then
  8262. output_verbose_link_cmd=func_echo_all
  8263. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8264. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8265. 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}"
  8266. 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}"
  8267. else
  8268. ld_shlibs=no
  8269. fi
  8270. ;;
  8271. dgux*)
  8272. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8273. hardcode_libdir_flag_spec='-L$libdir'
  8274. hardcode_shlibpath_var=no
  8275. ;;
  8276. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8277. # support. Future versions do this automatically, but an explicit c++rt0.o
  8278. # does not break anything, and helps significantly (at the cost of a little
  8279. # extra space).
  8280. freebsd2.2*)
  8281. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8282. hardcode_libdir_flag_spec='-R$libdir'
  8283. hardcode_direct=yes
  8284. hardcode_shlibpath_var=no
  8285. ;;
  8286. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8287. freebsd2.*)
  8288. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8289. hardcode_direct=yes
  8290. hardcode_minus_L=yes
  8291. hardcode_shlibpath_var=no
  8292. ;;
  8293. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8294. freebsd* | dragonfly*)
  8295. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8296. hardcode_libdir_flag_spec='-R$libdir'
  8297. hardcode_direct=yes
  8298. hardcode_shlibpath_var=no
  8299. ;;
  8300. hpux9*)
  8301. if test "$GCC" = yes; then
  8302. 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'
  8303. else
  8304. 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'
  8305. fi
  8306. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8307. hardcode_libdir_separator=:
  8308. hardcode_direct=yes
  8309. # hardcode_minus_L: Not really in the search PATH,
  8310. # but as the default location of the library.
  8311. hardcode_minus_L=yes
  8312. export_dynamic_flag_spec='${wl}-E'
  8313. ;;
  8314. hpux10*)
  8315. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8316. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8317. else
  8318. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8319. fi
  8320. if test "$with_gnu_ld" = no; then
  8321. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8322. hardcode_libdir_flag_spec_ld='+b $libdir'
  8323. hardcode_libdir_separator=:
  8324. hardcode_direct=yes
  8325. hardcode_direct_absolute=yes
  8326. export_dynamic_flag_spec='${wl}-E'
  8327. # hardcode_minus_L: Not really in the search PATH,
  8328. # but as the default location of the library.
  8329. hardcode_minus_L=yes
  8330. fi
  8331. ;;
  8332. hpux11*)
  8333. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8334. case $host_cpu in
  8335. hppa*64*)
  8336. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8337. ;;
  8338. ia64*)
  8339. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8340. ;;
  8341. *)
  8342. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8343. ;;
  8344. esac
  8345. else
  8346. case $host_cpu in
  8347. hppa*64*)
  8348. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8349. ;;
  8350. ia64*)
  8351. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8352. ;;
  8353. *)
  8354. # Older versions of the 11.00 compiler do not understand -b yet
  8355. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8357. $as_echo_n "checking if $CC understands -b... " >&6; }
  8358. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8359. $as_echo_n "(cached) " >&6
  8360. else
  8361. lt_cv_prog_compiler__b=no
  8362. save_LDFLAGS="$LDFLAGS"
  8363. LDFLAGS="$LDFLAGS -b"
  8364. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8365. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8366. # The linker can only warn and ignore the option if not recognized
  8367. # So say no if there are warnings
  8368. if test -s conftest.err; then
  8369. # Append any errors to the config.log.
  8370. cat conftest.err 1>&5
  8371. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8372. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8373. if diff conftest.exp conftest.er2 >/dev/null; then
  8374. lt_cv_prog_compiler__b=yes
  8375. fi
  8376. else
  8377. lt_cv_prog_compiler__b=yes
  8378. fi
  8379. fi
  8380. $RM -r conftest*
  8381. LDFLAGS="$save_LDFLAGS"
  8382. fi
  8383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8384. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8385. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8386. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8387. else
  8388. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8389. fi
  8390. ;;
  8391. esac
  8392. fi
  8393. if test "$with_gnu_ld" = no; then
  8394. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8395. hardcode_libdir_separator=:
  8396. case $host_cpu in
  8397. hppa*64*|ia64*)
  8398. hardcode_direct=no
  8399. hardcode_shlibpath_var=no
  8400. ;;
  8401. *)
  8402. hardcode_direct=yes
  8403. hardcode_direct_absolute=yes
  8404. export_dynamic_flag_spec='${wl}-E'
  8405. # hardcode_minus_L: Not really in the search PATH,
  8406. # but as the default location of the library.
  8407. hardcode_minus_L=yes
  8408. ;;
  8409. esac
  8410. fi
  8411. ;;
  8412. irix5* | irix6* | nonstopux*)
  8413. if test "$GCC" = yes; then
  8414. 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'
  8415. # Try to use the -exported_symbol ld option, if it does not
  8416. # work, assume that -exports_file does not work either and
  8417. # implicitly export all symbols.
  8418. save_LDFLAGS="$LDFLAGS"
  8419. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8421. /* end confdefs.h. */
  8422. int foo(void) {}
  8423. _ACEOF
  8424. if ac_fn_c_try_link "$LINENO"; then :
  8425. 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'
  8426. fi
  8427. rm -f core conftest.err conftest.$ac_objext \
  8428. conftest$ac_exeext conftest.$ac_ext
  8429. LDFLAGS="$save_LDFLAGS"
  8430. else
  8431. 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'
  8432. 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'
  8433. fi
  8434. archive_cmds_need_lc='no'
  8435. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8436. hardcode_libdir_separator=:
  8437. inherit_rpath=yes
  8438. link_all_deplibs=yes
  8439. ;;
  8440. netbsd*)
  8441. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8442. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8443. else
  8444. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8445. fi
  8446. hardcode_libdir_flag_spec='-R$libdir'
  8447. hardcode_direct=yes
  8448. hardcode_shlibpath_var=no
  8449. ;;
  8450. newsos6)
  8451. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8452. hardcode_direct=yes
  8453. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8454. hardcode_libdir_separator=:
  8455. hardcode_shlibpath_var=no
  8456. ;;
  8457. *nto* | *qnx*)
  8458. ;;
  8459. openbsd*)
  8460. if test -f /usr/libexec/ld.so; then
  8461. hardcode_direct=yes
  8462. hardcode_shlibpath_var=no
  8463. hardcode_direct_absolute=yes
  8464. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8465. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8466. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8467. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8468. export_dynamic_flag_spec='${wl}-E'
  8469. else
  8470. case $host_os in
  8471. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8472. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8473. hardcode_libdir_flag_spec='-R$libdir'
  8474. ;;
  8475. *)
  8476. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8477. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8478. ;;
  8479. esac
  8480. fi
  8481. else
  8482. ld_shlibs=no
  8483. fi
  8484. ;;
  8485. os2*)
  8486. hardcode_libdir_flag_spec='-L$libdir'
  8487. hardcode_minus_L=yes
  8488. allow_undefined_flag=unsupported
  8489. 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'
  8490. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8491. ;;
  8492. osf3*)
  8493. if test "$GCC" = yes; then
  8494. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8495. 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'
  8496. else
  8497. allow_undefined_flag=' -expect_unresolved \*'
  8498. 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'
  8499. fi
  8500. archive_cmds_need_lc='no'
  8501. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8502. hardcode_libdir_separator=:
  8503. ;;
  8504. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8505. if test "$GCC" = yes; then
  8506. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8507. 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'
  8508. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8509. else
  8510. allow_undefined_flag=' -expect_unresolved \*'
  8511. 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'
  8512. 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~
  8513. $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'
  8514. # Both c and cxx compiler support -rpath directly
  8515. hardcode_libdir_flag_spec='-rpath $libdir'
  8516. fi
  8517. archive_cmds_need_lc='no'
  8518. hardcode_libdir_separator=:
  8519. ;;
  8520. solaris*)
  8521. no_undefined_flag=' -z defs'
  8522. if test "$GCC" = yes; then
  8523. wlarc='${wl}'
  8524. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8525. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8526. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8527. else
  8528. case `$CC -V 2>&1` in
  8529. *"Compilers 5.0"*)
  8530. wlarc=''
  8531. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8532. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8533. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8534. ;;
  8535. *)
  8536. wlarc='${wl}'
  8537. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8538. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8539. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8540. ;;
  8541. esac
  8542. fi
  8543. hardcode_libdir_flag_spec='-R$libdir'
  8544. hardcode_shlibpath_var=no
  8545. case $host_os in
  8546. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8547. *)
  8548. # The compiler driver will combine and reorder linker options,
  8549. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8550. # but is careful enough not to reorder.
  8551. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8552. if test "$GCC" = yes; then
  8553. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8554. else
  8555. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8556. fi
  8557. ;;
  8558. esac
  8559. link_all_deplibs=yes
  8560. ;;
  8561. sunos4*)
  8562. if test "x$host_vendor" = xsequent; then
  8563. # Use $CC to link under sequent, because it throws in some extra .o
  8564. # files that make .init and .fini sections work.
  8565. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8566. else
  8567. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8568. fi
  8569. hardcode_libdir_flag_spec='-L$libdir'
  8570. hardcode_direct=yes
  8571. hardcode_minus_L=yes
  8572. hardcode_shlibpath_var=no
  8573. ;;
  8574. sysv4)
  8575. case $host_vendor in
  8576. sni)
  8577. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8578. hardcode_direct=yes # is this really true???
  8579. ;;
  8580. siemens)
  8581. ## LD is ld it makes a PLAMLIB
  8582. ## CC just makes a GrossModule.
  8583. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8584. reload_cmds='$CC -r -o $output$reload_objs'
  8585. hardcode_direct=no
  8586. ;;
  8587. motorola)
  8588. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8589. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8590. ;;
  8591. esac
  8592. runpath_var='LD_RUN_PATH'
  8593. hardcode_shlibpath_var=no
  8594. ;;
  8595. sysv4.3*)
  8596. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8597. hardcode_shlibpath_var=no
  8598. export_dynamic_flag_spec='-Bexport'
  8599. ;;
  8600. sysv4*MP*)
  8601. if test -d /usr/nec; then
  8602. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8603. hardcode_shlibpath_var=no
  8604. runpath_var=LD_RUN_PATH
  8605. hardcode_runpath_var=yes
  8606. ld_shlibs=yes
  8607. fi
  8608. ;;
  8609. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8610. no_undefined_flag='${wl}-z,text'
  8611. archive_cmds_need_lc=no
  8612. hardcode_shlibpath_var=no
  8613. runpath_var='LD_RUN_PATH'
  8614. if test "$GCC" = yes; then
  8615. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8616. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8617. else
  8618. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8619. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8620. fi
  8621. ;;
  8622. sysv5* | sco3.2v5* | sco5v6*)
  8623. # Note: We can NOT use -z defs as we might desire, because we do not
  8624. # link with -lc, and that would cause any symbols used from libc to
  8625. # always be unresolved, which means just about no library would
  8626. # ever link correctly. If we're not using GNU ld we use -z text
  8627. # though, which does catch some bad symbols but isn't as heavy-handed
  8628. # as -z defs.
  8629. no_undefined_flag='${wl}-z,text'
  8630. allow_undefined_flag='${wl}-z,nodefs'
  8631. archive_cmds_need_lc=no
  8632. hardcode_shlibpath_var=no
  8633. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8634. hardcode_libdir_separator=':'
  8635. link_all_deplibs=yes
  8636. export_dynamic_flag_spec='${wl}-Bexport'
  8637. runpath_var='LD_RUN_PATH'
  8638. if test "$GCC" = yes; then
  8639. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8640. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8641. else
  8642. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8643. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8644. fi
  8645. ;;
  8646. uts4*)
  8647. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8648. hardcode_libdir_flag_spec='-L$libdir'
  8649. hardcode_shlibpath_var=no
  8650. ;;
  8651. *)
  8652. ld_shlibs=no
  8653. ;;
  8654. esac
  8655. if test x$host_vendor = xsni; then
  8656. case $host in
  8657. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8658. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8659. ;;
  8660. esac
  8661. fi
  8662. fi
  8663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8664. $as_echo "$ld_shlibs" >&6; }
  8665. test "$ld_shlibs" = no && can_build_shared=no
  8666. with_gnu_ld=$with_gnu_ld
  8667. #
  8668. # Do we need to explicitly link libc?
  8669. #
  8670. case "x$archive_cmds_need_lc" in
  8671. x|xyes)
  8672. # Assume -lc should be added
  8673. archive_cmds_need_lc=yes
  8674. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8675. case $archive_cmds in
  8676. *'~'*)
  8677. # FIXME: we may have to deal with multi-command sequences.
  8678. ;;
  8679. '$CC '*)
  8680. # Test whether the compiler implicitly links with -lc since on some
  8681. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8682. # to ld, don't add -lc before -lgcc.
  8683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8684. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8685. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8686. $as_echo_n "(cached) " >&6
  8687. else
  8688. $RM conftest*
  8689. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8690. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8691. (eval $ac_compile) 2>&5
  8692. ac_status=$?
  8693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8694. test $ac_status = 0; } 2>conftest.err; then
  8695. soname=conftest
  8696. lib=conftest
  8697. libobjs=conftest.$ac_objext
  8698. deplibs=
  8699. wl=$lt_prog_compiler_wl
  8700. pic_flag=$lt_prog_compiler_pic
  8701. compiler_flags=-v
  8702. linker_flags=-v
  8703. verstring=
  8704. output_objdir=.
  8705. libname=conftest
  8706. lt_save_allow_undefined_flag=$allow_undefined_flag
  8707. allow_undefined_flag=
  8708. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8709. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8710. ac_status=$?
  8711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8712. test $ac_status = 0; }
  8713. then
  8714. lt_cv_archive_cmds_need_lc=no
  8715. else
  8716. lt_cv_archive_cmds_need_lc=yes
  8717. fi
  8718. allow_undefined_flag=$lt_save_allow_undefined_flag
  8719. else
  8720. cat conftest.err 1>&5
  8721. fi
  8722. $RM conftest*
  8723. fi
  8724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8725. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8726. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8727. ;;
  8728. esac
  8729. fi
  8730. ;;
  8731. esac
  8732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8733. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8734. if test "$GCC" = yes; then
  8735. case $host_os in
  8736. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8737. *) lt_awk_arg="/^libraries:/" ;;
  8738. esac
  8739. case $host_os in
  8740. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8741. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8742. esac
  8743. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8744. case $lt_search_path_spec in
  8745. *\;*)
  8746. # if the path contains ";" then we assume it to be the separator
  8747. # otherwise default to the standard path separator (i.e. ":") - it is
  8748. # assumed that no part of a normal pathname contains ";" but that should
  8749. # okay in the real world where ";" in dirpaths is itself problematic.
  8750. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8751. ;;
  8752. *)
  8753. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8754. ;;
  8755. esac
  8756. # Ok, now we have the path, separated by spaces, we can step through it
  8757. # and add multilib dir if necessary.
  8758. lt_tmp_lt_search_path_spec=
  8759. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8760. for lt_sys_path in $lt_search_path_spec; do
  8761. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8762. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8763. else
  8764. test -d "$lt_sys_path" && \
  8765. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8766. fi
  8767. done
  8768. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8769. BEGIN {RS=" "; FS="/|\n";} {
  8770. lt_foo="";
  8771. lt_count=0;
  8772. for (lt_i = NF; lt_i > 0; lt_i--) {
  8773. if ($lt_i != "" && $lt_i != ".") {
  8774. if ($lt_i == "..") {
  8775. lt_count++;
  8776. } else {
  8777. if (lt_count == 0) {
  8778. lt_foo="/" $lt_i lt_foo;
  8779. } else {
  8780. lt_count--;
  8781. }
  8782. }
  8783. }
  8784. }
  8785. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8786. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8787. }'`
  8788. # AWK program above erroneously prepends '/' to C:/dos/paths
  8789. # for these hosts.
  8790. case $host_os in
  8791. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8792. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8793. esac
  8794. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8795. else
  8796. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8797. fi
  8798. library_names_spec=
  8799. libname_spec='lib$name'
  8800. soname_spec=
  8801. shrext_cmds=".so"
  8802. postinstall_cmds=
  8803. postuninstall_cmds=
  8804. finish_cmds=
  8805. finish_eval=
  8806. shlibpath_var=
  8807. shlibpath_overrides_runpath=unknown
  8808. version_type=none
  8809. dynamic_linker="$host_os ld.so"
  8810. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8811. need_lib_prefix=unknown
  8812. hardcode_into_libs=no
  8813. # when you set need_version to no, make sure it does not cause -set_version
  8814. # flags to be left without arguments
  8815. need_version=unknown
  8816. case $host_os in
  8817. aix3*)
  8818. version_type=linux
  8819. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8820. shlibpath_var=LIBPATH
  8821. # AIX 3 has no versioning support, so we append a major version to the name.
  8822. soname_spec='${libname}${release}${shared_ext}$major'
  8823. ;;
  8824. aix[4-9]*)
  8825. version_type=linux
  8826. need_lib_prefix=no
  8827. need_version=no
  8828. hardcode_into_libs=yes
  8829. if test "$host_cpu" = ia64; then
  8830. # AIX 5 supports IA64
  8831. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8832. shlibpath_var=LD_LIBRARY_PATH
  8833. else
  8834. # With GCC up to 2.95.x, collect2 would create an import file
  8835. # for dependence libraries. The import file would start with
  8836. # the line `#! .'. This would cause the generated library to
  8837. # depend on `.', always an invalid library. This was fixed in
  8838. # development snapshots of GCC prior to 3.0.
  8839. case $host_os in
  8840. aix4 | aix4.[01] | aix4.[01].*)
  8841. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8842. echo ' yes '
  8843. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8844. :
  8845. else
  8846. can_build_shared=no
  8847. fi
  8848. ;;
  8849. esac
  8850. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8851. # soname into executable. Probably we can add versioning support to
  8852. # collect2, so additional links can be useful in future.
  8853. if test "$aix_use_runtimelinking" = yes; then
  8854. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8855. # instead of lib<name>.a to let people know that these are not
  8856. # typical AIX shared libraries.
  8857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8858. else
  8859. # We preserve .a as extension for shared libraries through AIX4.2
  8860. # and later when we are not doing run time linking.
  8861. library_names_spec='${libname}${release}.a $libname.a'
  8862. soname_spec='${libname}${release}${shared_ext}$major'
  8863. fi
  8864. shlibpath_var=LIBPATH
  8865. fi
  8866. ;;
  8867. amigaos*)
  8868. case $host_cpu in
  8869. powerpc)
  8870. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8871. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8873. ;;
  8874. m68k)
  8875. library_names_spec='$libname.ixlibrary $libname.a'
  8876. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8877. 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'
  8878. ;;
  8879. esac
  8880. ;;
  8881. beos*)
  8882. library_names_spec='${libname}${shared_ext}'
  8883. dynamic_linker="$host_os ld.so"
  8884. shlibpath_var=LIBRARY_PATH
  8885. ;;
  8886. bsdi[45]*)
  8887. version_type=linux
  8888. need_version=no
  8889. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8890. soname_spec='${libname}${release}${shared_ext}$major'
  8891. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8892. shlibpath_var=LD_LIBRARY_PATH
  8893. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8894. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8895. # the default ld.so.conf also contains /usr/contrib/lib and
  8896. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8897. # libtool to hard-code these into programs
  8898. ;;
  8899. cygwin* | mingw* | pw32* | cegcc*)
  8900. version_type=windows
  8901. shrext_cmds=".dll"
  8902. need_version=no
  8903. need_lib_prefix=no
  8904. case $GCC,$host_os in
  8905. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8906. library_names_spec='$libname.dll.a'
  8907. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8908. postinstall_cmds='base_file=`basename \${file}`~
  8909. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8910. dldir=$destdir/`dirname \$dlpath`~
  8911. test -d \$dldir || mkdir -p \$dldir~
  8912. $install_prog $dir/$dlname \$dldir/$dlname~
  8913. chmod a+x \$dldir/$dlname~
  8914. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8915. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8916. fi'
  8917. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8918. dlpath=$dir/\$dldll~
  8919. $RM \$dlpath'
  8920. shlibpath_overrides_runpath=yes
  8921. case $host_os in
  8922. cygwin*)
  8923. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8924. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8925. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8926. ;;
  8927. mingw* | cegcc*)
  8928. # MinGW DLLs use traditional 'lib' prefix
  8929. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8930. ;;
  8931. pw32*)
  8932. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8933. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8934. ;;
  8935. esac
  8936. ;;
  8937. *)
  8938. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8939. ;;
  8940. esac
  8941. dynamic_linker='Win32 ld.exe'
  8942. # FIXME: first we should search . and the directory the executable is in
  8943. shlibpath_var=PATH
  8944. ;;
  8945. darwin* | rhapsody*)
  8946. dynamic_linker="$host_os dyld"
  8947. version_type=darwin
  8948. need_lib_prefix=no
  8949. need_version=no
  8950. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8951. soname_spec='${libname}${release}${major}$shared_ext'
  8952. shlibpath_overrides_runpath=yes
  8953. shlibpath_var=DYLD_LIBRARY_PATH
  8954. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8955. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8956. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8957. ;;
  8958. dgux*)
  8959. version_type=linux
  8960. need_lib_prefix=no
  8961. need_version=no
  8962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8963. soname_spec='${libname}${release}${shared_ext}$major'
  8964. shlibpath_var=LD_LIBRARY_PATH
  8965. ;;
  8966. freebsd* | dragonfly*)
  8967. # DragonFly does not have aout. When/if they implement a new
  8968. # versioning mechanism, adjust this.
  8969. if test -x /usr/bin/objformat; then
  8970. objformat=`/usr/bin/objformat`
  8971. else
  8972. case $host_os in
  8973. freebsd[23].*) objformat=aout ;;
  8974. *) objformat=elf ;;
  8975. esac
  8976. fi
  8977. version_type=freebsd-$objformat
  8978. case $version_type in
  8979. freebsd-elf*)
  8980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8981. need_version=no
  8982. need_lib_prefix=no
  8983. ;;
  8984. freebsd-*)
  8985. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8986. need_version=yes
  8987. ;;
  8988. esac
  8989. shlibpath_var=LD_LIBRARY_PATH
  8990. case $host_os in
  8991. freebsd2.*)
  8992. shlibpath_overrides_runpath=yes
  8993. ;;
  8994. freebsd3.[01]* | freebsdelf3.[01]*)
  8995. shlibpath_overrides_runpath=yes
  8996. hardcode_into_libs=yes
  8997. ;;
  8998. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8999. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9000. shlibpath_overrides_runpath=no
  9001. hardcode_into_libs=yes
  9002. ;;
  9003. *) # from 4.6 on, and DragonFly
  9004. shlibpath_overrides_runpath=yes
  9005. hardcode_into_libs=yes
  9006. ;;
  9007. esac
  9008. ;;
  9009. gnu*)
  9010. version_type=linux
  9011. need_lib_prefix=no
  9012. need_version=no
  9013. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9014. soname_spec='${libname}${release}${shared_ext}$major'
  9015. shlibpath_var=LD_LIBRARY_PATH
  9016. hardcode_into_libs=yes
  9017. ;;
  9018. haiku*)
  9019. version_type=linux
  9020. need_lib_prefix=no
  9021. need_version=no
  9022. dynamic_linker="$host_os runtime_loader"
  9023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9024. soname_spec='${libname}${release}${shared_ext}$major'
  9025. shlibpath_var=LIBRARY_PATH
  9026. shlibpath_overrides_runpath=yes
  9027. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9028. hardcode_into_libs=yes
  9029. ;;
  9030. hpux9* | hpux10* | hpux11*)
  9031. # Give a soname corresponding to the major version so that dld.sl refuses to
  9032. # link against other versions.
  9033. version_type=sunos
  9034. need_lib_prefix=no
  9035. need_version=no
  9036. case $host_cpu in
  9037. ia64*)
  9038. shrext_cmds='.so'
  9039. hardcode_into_libs=yes
  9040. dynamic_linker="$host_os dld.so"
  9041. shlibpath_var=LD_LIBRARY_PATH
  9042. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9044. soname_spec='${libname}${release}${shared_ext}$major'
  9045. if test "X$HPUX_IA64_MODE" = X32; then
  9046. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9047. else
  9048. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9049. fi
  9050. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9051. ;;
  9052. hppa*64*)
  9053. shrext_cmds='.sl'
  9054. hardcode_into_libs=yes
  9055. dynamic_linker="$host_os dld.sl"
  9056. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9057. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9059. soname_spec='${libname}${release}${shared_ext}$major'
  9060. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9061. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9062. ;;
  9063. *)
  9064. shrext_cmds='.sl'
  9065. dynamic_linker="$host_os dld.sl"
  9066. shlibpath_var=SHLIB_PATH
  9067. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9069. soname_spec='${libname}${release}${shared_ext}$major'
  9070. ;;
  9071. esac
  9072. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9073. postinstall_cmds='chmod 555 $lib'
  9074. # or fails outright, so override atomically:
  9075. install_override_mode=555
  9076. ;;
  9077. interix[3-9]*)
  9078. version_type=linux
  9079. need_lib_prefix=no
  9080. need_version=no
  9081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9082. soname_spec='${libname}${release}${shared_ext}$major'
  9083. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9084. shlibpath_var=LD_LIBRARY_PATH
  9085. shlibpath_overrides_runpath=no
  9086. hardcode_into_libs=yes
  9087. ;;
  9088. irix5* | irix6* | nonstopux*)
  9089. case $host_os in
  9090. nonstopux*) version_type=nonstopux ;;
  9091. *)
  9092. if test "$lt_cv_prog_gnu_ld" = yes; then
  9093. version_type=linux
  9094. else
  9095. version_type=irix
  9096. fi ;;
  9097. esac
  9098. need_lib_prefix=no
  9099. need_version=no
  9100. soname_spec='${libname}${release}${shared_ext}$major'
  9101. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9102. case $host_os in
  9103. irix5* | nonstopux*)
  9104. libsuff= shlibsuff=
  9105. ;;
  9106. *)
  9107. case $LD in # libtool.m4 will add one of these switches to LD
  9108. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9109. libsuff= shlibsuff= libmagic=32-bit;;
  9110. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9111. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9112. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9113. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9114. *) libsuff= shlibsuff= libmagic=never-match;;
  9115. esac
  9116. ;;
  9117. esac
  9118. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9119. shlibpath_overrides_runpath=no
  9120. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9121. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9122. hardcode_into_libs=yes
  9123. ;;
  9124. # No shared lib support for Linux oldld, aout, or coff.
  9125. linux*oldld* | linux*aout* | linux*coff*)
  9126. dynamic_linker=no
  9127. ;;
  9128. # This must be Linux ELF.
  9129. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9130. version_type=linux
  9131. need_lib_prefix=no
  9132. need_version=no
  9133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9134. soname_spec='${libname}${release}${shared_ext}$major'
  9135. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9136. shlibpath_var=LD_LIBRARY_PATH
  9137. shlibpath_overrides_runpath=no
  9138. # Some binutils ld are patched to set DT_RUNPATH
  9139. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9140. $as_echo_n "(cached) " >&6
  9141. else
  9142. lt_cv_shlibpath_overrides_runpath=no
  9143. save_LDFLAGS=$LDFLAGS
  9144. save_libdir=$libdir
  9145. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9146. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9148. /* end confdefs.h. */
  9149. int
  9150. main ()
  9151. {
  9152. ;
  9153. return 0;
  9154. }
  9155. _ACEOF
  9156. if ac_fn_c_try_link "$LINENO"; then :
  9157. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9158. lt_cv_shlibpath_overrides_runpath=yes
  9159. fi
  9160. fi
  9161. rm -f core conftest.err conftest.$ac_objext \
  9162. conftest$ac_exeext conftest.$ac_ext
  9163. LDFLAGS=$save_LDFLAGS
  9164. libdir=$save_libdir
  9165. fi
  9166. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9167. # This implies no fast_install, which is unacceptable.
  9168. # Some rework will be needed to allow for fast_install
  9169. # before this can be enabled.
  9170. hardcode_into_libs=yes
  9171. # Append ld.so.conf contents to the search path
  9172. if test -f /etc/ld.so.conf; then
  9173. 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' ' '`
  9174. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9175. fi
  9176. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9177. # powerpc, because MkLinux only supported shared libraries with the
  9178. # GNU dynamic linker. Since this was broken with cross compilers,
  9179. # most powerpc-linux boxes support dynamic linking these days and
  9180. # people can always --disable-shared, the test was removed, and we
  9181. # assume the GNU/Linux dynamic linker is in use.
  9182. dynamic_linker='GNU/Linux ld.so'
  9183. ;;
  9184. netbsd*)
  9185. version_type=sunos
  9186. need_lib_prefix=no
  9187. need_version=no
  9188. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9190. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9191. dynamic_linker='NetBSD (a.out) ld.so'
  9192. else
  9193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9194. soname_spec='${libname}${release}${shared_ext}$major'
  9195. dynamic_linker='NetBSD ld.elf_so'
  9196. fi
  9197. shlibpath_var=LD_LIBRARY_PATH
  9198. shlibpath_overrides_runpath=yes
  9199. hardcode_into_libs=yes
  9200. ;;
  9201. newsos6)
  9202. version_type=linux
  9203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9204. shlibpath_var=LD_LIBRARY_PATH
  9205. shlibpath_overrides_runpath=yes
  9206. ;;
  9207. *nto* | *qnx*)
  9208. version_type=qnx
  9209. need_lib_prefix=no
  9210. need_version=no
  9211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9212. soname_spec='${libname}${release}${shared_ext}$major'
  9213. shlibpath_var=LD_LIBRARY_PATH
  9214. shlibpath_overrides_runpath=no
  9215. hardcode_into_libs=yes
  9216. dynamic_linker='ldqnx.so'
  9217. ;;
  9218. openbsd*)
  9219. version_type=sunos
  9220. sys_lib_dlsearch_path_spec="/usr/lib"
  9221. need_lib_prefix=no
  9222. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9223. case $host_os in
  9224. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9225. *) need_version=no ;;
  9226. esac
  9227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9228. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9229. shlibpath_var=LD_LIBRARY_PATH
  9230. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9231. case $host_os in
  9232. openbsd2.[89] | openbsd2.[89].*)
  9233. shlibpath_overrides_runpath=no
  9234. ;;
  9235. *)
  9236. shlibpath_overrides_runpath=yes
  9237. ;;
  9238. esac
  9239. else
  9240. shlibpath_overrides_runpath=yes
  9241. fi
  9242. ;;
  9243. os2*)
  9244. libname_spec='$name'
  9245. shrext_cmds=".dll"
  9246. need_lib_prefix=no
  9247. library_names_spec='$libname${shared_ext} $libname.a'
  9248. dynamic_linker='OS/2 ld.exe'
  9249. shlibpath_var=LIBPATH
  9250. ;;
  9251. osf3* | osf4* | osf5*)
  9252. version_type=osf
  9253. need_lib_prefix=no
  9254. need_version=no
  9255. soname_spec='${libname}${release}${shared_ext}$major'
  9256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9257. shlibpath_var=LD_LIBRARY_PATH
  9258. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9259. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9260. ;;
  9261. rdos*)
  9262. dynamic_linker=no
  9263. ;;
  9264. solaris*)
  9265. version_type=linux
  9266. need_lib_prefix=no
  9267. need_version=no
  9268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9269. soname_spec='${libname}${release}${shared_ext}$major'
  9270. shlibpath_var=LD_LIBRARY_PATH
  9271. shlibpath_overrides_runpath=yes
  9272. hardcode_into_libs=yes
  9273. # ldd complains unless libraries are executable
  9274. postinstall_cmds='chmod +x $lib'
  9275. ;;
  9276. sunos4*)
  9277. version_type=sunos
  9278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9279. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9280. shlibpath_var=LD_LIBRARY_PATH
  9281. shlibpath_overrides_runpath=yes
  9282. if test "$with_gnu_ld" = yes; then
  9283. need_lib_prefix=no
  9284. fi
  9285. need_version=yes
  9286. ;;
  9287. sysv4 | sysv4.3*)
  9288. version_type=linux
  9289. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9290. soname_spec='${libname}${release}${shared_ext}$major'
  9291. shlibpath_var=LD_LIBRARY_PATH
  9292. case $host_vendor in
  9293. sni)
  9294. shlibpath_overrides_runpath=no
  9295. need_lib_prefix=no
  9296. runpath_var=LD_RUN_PATH
  9297. ;;
  9298. siemens)
  9299. need_lib_prefix=no
  9300. ;;
  9301. motorola)
  9302. need_lib_prefix=no
  9303. need_version=no
  9304. shlibpath_overrides_runpath=no
  9305. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9306. ;;
  9307. esac
  9308. ;;
  9309. sysv4*MP*)
  9310. if test -d /usr/nec ;then
  9311. version_type=linux
  9312. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9313. soname_spec='$libname${shared_ext}.$major'
  9314. shlibpath_var=LD_LIBRARY_PATH
  9315. fi
  9316. ;;
  9317. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9318. version_type=freebsd-elf
  9319. need_lib_prefix=no
  9320. need_version=no
  9321. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9322. soname_spec='${libname}${release}${shared_ext}$major'
  9323. shlibpath_var=LD_LIBRARY_PATH
  9324. shlibpath_overrides_runpath=yes
  9325. hardcode_into_libs=yes
  9326. if test "$with_gnu_ld" = yes; then
  9327. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9328. else
  9329. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9330. case $host_os in
  9331. sco3.2v5*)
  9332. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9333. ;;
  9334. esac
  9335. fi
  9336. sys_lib_dlsearch_path_spec='/usr/lib'
  9337. ;;
  9338. tpf*)
  9339. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9340. version_type=linux
  9341. need_lib_prefix=no
  9342. need_version=no
  9343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9344. shlibpath_var=LD_LIBRARY_PATH
  9345. shlibpath_overrides_runpath=no
  9346. hardcode_into_libs=yes
  9347. ;;
  9348. uts4*)
  9349. version_type=linux
  9350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9351. soname_spec='${libname}${release}${shared_ext}$major'
  9352. shlibpath_var=LD_LIBRARY_PATH
  9353. ;;
  9354. *)
  9355. dynamic_linker=no
  9356. ;;
  9357. esac
  9358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9359. $as_echo "$dynamic_linker" >&6; }
  9360. test "$dynamic_linker" = no && can_build_shared=no
  9361. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9362. if test "$GCC" = yes; then
  9363. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9364. fi
  9365. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9366. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9367. fi
  9368. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9369. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9370. fi
  9371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9372. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9373. hardcode_action=
  9374. if test -n "$hardcode_libdir_flag_spec" ||
  9375. test -n "$runpath_var" ||
  9376. test "X$hardcode_automatic" = "Xyes" ; then
  9377. # We can hardcode non-existent directories.
  9378. if test "$hardcode_direct" != no &&
  9379. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9380. # have to relink, otherwise we might link with an installed library
  9381. # when we should be linking with a yet-to-be-installed one
  9382. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9383. test "$hardcode_minus_L" != no; then
  9384. # Linking always hardcodes the temporary library directory.
  9385. hardcode_action=relink
  9386. else
  9387. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9388. hardcode_action=immediate
  9389. fi
  9390. else
  9391. # We cannot hardcode anything, or else we can only hardcode existing
  9392. # directories.
  9393. hardcode_action=unsupported
  9394. fi
  9395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9396. $as_echo "$hardcode_action" >&6; }
  9397. if test "$hardcode_action" = relink ||
  9398. test "$inherit_rpath" = yes; then
  9399. # Fast installation is not supported
  9400. enable_fast_install=no
  9401. elif test "$shlibpath_overrides_runpath" = yes ||
  9402. test "$enable_shared" = no; then
  9403. # Fast installation is not necessary
  9404. enable_fast_install=needless
  9405. fi
  9406. if test "x$enable_dlopen" != xyes; then
  9407. enable_dlopen=unknown
  9408. enable_dlopen_self=unknown
  9409. enable_dlopen_self_static=unknown
  9410. else
  9411. lt_cv_dlopen=no
  9412. lt_cv_dlopen_libs=
  9413. case $host_os in
  9414. beos*)
  9415. lt_cv_dlopen="load_add_on"
  9416. lt_cv_dlopen_libs=
  9417. lt_cv_dlopen_self=yes
  9418. ;;
  9419. mingw* | pw32* | cegcc*)
  9420. lt_cv_dlopen="LoadLibrary"
  9421. lt_cv_dlopen_libs=
  9422. ;;
  9423. cygwin*)
  9424. lt_cv_dlopen="dlopen"
  9425. lt_cv_dlopen_libs=
  9426. ;;
  9427. darwin*)
  9428. # if libdl is installed we need to link against it
  9429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9430. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9431. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9432. $as_echo_n "(cached) " >&6
  9433. else
  9434. ac_check_lib_save_LIBS=$LIBS
  9435. LIBS="-ldl $LIBS"
  9436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9437. /* end confdefs.h. */
  9438. /* Override any GCC internal prototype to avoid an error.
  9439. Use char because int might match the return type of a GCC
  9440. builtin and then its argument prototype would still apply. */
  9441. #ifdef __cplusplus
  9442. extern "C"
  9443. #endif
  9444. char dlopen ();
  9445. int
  9446. main ()
  9447. {
  9448. return dlopen ();
  9449. ;
  9450. return 0;
  9451. }
  9452. _ACEOF
  9453. if ac_fn_c_try_link "$LINENO"; then :
  9454. ac_cv_lib_dl_dlopen=yes
  9455. else
  9456. ac_cv_lib_dl_dlopen=no
  9457. fi
  9458. rm -f core conftest.err conftest.$ac_objext \
  9459. conftest$ac_exeext conftest.$ac_ext
  9460. LIBS=$ac_check_lib_save_LIBS
  9461. fi
  9462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9463. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9464. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9465. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9466. else
  9467. lt_cv_dlopen="dyld"
  9468. lt_cv_dlopen_libs=
  9469. lt_cv_dlopen_self=yes
  9470. fi
  9471. ;;
  9472. *)
  9473. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9474. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9475. lt_cv_dlopen="shl_load"
  9476. else
  9477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9478. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9479. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9480. $as_echo_n "(cached) " >&6
  9481. else
  9482. ac_check_lib_save_LIBS=$LIBS
  9483. LIBS="-ldld $LIBS"
  9484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9485. /* end confdefs.h. */
  9486. /* Override any GCC internal prototype to avoid an error.
  9487. Use char because int might match the return type of a GCC
  9488. builtin and then its argument prototype would still apply. */
  9489. #ifdef __cplusplus
  9490. extern "C"
  9491. #endif
  9492. char shl_load ();
  9493. int
  9494. main ()
  9495. {
  9496. return shl_load ();
  9497. ;
  9498. return 0;
  9499. }
  9500. _ACEOF
  9501. if ac_fn_c_try_link "$LINENO"; then :
  9502. ac_cv_lib_dld_shl_load=yes
  9503. else
  9504. ac_cv_lib_dld_shl_load=no
  9505. fi
  9506. rm -f core conftest.err conftest.$ac_objext \
  9507. conftest$ac_exeext conftest.$ac_ext
  9508. LIBS=$ac_check_lib_save_LIBS
  9509. fi
  9510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9511. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9512. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9513. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9514. else
  9515. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9516. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9517. lt_cv_dlopen="dlopen"
  9518. else
  9519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9520. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9521. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9522. $as_echo_n "(cached) " >&6
  9523. else
  9524. ac_check_lib_save_LIBS=$LIBS
  9525. LIBS="-ldl $LIBS"
  9526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9527. /* end confdefs.h. */
  9528. /* Override any GCC internal prototype to avoid an error.
  9529. Use char because int might match the return type of a GCC
  9530. builtin and then its argument prototype would still apply. */
  9531. #ifdef __cplusplus
  9532. extern "C"
  9533. #endif
  9534. char dlopen ();
  9535. int
  9536. main ()
  9537. {
  9538. return dlopen ();
  9539. ;
  9540. return 0;
  9541. }
  9542. _ACEOF
  9543. if ac_fn_c_try_link "$LINENO"; then :
  9544. ac_cv_lib_dl_dlopen=yes
  9545. else
  9546. ac_cv_lib_dl_dlopen=no
  9547. fi
  9548. rm -f core conftest.err conftest.$ac_objext \
  9549. conftest$ac_exeext conftest.$ac_ext
  9550. LIBS=$ac_check_lib_save_LIBS
  9551. fi
  9552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9553. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9554. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9555. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9556. else
  9557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9558. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9559. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9560. $as_echo_n "(cached) " >&6
  9561. else
  9562. ac_check_lib_save_LIBS=$LIBS
  9563. LIBS="-lsvld $LIBS"
  9564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9565. /* end confdefs.h. */
  9566. /* Override any GCC internal prototype to avoid an error.
  9567. Use char because int might match the return type of a GCC
  9568. builtin and then its argument prototype would still apply. */
  9569. #ifdef __cplusplus
  9570. extern "C"
  9571. #endif
  9572. char dlopen ();
  9573. int
  9574. main ()
  9575. {
  9576. return dlopen ();
  9577. ;
  9578. return 0;
  9579. }
  9580. _ACEOF
  9581. if ac_fn_c_try_link "$LINENO"; then :
  9582. ac_cv_lib_svld_dlopen=yes
  9583. else
  9584. ac_cv_lib_svld_dlopen=no
  9585. fi
  9586. rm -f core conftest.err conftest.$ac_objext \
  9587. conftest$ac_exeext conftest.$ac_ext
  9588. LIBS=$ac_check_lib_save_LIBS
  9589. fi
  9590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9591. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9592. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9593. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9594. else
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9596. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9597. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9598. $as_echo_n "(cached) " >&6
  9599. else
  9600. ac_check_lib_save_LIBS=$LIBS
  9601. LIBS="-ldld $LIBS"
  9602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9603. /* end confdefs.h. */
  9604. /* Override any GCC internal prototype to avoid an error.
  9605. Use char because int might match the return type of a GCC
  9606. builtin and then its argument prototype would still apply. */
  9607. #ifdef __cplusplus
  9608. extern "C"
  9609. #endif
  9610. char dld_link ();
  9611. int
  9612. main ()
  9613. {
  9614. return dld_link ();
  9615. ;
  9616. return 0;
  9617. }
  9618. _ACEOF
  9619. if ac_fn_c_try_link "$LINENO"; then :
  9620. ac_cv_lib_dld_dld_link=yes
  9621. else
  9622. ac_cv_lib_dld_dld_link=no
  9623. fi
  9624. rm -f core conftest.err conftest.$ac_objext \
  9625. conftest$ac_exeext conftest.$ac_ext
  9626. LIBS=$ac_check_lib_save_LIBS
  9627. fi
  9628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9629. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9630. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9631. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9632. fi
  9633. fi
  9634. fi
  9635. fi
  9636. fi
  9637. fi
  9638. ;;
  9639. esac
  9640. if test "x$lt_cv_dlopen" != xno; then
  9641. enable_dlopen=yes
  9642. else
  9643. enable_dlopen=no
  9644. fi
  9645. case $lt_cv_dlopen in
  9646. dlopen)
  9647. save_CPPFLAGS="$CPPFLAGS"
  9648. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9649. save_LDFLAGS="$LDFLAGS"
  9650. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9651. save_LIBS="$LIBS"
  9652. LIBS="$lt_cv_dlopen_libs $LIBS"
  9653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9654. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9655. if test "${lt_cv_dlopen_self+set}" = set; then :
  9656. $as_echo_n "(cached) " >&6
  9657. else
  9658. if test "$cross_compiling" = yes; then :
  9659. lt_cv_dlopen_self=cross
  9660. else
  9661. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9662. lt_status=$lt_dlunknown
  9663. cat > conftest.$ac_ext <<_LT_EOF
  9664. #line 11224 "configure"
  9665. #include "confdefs.h"
  9666. #if HAVE_DLFCN_H
  9667. #include <dlfcn.h>
  9668. #endif
  9669. #include <stdio.h>
  9670. #ifdef RTLD_GLOBAL
  9671. # define LT_DLGLOBAL RTLD_GLOBAL
  9672. #else
  9673. # ifdef DL_GLOBAL
  9674. # define LT_DLGLOBAL DL_GLOBAL
  9675. # else
  9676. # define LT_DLGLOBAL 0
  9677. # endif
  9678. #endif
  9679. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9680. find out it does not work in some platform. */
  9681. #ifndef LT_DLLAZY_OR_NOW
  9682. # ifdef RTLD_LAZY
  9683. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9684. # else
  9685. # ifdef DL_LAZY
  9686. # define LT_DLLAZY_OR_NOW DL_LAZY
  9687. # else
  9688. # ifdef RTLD_NOW
  9689. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9690. # else
  9691. # ifdef DL_NOW
  9692. # define LT_DLLAZY_OR_NOW DL_NOW
  9693. # else
  9694. # define LT_DLLAZY_OR_NOW 0
  9695. # endif
  9696. # endif
  9697. # endif
  9698. # endif
  9699. #endif
  9700. /* When -fvisbility=hidden is used, assume the code has been annotated
  9701. correspondingly for the symbols needed. */
  9702. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9703. void fnord () __attribute__((visibility("default")));
  9704. #endif
  9705. void fnord () { int i=42; }
  9706. int main ()
  9707. {
  9708. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9709. int status = $lt_dlunknown;
  9710. if (self)
  9711. {
  9712. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9713. else
  9714. {
  9715. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9716. else puts (dlerror ());
  9717. }
  9718. /* dlclose (self); */
  9719. }
  9720. else
  9721. puts (dlerror ());
  9722. return status;
  9723. }
  9724. _LT_EOF
  9725. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9726. (eval $ac_link) 2>&5
  9727. ac_status=$?
  9728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9729. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9730. (./conftest; exit; ) >&5 2>/dev/null
  9731. lt_status=$?
  9732. case x$lt_status in
  9733. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9734. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9735. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9736. esac
  9737. else :
  9738. # compilation failed
  9739. lt_cv_dlopen_self=no
  9740. fi
  9741. fi
  9742. rm -fr conftest*
  9743. fi
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9745. $as_echo "$lt_cv_dlopen_self" >&6; }
  9746. if test "x$lt_cv_dlopen_self" = xyes; then
  9747. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9749. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9750. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9751. $as_echo_n "(cached) " >&6
  9752. else
  9753. if test "$cross_compiling" = yes; then :
  9754. lt_cv_dlopen_self_static=cross
  9755. else
  9756. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9757. lt_status=$lt_dlunknown
  9758. cat > conftest.$ac_ext <<_LT_EOF
  9759. #line 11330 "configure"
  9760. #include "confdefs.h"
  9761. #if HAVE_DLFCN_H
  9762. #include <dlfcn.h>
  9763. #endif
  9764. #include <stdio.h>
  9765. #ifdef RTLD_GLOBAL
  9766. # define LT_DLGLOBAL RTLD_GLOBAL
  9767. #else
  9768. # ifdef DL_GLOBAL
  9769. # define LT_DLGLOBAL DL_GLOBAL
  9770. # else
  9771. # define LT_DLGLOBAL 0
  9772. # endif
  9773. #endif
  9774. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9775. find out it does not work in some platform. */
  9776. #ifndef LT_DLLAZY_OR_NOW
  9777. # ifdef RTLD_LAZY
  9778. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9779. # else
  9780. # ifdef DL_LAZY
  9781. # define LT_DLLAZY_OR_NOW DL_LAZY
  9782. # else
  9783. # ifdef RTLD_NOW
  9784. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9785. # else
  9786. # ifdef DL_NOW
  9787. # define LT_DLLAZY_OR_NOW DL_NOW
  9788. # else
  9789. # define LT_DLLAZY_OR_NOW 0
  9790. # endif
  9791. # endif
  9792. # endif
  9793. # endif
  9794. #endif
  9795. /* When -fvisbility=hidden is used, assume the code has been annotated
  9796. correspondingly for the symbols needed. */
  9797. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9798. void fnord () __attribute__((visibility("default")));
  9799. #endif
  9800. void fnord () { int i=42; }
  9801. int main ()
  9802. {
  9803. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9804. int status = $lt_dlunknown;
  9805. if (self)
  9806. {
  9807. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9808. else
  9809. {
  9810. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9811. else puts (dlerror ());
  9812. }
  9813. /* dlclose (self); */
  9814. }
  9815. else
  9816. puts (dlerror ());
  9817. return status;
  9818. }
  9819. _LT_EOF
  9820. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9821. (eval $ac_link) 2>&5
  9822. ac_status=$?
  9823. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9824. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9825. (./conftest; exit; ) >&5 2>/dev/null
  9826. lt_status=$?
  9827. case x$lt_status in
  9828. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9829. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9830. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9831. esac
  9832. else :
  9833. # compilation failed
  9834. lt_cv_dlopen_self_static=no
  9835. fi
  9836. fi
  9837. rm -fr conftest*
  9838. fi
  9839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9840. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9841. fi
  9842. CPPFLAGS="$save_CPPFLAGS"
  9843. LDFLAGS="$save_LDFLAGS"
  9844. LIBS="$save_LIBS"
  9845. ;;
  9846. esac
  9847. case $lt_cv_dlopen_self in
  9848. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9849. *) enable_dlopen_self=unknown ;;
  9850. esac
  9851. case $lt_cv_dlopen_self_static in
  9852. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9853. *) enable_dlopen_self_static=unknown ;;
  9854. esac
  9855. fi
  9856. striplib=
  9857. old_striplib=
  9858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9859. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9860. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9861. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9862. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9864. $as_echo "yes" >&6; }
  9865. else
  9866. # FIXME - insert some real tests, host_os isn't really good enough
  9867. case $host_os in
  9868. darwin*)
  9869. if test -n "$STRIP" ; then
  9870. striplib="$STRIP -x"
  9871. old_striplib="$STRIP -S"
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9873. $as_echo "yes" >&6; }
  9874. else
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9876. $as_echo "no" >&6; }
  9877. fi
  9878. ;;
  9879. *)
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9881. $as_echo "no" >&6; }
  9882. ;;
  9883. esac
  9884. fi
  9885. # Report which library types will actually be built
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9887. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9889. $as_echo "$can_build_shared" >&6; }
  9890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9891. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9892. test "$can_build_shared" = "no" && enable_shared=no
  9893. # On AIX, shared libraries and static libraries use the same namespace, and
  9894. # are all built from PIC.
  9895. case $host_os in
  9896. aix3*)
  9897. test "$enable_shared" = yes && enable_static=no
  9898. if test -n "$RANLIB"; then
  9899. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9900. postinstall_cmds='$RANLIB $lib'
  9901. fi
  9902. ;;
  9903. aix[4-9]*)
  9904. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9905. test "$enable_shared" = yes && enable_static=no
  9906. fi
  9907. ;;
  9908. esac
  9909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9910. $as_echo "$enable_shared" >&6; }
  9911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9912. $as_echo_n "checking whether to build static libraries... " >&6; }
  9913. # Make sure either enable_shared or enable_static is yes.
  9914. test "$enable_shared" = yes || enable_static=yes
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9916. $as_echo "$enable_static" >&6; }
  9917. fi
  9918. ac_ext=c
  9919. ac_cpp='$CPP $CPPFLAGS'
  9920. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9921. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9922. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9923. CC="$lt_save_CC"
  9924. ac_config_commands="$ac_config_commands libtool"
  9925. # Only expand once:
  9926. # The tests for host and target for $enable_largefile require
  9927. # canonical names.
  9928. # As the $enable_largefile decision depends on --enable-plugins we must set it
  9929. # even in directories otherwise not depending on the $plugins option.
  9930. maybe_plugins=no
  9931. for ac_header in dlfcn.h
  9932. do :
  9933. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  9934. "
  9935. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  9936. cat >>confdefs.h <<_ACEOF
  9937. #define HAVE_DLFCN_H 1
  9938. _ACEOF
  9939. maybe_plugins=yes
  9940. fi
  9941. done
  9942. for ac_header in windows.h
  9943. do :
  9944. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  9945. "
  9946. if test "x$ac_cv_header_windows_h" = x""yes; then :
  9947. cat >>confdefs.h <<_ACEOF
  9948. #define HAVE_WINDOWS_H 1
  9949. _ACEOF
  9950. maybe_plugins=yes
  9951. fi
  9952. done
  9953. # Check whether --enable-plugins was given.
  9954. if test "${enable_plugins+set}" = set; then :
  9955. enableval=$enable_plugins; case "${enableval}" in
  9956. no) plugins=no ;;
  9957. *) plugins=yes
  9958. if test "$maybe_plugins" != "yes" ; then
  9959. as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  9960. fi ;;
  9961. esac
  9962. else
  9963. plugins=$maybe_plugins
  9964. fi
  9965. if test "$plugins" = "yes"; then
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  9967. $as_echo_n "checking for library containing dlopen... " >&6; }
  9968. if test "${ac_cv_search_dlopen+set}" = set; then :
  9969. $as_echo_n "(cached) " >&6
  9970. else
  9971. ac_func_search_save_LIBS=$LIBS
  9972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9973. /* end confdefs.h. */
  9974. /* Override any GCC internal prototype to avoid an error.
  9975. Use char because int might match the return type of a GCC
  9976. builtin and then its argument prototype would still apply. */
  9977. #ifdef __cplusplus
  9978. extern "C"
  9979. #endif
  9980. char dlopen ();
  9981. int
  9982. main ()
  9983. {
  9984. return dlopen ();
  9985. ;
  9986. return 0;
  9987. }
  9988. _ACEOF
  9989. for ac_lib in '' dl; do
  9990. if test -z "$ac_lib"; then
  9991. ac_res="none required"
  9992. else
  9993. ac_res=-l$ac_lib
  9994. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9995. fi
  9996. if ac_fn_c_try_link "$LINENO"; then :
  9997. ac_cv_search_dlopen=$ac_res
  9998. fi
  9999. rm -f core conftest.err conftest.$ac_objext \
  10000. conftest$ac_exeext
  10001. if test "${ac_cv_search_dlopen+set}" = set; then :
  10002. break
  10003. fi
  10004. done
  10005. if test "${ac_cv_search_dlopen+set}" = set; then :
  10006. else
  10007. ac_cv_search_dlopen=no
  10008. fi
  10009. rm conftest.$ac_ext
  10010. LIBS=$ac_func_search_save_LIBS
  10011. fi
  10012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  10013. $as_echo "$ac_cv_search_dlopen" >&6; }
  10014. ac_res=$ac_cv_search_dlopen
  10015. if test "$ac_res" != no; then :
  10016. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  10017. fi
  10018. fi
  10019. case "${host}" in
  10020. sparc-*-solaris*|i[3-7]86-*-solaris*)
  10021. # On native 32bit sparc and ia32 solaris, large-file and procfs support
  10022. # are mutually exclusive; and without procfs support, the bfd/ elf module
  10023. # cannot provide certain routines such as elfcore_write_prpsinfo
  10024. # or elfcore_write_prstatus. So unless the user explicitly requested
  10025. # large-file support through the --enable-largefile switch, disable
  10026. # large-file support in favor of procfs support.
  10027. test "${target}" = "${host}" -a "x$plugins" = xno \
  10028. && : ${enable_largefile="no"}
  10029. ;;
  10030. esac
  10031. # Check whether --enable-largefile was given.
  10032. if test "${enable_largefile+set}" = set; then :
  10033. enableval=$enable_largefile;
  10034. fi
  10035. if test "$enable_largefile" != no; then
  10036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  10037. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10038. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  10039. $as_echo_n "(cached) " >&6
  10040. else
  10041. ac_cv_sys_largefile_CC=no
  10042. if test "$GCC" != yes; then
  10043. ac_save_CC=$CC
  10044. while :; do
  10045. # IRIX 6.2 and later do not support large files by default,
  10046. # so use the C compiler's -n32 option if that helps.
  10047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10048. /* end confdefs.h. */
  10049. #include <sys/types.h>
  10050. /* Check that off_t can represent 2**63 - 1 correctly.
  10051. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10052. since some C++ compilers masquerading as C compilers
  10053. incorrectly reject 9223372036854775807. */
  10054. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10055. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10056. && LARGE_OFF_T % 2147483647 == 1)
  10057. ? 1 : -1];
  10058. int
  10059. main ()
  10060. {
  10061. ;
  10062. return 0;
  10063. }
  10064. _ACEOF
  10065. if ac_fn_c_try_compile "$LINENO"; then :
  10066. break
  10067. fi
  10068. rm -f core conftest.err conftest.$ac_objext
  10069. CC="$CC -n32"
  10070. if ac_fn_c_try_compile "$LINENO"; then :
  10071. ac_cv_sys_largefile_CC=' -n32'; break
  10072. fi
  10073. rm -f core conftest.err conftest.$ac_objext
  10074. break
  10075. done
  10076. CC=$ac_save_CC
  10077. rm -f conftest.$ac_ext
  10078. fi
  10079. fi
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  10081. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10082. if test "$ac_cv_sys_largefile_CC" != no; then
  10083. CC=$CC$ac_cv_sys_largefile_CC
  10084. fi
  10085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10086. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10087. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  10088. $as_echo_n "(cached) " >&6
  10089. else
  10090. while :; do
  10091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10092. /* end confdefs.h. */
  10093. #include <sys/types.h>
  10094. /* Check that off_t can represent 2**63 - 1 correctly.
  10095. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10096. since some C++ compilers masquerading as C compilers
  10097. incorrectly reject 9223372036854775807. */
  10098. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10099. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10100. && LARGE_OFF_T % 2147483647 == 1)
  10101. ? 1 : -1];
  10102. int
  10103. main ()
  10104. {
  10105. ;
  10106. return 0;
  10107. }
  10108. _ACEOF
  10109. if ac_fn_c_try_compile "$LINENO"; then :
  10110. ac_cv_sys_file_offset_bits=no; break
  10111. fi
  10112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10114. /* end confdefs.h. */
  10115. #define _FILE_OFFSET_BITS 64
  10116. #include <sys/types.h>
  10117. /* Check that off_t can represent 2**63 - 1 correctly.
  10118. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10119. since some C++ compilers masquerading as C compilers
  10120. incorrectly reject 9223372036854775807. */
  10121. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10122. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10123. && LARGE_OFF_T % 2147483647 == 1)
  10124. ? 1 : -1];
  10125. int
  10126. main ()
  10127. {
  10128. ;
  10129. return 0;
  10130. }
  10131. _ACEOF
  10132. if ac_fn_c_try_compile "$LINENO"; then :
  10133. ac_cv_sys_file_offset_bits=64; break
  10134. fi
  10135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10136. ac_cv_sys_file_offset_bits=unknown
  10137. break
  10138. done
  10139. fi
  10140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  10141. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10142. case $ac_cv_sys_file_offset_bits in #(
  10143. no | unknown) ;;
  10144. *)
  10145. cat >>confdefs.h <<_ACEOF
  10146. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10147. _ACEOF
  10148. ;;
  10149. esac
  10150. rm -rf conftest*
  10151. if test $ac_cv_sys_file_offset_bits = unknown; then
  10152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  10153. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10154. if test "${ac_cv_sys_large_files+set}" = set; then :
  10155. $as_echo_n "(cached) " >&6
  10156. else
  10157. while :; do
  10158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10159. /* end confdefs.h. */
  10160. #include <sys/types.h>
  10161. /* Check that off_t can represent 2**63 - 1 correctly.
  10162. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10163. since some C++ compilers masquerading as C compilers
  10164. incorrectly reject 9223372036854775807. */
  10165. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10166. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10167. && LARGE_OFF_T % 2147483647 == 1)
  10168. ? 1 : -1];
  10169. int
  10170. main ()
  10171. {
  10172. ;
  10173. return 0;
  10174. }
  10175. _ACEOF
  10176. if ac_fn_c_try_compile "$LINENO"; then :
  10177. ac_cv_sys_large_files=no; break
  10178. fi
  10179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10181. /* end confdefs.h. */
  10182. #define _LARGE_FILES 1
  10183. #include <sys/types.h>
  10184. /* Check that off_t can represent 2**63 - 1 correctly.
  10185. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10186. since some C++ compilers masquerading as C compilers
  10187. incorrectly reject 9223372036854775807. */
  10188. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10189. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10190. && LARGE_OFF_T % 2147483647 == 1)
  10191. ? 1 : -1];
  10192. int
  10193. main ()
  10194. {
  10195. ;
  10196. return 0;
  10197. }
  10198. _ACEOF
  10199. if ac_fn_c_try_compile "$LINENO"; then :
  10200. ac_cv_sys_large_files=1; break
  10201. fi
  10202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10203. ac_cv_sys_large_files=unknown
  10204. break
  10205. done
  10206. fi
  10207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  10208. $as_echo "$ac_cv_sys_large_files" >&6; }
  10209. case $ac_cv_sys_large_files in #(
  10210. no | unknown) ;;
  10211. *)
  10212. cat >>confdefs.h <<_ACEOF
  10213. #define _LARGE_FILES $ac_cv_sys_large_files
  10214. _ACEOF
  10215. ;;
  10216. esac
  10217. rm -rf conftest*
  10218. fi
  10219. fi
  10220. # Check whether --enable-targets was given.
  10221. if test "${enable_targets+set}" = set; then :
  10222. enableval=$enable_targets; case "${enableval}" in
  10223. yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
  10224. ;;
  10225. no) enable_targets= ;;
  10226. *) enable_targets=$enableval ;;
  10227. esac
  10228. fi
  10229. # Check whether --enable-deterministic-archives was given.
  10230. if test "${enable_deterministic_archives+set}" = set; then :
  10231. enableval=$enable_deterministic_archives;
  10232. if test "${enableval}" = no; then
  10233. default_ar_deterministic=0
  10234. else
  10235. default_ar_deterministic=1
  10236. fi
  10237. else
  10238. default_ar_deterministic=0
  10239. fi
  10240. cat >>confdefs.h <<_ACEOF
  10241. #define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
  10242. _ACEOF
  10243. # Check whether --enable-default-strings-all was given.
  10244. if test "${enable_default_strings_all+set}" = set; then :
  10245. enableval=$enable_default_strings_all;
  10246. if test "${enableval}" = no; then
  10247. default_strings_all=0
  10248. else
  10249. default_strings_all=1
  10250. fi
  10251. else
  10252. default_strings_all=1
  10253. fi
  10254. cat >>confdefs.h <<_ACEOF
  10255. #define DEFAULT_STRINGS_ALL $default_strings_all
  10256. _ACEOF
  10257. # Set the 'development' global.
  10258. . $srcdir/../bfd/development.sh
  10259. GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
  10260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10261. /* end confdefs.h. */
  10262. __GNUC__
  10263. _ACEOF
  10264. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10265. $EGREP "^[0-3]$" >/dev/null 2>&1; then :
  10266. else
  10267. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
  10268. fi
  10269. rm -f conftest*
  10270. # Check whether --enable-werror was given.
  10271. if test "${enable_werror+set}" = set; then :
  10272. enableval=$enable_werror; case "${enableval}" in
  10273. yes | y) ERROR_ON_WARNING="yes" ;;
  10274. no | n) ERROR_ON_WARNING="no" ;;
  10275. *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  10276. esac
  10277. fi
  10278. # Disable -Wformat by default when using gcc on mingw
  10279. case "${host}" in
  10280. *-*-mingw32*)
  10281. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  10282. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
  10283. fi
  10284. ;;
  10285. *) ;;
  10286. esac
  10287. # Enable -Werror by default when using gcc. Turn it off for releases.
  10288. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
  10289. ERROR_ON_WARNING=yes
  10290. fi
  10291. NO_WERROR=
  10292. if test "${ERROR_ON_WARNING}" = yes ; then
  10293. GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
  10294. NO_WERROR="-Wno-error"
  10295. fi
  10296. if test "${GCC}" = yes ; then
  10297. WARN_CFLAGS="${GCC_WARN_CFLAGS}"
  10298. fi
  10299. # Check whether --enable-build-warnings was given.
  10300. if test "${enable_build_warnings+set}" = set; then :
  10301. enableval=$enable_build_warnings; case "${enableval}" in
  10302. yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
  10303. no) if test "${GCC}" = yes ; then
  10304. WARN_CFLAGS="-w"
  10305. fi;;
  10306. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10307. WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
  10308. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10309. WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
  10310. *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10311. esac
  10312. fi
  10313. if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
  10314. echo "Setting warning flags = $WARN_CFLAGS" 6>&1
  10315. fi
  10316. ac_config_headers="$ac_config_headers config.h:config.in"
  10317. if test -z "$target" ; then
  10318. as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
  10319. fi
  10320. if test -z "$host" ; then
  10321. as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
  10322. fi
  10323. for ac_prog in 'bison -y' byacc
  10324. do
  10325. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10326. set dummy $ac_prog; ac_word=$2
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10328. $as_echo_n "checking for $ac_word... " >&6; }
  10329. if test "${ac_cv_prog_YACC+set}" = set; then :
  10330. $as_echo_n "(cached) " >&6
  10331. else
  10332. if test -n "$YACC"; then
  10333. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  10334. else
  10335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10336. for as_dir in $PATH
  10337. do
  10338. IFS=$as_save_IFS
  10339. test -z "$as_dir" && as_dir=.
  10340. for ac_exec_ext in '' $ac_executable_extensions; do
  10341. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10342. ac_cv_prog_YACC="$ac_prog"
  10343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10344. break 2
  10345. fi
  10346. done
  10347. done
  10348. IFS=$as_save_IFS
  10349. fi
  10350. fi
  10351. YACC=$ac_cv_prog_YACC
  10352. if test -n "$YACC"; then
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  10354. $as_echo "$YACC" >&6; }
  10355. else
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10357. $as_echo "no" >&6; }
  10358. fi
  10359. test -n "$YACC" && break
  10360. done
  10361. test -n "$YACC" || YACC="yacc"
  10362. for ac_prog in flex lex
  10363. do
  10364. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10365. set dummy $ac_prog; ac_word=$2
  10366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10367. $as_echo_n "checking for $ac_word... " >&6; }
  10368. if test "${ac_cv_prog_LEX+set}" = set; then :
  10369. $as_echo_n "(cached) " >&6
  10370. else
  10371. if test -n "$LEX"; then
  10372. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  10373. else
  10374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10375. for as_dir in $PATH
  10376. do
  10377. IFS=$as_save_IFS
  10378. test -z "$as_dir" && as_dir=.
  10379. for ac_exec_ext in '' $ac_executable_extensions; do
  10380. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10381. ac_cv_prog_LEX="$ac_prog"
  10382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10383. break 2
  10384. fi
  10385. done
  10386. done
  10387. IFS=$as_save_IFS
  10388. fi
  10389. fi
  10390. LEX=$ac_cv_prog_LEX
  10391. if test -n "$LEX"; then
  10392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  10393. $as_echo "$LEX" >&6; }
  10394. else
  10395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10396. $as_echo "no" >&6; }
  10397. fi
  10398. test -n "$LEX" && break
  10399. done
  10400. test -n "$LEX" || LEX=":"
  10401. if test "x$LEX" != "x:"; then
  10402. cat >conftest.l <<_ACEOF
  10403. %%
  10404. a { ECHO; }
  10405. b { REJECT; }
  10406. c { yymore (); }
  10407. d { yyless (1); }
  10408. e { yyless (input () != 0); }
  10409. f { unput (yytext[0]); }
  10410. . { BEGIN INITIAL; }
  10411. %%
  10412. #ifdef YYTEXT_POINTER
  10413. extern char *yytext;
  10414. #endif
  10415. int
  10416. main (void)
  10417. {
  10418. return ! yylex () + ! yywrap ();
  10419. }
  10420. _ACEOF
  10421. { { ac_try="$LEX conftest.l"
  10422. case "(($ac_try" in
  10423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10424. *) ac_try_echo=$ac_try;;
  10425. esac
  10426. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10427. $as_echo "$ac_try_echo"; } >&5
  10428. (eval "$LEX conftest.l") 2>&5
  10429. ac_status=$?
  10430. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10431. test $ac_status = 0; }
  10432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  10433. $as_echo_n "checking lex output file root... " >&6; }
  10434. if test "${ac_cv_prog_lex_root+set}" = set; then :
  10435. $as_echo_n "(cached) " >&6
  10436. else
  10437. if test -f lex.yy.c; then
  10438. ac_cv_prog_lex_root=lex.yy
  10439. elif test -f lexyy.c; then
  10440. ac_cv_prog_lex_root=lexyy
  10441. else
  10442. as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
  10443. fi
  10444. fi
  10445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  10446. $as_echo "$ac_cv_prog_lex_root" >&6; }
  10447. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  10448. if test -z "${LEXLIB+set}"; then
  10449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  10450. $as_echo_n "checking lex library... " >&6; }
  10451. if test "${ac_cv_lib_lex+set}" = set; then :
  10452. $as_echo_n "(cached) " >&6
  10453. else
  10454. ac_save_LIBS=$LIBS
  10455. ac_cv_lib_lex='none needed'
  10456. for ac_lib in '' -lfl -ll; do
  10457. LIBS="$ac_lib $ac_save_LIBS"
  10458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10459. /* end confdefs.h. */
  10460. `cat $LEX_OUTPUT_ROOT.c`
  10461. _ACEOF
  10462. if ac_fn_c_try_link "$LINENO"; then :
  10463. ac_cv_lib_lex=$ac_lib
  10464. fi
  10465. rm -f core conftest.err conftest.$ac_objext \
  10466. conftest$ac_exeext conftest.$ac_ext
  10467. test "$ac_cv_lib_lex" != 'none needed' && break
  10468. done
  10469. LIBS=$ac_save_LIBS
  10470. fi
  10471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  10472. $as_echo "$ac_cv_lib_lex" >&6; }
  10473. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  10474. fi
  10475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  10476. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  10477. if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
  10478. $as_echo_n "(cached) " >&6
  10479. else
  10480. # POSIX says lex can declare yytext either as a pointer or an array; the
  10481. # default is implementation-dependent. Figure out which it is, since
  10482. # not all implementations provide the %pointer and %array declarations.
  10483. ac_cv_prog_lex_yytext_pointer=no
  10484. ac_save_LIBS=$LIBS
  10485. LIBS="$LEXLIB $ac_save_LIBS"
  10486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10487. /* end confdefs.h. */
  10488. #define YYTEXT_POINTER 1
  10489. `cat $LEX_OUTPUT_ROOT.c`
  10490. _ACEOF
  10491. if ac_fn_c_try_link "$LINENO"; then :
  10492. ac_cv_prog_lex_yytext_pointer=yes
  10493. fi
  10494. rm -f core conftest.err conftest.$ac_objext \
  10495. conftest$ac_exeext conftest.$ac_ext
  10496. LIBS=$ac_save_LIBS
  10497. fi
  10498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  10499. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  10500. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  10501. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  10502. fi
  10503. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  10504. fi
  10505. if test "$LEX" = :; then
  10506. LEX=${am_missing_run}flex
  10507. fi
  10508. ALL_LINGUAS="bg da es fi fr id it ja ro ru rw sk sv tr uk vi zh_CN zh_TW hr"
  10509. # If we haven't got the data from the intl directory,
  10510. # assume NLS is disabled.
  10511. USE_NLS=no
  10512. LIBINTL=
  10513. LIBINTL_DEP=
  10514. INCINTL=
  10515. XGETTEXT=
  10516. GMSGFMT=
  10517. POSUB=
  10518. if test -f ../intl/config.intl; then
  10519. . ../intl/config.intl
  10520. fi
  10521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  10522. $as_echo_n "checking whether NLS is requested... " >&6; }
  10523. if test x"$USE_NLS" != xyes; then
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10525. $as_echo "no" >&6; }
  10526. else
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10528. $as_echo "yes" >&6; }
  10529. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  10530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  10531. $as_echo_n "checking for catalogs to be installed... " >&6; }
  10532. # Look for .po and .gmo files in the source directory.
  10533. CATALOGS=
  10534. XLINGUAS=
  10535. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  10536. # If there aren't any .gmo files the shell will give us the
  10537. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  10538. # weeded out.
  10539. case "$cat" in *\**)
  10540. continue;;
  10541. esac
  10542. # The quadruple backslash is collapsed to a double backslash
  10543. # by the backticks, then collapsed again by the double quotes,
  10544. # leaving us with one backslash in the sed expression (right
  10545. # before the dot that mustn't act as a wildcard).
  10546. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  10547. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  10548. # The user is allowed to set LINGUAS to a list of languages to
  10549. # install catalogs for. If it's empty that means "all of them."
  10550. if test "x$LINGUAS" = x; then
  10551. CATALOGS="$CATALOGS $cat"
  10552. XLINGUAS="$XLINGUAS $lang"
  10553. else
  10554. case "$LINGUAS" in *$lang*)
  10555. CATALOGS="$CATALOGS $cat"
  10556. XLINGUAS="$XLINGUAS $lang"
  10557. ;;
  10558. esac
  10559. fi
  10560. done
  10561. LINGUAS="$XLINGUAS"
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  10563. $as_echo "$LINGUAS" >&6; }
  10564. DATADIRNAME=share
  10565. INSTOBJEXT=.mo
  10566. GENCAT=gencat
  10567. CATOBJEXT=.gmo
  10568. fi
  10569. MKINSTALLDIRS=
  10570. if test -n "$ac_aux_dir"; then
  10571. case "$ac_aux_dir" in
  10572. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  10573. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  10574. esac
  10575. fi
  10576. if test -z "$MKINSTALLDIRS"; then
  10577. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  10578. fi
  10579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  10580. $as_echo_n "checking whether NLS is requested... " >&6; }
  10581. # Check whether --enable-nls was given.
  10582. if test "${enable_nls+set}" = set; then :
  10583. enableval=$enable_nls; USE_NLS=$enableval
  10584. else
  10585. USE_NLS=yes
  10586. fi
  10587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
  10588. $as_echo "$USE_NLS" >&6; }
  10589. # Prepare PATH_SEPARATOR.
  10590. # The user is always right.
  10591. if test "${PATH_SEPARATOR+set}" != set; then
  10592. echo "#! /bin/sh" >conf$$.sh
  10593. echo "exit 0" >>conf$$.sh
  10594. chmod +x conf$$.sh
  10595. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10596. PATH_SEPARATOR=';'
  10597. else
  10598. PATH_SEPARATOR=:
  10599. fi
  10600. rm -f conf$$.sh
  10601. fi
  10602. # Find out how to test for executable files. Don't use a zero-byte file,
  10603. # as systems may use methods other than mode bits to determine executability.
  10604. cat >conf$$.file <<_ASEOF
  10605. #! /bin/sh
  10606. exit 0
  10607. _ASEOF
  10608. chmod +x conf$$.file
  10609. if test -x conf$$.file >/dev/null 2>&1; then
  10610. ac_executable_p="test -x"
  10611. else
  10612. ac_executable_p="test -f"
  10613. fi
  10614. rm -f conf$$.file
  10615. # Extract the first word of "msgfmt", so it can be a program name with args.
  10616. set dummy msgfmt; ac_word=$2
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10618. $as_echo_n "checking for $ac_word... " >&6; }
  10619. if test "${ac_cv_path_MSGFMT+set}" = set; then :
  10620. $as_echo_n "(cached) " >&6
  10621. else
  10622. case "$MSGFMT" in
  10623. [\\/]* | ?:[\\/]*)
  10624. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  10625. ;;
  10626. *)
  10627. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10628. for ac_dir in $PATH; do
  10629. IFS="$ac_save_IFS"
  10630. test -z "$ac_dir" && ac_dir=.
  10631. for ac_exec_ext in '' $ac_executable_extensions; do
  10632. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10633. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  10634. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10635. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  10636. break 2
  10637. fi
  10638. fi
  10639. done
  10640. done
  10641. IFS="$ac_save_IFS"
  10642. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  10643. ;;
  10644. esac
  10645. fi
  10646. MSGFMT="$ac_cv_path_MSGFMT"
  10647. if test "$MSGFMT" != ":"; then
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
  10649. $as_echo "$MSGFMT" >&6; }
  10650. else
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10652. $as_echo "no" >&6; }
  10653. fi
  10654. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  10655. set dummy gmsgfmt; ac_word=$2
  10656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10657. $as_echo_n "checking for $ac_word... " >&6; }
  10658. if test "${ac_cv_path_GMSGFMT+set}" = set; then :
  10659. $as_echo_n "(cached) " >&6
  10660. else
  10661. case $GMSGFMT in
  10662. [\\/]* | ?:[\\/]*)
  10663. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  10664. ;;
  10665. *)
  10666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10667. for as_dir in $PATH
  10668. do
  10669. IFS=$as_save_IFS
  10670. test -z "$as_dir" && as_dir=.
  10671. for ac_exec_ext in '' $ac_executable_extensions; do
  10672. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10673. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  10674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10675. break 2
  10676. fi
  10677. done
  10678. done
  10679. IFS=$as_save_IFS
  10680. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  10681. ;;
  10682. esac
  10683. fi
  10684. GMSGFMT=$ac_cv_path_GMSGFMT
  10685. if test -n "$GMSGFMT"; then
  10686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
  10687. $as_echo "$GMSGFMT" >&6; }
  10688. else
  10689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10690. $as_echo "no" >&6; }
  10691. fi
  10692. # Prepare PATH_SEPARATOR.
  10693. # The user is always right.
  10694. if test "${PATH_SEPARATOR+set}" != set; then
  10695. echo "#! /bin/sh" >conf$$.sh
  10696. echo "exit 0" >>conf$$.sh
  10697. chmod +x conf$$.sh
  10698. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10699. PATH_SEPARATOR=';'
  10700. else
  10701. PATH_SEPARATOR=:
  10702. fi
  10703. rm -f conf$$.sh
  10704. fi
  10705. # Find out how to test for executable files. Don't use a zero-byte file,
  10706. # as systems may use methods other than mode bits to determine executability.
  10707. cat >conf$$.file <<_ASEOF
  10708. #! /bin/sh
  10709. exit 0
  10710. _ASEOF
  10711. chmod +x conf$$.file
  10712. if test -x conf$$.file >/dev/null 2>&1; then
  10713. ac_executable_p="test -x"
  10714. else
  10715. ac_executable_p="test -f"
  10716. fi
  10717. rm -f conf$$.file
  10718. # Extract the first word of "xgettext", so it can be a program name with args.
  10719. set dummy xgettext; ac_word=$2
  10720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10721. $as_echo_n "checking for $ac_word... " >&6; }
  10722. if test "${ac_cv_path_XGETTEXT+set}" = set; then :
  10723. $as_echo_n "(cached) " >&6
  10724. else
  10725. case "$XGETTEXT" in
  10726. [\\/]* | ?:[\\/]*)
  10727. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  10728. ;;
  10729. *)
  10730. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10731. for ac_dir in $PATH; do
  10732. IFS="$ac_save_IFS"
  10733. test -z "$ac_dir" && ac_dir=.
  10734. for ac_exec_ext in '' $ac_executable_extensions; do
  10735. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10736. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  10737. (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
  10738. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  10739. break 2
  10740. fi
  10741. fi
  10742. done
  10743. done
  10744. IFS="$ac_save_IFS"
  10745. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  10746. ;;
  10747. esac
  10748. fi
  10749. XGETTEXT="$ac_cv_path_XGETTEXT"
  10750. if test "$XGETTEXT" != ":"; then
  10751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
  10752. $as_echo "$XGETTEXT" >&6; }
  10753. else
  10754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10755. $as_echo "no" >&6; }
  10756. fi
  10757. rm -f messages.po
  10758. # Prepare PATH_SEPARATOR.
  10759. # The user is always right.
  10760. if test "${PATH_SEPARATOR+set}" != set; then
  10761. echo "#! /bin/sh" >conf$$.sh
  10762. echo "exit 0" >>conf$$.sh
  10763. chmod +x conf$$.sh
  10764. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10765. PATH_SEPARATOR=';'
  10766. else
  10767. PATH_SEPARATOR=:
  10768. fi
  10769. rm -f conf$$.sh
  10770. fi
  10771. # Find out how to test for executable files. Don't use a zero-byte file,
  10772. # as systems may use methods other than mode bits to determine executability.
  10773. cat >conf$$.file <<_ASEOF
  10774. #! /bin/sh
  10775. exit 0
  10776. _ASEOF
  10777. chmod +x conf$$.file
  10778. if test -x conf$$.file >/dev/null 2>&1; then
  10779. ac_executable_p="test -x"
  10780. else
  10781. ac_executable_p="test -f"
  10782. fi
  10783. rm -f conf$$.file
  10784. # Extract the first word of "msgmerge", so it can be a program name with args.
  10785. set dummy msgmerge; ac_word=$2
  10786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10787. $as_echo_n "checking for $ac_word... " >&6; }
  10788. if test "${ac_cv_path_MSGMERGE+set}" = set; then :
  10789. $as_echo_n "(cached) " >&6
  10790. else
  10791. case "$MSGMERGE" in
  10792. [\\/]* | ?:[\\/]*)
  10793. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  10794. ;;
  10795. *)
  10796. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10797. for ac_dir in $PATH; do
  10798. IFS="$ac_save_IFS"
  10799. test -z "$ac_dir" && ac_dir=.
  10800. for ac_exec_ext in '' $ac_executable_extensions; do
  10801. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10802. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  10803. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  10804. break 2
  10805. fi
  10806. fi
  10807. done
  10808. done
  10809. IFS="$ac_save_IFS"
  10810. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10811. ;;
  10812. esac
  10813. fi
  10814. MSGMERGE="$ac_cv_path_MSGMERGE"
  10815. if test "$MSGMERGE" != ":"; then
  10816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
  10817. $as_echo "$MSGMERGE" >&6; }
  10818. else
  10819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10820. $as_echo "no" >&6; }
  10821. fi
  10822. if test "$GMSGFMT" != ":"; then
  10823. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  10824. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10825. : ;
  10826. else
  10827. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  10828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  10829. $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  10830. GMSGFMT=":"
  10831. fi
  10832. fi
  10833. if test "$XGETTEXT" != ":"; then
  10834. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  10835. (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
  10836. : ;
  10837. else
  10838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
  10839. $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
  10840. XGETTEXT=":"
  10841. fi
  10842. rm -f messages.po
  10843. fi
  10844. ac_config_commands="$ac_config_commands default-1"
  10845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10846. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10847. # Check whether --enable-maintainer-mode was given.
  10848. if test "${enable_maintainer_mode+set}" = set; then :
  10849. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10850. else
  10851. USE_MAINTAINER_MODE=no
  10852. fi
  10853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10854. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10855. if test $USE_MAINTAINER_MODE = yes; then
  10856. MAINTAINER_MODE_TRUE=
  10857. MAINTAINER_MODE_FALSE='#'
  10858. else
  10859. MAINTAINER_MODE_TRUE='#'
  10860. MAINTAINER_MODE_FALSE=
  10861. fi
  10862. MAINT=$MAINTAINER_MODE_TRUE
  10863. if false; then
  10864. GENINSRC_NEVER_TRUE=
  10865. GENINSRC_NEVER_FALSE='#'
  10866. else
  10867. GENINSRC_NEVER_TRUE='#'
  10868. GENINSRC_NEVER_FALSE=
  10869. fi
  10870. if test -n "$EXEEXT"; then
  10871. $as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
  10872. fi
  10873. cat >>confdefs.h <<_ACEOF
  10874. #define EXECUTABLE_SUFFIX "${EXEEXT}"
  10875. _ACEOF
  10876. # host-specific stuff:
  10877. HDEFINES=
  10878. . ${srcdir}/../bfd/configure.host
  10879. AR=${AR-ar}
  10880. if test -n "$ac_tool_prefix"; then
  10881. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  10882. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  10883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10884. $as_echo_n "checking for $ac_word... " >&6; }
  10885. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  10886. $as_echo_n "(cached) " >&6
  10887. else
  10888. if test -n "$RANLIB"; then
  10889. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  10890. else
  10891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10892. for as_dir in $PATH
  10893. do
  10894. IFS=$as_save_IFS
  10895. test -z "$as_dir" && as_dir=.
  10896. for ac_exec_ext in '' $ac_executable_extensions; do
  10897. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10898. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  10899. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10900. break 2
  10901. fi
  10902. done
  10903. done
  10904. IFS=$as_save_IFS
  10905. fi
  10906. fi
  10907. RANLIB=$ac_cv_prog_RANLIB
  10908. if test -n "$RANLIB"; then
  10909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  10910. $as_echo "$RANLIB" >&6; }
  10911. else
  10912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10913. $as_echo "no" >&6; }
  10914. fi
  10915. fi
  10916. if test -z "$ac_cv_prog_RANLIB"; then
  10917. ac_ct_RANLIB=$RANLIB
  10918. # Extract the first word of "ranlib", so it can be a program name with args.
  10919. set dummy ranlib; ac_word=$2
  10920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10921. $as_echo_n "checking for $ac_word... " >&6; }
  10922. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  10923. $as_echo_n "(cached) " >&6
  10924. else
  10925. if test -n "$ac_ct_RANLIB"; then
  10926. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  10927. else
  10928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10929. for as_dir in $PATH
  10930. do
  10931. IFS=$as_save_IFS
  10932. test -z "$as_dir" && as_dir=.
  10933. for ac_exec_ext in '' $ac_executable_extensions; do
  10934. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10935. ac_cv_prog_ac_ct_RANLIB="ranlib"
  10936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10937. break 2
  10938. fi
  10939. done
  10940. done
  10941. IFS=$as_save_IFS
  10942. fi
  10943. fi
  10944. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  10945. if test -n "$ac_ct_RANLIB"; then
  10946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  10947. $as_echo "$ac_ct_RANLIB" >&6; }
  10948. else
  10949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10950. $as_echo "no" >&6; }
  10951. fi
  10952. if test "x$ac_ct_RANLIB" = x; then
  10953. RANLIB=":"
  10954. else
  10955. case $cross_compiling:$ac_tool_warned in
  10956. yes:)
  10957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10958. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10959. ac_tool_warned=yes ;;
  10960. esac
  10961. RANLIB=$ac_ct_RANLIB
  10962. fi
  10963. else
  10964. RANLIB="$ac_cv_prog_RANLIB"
  10965. fi
  10966. # Put a plausible default for CC_FOR_BUILD in Makefile.
  10967. if test -z "$CC_FOR_BUILD"; then
  10968. if test "x$cross_compiling" = "xno"; then
  10969. CC_FOR_BUILD='$(CC)'
  10970. else
  10971. CC_FOR_BUILD=gcc
  10972. fi
  10973. fi
  10974. # Also set EXEEXT_FOR_BUILD.
  10975. if test "x$cross_compiling" = "xno"; then
  10976. EXEEXT_FOR_BUILD='$(EXEEXT)'
  10977. else
  10978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
  10979. $as_echo_n "checking for build system executable suffix... " >&6; }
  10980. if test "${bfd_cv_build_exeext+set}" = set; then :
  10981. $as_echo_n "(cached) " >&6
  10982. else
  10983. rm -f conftest*
  10984. echo 'int main () { return 0; }' > conftest.c
  10985. bfd_cv_build_exeext=
  10986. ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
  10987. for file in conftest.*; do
  10988. case $file in
  10989. *.c | *.o | *.obj | *.ilk | *.pdb) ;;
  10990. *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
  10991. esac
  10992. done
  10993. rm -f conftest*
  10994. test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
  10995. fi
  10996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
  10997. $as_echo "$bfd_cv_build_exeext" >&6; }
  10998. EXEEXT_FOR_BUILD=""
  10999. test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
  11000. fi
  11001. DEMANGLER_NAME=c++filt
  11002. case "${host}" in
  11003. *-*-go32* | *-*-msdos*)
  11004. DEMANGLER_NAME=cxxfilt
  11005. esac
  11006. # The cast to long int works around a bug in the HP C Compiler
  11007. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11008. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11009. # This bug is HP SR number 8606223364.
  11010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  11011. $as_echo_n "checking size of long... " >&6; }
  11012. if test "${ac_cv_sizeof_long+set}" = set; then :
  11013. $as_echo_n "(cached) " >&6
  11014. else
  11015. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  11016. else
  11017. if test "$ac_cv_type_long" = yes; then
  11018. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11019. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11020. { as_fn_set_status 77
  11021. as_fn_error "cannot compute sizeof (long)
  11022. See \`config.log' for more details." "$LINENO" 5; }; }
  11023. else
  11024. ac_cv_sizeof_long=0
  11025. fi
  11026. fi
  11027. fi
  11028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  11029. $as_echo "$ac_cv_sizeof_long" >&6; }
  11030. cat >>confdefs.h <<_ACEOF
  11031. #define SIZEOF_LONG $ac_cv_sizeof_long
  11032. _ACEOF
  11033. ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
  11034. if test "x$ac_cv_type_long_long" = x""yes; then :
  11035. cat >>confdefs.h <<_ACEOF
  11036. #define HAVE_LONG_LONG 1
  11037. _ACEOF
  11038. # The cast to long int works around a bug in the HP C Compiler
  11039. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11040. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11041. # This bug is HP SR number 8606223364.
  11042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  11043. $as_echo_n "checking size of long long... " >&6; }
  11044. if test "${ac_cv_sizeof_long_long+set}" = set; then :
  11045. $as_echo_n "(cached) " >&6
  11046. else
  11047. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  11048. else
  11049. if test "$ac_cv_type_long_long" = yes; then
  11050. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11051. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11052. { as_fn_set_status 77
  11053. as_fn_error "cannot compute sizeof (long long)
  11054. See \`config.log' for more details." "$LINENO" 5; }; }
  11055. else
  11056. ac_cv_sizeof_long_long=0
  11057. fi
  11058. fi
  11059. fi
  11060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  11061. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  11062. cat >>confdefs.h <<_ACEOF
  11063. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  11064. _ACEOF
  11065. fi
  11066. for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h wchar.h
  11067. do :
  11068. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11069. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11070. eval as_val=\$$as_ac_Header
  11071. if test "x$as_val" = x""yes; then :
  11072. cat >>confdefs.h <<_ACEOF
  11073. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11074. _ACEOF
  11075. fi
  11076. done
  11077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  11078. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  11079. if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  11080. $as_echo_n "(cached) " >&6
  11081. else
  11082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11083. /* end confdefs.h. */
  11084. #include <sys/types.h>
  11085. #include <sys/wait.h>
  11086. #ifndef WEXITSTATUS
  11087. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  11088. #endif
  11089. #ifndef WIFEXITED
  11090. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  11091. #endif
  11092. int
  11093. main ()
  11094. {
  11095. int s;
  11096. wait (&s);
  11097. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  11098. ;
  11099. return 0;
  11100. }
  11101. _ACEOF
  11102. if ac_fn_c_try_compile "$LINENO"; then :
  11103. ac_cv_header_sys_wait_h=yes
  11104. else
  11105. ac_cv_header_sys_wait_h=no
  11106. fi
  11107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11108. fi
  11109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  11110. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  11111. if test $ac_cv_header_sys_wait_h = yes; then
  11112. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  11113. fi
  11114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
  11115. $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
  11116. if test "${gcc_cv_header_string+set}" = set; then :
  11117. $as_echo_n "(cached) " >&6
  11118. else
  11119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11120. /* end confdefs.h. */
  11121. #include <string.h>
  11122. #include <strings.h>
  11123. int
  11124. main ()
  11125. {
  11126. ;
  11127. return 0;
  11128. }
  11129. _ACEOF
  11130. if ac_fn_c_try_compile "$LINENO"; then :
  11131. gcc_cv_header_string=yes
  11132. else
  11133. gcc_cv_header_string=no
  11134. fi
  11135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11136. fi
  11137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
  11138. $as_echo "$gcc_cv_header_string" >&6; }
  11139. if test $gcc_cv_header_string = yes; then
  11140. $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
  11141. fi
  11142. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  11143. # for constant arguments. Useless!
  11144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  11145. $as_echo_n "checking for working alloca.h... " >&6; }
  11146. if test "${ac_cv_working_alloca_h+set}" = set; then :
  11147. $as_echo_n "(cached) " >&6
  11148. else
  11149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11150. /* end confdefs.h. */
  11151. #include <alloca.h>
  11152. int
  11153. main ()
  11154. {
  11155. char *p = (char *) alloca (2 * sizeof (int));
  11156. if (p) return 0;
  11157. ;
  11158. return 0;
  11159. }
  11160. _ACEOF
  11161. if ac_fn_c_try_link "$LINENO"; then :
  11162. ac_cv_working_alloca_h=yes
  11163. else
  11164. ac_cv_working_alloca_h=no
  11165. fi
  11166. rm -f core conftest.err conftest.$ac_objext \
  11167. conftest$ac_exeext conftest.$ac_ext
  11168. fi
  11169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  11170. $as_echo "$ac_cv_working_alloca_h" >&6; }
  11171. if test $ac_cv_working_alloca_h = yes; then
  11172. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  11173. fi
  11174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  11175. $as_echo_n "checking for alloca... " >&6; }
  11176. if test "${ac_cv_func_alloca_works+set}" = set; then :
  11177. $as_echo_n "(cached) " >&6
  11178. else
  11179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11180. /* end confdefs.h. */
  11181. #ifdef __GNUC__
  11182. # define alloca __builtin_alloca
  11183. #else
  11184. # ifdef _MSC_VER
  11185. # include <malloc.h>
  11186. # define alloca _alloca
  11187. # else
  11188. # ifdef HAVE_ALLOCA_H
  11189. # include <alloca.h>
  11190. # else
  11191. # ifdef _AIX
  11192. #pragma alloca
  11193. # else
  11194. # ifndef alloca /* predefined by HP cc +Olibcalls */
  11195. char *alloca ();
  11196. # endif
  11197. # endif
  11198. # endif
  11199. # endif
  11200. #endif
  11201. int
  11202. main ()
  11203. {
  11204. char *p = (char *) alloca (1);
  11205. if (p) return 0;
  11206. ;
  11207. return 0;
  11208. }
  11209. _ACEOF
  11210. if ac_fn_c_try_link "$LINENO"; then :
  11211. ac_cv_func_alloca_works=yes
  11212. else
  11213. ac_cv_func_alloca_works=no
  11214. fi
  11215. rm -f core conftest.err conftest.$ac_objext \
  11216. conftest$ac_exeext conftest.$ac_ext
  11217. fi
  11218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  11219. $as_echo "$ac_cv_func_alloca_works" >&6; }
  11220. if test $ac_cv_func_alloca_works = yes; then
  11221. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  11222. else
  11223. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  11224. # that cause trouble. Some versions do not even contain alloca or
  11225. # contain a buggy version. If you still want to use their alloca,
  11226. # use ar to extract alloca.o from them instead of compiling alloca.c.
  11227. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  11228. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  11229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  11230. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  11231. if test "${ac_cv_os_cray+set}" = set; then :
  11232. $as_echo_n "(cached) " >&6
  11233. else
  11234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11235. /* end confdefs.h. */
  11236. #if defined CRAY && ! defined CRAY2
  11237. webecray
  11238. #else
  11239. wenotbecray
  11240. #endif
  11241. _ACEOF
  11242. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11243. $EGREP "webecray" >/dev/null 2>&1; then :
  11244. ac_cv_os_cray=yes
  11245. else
  11246. ac_cv_os_cray=no
  11247. fi
  11248. rm -f conftest*
  11249. fi
  11250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  11251. $as_echo "$ac_cv_os_cray" >&6; }
  11252. if test $ac_cv_os_cray = yes; then
  11253. for ac_func in _getb67 GETB67 getb67; do
  11254. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11255. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11256. eval as_val=\$$as_ac_var
  11257. if test "x$as_val" = x""yes; then :
  11258. cat >>confdefs.h <<_ACEOF
  11259. #define CRAY_STACKSEG_END $ac_func
  11260. _ACEOF
  11261. break
  11262. fi
  11263. done
  11264. fi
  11265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  11266. $as_echo_n "checking stack direction for C alloca... " >&6; }
  11267. if test "${ac_cv_c_stack_direction+set}" = set; then :
  11268. $as_echo_n "(cached) " >&6
  11269. else
  11270. if test "$cross_compiling" = yes; then :
  11271. ac_cv_c_stack_direction=0
  11272. else
  11273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11274. /* end confdefs.h. */
  11275. $ac_includes_default
  11276. int
  11277. find_stack_direction ()
  11278. {
  11279. static char *addr = 0;
  11280. auto char dummy;
  11281. if (addr == 0)
  11282. {
  11283. addr = &dummy;
  11284. return find_stack_direction ();
  11285. }
  11286. else
  11287. return (&dummy > addr) ? 1 : -1;
  11288. }
  11289. int
  11290. main ()
  11291. {
  11292. return find_stack_direction () < 0;
  11293. }
  11294. _ACEOF
  11295. if ac_fn_c_try_run "$LINENO"; then :
  11296. ac_cv_c_stack_direction=1
  11297. else
  11298. ac_cv_c_stack_direction=-1
  11299. fi
  11300. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11301. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11302. fi
  11303. fi
  11304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  11305. $as_echo "$ac_cv_c_stack_direction" >&6; }
  11306. cat >>confdefs.h <<_ACEOF
  11307. #define STACK_DIRECTION $ac_cv_c_stack_direction
  11308. _ACEOF
  11309. fi
  11310. for ac_func in sbrk utimes setmode getc_unlocked strcoll setlocale
  11311. do :
  11312. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11313. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11314. eval as_val=\$$as_ac_var
  11315. if test "x$as_val" = x""yes; then :
  11316. cat >>confdefs.h <<_ACEOF
  11317. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11318. _ACEOF
  11319. fi
  11320. done
  11321. ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
  11322. if test "x$ac_cv_func_mkstemp" = x""yes; then :
  11323. $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
  11324. fi
  11325. ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
  11326. if test "x$ac_cv_func_mkdtemp" = x""yes; then :
  11327. $as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
  11328. fi
  11329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  11330. $as_echo_n "checking for mbstate_t... " >&6; }
  11331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11332. /* end confdefs.h. */
  11333. #include <wchar.h>
  11334. int
  11335. main ()
  11336. {
  11337. mbstate_t teststate;
  11338. ;
  11339. return 0;
  11340. }
  11341. _ACEOF
  11342. if ac_fn_c_try_compile "$LINENO"; then :
  11343. have_mbstate_t=yes
  11344. else
  11345. have_mbstate_t=no
  11346. fi
  11347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
  11349. $as_echo "$have_mbstate_t" >&6; }
  11350. if test x"$have_mbstate_t" = xyes; then
  11351. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  11352. fi
  11353. # Some systems have frexp only in -lm, not in -lc.
  11354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
  11355. $as_echo_n "checking for library containing frexp... " >&6; }
  11356. if test "${ac_cv_search_frexp+set}" = set; then :
  11357. $as_echo_n "(cached) " >&6
  11358. else
  11359. ac_func_search_save_LIBS=$LIBS
  11360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11361. /* end confdefs.h. */
  11362. /* Override any GCC internal prototype to avoid an error.
  11363. Use char because int might match the return type of a GCC
  11364. builtin and then its argument prototype would still apply. */
  11365. #ifdef __cplusplus
  11366. extern "C"
  11367. #endif
  11368. char frexp ();
  11369. int
  11370. main ()
  11371. {
  11372. return frexp ();
  11373. ;
  11374. return 0;
  11375. }
  11376. _ACEOF
  11377. for ac_lib in '' m; do
  11378. if test -z "$ac_lib"; then
  11379. ac_res="none required"
  11380. else
  11381. ac_res=-l$ac_lib
  11382. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11383. fi
  11384. if ac_fn_c_try_link "$LINENO"; then :
  11385. ac_cv_search_frexp=$ac_res
  11386. fi
  11387. rm -f core conftest.err conftest.$ac_objext \
  11388. conftest$ac_exeext
  11389. if test "${ac_cv_search_frexp+set}" = set; then :
  11390. break
  11391. fi
  11392. done
  11393. if test "${ac_cv_search_frexp+set}" = set; then :
  11394. else
  11395. ac_cv_search_frexp=no
  11396. fi
  11397. rm conftest.$ac_ext
  11398. LIBS=$ac_func_search_save_LIBS
  11399. fi
  11400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
  11401. $as_echo "$ac_cv_search_frexp" >&6; }
  11402. ac_res=$ac_cv_search_frexp
  11403. if test "$ac_res" != no; then :
  11404. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11405. fi
  11406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  11407. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  11408. if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
  11409. $as_echo_n "(cached) " >&6
  11410. else
  11411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11412. /* end confdefs.h. */
  11413. #include <locale.h>
  11414. int
  11415. main ()
  11416. {
  11417. return LC_MESSAGES
  11418. ;
  11419. return 0;
  11420. }
  11421. _ACEOF
  11422. if ac_fn_c_try_link "$LINENO"; then :
  11423. am_cv_val_LC_MESSAGES=yes
  11424. else
  11425. am_cv_val_LC_MESSAGES=no
  11426. fi
  11427. rm -f core conftest.err conftest.$ac_objext \
  11428. conftest$ac_exeext conftest.$ac_ext
  11429. fi
  11430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  11431. $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  11432. if test $am_cv_val_LC_MESSAGES = yes; then
  11433. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
  11434. fi
  11435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
  11436. $as_echo_n "checking for time_t in time.h... " >&6; }
  11437. if test "${bu_cv_decl_time_t_time_h+set}" = set; then :
  11438. $as_echo_n "(cached) " >&6
  11439. else
  11440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11441. /* end confdefs.h. */
  11442. #include <time.h>
  11443. int
  11444. main ()
  11445. {
  11446. time_t i;
  11447. ;
  11448. return 0;
  11449. }
  11450. _ACEOF
  11451. if ac_fn_c_try_compile "$LINENO"; then :
  11452. bu_cv_decl_time_t_time_h=yes
  11453. else
  11454. bu_cv_decl_time_t_time_h=no
  11455. fi
  11456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11457. fi
  11458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
  11459. $as_echo "$bu_cv_decl_time_t_time_h" >&6; }
  11460. if test $bu_cv_decl_time_t_time_h = yes; then
  11461. $as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
  11462. fi
  11463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
  11464. $as_echo_n "checking for time_t in sys/types.h... " >&6; }
  11465. if test "${bu_cv_decl_time_t_types_h+set}" = set; then :
  11466. $as_echo_n "(cached) " >&6
  11467. else
  11468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11469. /* end confdefs.h. */
  11470. #include <sys/types.h>
  11471. int
  11472. main ()
  11473. {
  11474. time_t i;
  11475. ;
  11476. return 0;
  11477. }
  11478. _ACEOF
  11479. if ac_fn_c_try_compile "$LINENO"; then :
  11480. bu_cv_decl_time_t_types_h=yes
  11481. else
  11482. bu_cv_decl_time_t_types_h=no
  11483. fi
  11484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11485. fi
  11486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
  11487. $as_echo "$bu_cv_decl_time_t_types_h" >&6; }
  11488. if test $bu_cv_decl_time_t_types_h = yes; then
  11489. $as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
  11490. fi
  11491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
  11492. $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
  11493. if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then :
  11494. $as_echo_n "(cached) " >&6
  11495. else
  11496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11497. /* end confdefs.h. */
  11498. #include <unistd.h>
  11499. int
  11500. main ()
  11501. {
  11502. extern int getopt (int, char *const*, const char *);
  11503. ;
  11504. return 0;
  11505. }
  11506. _ACEOF
  11507. if ac_fn_c_try_compile "$LINENO"; then :
  11508. bu_cv_decl_getopt_unistd_h=yes
  11509. else
  11510. bu_cv_decl_getopt_unistd_h=no
  11511. fi
  11512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11513. fi
  11514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
  11515. $as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
  11516. if test $bu_cv_decl_getopt_unistd_h = yes; then
  11517. $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
  11518. fi
  11519. # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
  11520. # by default.
  11521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
  11522. $as_echo_n "checking for utime.h... " >&6; }
  11523. if test "${bu_cv_header_utime_h+set}" = set; then :
  11524. $as_echo_n "(cached) " >&6
  11525. else
  11526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11527. /* end confdefs.h. */
  11528. #include <sys/types.h>
  11529. #ifdef HAVE_TIME_H
  11530. #include <time.h>
  11531. #endif
  11532. #include <utime.h>
  11533. int
  11534. main ()
  11535. {
  11536. struct utimbuf s;
  11537. ;
  11538. return 0;
  11539. }
  11540. _ACEOF
  11541. if ac_fn_c_try_compile "$LINENO"; then :
  11542. bu_cv_header_utime_h=yes
  11543. else
  11544. bu_cv_header_utime_h=no
  11545. fi
  11546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11547. fi
  11548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
  11549. $as_echo "$bu_cv_header_utime_h" >&6; }
  11550. if test $bu_cv_header_utime_h = yes; then
  11551. $as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
  11552. fi
  11553. ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
  11554. if test "x$ac_cv_have_decl_environ" = x""yes; then :
  11555. ac_have_decl=1
  11556. else
  11557. ac_have_decl=0
  11558. fi
  11559. cat >>confdefs.h <<_ACEOF
  11560. #define HAVE_DECL_ENVIRON $ac_have_decl
  11561. _ACEOF
  11562. ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
  11563. if test "x$ac_cv_have_decl_fprintf" = x""yes; then :
  11564. ac_have_decl=1
  11565. else
  11566. ac_have_decl=0
  11567. fi
  11568. cat >>confdefs.h <<_ACEOF
  11569. #define HAVE_DECL_FPRINTF $ac_have_decl
  11570. _ACEOF
  11571. ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
  11572. if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
  11573. ac_have_decl=1
  11574. else
  11575. ac_have_decl=0
  11576. fi
  11577. cat >>confdefs.h <<_ACEOF
  11578. #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
  11579. _ACEOF
  11580. ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
  11581. if test "x$ac_cv_have_decl_getenv" = x""yes; then :
  11582. ac_have_decl=1
  11583. else
  11584. ac_have_decl=0
  11585. fi
  11586. cat >>confdefs.h <<_ACEOF
  11587. #define HAVE_DECL_GETENV $ac_have_decl
  11588. _ACEOF
  11589. ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
  11590. if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
  11591. ac_have_decl=1
  11592. else
  11593. ac_have_decl=0
  11594. fi
  11595. cat >>confdefs.h <<_ACEOF
  11596. #define HAVE_DECL_SBRK $ac_have_decl
  11597. _ACEOF
  11598. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  11599. if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
  11600. ac_have_decl=1
  11601. else
  11602. ac_have_decl=0
  11603. fi
  11604. cat >>confdefs.h <<_ACEOF
  11605. #define HAVE_DECL_SNPRINTF $ac_have_decl
  11606. _ACEOF
  11607. ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
  11608. if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
  11609. ac_have_decl=1
  11610. else
  11611. ac_have_decl=0
  11612. fi
  11613. cat >>confdefs.h <<_ACEOF
  11614. #define HAVE_DECL_STPCPY $ac_have_decl
  11615. _ACEOF
  11616. ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
  11617. if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
  11618. ac_have_decl=1
  11619. else
  11620. ac_have_decl=0
  11621. fi
  11622. cat >>confdefs.h <<_ACEOF
  11623. #define HAVE_DECL_STRNLEN $ac_have_decl
  11624. _ACEOF
  11625. ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
  11626. if test "x$ac_cv_have_decl_strstr" = x""yes; then :
  11627. ac_have_decl=1
  11628. else
  11629. ac_have_decl=0
  11630. fi
  11631. cat >>confdefs.h <<_ACEOF
  11632. #define HAVE_DECL_STRSTR $ac_have_decl
  11633. _ACEOF
  11634. ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
  11635. if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
  11636. ac_have_decl=1
  11637. else
  11638. ac_have_decl=0
  11639. fi
  11640. cat >>confdefs.h <<_ACEOF
  11641. #define HAVE_DECL_VSNPRINTF $ac_have_decl
  11642. _ACEOF
  11643. # Link in zlib if we can. This allows us to read compressed debug
  11644. # sections. This is used only by readelf.c (objdump uses bfd for
  11645. # reading compressed sections).
  11646. # Use the system's zlib library.
  11647. zlibdir="-L\$(top_builddir)/../zlib"
  11648. zlibinc="-I\$(top_srcdir)/../zlib"
  11649. # Check whether --with-system-zlib was given.
  11650. if test "${with_system_zlib+set}" = set; then :
  11651. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  11652. zlibdir=
  11653. zlibinc=
  11654. fi
  11655. fi
  11656. case "${host}" in
  11657. *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
  11658. $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
  11659. ;;
  11660. esac
  11661. # target-specific stuff:
  11662. # Canonicalize the secondary target names.
  11663. if test -n "$enable_targets"; then
  11664. for targ in `echo $enable_targets | sed 's/,/ /g'`
  11665. do
  11666. result=`$ac_config_sub $targ 2>/dev/null`
  11667. if test -n "$result"; then
  11668. canon_targets="$canon_targets $result"
  11669. else
  11670. # Allow targets that config.sub doesn't recognize, like "all".
  11671. canon_targets="$canon_targets $targ"
  11672. fi
  11673. done
  11674. fi
  11675. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  11676. if test "x$ac_cv_header_iconv_h" = x""yes; then :
  11677. fi
  11678. if test "X$prefix" = "XNONE"; then
  11679. acl_final_prefix="$ac_default_prefix"
  11680. else
  11681. acl_final_prefix="$prefix"
  11682. fi
  11683. if test "X$exec_prefix" = "XNONE"; then
  11684. acl_final_exec_prefix='${prefix}'
  11685. else
  11686. acl_final_exec_prefix="$exec_prefix"
  11687. fi
  11688. acl_save_prefix="$prefix"
  11689. prefix="$acl_final_prefix"
  11690. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  11691. prefix="$acl_save_prefix"
  11692. # Check whether --with-gnu-ld was given.
  11693. if test "${with_gnu_ld+set}" = set; then :
  11694. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11695. else
  11696. with_gnu_ld=no
  11697. fi
  11698. # Prepare PATH_SEPARATOR.
  11699. # The user is always right.
  11700. if test "${PATH_SEPARATOR+set}" != set; then
  11701. echo "#! /bin/sh" >conf$$.sh
  11702. echo "exit 0" >>conf$$.sh
  11703. chmod +x conf$$.sh
  11704. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11705. PATH_SEPARATOR=';'
  11706. else
  11707. PATH_SEPARATOR=:
  11708. fi
  11709. rm -f conf$$.sh
  11710. fi
  11711. ac_prog=ld
  11712. if test "$GCC" = yes; then
  11713. # Check if gcc -print-prog-name=ld gives a path.
  11714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  11715. $as_echo_n "checking for ld used by GCC... " >&6; }
  11716. case $host in
  11717. *-*-mingw*)
  11718. # gcc leaves a trailing carriage return which upsets mingw
  11719. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11720. *)
  11721. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11722. esac
  11723. case $ac_prog in
  11724. # Accept absolute paths.
  11725. [\\/]* | [A-Za-z]:[\\/]*)
  11726. re_direlt='/[^/][^/]*/\.\./'
  11727. # Canonicalize the path of ld
  11728. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  11729. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11730. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  11731. done
  11732. test -z "$LD" && LD="$ac_prog"
  11733. ;;
  11734. "")
  11735. # If it fails, then pretend we aren't using GCC.
  11736. ac_prog=ld
  11737. ;;
  11738. *)
  11739. # If it is relative, then search for the first ld in PATH.
  11740. with_gnu_ld=unknown
  11741. ;;
  11742. esac
  11743. elif test "$with_gnu_ld" = yes; then
  11744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11745. $as_echo_n "checking for GNU ld... " >&6; }
  11746. else
  11747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11748. $as_echo_n "checking for non-GNU ld... " >&6; }
  11749. fi
  11750. if test "${acl_cv_path_LD+set}" = set; then :
  11751. $as_echo_n "(cached) " >&6
  11752. else
  11753. if test -z "$LD"; then
  11754. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  11755. for ac_dir in $PATH; do
  11756. test -z "$ac_dir" && ac_dir=.
  11757. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11758. acl_cv_path_LD="$ac_dir/$ac_prog"
  11759. # Check to see if the program is GNU ld. I'd rather use --version,
  11760. # but apparently some GNU ld's only accept -v.
  11761. # Break only if it was the GNU/non-GNU ld that we prefer.
  11762. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  11763. test "$with_gnu_ld" != no && break
  11764. else
  11765. test "$with_gnu_ld" != yes && break
  11766. fi
  11767. fi
  11768. done
  11769. IFS="$ac_save_ifs"
  11770. else
  11771. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  11772. fi
  11773. fi
  11774. LD="$acl_cv_path_LD"
  11775. if test -n "$LD"; then
  11776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11777. $as_echo "$LD" >&6; }
  11778. else
  11779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11780. $as_echo "no" >&6; }
  11781. fi
  11782. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  11783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11784. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11785. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  11786. $as_echo_n "(cached) " >&6
  11787. else
  11788. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  11789. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  11790. acl_cv_prog_gnu_ld=yes
  11791. else
  11792. acl_cv_prog_gnu_ld=no
  11793. fi
  11794. fi
  11795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  11796. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  11797. with_gnu_ld=$acl_cv_prog_gnu_ld
  11798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  11799. $as_echo_n "checking for shared library run path origin... " >&6; }
  11800. if test "${acl_cv_rpath+set}" = set; then :
  11801. $as_echo_n "(cached) " >&6
  11802. else
  11803. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  11804. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  11805. . ./conftest.sh
  11806. rm -f ./conftest.sh
  11807. acl_cv_rpath=done
  11808. fi
  11809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  11810. $as_echo "$acl_cv_rpath" >&6; }
  11811. wl="$acl_cv_wl"
  11812. libext="$acl_cv_libext"
  11813. shlibext="$acl_cv_shlibext"
  11814. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  11815. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  11816. hardcode_direct="$acl_cv_hardcode_direct"
  11817. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  11818. # Check whether --enable-rpath was given.
  11819. if test "${enable_rpath+set}" = set; then :
  11820. enableval=$enable_rpath; :
  11821. else
  11822. enable_rpath=yes
  11823. fi
  11824. use_additional=yes
  11825. acl_save_prefix="$prefix"
  11826. prefix="$acl_final_prefix"
  11827. acl_save_exec_prefix="$exec_prefix"
  11828. exec_prefix="$acl_final_exec_prefix"
  11829. eval additional_includedir=\"$includedir\"
  11830. eval additional_libdir=\"$libdir\"
  11831. exec_prefix="$acl_save_exec_prefix"
  11832. prefix="$acl_save_prefix"
  11833. # Check whether --with-libiconv-prefix was given.
  11834. if test "${with_libiconv_prefix+set}" = set; then :
  11835. withval=$with_libiconv_prefix;
  11836. if test "X$withval" = "Xno"; then
  11837. use_additional=no
  11838. else
  11839. if test "X$withval" = "X"; then
  11840. acl_save_prefix="$prefix"
  11841. prefix="$acl_final_prefix"
  11842. acl_save_exec_prefix="$exec_prefix"
  11843. exec_prefix="$acl_final_exec_prefix"
  11844. eval additional_includedir=\"$includedir\"
  11845. eval additional_libdir=\"$libdir\"
  11846. exec_prefix="$acl_save_exec_prefix"
  11847. prefix="$acl_save_prefix"
  11848. else
  11849. additional_includedir="$withval/include"
  11850. additional_libdir="$withval/lib"
  11851. fi
  11852. fi
  11853. fi
  11854. LIBICONV=
  11855. LTLIBICONV=
  11856. INCICONV=
  11857. rpathdirs=
  11858. ltrpathdirs=
  11859. names_already_handled=
  11860. names_next_round='iconv '
  11861. while test -n "$names_next_round"; do
  11862. names_this_round="$names_next_round"
  11863. names_next_round=
  11864. for name in $names_this_round; do
  11865. already_handled=
  11866. for n in $names_already_handled; do
  11867. if test "$n" = "$name"; then
  11868. already_handled=yes
  11869. break
  11870. fi
  11871. done
  11872. if test -z "$already_handled"; then
  11873. names_already_handled="$names_already_handled $name"
  11874. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11875. eval value=\"\$HAVE_LIB$uppername\"
  11876. if test -n "$value"; then
  11877. if test "$value" = yes; then
  11878. eval value=\"\$LIB$uppername\"
  11879. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11880. eval value=\"\$LTLIB$uppername\"
  11881. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11882. else
  11883. :
  11884. fi
  11885. else
  11886. found_dir=
  11887. found_la=
  11888. found_so=
  11889. found_a=
  11890. if test $use_additional = yes; then
  11891. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  11892. found_dir="$additional_libdir"
  11893. found_so="$additional_libdir/lib$name.$shlibext"
  11894. if test -f "$additional_libdir/lib$name.la"; then
  11895. found_la="$additional_libdir/lib$name.la"
  11896. fi
  11897. else
  11898. if test -f "$additional_libdir/lib$name.$libext"; then
  11899. found_dir="$additional_libdir"
  11900. found_a="$additional_libdir/lib$name.$libext"
  11901. if test -f "$additional_libdir/lib$name.la"; then
  11902. found_la="$additional_libdir/lib$name.la"
  11903. fi
  11904. fi
  11905. fi
  11906. fi
  11907. if test "X$found_dir" = "X"; then
  11908. for x in $LDFLAGS $LTLIBICONV; do
  11909. acl_save_prefix="$prefix"
  11910. prefix="$acl_final_prefix"
  11911. acl_save_exec_prefix="$exec_prefix"
  11912. exec_prefix="$acl_final_exec_prefix"
  11913. eval x=\"$x\"
  11914. exec_prefix="$acl_save_exec_prefix"
  11915. prefix="$acl_save_prefix"
  11916. case "$x" in
  11917. -L*)
  11918. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11919. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  11920. found_dir="$dir"
  11921. found_so="$dir/lib$name.$shlibext"
  11922. if test -f "$dir/lib$name.la"; then
  11923. found_la="$dir/lib$name.la"
  11924. fi
  11925. else
  11926. if test -f "$dir/lib$name.$libext"; then
  11927. found_dir="$dir"
  11928. found_a="$dir/lib$name.$libext"
  11929. if test -f "$dir/lib$name.la"; then
  11930. found_la="$dir/lib$name.la"
  11931. fi
  11932. fi
  11933. fi
  11934. ;;
  11935. esac
  11936. if test "X$found_dir" != "X"; then
  11937. break
  11938. fi
  11939. done
  11940. fi
  11941. if test "X$found_dir" != "X"; then
  11942. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  11943. if test "X$found_so" != "X"; then
  11944. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  11945. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11946. else
  11947. haveit=
  11948. for x in $ltrpathdirs; do
  11949. if test "X$x" = "X$found_dir"; then
  11950. haveit=yes
  11951. break
  11952. fi
  11953. done
  11954. if test -z "$haveit"; then
  11955. ltrpathdirs="$ltrpathdirs $found_dir"
  11956. fi
  11957. if test "$hardcode_direct" = yes; then
  11958. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11959. else
  11960. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  11961. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11962. haveit=
  11963. for x in $rpathdirs; do
  11964. if test "X$x" = "X$found_dir"; then
  11965. haveit=yes
  11966. break
  11967. fi
  11968. done
  11969. if test -z "$haveit"; then
  11970. rpathdirs="$rpathdirs $found_dir"
  11971. fi
  11972. else
  11973. haveit=
  11974. for x in $LDFLAGS $LIBICONV; do
  11975. acl_save_prefix="$prefix"
  11976. prefix="$acl_final_prefix"
  11977. acl_save_exec_prefix="$exec_prefix"
  11978. exec_prefix="$acl_final_exec_prefix"
  11979. eval x=\"$x\"
  11980. exec_prefix="$acl_save_exec_prefix"
  11981. prefix="$acl_save_prefix"
  11982. if test "X$x" = "X-L$found_dir"; then
  11983. haveit=yes
  11984. break
  11985. fi
  11986. done
  11987. if test -z "$haveit"; then
  11988. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  11989. fi
  11990. if test "$hardcode_minus_L" != no; then
  11991. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11992. else
  11993. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11994. fi
  11995. fi
  11996. fi
  11997. fi
  11998. else
  11999. if test "X$found_a" != "X"; then
  12000. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12001. else
  12002. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12003. fi
  12004. fi
  12005. additional_includedir=
  12006. case "$found_dir" in
  12007. */lib | */lib/)
  12008. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  12009. additional_includedir="$basedir/include"
  12010. ;;
  12011. esac
  12012. if test "X$additional_includedir" != "X"; then
  12013. if test "X$additional_includedir" != "X/usr/include"; then
  12014. haveit=
  12015. if test "X$additional_includedir" = "X/usr/local/include"; then
  12016. if test -n "$GCC"; then
  12017. case $host_os in
  12018. linux*) haveit=yes;;
  12019. esac
  12020. fi
  12021. fi
  12022. if test -z "$haveit"; then
  12023. for x in $CPPFLAGS $INCICONV; do
  12024. acl_save_prefix="$prefix"
  12025. prefix="$acl_final_prefix"
  12026. acl_save_exec_prefix="$exec_prefix"
  12027. exec_prefix="$acl_final_exec_prefix"
  12028. eval x=\"$x\"
  12029. exec_prefix="$acl_save_exec_prefix"
  12030. prefix="$acl_save_prefix"
  12031. if test "X$x" = "X-I$additional_includedir"; then
  12032. haveit=yes
  12033. break
  12034. fi
  12035. done
  12036. if test -z "$haveit"; then
  12037. if test -d "$additional_includedir"; then
  12038. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  12039. fi
  12040. fi
  12041. fi
  12042. fi
  12043. fi
  12044. if test -n "$found_la"; then
  12045. save_libdir="$libdir"
  12046. case "$found_la" in
  12047. */* | *\\*) . "$found_la" ;;
  12048. *) . "./$found_la" ;;
  12049. esac
  12050. libdir="$save_libdir"
  12051. for dep in $dependency_libs; do
  12052. case "$dep" in
  12053. -L*)
  12054. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12055. if test "X$additional_libdir" != "X/usr/lib"; then
  12056. haveit=
  12057. if test "X$additional_libdir" = "X/usr/local/lib"; then
  12058. if test -n "$GCC"; then
  12059. case $host_os in
  12060. linux*) haveit=yes;;
  12061. esac
  12062. fi
  12063. fi
  12064. if test -z "$haveit"; then
  12065. haveit=
  12066. for x in $LDFLAGS $LIBICONV; do
  12067. acl_save_prefix="$prefix"
  12068. prefix="$acl_final_prefix"
  12069. acl_save_exec_prefix="$exec_prefix"
  12070. exec_prefix="$acl_final_exec_prefix"
  12071. eval x=\"$x\"
  12072. exec_prefix="$acl_save_exec_prefix"
  12073. prefix="$acl_save_prefix"
  12074. if test "X$x" = "X-L$additional_libdir"; then
  12075. haveit=yes
  12076. break
  12077. fi
  12078. done
  12079. if test -z "$haveit"; then
  12080. if test -d "$additional_libdir"; then
  12081. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12082. fi
  12083. fi
  12084. haveit=
  12085. for x in $LDFLAGS $LTLIBICONV; do
  12086. acl_save_prefix="$prefix"
  12087. prefix="$acl_final_prefix"
  12088. acl_save_exec_prefix="$exec_prefix"
  12089. exec_prefix="$acl_final_exec_prefix"
  12090. eval x=\"$x\"
  12091. exec_prefix="$acl_save_exec_prefix"
  12092. prefix="$acl_save_prefix"
  12093. if test "X$x" = "X-L$additional_libdir"; then
  12094. haveit=yes
  12095. break
  12096. fi
  12097. done
  12098. if test -z "$haveit"; then
  12099. if test -d "$additional_libdir"; then
  12100. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12101. fi
  12102. fi
  12103. fi
  12104. fi
  12105. ;;
  12106. -R*)
  12107. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12108. if test "$enable_rpath" != no; then
  12109. haveit=
  12110. for x in $rpathdirs; do
  12111. if test "X$x" = "X$dir"; then
  12112. haveit=yes
  12113. break
  12114. fi
  12115. done
  12116. if test -z "$haveit"; then
  12117. rpathdirs="$rpathdirs $dir"
  12118. fi
  12119. haveit=
  12120. for x in $ltrpathdirs; do
  12121. if test "X$x" = "X$dir"; then
  12122. haveit=yes
  12123. break
  12124. fi
  12125. done
  12126. if test -z "$haveit"; then
  12127. ltrpathdirs="$ltrpathdirs $dir"
  12128. fi
  12129. fi
  12130. ;;
  12131. -l*)
  12132. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12133. ;;
  12134. *.la)
  12135. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12136. ;;
  12137. *)
  12138. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12139. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12140. ;;
  12141. esac
  12142. done
  12143. fi
  12144. else
  12145. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12146. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12147. fi
  12148. fi
  12149. fi
  12150. done
  12151. done
  12152. if test "X$rpathdirs" != "X"; then
  12153. if test -n "$hardcode_libdir_separator"; then
  12154. alldirs=
  12155. for found_dir in $rpathdirs; do
  12156. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  12157. done
  12158. acl_save_libdir="$libdir"
  12159. libdir="$alldirs"
  12160. eval flag=\"$hardcode_libdir_flag_spec\"
  12161. libdir="$acl_save_libdir"
  12162. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12163. else
  12164. for found_dir in $rpathdirs; do
  12165. acl_save_libdir="$libdir"
  12166. libdir="$found_dir"
  12167. eval flag=\"$hardcode_libdir_flag_spec\"
  12168. libdir="$acl_save_libdir"
  12169. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12170. done
  12171. fi
  12172. fi
  12173. if test "X$ltrpathdirs" != "X"; then
  12174. for found_dir in $ltrpathdirs; do
  12175. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12176. done
  12177. fi
  12178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  12179. $as_echo_n "checking for iconv... " >&6; }
  12180. if test "${am_cv_func_iconv+set}" = set; then :
  12181. $as_echo_n "(cached) " >&6
  12182. else
  12183. am_cv_func_iconv="no, consider installing GNU libiconv"
  12184. am_cv_lib_iconv=no
  12185. am_save_CPPFLAGS="$CPPFLAGS"
  12186. CPPFLAGS="$CPPFLAGS $INCICONV"
  12187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12188. /* end confdefs.h. */
  12189. #include <stdlib.h>
  12190. #include <iconv.h>
  12191. int
  12192. main ()
  12193. {
  12194. iconv_t cd = iconv_open("","");
  12195. iconv(cd,NULL,NULL,NULL,NULL);
  12196. iconv_close(cd);
  12197. ;
  12198. return 0;
  12199. }
  12200. _ACEOF
  12201. if ac_fn_c_try_link "$LINENO"; then :
  12202. am_cv_func_iconv=yes
  12203. fi
  12204. rm -f core conftest.err conftest.$ac_objext \
  12205. conftest$ac_exeext conftest.$ac_ext
  12206. CPPFLAGS="$am_save_CPPFLAGS"
  12207. if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
  12208. for _libs in .libs _libs; do
  12209. am_save_CPPFLAGS="$CPPFLAGS"
  12210. am_save_LIBS="$LIBS"
  12211. CPPFLAGS="$CPPFLAGS -I../libiconv/include"
  12212. LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
  12213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12214. /* end confdefs.h. */
  12215. #include <stdlib.h>
  12216. #include <iconv.h>
  12217. int
  12218. main ()
  12219. {
  12220. iconv_t cd = iconv_open("","");
  12221. iconv(cd,NULL,NULL,NULL,NULL);
  12222. iconv_close(cd);
  12223. ;
  12224. return 0;
  12225. }
  12226. _ACEOF
  12227. if ac_fn_c_try_link "$LINENO"; then :
  12228. INCICONV="-I../libiconv/include"
  12229. LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
  12230. LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
  12231. am_cv_lib_iconv=yes
  12232. am_cv_func_iconv=yes
  12233. fi
  12234. rm -f core conftest.err conftest.$ac_objext \
  12235. conftest$ac_exeext conftest.$ac_ext
  12236. CPPFLAGS="$am_save_CPPFLAGS"
  12237. LIBS="$am_save_LIBS"
  12238. if test "$am_cv_func_iconv" = "yes"; then
  12239. break
  12240. fi
  12241. done
  12242. fi
  12243. if test "$am_cv_func_iconv" != yes; then
  12244. am_save_CPPFLAGS="$CPPFLAGS"
  12245. am_save_LIBS="$LIBS"
  12246. CPPFLAGS="$LIBS $INCICONV"
  12247. LIBS="$LIBS $LIBICONV"
  12248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12249. /* end confdefs.h. */
  12250. #include <stdlib.h>
  12251. #include <iconv.h>
  12252. int
  12253. main ()
  12254. {
  12255. iconv_t cd = iconv_open("","");
  12256. iconv(cd,NULL,NULL,NULL,NULL);
  12257. iconv_close(cd);
  12258. ;
  12259. return 0;
  12260. }
  12261. _ACEOF
  12262. if ac_fn_c_try_link "$LINENO"; then :
  12263. am_cv_lib_iconv=yes
  12264. am_cv_func_iconv=yes
  12265. fi
  12266. rm -f core conftest.err conftest.$ac_objext \
  12267. conftest$ac_exeext conftest.$ac_ext
  12268. CPPFLAGS="$am_save_CPPFLAGS"
  12269. LIBS="$am_save_LIBS"
  12270. fi
  12271. fi
  12272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  12273. $as_echo "$am_cv_func_iconv" >&6; }
  12274. if test "$am_cv_func_iconv" = yes; then
  12275. $as_echo "#define HAVE_ICONV 1" >>confdefs.h
  12276. fi
  12277. if test "$am_cv_lib_iconv" = yes; then
  12278. for element in $INCICONV; do
  12279. haveit=
  12280. for x in $CPPFLAGS; do
  12281. acl_save_prefix="$prefix"
  12282. prefix="$acl_final_prefix"
  12283. acl_save_exec_prefix="$exec_prefix"
  12284. exec_prefix="$acl_final_exec_prefix"
  12285. eval x=\"$x\"
  12286. exec_prefix="$acl_save_exec_prefix"
  12287. prefix="$acl_save_prefix"
  12288. if test "X$x" = "X$element"; then
  12289. haveit=yes
  12290. break
  12291. fi
  12292. done
  12293. if test -z "$haveit"; then
  12294. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12295. fi
  12296. done
  12297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
  12298. $as_echo_n "checking how to link with libiconv... " >&6; }
  12299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
  12300. $as_echo "$LIBICONV" >&6; }
  12301. else
  12302. LIBICONV=
  12303. LTLIBICONV=
  12304. fi
  12305. if test "$am_cv_func_iconv" = yes; then
  12306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  12307. $as_echo_n "checking for iconv declaration... " >&6; }
  12308. if test "${am_cv_proto_iconv+set}" = set; then :
  12309. $as_echo_n "(cached) " >&6
  12310. else
  12311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12312. /* end confdefs.h. */
  12313. #include <stdlib.h>
  12314. #include <iconv.h>
  12315. extern
  12316. #ifdef __cplusplus
  12317. "C"
  12318. #endif
  12319. #if defined(__STDC__) || defined(__cplusplus)
  12320. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12321. #else
  12322. size_t iconv();
  12323. #endif
  12324. int
  12325. main ()
  12326. {
  12327. ;
  12328. return 0;
  12329. }
  12330. _ACEOF
  12331. if ac_fn_c_try_compile "$LINENO"; then :
  12332. am_cv_proto_iconv_arg1=""
  12333. else
  12334. am_cv_proto_iconv_arg1="const"
  12335. fi
  12336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12337. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  12338. fi
  12339. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  12341. }$am_cv_proto_iconv" >&5
  12342. $as_echo "${ac_t:-
  12343. }$am_cv_proto_iconv" >&6; }
  12344. cat >>confdefs.h <<_ACEOF
  12345. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12346. _ACEOF
  12347. fi
  12348. all_targets=false
  12349. BUILD_NLMCONV=
  12350. NLMCONV_DEFS=
  12351. BUILD_SRCONV=
  12352. BUILD_DLLTOOL=
  12353. DLLTOOL_DEFS=
  12354. DLLTOOL_DEFAULT=
  12355. BUILD_WINDRES=
  12356. BUILD_WINDMC=
  12357. BUILD_DLLWRAP=
  12358. BUILD_MISC=
  12359. BUILD_INSTALL_MISC=
  12360. OBJDUMP_DEFS=
  12361. OBJDUMP_PRIVATE_VECTORS=
  12362. OBJDUMP_PRIVATE_OFILES=
  12363. od_vectors=
  12364. for targ in $target $canon_targets
  12365. do
  12366. if test "x$targ" = "xall"; then
  12367. all_targets=true
  12368. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  12369. BUILD_SRCONV='$(SRCONV_PROG)'
  12370. NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
  12371. BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
  12372. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12373. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12374. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12375. if test -z "$DLLTOOL_DEFAULT"; then
  12376. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
  12377. fi
  12378. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
  12379. BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
  12380. od_vectors="$od_vectors objdump_private_desc_xcoff"
  12381. else
  12382. case $targ in
  12383. i[3-7]86*-*-netware*)
  12384. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  12385. NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
  12386. ;;
  12387. alpha*-*-netware*)
  12388. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  12389. NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
  12390. ;;
  12391. powerpc*-*-netware*)
  12392. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  12393. NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
  12394. ;;
  12395. sparc*-*-netware*)
  12396. BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
  12397. NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
  12398. ;;
  12399. esac
  12400. case $targ in
  12401. *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
  12402. esac
  12403. case $targ in
  12404. arm-epoc-pe*)
  12405. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12406. if test -z "$DLLTOOL_DEFAULT"; then
  12407. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
  12408. fi
  12409. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
  12410. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12411. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12412. ;;
  12413. arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
  12414. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12415. if test -z "$DLLTOOL_DEFAULT"; then
  12416. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
  12417. fi
  12418. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
  12419. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12420. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12421. ;;
  12422. arm-*-pe*)
  12423. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12424. if test -z "$DLLTOOL_DEFAULT"; then
  12425. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
  12426. fi
  12427. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
  12428. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12429. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12430. ;;
  12431. x86_64-*-mingw* | x86_64-*-cygwin* | x86_64-w64-minwin64*)
  12432. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12433. if test -z "$DLLTOOL_DEFAULT"; then
  12434. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
  12435. fi
  12436. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
  12437. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12438. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12439. BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
  12440. ;;
  12441. i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
  12442. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12443. if test -z "$DLLTOOL_DEFAULT"; then
  12444. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
  12445. fi
  12446. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
  12447. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12448. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12449. BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
  12450. ;;
  12451. i[3-7]86-*-interix)
  12452. BUILD_DLLTOOL='$(DLLTOOL_PROG)'
  12453. if test -z "$DLLTOOL_DEFAULT"; then
  12454. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
  12455. fi
  12456. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
  12457. ;;
  12458. powerpc*-aix5.[01])
  12459. ;;
  12460. powerpc*-aix[5-9].*)
  12461. OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
  12462. ;;
  12463. powerpc*-*-pe* | powerpc*-*-cygwin*)
  12464. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12465. if test -z "$DLLTOOL_DEFAULT"; then
  12466. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
  12467. fi
  12468. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
  12469. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12470. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12471. ;;
  12472. powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
  12473. case "$BUILD_INSTALL_MISC" in
  12474. *embedspu*) ;;
  12475. *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
  12476. esac
  12477. ;;
  12478. sh*-*-pe)
  12479. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12480. if test -z "$DLLTOOL_DEFAULT"; then
  12481. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
  12482. fi
  12483. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
  12484. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12485. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12486. ;;
  12487. spu-*-*)
  12488. BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
  12489. ;;
  12490. mips*-*-pe)
  12491. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12492. if test -z "$DLLTOOL_DEFAULT"; then
  12493. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
  12494. fi
  12495. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
  12496. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12497. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12498. ;;
  12499. mcore-*-pe)
  12500. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12501. if test -z "$DLLTOOL_DEFAULT"; then
  12502. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
  12503. fi
  12504. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
  12505. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12506. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12507. ;;
  12508. mcore-*-elf)
  12509. BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
  12510. if test -z "$DLLTOOL_DEFAULT"; then
  12511. DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
  12512. fi
  12513. DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
  12514. ;;
  12515. mep-*)
  12516. OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
  12517. ;;
  12518. esac
  12519. # Add objdump private vectors.
  12520. case $targ in
  12521. avr-*-*)
  12522. od_vectors="$od_vectors objdump_private_desc_elf32_avr"
  12523. ;;
  12524. powerpc-*-aix*)
  12525. od_vectors="$od_vectors objdump_private_desc_xcoff"
  12526. ;;
  12527. *-*-darwin*)
  12528. od_vectors="$od_vectors objdump_private_desc_mach_o"
  12529. ;;
  12530. esac
  12531. fi
  12532. done
  12533. # Uniq objdump private vector, build objdump target ofiles.
  12534. od_files=
  12535. f=""
  12536. for i in $od_vectors ; do
  12537. case " $f " in
  12538. *" $i "*) ;;
  12539. *)
  12540. f="$f $i"
  12541. OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
  12542. case $i in
  12543. objdump_private_desc_elf32_avr)
  12544. od_files="$od_files od-elf32_avr" ;;
  12545. objdump_private_desc_xcoff)
  12546. od_files="$od_files od-xcoff" ;;
  12547. objdump_private_desc_mach_o)
  12548. od_files="$od_files od-macho" ;;
  12549. *) as_fn_error "*** unknown private vector $i" "$LINENO" 5 ;;
  12550. esac
  12551. ;;
  12552. esac
  12553. done
  12554. # Uniq objdump target ofiles
  12555. f=""
  12556. for i in $od_files ; do
  12557. case " $f " in
  12558. *" $i "*) ;;
  12559. *)
  12560. f="$f $i"
  12561. OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
  12562. ;;
  12563. esac
  12564. done
  12565. DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
  12566. if test "${with_windres+set}" = set; then
  12567. BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
  12568. fi
  12569. if test "${with_windmc+set}" = set; then
  12570. BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
  12571. fi
  12572. OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
  12573. cat >>confdefs.h <<_ACEOF
  12574. #define TARGET "${target}"
  12575. _ACEOF
  12576. targ=$target
  12577. . $srcdir/../bfd/config.bfd
  12578. if test "x$targ_underscore" = "xyes"; then
  12579. UNDERSCORE=1
  12580. else
  12581. UNDERSCORE=0
  12582. fi
  12583. cat >>confdefs.h <<_ACEOF
  12584. #define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
  12585. _ACEOF
  12586. # Emulation
  12587. targ=$target
  12588. . ${srcdir}/configure.tgt
  12589. EMULATION=$targ_emul
  12590. EMULATION_VECTOR=$targ_emul_vector
  12591. # Required for html and install-html
  12592. ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
  12593. cat >confcache <<\_ACEOF
  12594. # This file is a shell script that caches the results of configure
  12595. # tests run on this system so they can be shared between configure
  12596. # scripts and configure runs, see configure's option --config-cache.
  12597. # It is not useful on other systems. If it contains results you don't
  12598. # want to keep, you may remove or edit it.
  12599. #
  12600. # config.status only pays attention to the cache file if you give it
  12601. # the --recheck option to rerun configure.
  12602. #
  12603. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12604. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12605. # following values.
  12606. _ACEOF
  12607. # The following way of writing the cache mishandles newlines in values,
  12608. # but we know of no workaround that is simple, portable, and efficient.
  12609. # So, we kill variables containing newlines.
  12610. # Ultrix sh set writes to stderr and can't be redirected directly,
  12611. # and sets the high bit in the cache file unless we assign to the vars.
  12612. (
  12613. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12614. eval ac_val=\$$ac_var
  12615. case $ac_val in #(
  12616. *${as_nl}*)
  12617. case $ac_var in #(
  12618. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12619. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12620. esac
  12621. case $ac_var in #(
  12622. _ | IFS | as_nl) ;; #(
  12623. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12624. *) { eval $ac_var=; unset $ac_var;} ;;
  12625. esac ;;
  12626. esac
  12627. done
  12628. (set) 2>&1 |
  12629. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12630. *${as_nl}ac_space=\ *)
  12631. # `set' does not quote correctly, so add quotes: double-quote
  12632. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12633. sed -n \
  12634. "s/'/'\\\\''/g;
  12635. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12636. ;; #(
  12637. *)
  12638. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12639. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12640. ;;
  12641. esac |
  12642. sort
  12643. ) |
  12644. sed '
  12645. /^ac_cv_env_/b end
  12646. t clear
  12647. :clear
  12648. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12649. t end
  12650. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12651. :end' >>confcache
  12652. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12653. if test -w "$cache_file"; then
  12654. test "x$cache_file" != "x/dev/null" &&
  12655. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12656. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12657. cat confcache >$cache_file
  12658. else
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12660. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12661. fi
  12662. fi
  12663. rm -f confcache
  12664. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12665. # Let make expand exec_prefix.
  12666. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12667. DEFS=-DHAVE_CONFIG_H
  12668. ac_libobjs=
  12669. ac_ltlibobjs=
  12670. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12671. # 1. Remove the extension, and $U if already installed.
  12672. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12673. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12674. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12675. # will be set to the directory where LIBOBJS objects are built.
  12676. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12677. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12678. done
  12679. LIBOBJS=$ac_libobjs
  12680. LTLIBOBJS=$ac_ltlibobjs
  12681. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12682. as_fn_error "conditional \"AMDEP\" was never defined.
  12683. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12684. fi
  12685. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12686. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  12687. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12688. fi
  12689. if test -n "$EXEEXT"; then
  12690. am__EXEEXT_TRUE=
  12691. am__EXEEXT_FALSE='#'
  12692. else
  12693. am__EXEEXT_TRUE='#'
  12694. am__EXEEXT_FALSE=
  12695. fi
  12696. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12697. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  12698. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12699. fi
  12700. if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
  12701. as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
  12702. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12703. fi
  12704. : ${CONFIG_STATUS=./config.status}
  12705. ac_write_fail=0
  12706. ac_clean_files_save=$ac_clean_files
  12707. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12708. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12709. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12710. as_write_fail=0
  12711. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12712. #! $SHELL
  12713. # Generated by $as_me.
  12714. # Run this file to recreate the current configuration.
  12715. # Compiler output produced by configure, useful for debugging
  12716. # configure, is in config.log if it exists.
  12717. debug=false
  12718. ac_cs_recheck=false
  12719. ac_cs_silent=false
  12720. SHELL=\${CONFIG_SHELL-$SHELL}
  12721. export SHELL
  12722. _ASEOF
  12723. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12724. ## -------------------- ##
  12725. ## M4sh Initialization. ##
  12726. ## -------------------- ##
  12727. # Be more Bourne compatible
  12728. DUALCASE=1; export DUALCASE # for MKS sh
  12729. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12730. emulate sh
  12731. NULLCMD=:
  12732. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12733. # is contrary to our usage. Disable this feature.
  12734. alias -g '${1+"$@"}'='"$@"'
  12735. setopt NO_GLOB_SUBST
  12736. else
  12737. case `(set -o) 2>/dev/null` in #(
  12738. *posix*) :
  12739. set -o posix ;; #(
  12740. *) :
  12741. ;;
  12742. esac
  12743. fi
  12744. as_nl='
  12745. '
  12746. export as_nl
  12747. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12748. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12749. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12750. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12751. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12752. # but without wasting forks for bash or zsh.
  12753. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12754. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12755. as_echo='print -r --'
  12756. as_echo_n='print -rn --'
  12757. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12758. as_echo='printf %s\n'
  12759. as_echo_n='printf %s'
  12760. else
  12761. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12762. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12763. as_echo_n='/usr/ucb/echo -n'
  12764. else
  12765. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12766. as_echo_n_body='eval
  12767. arg=$1;
  12768. case $arg in #(
  12769. *"$as_nl"*)
  12770. expr "X$arg" : "X\\(.*\\)$as_nl";
  12771. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12772. esac;
  12773. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12774. '
  12775. export as_echo_n_body
  12776. as_echo_n='sh -c $as_echo_n_body as_echo'
  12777. fi
  12778. export as_echo_body
  12779. as_echo='sh -c $as_echo_body as_echo'
  12780. fi
  12781. # The user is always right.
  12782. if test "${PATH_SEPARATOR+set}" != set; then
  12783. PATH_SEPARATOR=:
  12784. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12785. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12786. PATH_SEPARATOR=';'
  12787. }
  12788. fi
  12789. # IFS
  12790. # We need space, tab and new line, in precisely that order. Quoting is
  12791. # there to prevent editors from complaining about space-tab.
  12792. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12793. # splitting by setting IFS to empty value.)
  12794. IFS=" "" $as_nl"
  12795. # Find who we are. Look in the path if we contain no directory separator.
  12796. case $0 in #((
  12797. *[\\/]* ) as_myself=$0 ;;
  12798. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12799. for as_dir in $PATH
  12800. do
  12801. IFS=$as_save_IFS
  12802. test -z "$as_dir" && as_dir=.
  12803. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12804. done
  12805. IFS=$as_save_IFS
  12806. ;;
  12807. esac
  12808. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12809. # in which case we are not to be found in the path.
  12810. if test "x$as_myself" = x; then
  12811. as_myself=$0
  12812. fi
  12813. if test ! -f "$as_myself"; then
  12814. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12815. exit 1
  12816. fi
  12817. # Unset variables that we do not need and which cause bugs (e.g. in
  12818. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12819. # suppresses any "Segmentation fault" message there. '((' could
  12820. # trigger a bug in pdksh 5.2.14.
  12821. for as_var in BASH_ENV ENV MAIL MAILPATH
  12822. do eval test x\${$as_var+set} = xset \
  12823. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12824. done
  12825. PS1='$ '
  12826. PS2='> '
  12827. PS4='+ '
  12828. # NLS nuisances.
  12829. LC_ALL=C
  12830. export LC_ALL
  12831. LANGUAGE=C
  12832. export LANGUAGE
  12833. # CDPATH.
  12834. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12835. # as_fn_error ERROR [LINENO LOG_FD]
  12836. # ---------------------------------
  12837. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12838. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12839. # script with status $?, using 1 if that was 0.
  12840. as_fn_error ()
  12841. {
  12842. as_status=$?; test $as_status -eq 0 && as_status=1
  12843. if test "$3"; then
  12844. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12845. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12846. fi
  12847. $as_echo "$as_me: error: $1" >&2
  12848. as_fn_exit $as_status
  12849. } # as_fn_error
  12850. # as_fn_set_status STATUS
  12851. # -----------------------
  12852. # Set $? to STATUS, without forking.
  12853. as_fn_set_status ()
  12854. {
  12855. return $1
  12856. } # as_fn_set_status
  12857. # as_fn_exit STATUS
  12858. # -----------------
  12859. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12860. as_fn_exit ()
  12861. {
  12862. set +e
  12863. as_fn_set_status $1
  12864. exit $1
  12865. } # as_fn_exit
  12866. # as_fn_unset VAR
  12867. # ---------------
  12868. # Portably unset VAR.
  12869. as_fn_unset ()
  12870. {
  12871. { eval $1=; unset $1;}
  12872. }
  12873. as_unset=as_fn_unset
  12874. # as_fn_append VAR VALUE
  12875. # ----------------------
  12876. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12877. # advantage of any shell optimizations that allow amortized linear growth over
  12878. # repeated appends, instead of the typical quadratic growth present in naive
  12879. # implementations.
  12880. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12881. eval 'as_fn_append ()
  12882. {
  12883. eval $1+=\$2
  12884. }'
  12885. else
  12886. as_fn_append ()
  12887. {
  12888. eval $1=\$$1\$2
  12889. }
  12890. fi # as_fn_append
  12891. # as_fn_arith ARG...
  12892. # ------------------
  12893. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12894. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12895. # must be portable across $(()) and expr.
  12896. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12897. eval 'as_fn_arith ()
  12898. {
  12899. as_val=$(( $* ))
  12900. }'
  12901. else
  12902. as_fn_arith ()
  12903. {
  12904. as_val=`expr "$@" || test $? -eq 1`
  12905. }
  12906. fi # as_fn_arith
  12907. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12908. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12909. as_expr=expr
  12910. else
  12911. as_expr=false
  12912. fi
  12913. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12914. as_basename=basename
  12915. else
  12916. as_basename=false
  12917. fi
  12918. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12919. as_dirname=dirname
  12920. else
  12921. as_dirname=false
  12922. fi
  12923. as_me=`$as_basename -- "$0" ||
  12924. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12925. X"$0" : 'X\(//\)$' \| \
  12926. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12927. $as_echo X/"$0" |
  12928. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12929. s//\1/
  12930. q
  12931. }
  12932. /^X\/\(\/\/\)$/{
  12933. s//\1/
  12934. q
  12935. }
  12936. /^X\/\(\/\).*/{
  12937. s//\1/
  12938. q
  12939. }
  12940. s/.*/./; q'`
  12941. # Avoid depending upon Character Ranges.
  12942. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12943. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12944. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12945. as_cr_digits='0123456789'
  12946. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12947. ECHO_C= ECHO_N= ECHO_T=
  12948. case `echo -n x` in #(((((
  12949. -n*)
  12950. case `echo 'xy\c'` in
  12951. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12952. xy) ECHO_C='\c';;
  12953. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12954. ECHO_T=' ';;
  12955. esac;;
  12956. *)
  12957. ECHO_N='-n';;
  12958. esac
  12959. rm -f conf$$ conf$$.exe conf$$.file
  12960. if test -d conf$$.dir; then
  12961. rm -f conf$$.dir/conf$$.file
  12962. else
  12963. rm -f conf$$.dir
  12964. mkdir conf$$.dir 2>/dev/null
  12965. fi
  12966. if (echo >conf$$.file) 2>/dev/null; then
  12967. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12968. as_ln_s='ln -s'
  12969. # ... but there are two gotchas:
  12970. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12971. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12972. # In both cases, we have to default to `cp -p'.
  12973. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12974. as_ln_s='cp -p'
  12975. elif ln conf$$.file conf$$ 2>/dev/null; then
  12976. as_ln_s=ln
  12977. else
  12978. as_ln_s='cp -p'
  12979. fi
  12980. else
  12981. as_ln_s='cp -p'
  12982. fi
  12983. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12984. rmdir conf$$.dir 2>/dev/null
  12985. # as_fn_mkdir_p
  12986. # -------------
  12987. # Create "$as_dir" as a directory, including parents if necessary.
  12988. as_fn_mkdir_p ()
  12989. {
  12990. case $as_dir in #(
  12991. -*) as_dir=./$as_dir;;
  12992. esac
  12993. test -d "$as_dir" || eval $as_mkdir_p || {
  12994. as_dirs=
  12995. while :; do
  12996. case $as_dir in #(
  12997. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12998. *) as_qdir=$as_dir;;
  12999. esac
  13000. as_dirs="'$as_qdir' $as_dirs"
  13001. as_dir=`$as_dirname -- "$as_dir" ||
  13002. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13003. X"$as_dir" : 'X\(//\)[^/]' \| \
  13004. X"$as_dir" : 'X\(//\)$' \| \
  13005. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13006. $as_echo X"$as_dir" |
  13007. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13008. s//\1/
  13009. q
  13010. }
  13011. /^X\(\/\/\)[^/].*/{
  13012. s//\1/
  13013. q
  13014. }
  13015. /^X\(\/\/\)$/{
  13016. s//\1/
  13017. q
  13018. }
  13019. /^X\(\/\).*/{
  13020. s//\1/
  13021. q
  13022. }
  13023. s/.*/./; q'`
  13024. test -d "$as_dir" && break
  13025. done
  13026. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13027. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13028. } # as_fn_mkdir_p
  13029. if mkdir -p . 2>/dev/null; then
  13030. as_mkdir_p='mkdir -p "$as_dir"'
  13031. else
  13032. test -d ./-p && rmdir ./-p
  13033. as_mkdir_p=false
  13034. fi
  13035. if test -x / >/dev/null 2>&1; then
  13036. as_test_x='test -x'
  13037. else
  13038. if ls -dL / >/dev/null 2>&1; then
  13039. as_ls_L_option=L
  13040. else
  13041. as_ls_L_option=
  13042. fi
  13043. as_test_x='
  13044. eval sh -c '\''
  13045. if test -d "$1"; then
  13046. test -d "$1/.";
  13047. else
  13048. case $1 in #(
  13049. -*)set "./$1";;
  13050. esac;
  13051. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13052. ???[sx]*):;;*)false;;esac;fi
  13053. '\'' sh
  13054. '
  13055. fi
  13056. as_executable_p=$as_test_x
  13057. # Sed expression to map a string onto a valid CPP name.
  13058. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13059. # Sed expression to map a string onto a valid variable name.
  13060. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13061. exec 6>&1
  13062. ## ----------------------------------- ##
  13063. ## Main body of $CONFIG_STATUS script. ##
  13064. ## ----------------------------------- ##
  13065. _ASEOF
  13066. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13067. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13068. # Save the log message, to keep $0 and so on meaningful, and to
  13069. # report actual input values of CONFIG_FILES etc. instead of their
  13070. # values after options handling.
  13071. ac_log="
  13072. This file was extended by binutils $as_me 2.25.51, which was
  13073. generated by GNU Autoconf 2.64. Invocation command line was
  13074. CONFIG_FILES = $CONFIG_FILES
  13075. CONFIG_HEADERS = $CONFIG_HEADERS
  13076. CONFIG_LINKS = $CONFIG_LINKS
  13077. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13078. $ $0 $@
  13079. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13080. "
  13081. _ACEOF
  13082. case $ac_config_files in *"
  13083. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13084. esac
  13085. case $ac_config_headers in *"
  13086. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13087. esac
  13088. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13089. # Files that config.status was made for.
  13090. config_files="$ac_config_files"
  13091. config_headers="$ac_config_headers"
  13092. config_commands="$ac_config_commands"
  13093. _ACEOF
  13094. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13095. ac_cs_usage="\
  13096. \`$as_me' instantiates files and other configuration actions
  13097. from templates according to the current configuration. Unless the files
  13098. and actions are specified as TAGs, all are instantiated by default.
  13099. Usage: $0 [OPTION]... [TAG]...
  13100. -h, --help print this help, then exit
  13101. -V, --version print version number and configuration settings, then exit
  13102. -q, --quiet, --silent
  13103. do not print progress messages
  13104. -d, --debug don't remove temporary files
  13105. --recheck update $as_me by reconfiguring in the same conditions
  13106. --file=FILE[:TEMPLATE]
  13107. instantiate the configuration file FILE
  13108. --header=FILE[:TEMPLATE]
  13109. instantiate the configuration header FILE
  13110. Configuration files:
  13111. $config_files
  13112. Configuration headers:
  13113. $config_headers
  13114. Configuration commands:
  13115. $config_commands
  13116. Report bugs to the package provider."
  13117. _ACEOF
  13118. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13119. ac_cs_version="\\
  13120. binutils config.status 2.25.51
  13121. configured by $0, generated by GNU Autoconf 2.64,
  13122. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13123. Copyright (C) 2009 Free Software Foundation, Inc.
  13124. This config.status script is free software; the Free Software Foundation
  13125. gives unlimited permission to copy, distribute and modify it."
  13126. ac_pwd='$ac_pwd'
  13127. srcdir='$srcdir'
  13128. INSTALL='$INSTALL'
  13129. MKDIR_P='$MKDIR_P'
  13130. AWK='$AWK'
  13131. test -n "\$AWK" || AWK=awk
  13132. _ACEOF
  13133. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13134. # The default lists apply if the user does not specify any file.
  13135. ac_need_defaults=:
  13136. while test $# != 0
  13137. do
  13138. case $1 in
  13139. --*=*)
  13140. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13141. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13142. ac_shift=:
  13143. ;;
  13144. *)
  13145. ac_option=$1
  13146. ac_optarg=$2
  13147. ac_shift=shift
  13148. ;;
  13149. esac
  13150. case $ac_option in
  13151. # Handling of the options.
  13152. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13153. ac_cs_recheck=: ;;
  13154. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13155. $as_echo "$ac_cs_version"; exit ;;
  13156. --debug | --debu | --deb | --de | --d | -d )
  13157. debug=: ;;
  13158. --file | --fil | --fi | --f )
  13159. $ac_shift
  13160. case $ac_optarg in
  13161. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13162. esac
  13163. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13164. ac_need_defaults=false;;
  13165. --header | --heade | --head | --hea )
  13166. $ac_shift
  13167. case $ac_optarg in
  13168. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13169. esac
  13170. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13171. ac_need_defaults=false;;
  13172. --he | --h)
  13173. # Conflict between --help and --header
  13174. as_fn_error "ambiguous option: \`$1'
  13175. Try \`$0 --help' for more information.";;
  13176. --help | --hel | -h )
  13177. $as_echo "$ac_cs_usage"; exit ;;
  13178. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13179. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13180. ac_cs_silent=: ;;
  13181. # This is an error.
  13182. -*) as_fn_error "unrecognized option: \`$1'
  13183. Try \`$0 --help' for more information." ;;
  13184. *) as_fn_append ac_config_targets " $1"
  13185. ac_need_defaults=false ;;
  13186. esac
  13187. shift
  13188. done
  13189. ac_configure_extra_args=
  13190. if $ac_cs_silent; then
  13191. exec 6>/dev/null
  13192. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13193. fi
  13194. _ACEOF
  13195. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13196. if \$ac_cs_recheck; then
  13197. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13198. shift
  13199. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13200. CONFIG_SHELL='$SHELL'
  13201. export CONFIG_SHELL
  13202. exec "\$@"
  13203. fi
  13204. _ACEOF
  13205. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13206. exec 5>>config.log
  13207. {
  13208. echo
  13209. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13210. ## Running $as_me. ##
  13211. _ASBOX
  13212. $as_echo "$ac_log"
  13213. } >&5
  13214. _ACEOF
  13215. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13216. #
  13217. # INIT-COMMANDS
  13218. #
  13219. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13220. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13221. # if CDPATH is set.
  13222. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13223. sed_quote_subst='$sed_quote_subst'
  13224. double_quote_subst='$double_quote_subst'
  13225. delay_variable_subst='$delay_variable_subst'
  13226. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13227. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13228. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13229. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13230. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13231. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13232. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13233. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13234. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13235. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13236. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13237. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13238. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13239. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13240. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13241. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13242. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13243. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13244. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13245. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13246. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13247. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13248. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13249. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13250. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13251. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13252. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13253. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13254. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13255. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13256. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13257. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13258. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13259. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13260. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13261. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13262. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13263. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13264. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13265. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13266. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13267. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13268. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13269. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13270. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13271. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13272. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13273. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13274. 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"`'
  13275. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13276. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13277. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13278. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13279. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13280. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13281. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13282. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13283. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13284. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13285. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13286. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13287. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13288. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13289. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13290. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13291. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13292. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13293. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13294. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13295. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13296. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13297. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13298. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13299. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13300. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13301. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13302. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13303. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13304. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13305. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13306. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  13307. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13308. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13309. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13310. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13311. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13312. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13313. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13314. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13315. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  13316. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13317. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13318. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13319. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13320. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13321. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13322. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13323. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13324. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13325. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13326. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13327. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13328. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13329. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13330. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13331. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13332. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13333. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13334. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13335. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13336. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13337. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13338. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13339. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13340. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13341. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13342. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13343. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13344. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13345. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13346. LTCC='$LTCC'
  13347. LTCFLAGS='$LTCFLAGS'
  13348. compiler='$compiler_DEFAULT'
  13349. # A function that is used when there is no print builtin or printf.
  13350. func_fallback_echo ()
  13351. {
  13352. eval 'cat <<_LTECHO_EOF
  13353. \$1
  13354. _LTECHO_EOF'
  13355. }
  13356. # Quote evaled strings.
  13357. for var in SHELL \
  13358. ECHO \
  13359. SED \
  13360. GREP \
  13361. EGREP \
  13362. FGREP \
  13363. LD \
  13364. NM \
  13365. LN_S \
  13366. lt_SP2NL \
  13367. lt_NL2SP \
  13368. reload_flag \
  13369. OBJDUMP \
  13370. deplibs_check_method \
  13371. file_magic_cmd \
  13372. AR \
  13373. AR_FLAGS \
  13374. STRIP \
  13375. RANLIB \
  13376. CC \
  13377. CFLAGS \
  13378. compiler \
  13379. lt_cv_sys_global_symbol_pipe \
  13380. lt_cv_sys_global_symbol_to_cdecl \
  13381. lt_cv_sys_global_symbol_to_c_name_address \
  13382. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13383. lt_prog_compiler_no_builtin_flag \
  13384. lt_prog_compiler_wl \
  13385. lt_prog_compiler_pic \
  13386. lt_prog_compiler_static \
  13387. lt_cv_prog_compiler_c_o \
  13388. need_locks \
  13389. DSYMUTIL \
  13390. NMEDIT \
  13391. LIPO \
  13392. OTOOL \
  13393. OTOOL64 \
  13394. shrext_cmds \
  13395. export_dynamic_flag_spec \
  13396. whole_archive_flag_spec \
  13397. compiler_needs_object \
  13398. with_gnu_ld \
  13399. allow_undefined_flag \
  13400. no_undefined_flag \
  13401. hardcode_libdir_flag_spec \
  13402. hardcode_libdir_flag_spec_ld \
  13403. hardcode_libdir_separator \
  13404. fix_srcfile_path \
  13405. exclude_expsyms \
  13406. include_expsyms \
  13407. file_list_spec \
  13408. variables_saved_for_relink \
  13409. libname_spec \
  13410. library_names_spec \
  13411. soname_spec \
  13412. install_override_mode \
  13413. finish_eval \
  13414. old_striplib \
  13415. striplib; do
  13416. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13417. *[\\\\\\\`\\"\\\$]*)
  13418. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13419. ;;
  13420. *)
  13421. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13422. ;;
  13423. esac
  13424. done
  13425. # Double-quote double-evaled strings.
  13426. for var in reload_cmds \
  13427. old_postinstall_cmds \
  13428. old_postuninstall_cmds \
  13429. old_archive_cmds \
  13430. extract_expsyms_cmds \
  13431. old_archive_from_new_cmds \
  13432. old_archive_from_expsyms_cmds \
  13433. archive_cmds \
  13434. archive_expsym_cmds \
  13435. module_cmds \
  13436. module_expsym_cmds \
  13437. export_symbols_cmds \
  13438. prelink_cmds \
  13439. postinstall_cmds \
  13440. postuninstall_cmds \
  13441. finish_cmds \
  13442. sys_lib_search_path_spec \
  13443. sys_lib_dlsearch_path_spec; do
  13444. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13445. *[\\\\\\\`\\"\\\$]*)
  13446. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13447. ;;
  13448. *)
  13449. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13450. ;;
  13451. esac
  13452. done
  13453. ac_aux_dir='$ac_aux_dir'
  13454. xsi_shell='$xsi_shell'
  13455. lt_shell_append='$lt_shell_append'
  13456. # See if we are running on zsh, and set the options which allow our
  13457. # commands through without removal of \ escapes INIT.
  13458. if test -n "\${ZSH_VERSION+set}" ; then
  13459. setopt NO_GLOB_SUBST
  13460. fi
  13461. PACKAGE='$PACKAGE'
  13462. VERSION='$VERSION'
  13463. TIMESTAMP='$TIMESTAMP'
  13464. RM='$RM'
  13465. ofile='$ofile'
  13466. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  13467. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  13468. # from automake.
  13469. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  13470. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  13471. LINGUAS="${LINGUAS-%UNSET%}"
  13472. _ACEOF
  13473. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13474. # Handling of arguments.
  13475. for ac_config_target in $ac_config_targets
  13476. do
  13477. case $ac_config_target in
  13478. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13479. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13480. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  13481. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  13482. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13483. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13484. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
  13485. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13486. esac
  13487. done
  13488. # If the user did not use the arguments to specify the items to instantiate,
  13489. # then the envvar interface is used. Set only those that are not.
  13490. # We use the long form for the default assignment because of an extremely
  13491. # bizarre bug on SunOS 4.1.3.
  13492. if $ac_need_defaults; then
  13493. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13494. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13495. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13496. fi
  13497. # Have a temporary directory for convenience. Make it in the build tree
  13498. # simply because there is no reason against having it here, and in addition,
  13499. # creating and moving files from /tmp can sometimes cause problems.
  13500. # Hook for its removal unless debugging.
  13501. # Note that there is a small window in which the directory will not be cleaned:
  13502. # after its creation but before its name has been assigned to `$tmp'.
  13503. $debug ||
  13504. {
  13505. tmp=
  13506. trap 'exit_status=$?
  13507. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13508. ' 0
  13509. trap 'as_fn_exit 1' 1 2 13 15
  13510. }
  13511. # Create a (secure) tmp directory for tmp files.
  13512. {
  13513. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13514. test -n "$tmp" && test -d "$tmp"
  13515. } ||
  13516. {
  13517. tmp=./conf$$-$RANDOM
  13518. (umask 077 && mkdir "$tmp")
  13519. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13520. # Set up the scripts for CONFIG_FILES section.
  13521. # No need to generate them if there are no CONFIG_FILES.
  13522. # This happens for instance with `./config.status config.h'.
  13523. if test -n "$CONFIG_FILES"; then
  13524. ac_cr=`echo X | tr X '\015'`
  13525. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13526. # But we know of no other shell where ac_cr would be empty at this
  13527. # point, so we can use a bashism as a fallback.
  13528. if test "x$ac_cr" = x; then
  13529. eval ac_cr=\$\'\\r\'
  13530. fi
  13531. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13532. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13533. ac_cs_awk_cr='\r'
  13534. else
  13535. ac_cs_awk_cr=$ac_cr
  13536. fi
  13537. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13538. _ACEOF
  13539. {
  13540. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13541. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13542. echo "_ACEOF"
  13543. } >conf$$subs.sh ||
  13544. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13545. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13546. ac_delim='%!_!# '
  13547. for ac_last_try in false false false false false :; do
  13548. . ./conf$$subs.sh ||
  13549. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13550. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13551. if test $ac_delim_n = $ac_delim_num; then
  13552. break
  13553. elif $ac_last_try; then
  13554. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13555. else
  13556. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13557. fi
  13558. done
  13559. rm -f conf$$subs.sh
  13560. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13561. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13562. _ACEOF
  13563. sed -n '
  13564. h
  13565. s/^/S["/; s/!.*/"]=/
  13566. p
  13567. g
  13568. s/^[^!]*!//
  13569. :repl
  13570. t repl
  13571. s/'"$ac_delim"'$//
  13572. t delim
  13573. :nl
  13574. h
  13575. s/\(.\{148\}\).*/\1/
  13576. t more1
  13577. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13578. p
  13579. n
  13580. b repl
  13581. :more1
  13582. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13583. p
  13584. g
  13585. s/.\{148\}//
  13586. t nl
  13587. :delim
  13588. h
  13589. s/\(.\{148\}\).*/\1/
  13590. t more2
  13591. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13592. p
  13593. b
  13594. :more2
  13595. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13596. p
  13597. g
  13598. s/.\{148\}//
  13599. t delim
  13600. ' <conf$$subs.awk | sed '
  13601. /^[^""]/{
  13602. N
  13603. s/\n//
  13604. }
  13605. ' >>$CONFIG_STATUS || ac_write_fail=1
  13606. rm -f conf$$subs.awk
  13607. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13608. _ACAWK
  13609. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13610. for (key in S) S_is_set[key] = 1
  13611. FS = ""
  13612. }
  13613. {
  13614. line = $ 0
  13615. nfields = split(line, field, "@")
  13616. substed = 0
  13617. len = length(field[1])
  13618. for (i = 2; i < nfields; i++) {
  13619. key = field[i]
  13620. keylen = length(key)
  13621. if (S_is_set[key]) {
  13622. value = S[key]
  13623. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13624. len += length(value) + length(field[++i])
  13625. substed = 1
  13626. } else
  13627. len += 1 + keylen
  13628. }
  13629. print line
  13630. }
  13631. _ACAWK
  13632. _ACEOF
  13633. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13634. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13635. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13636. else
  13637. cat
  13638. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13639. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13640. _ACEOF
  13641. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13642. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13643. # trailing colons and then remove the whole line if VPATH becomes empty
  13644. # (actually we leave an empty line to preserve line numbers).
  13645. if test "x$srcdir" = x.; then
  13646. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13647. s/:*\$(srcdir):*/:/
  13648. s/:*\${srcdir}:*/:/
  13649. s/:*@srcdir@:*/:/
  13650. s/^\([^=]*=[ ]*\):*/\1/
  13651. s/:*$//
  13652. s/^[^=]*=[ ]*$//
  13653. }'
  13654. fi
  13655. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13656. fi # test -n "$CONFIG_FILES"
  13657. # Set up the scripts for CONFIG_HEADERS section.
  13658. # No need to generate them if there are no CONFIG_HEADERS.
  13659. # This happens for instance with `./config.status Makefile'.
  13660. if test -n "$CONFIG_HEADERS"; then
  13661. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13662. BEGIN {
  13663. _ACEOF
  13664. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13665. # here-document in config.status, that substitutes the proper values into
  13666. # config.h.in to produce config.h.
  13667. # Create a delimiter string that does not exist in confdefs.h, to ease
  13668. # handling of long lines.
  13669. ac_delim='%!_!# '
  13670. for ac_last_try in false false :; do
  13671. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13672. if test -z "$ac_t"; then
  13673. break
  13674. elif $ac_last_try; then
  13675. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  13676. else
  13677. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13678. fi
  13679. done
  13680. # For the awk script, D is an array of macro values keyed by name,
  13681. # likewise P contains macro parameters if any. Preserve backslash
  13682. # newline sequences.
  13683. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13684. sed -n '
  13685. s/.\{148\}/&'"$ac_delim"'/g
  13686. t rset
  13687. :rset
  13688. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13689. t def
  13690. d
  13691. :def
  13692. s/\\$//
  13693. t bsnl
  13694. s/["\\]/\\&/g
  13695. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13696. D["\1"]=" \3"/p
  13697. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13698. d
  13699. :bsnl
  13700. s/["\\]/\\&/g
  13701. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13702. D["\1"]=" \3\\\\\\n"\\/p
  13703. t cont
  13704. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13705. t cont
  13706. d
  13707. :cont
  13708. n
  13709. s/.\{148\}/&'"$ac_delim"'/g
  13710. t clear
  13711. :clear
  13712. s/\\$//
  13713. t bsnlc
  13714. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13715. d
  13716. :bsnlc
  13717. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13718. b cont
  13719. ' <confdefs.h | sed '
  13720. s/'"$ac_delim"'/"\\\
  13721. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13722. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13723. for (key in D) D_is_set[key] = 1
  13724. FS = ""
  13725. }
  13726. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13727. line = \$ 0
  13728. split(line, arg, " ")
  13729. if (arg[1] == "#") {
  13730. defundef = arg[2]
  13731. mac1 = arg[3]
  13732. } else {
  13733. defundef = substr(arg[1], 2)
  13734. mac1 = arg[2]
  13735. }
  13736. split(mac1, mac2, "(") #)
  13737. macro = mac2[1]
  13738. prefix = substr(line, 1, index(line, defundef) - 1)
  13739. if (D_is_set[macro]) {
  13740. # Preserve the white space surrounding the "#".
  13741. print prefix "define", macro P[macro] D[macro]
  13742. next
  13743. } else {
  13744. # Replace #undef with comments. This is necessary, for example,
  13745. # in the case of _POSIX_SOURCE, which is predefined and required
  13746. # on some systems where configure will not decide to define it.
  13747. if (defundef == "undef") {
  13748. print "/*", prefix defundef, macro, "*/"
  13749. next
  13750. }
  13751. }
  13752. }
  13753. { print }
  13754. _ACAWK
  13755. _ACEOF
  13756. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13757. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  13758. fi # test -n "$CONFIG_HEADERS"
  13759. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13760. shift
  13761. for ac_tag
  13762. do
  13763. case $ac_tag in
  13764. :[FHLC]) ac_mode=$ac_tag; continue;;
  13765. esac
  13766. case $ac_mode$ac_tag in
  13767. :[FHL]*:*);;
  13768. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13769. :[FH]-) ac_tag=-:-;;
  13770. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13771. esac
  13772. ac_save_IFS=$IFS
  13773. IFS=:
  13774. set x $ac_tag
  13775. IFS=$ac_save_IFS
  13776. shift
  13777. ac_file=$1
  13778. shift
  13779. case $ac_mode in
  13780. :L) ac_source=$1;;
  13781. :[FH])
  13782. ac_file_inputs=
  13783. for ac_f
  13784. do
  13785. case $ac_f in
  13786. -) ac_f="$tmp/stdin";;
  13787. *) # Look for the file first in the build tree, then in the source tree
  13788. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13789. # because $ac_f cannot contain `:'.
  13790. test -f "$ac_f" ||
  13791. case $ac_f in
  13792. [\\/$]*) false;;
  13793. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13794. esac ||
  13795. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13796. esac
  13797. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13798. as_fn_append ac_file_inputs " '$ac_f'"
  13799. done
  13800. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13801. # use $as_me), people would be surprised to read:
  13802. # /* config.h. Generated by config.status. */
  13803. configure_input='Generated from '`
  13804. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13805. `' by configure.'
  13806. if test x"$ac_file" != x-; then
  13807. configure_input="$ac_file. $configure_input"
  13808. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13809. $as_echo "$as_me: creating $ac_file" >&6;}
  13810. fi
  13811. # Neutralize special characters interpreted by sed in replacement strings.
  13812. case $configure_input in #(
  13813. *\&* | *\|* | *\\* )
  13814. ac_sed_conf_input=`$as_echo "$configure_input" |
  13815. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13816. *) ac_sed_conf_input=$configure_input;;
  13817. esac
  13818. case $ac_tag in
  13819. *:-:* | *:-) cat >"$tmp/stdin" \
  13820. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13821. esac
  13822. ;;
  13823. esac
  13824. ac_dir=`$as_dirname -- "$ac_file" ||
  13825. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13826. X"$ac_file" : 'X\(//\)[^/]' \| \
  13827. X"$ac_file" : 'X\(//\)$' \| \
  13828. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13829. $as_echo X"$ac_file" |
  13830. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13831. s//\1/
  13832. q
  13833. }
  13834. /^X\(\/\/\)[^/].*/{
  13835. s//\1/
  13836. q
  13837. }
  13838. /^X\(\/\/\)$/{
  13839. s//\1/
  13840. q
  13841. }
  13842. /^X\(\/\).*/{
  13843. s//\1/
  13844. q
  13845. }
  13846. s/.*/./; q'`
  13847. as_dir="$ac_dir"; as_fn_mkdir_p
  13848. ac_builddir=.
  13849. case "$ac_dir" in
  13850. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13851. *)
  13852. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13853. # A ".." for each directory in $ac_dir_suffix.
  13854. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13855. case $ac_top_builddir_sub in
  13856. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13857. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13858. esac ;;
  13859. esac
  13860. ac_abs_top_builddir=$ac_pwd
  13861. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13862. # for backward compatibility:
  13863. ac_top_builddir=$ac_top_build_prefix
  13864. case $srcdir in
  13865. .) # We are building in place.
  13866. ac_srcdir=.
  13867. ac_top_srcdir=$ac_top_builddir_sub
  13868. ac_abs_top_srcdir=$ac_pwd ;;
  13869. [\\/]* | ?:[\\/]* ) # Absolute name.
  13870. ac_srcdir=$srcdir$ac_dir_suffix;
  13871. ac_top_srcdir=$srcdir
  13872. ac_abs_top_srcdir=$srcdir ;;
  13873. *) # Relative name.
  13874. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13875. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13876. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13877. esac
  13878. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13879. case $ac_mode in
  13880. :F)
  13881. #
  13882. # CONFIG_FILE
  13883. #
  13884. case $INSTALL in
  13885. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13886. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13887. esac
  13888. ac_MKDIR_P=$MKDIR_P
  13889. case $MKDIR_P in
  13890. [\\/$]* | ?:[\\/]* ) ;;
  13891. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13892. esac
  13893. _ACEOF
  13894. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13895. # If the template does not know about datarootdir, expand it.
  13896. # FIXME: This hack should be removed a few years after 2.60.
  13897. ac_datarootdir_hack=; ac_datarootdir_seen=
  13898. ac_sed_dataroot='
  13899. /datarootdir/ {
  13900. p
  13901. q
  13902. }
  13903. /@datadir@/p
  13904. /@docdir@/p
  13905. /@infodir@/p
  13906. /@localedir@/p
  13907. /@mandir@/p'
  13908. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13909. *datarootdir*) ac_datarootdir_seen=yes;;
  13910. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13911. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13912. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13913. _ACEOF
  13914. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13915. ac_datarootdir_hack='
  13916. s&@datadir@&$datadir&g
  13917. s&@docdir@&$docdir&g
  13918. s&@infodir@&$infodir&g
  13919. s&@localedir@&$localedir&g
  13920. s&@mandir@&$mandir&g
  13921. s&\\\${datarootdir}&$datarootdir&g' ;;
  13922. esac
  13923. _ACEOF
  13924. # Neutralize VPATH when `$srcdir' = `.'.
  13925. # Shell code in configure.ac might set extrasub.
  13926. # FIXME: do we really want to maintain this feature?
  13927. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13928. ac_sed_extra="$ac_vpsub
  13929. $extrasub
  13930. _ACEOF
  13931. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13932. :t
  13933. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13934. s|@configure_input@|$ac_sed_conf_input|;t t
  13935. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13936. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13937. s&@srcdir@&$ac_srcdir&;t t
  13938. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13939. s&@top_srcdir@&$ac_top_srcdir&;t t
  13940. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13941. s&@builddir@&$ac_builddir&;t t
  13942. s&@abs_builddir@&$ac_abs_builddir&;t t
  13943. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13944. s&@INSTALL@&$ac_INSTALL&;t t
  13945. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13946. $ac_datarootdir_hack
  13947. "
  13948. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13949. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13950. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13951. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13952. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13954. which seems to be undefined. Please make sure it is defined." >&5
  13955. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13956. which seems to be undefined. Please make sure it is defined." >&2;}
  13957. rm -f "$tmp/stdin"
  13958. case $ac_file in
  13959. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13960. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13961. esac \
  13962. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13963. ;;
  13964. :H)
  13965. #
  13966. # CONFIG_HEADER
  13967. #
  13968. if test x"$ac_file" != x-; then
  13969. {
  13970. $as_echo "/* $configure_input */" \
  13971. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13972. } >"$tmp/config.h" \
  13973. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13974. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13975. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13976. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13977. else
  13978. rm -f "$ac_file"
  13979. mv "$tmp/config.h" "$ac_file" \
  13980. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13981. fi
  13982. else
  13983. $as_echo "/* $configure_input */" \
  13984. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13985. || as_fn_error "could not create -" "$LINENO" 5
  13986. fi
  13987. # Compute "$ac_file"'s index in $config_headers.
  13988. _am_arg="$ac_file"
  13989. _am_stamp_count=1
  13990. for _am_header in $config_headers :; do
  13991. case $_am_header in
  13992. $_am_arg | $_am_arg:* )
  13993. break ;;
  13994. * )
  13995. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13996. esac
  13997. done
  13998. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13999. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14000. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14001. X"$_am_arg" : 'X\(//\)$' \| \
  14002. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14003. $as_echo X"$_am_arg" |
  14004. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14005. s//\1/
  14006. q
  14007. }
  14008. /^X\(\/\/\)[^/].*/{
  14009. s//\1/
  14010. q
  14011. }
  14012. /^X\(\/\/\)$/{
  14013. s//\1/
  14014. q
  14015. }
  14016. /^X\(\/\).*/{
  14017. s//\1/
  14018. q
  14019. }
  14020. s/.*/./; q'`/stamp-h$_am_stamp_count
  14021. ;;
  14022. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14023. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14024. ;;
  14025. esac
  14026. case $ac_file$ac_mode in
  14027. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14028. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14029. # are listed without --file. Let's play safe and only enable the eval
  14030. # if we detect the quoting.
  14031. case $CONFIG_FILES in
  14032. *\'*) eval set x "$CONFIG_FILES" ;;
  14033. *) set x $CONFIG_FILES ;;
  14034. esac
  14035. shift
  14036. for mf
  14037. do
  14038. # Strip MF so we end up with the name of the file.
  14039. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14040. # Check whether this is an Automake generated Makefile or not.
  14041. # We used to match only the files named `Makefile.in', but
  14042. # some people rename them; so instead we look at the file content.
  14043. # Grep'ing the first line is not enough: some people post-process
  14044. # each Makefile.in and add a new line on top of each file to say so.
  14045. # Grep'ing the whole file is not good either: AIX grep has a line
  14046. # limit of 2048, but all sed's we know have understand at least 4000.
  14047. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14048. dirpart=`$as_dirname -- "$mf" ||
  14049. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14050. X"$mf" : 'X\(//\)[^/]' \| \
  14051. X"$mf" : 'X\(//\)$' \| \
  14052. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14053. $as_echo X"$mf" |
  14054. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14055. s//\1/
  14056. q
  14057. }
  14058. /^X\(\/\/\)[^/].*/{
  14059. s//\1/
  14060. q
  14061. }
  14062. /^X\(\/\/\)$/{
  14063. s//\1/
  14064. q
  14065. }
  14066. /^X\(\/\).*/{
  14067. s//\1/
  14068. q
  14069. }
  14070. s/.*/./; q'`
  14071. else
  14072. continue
  14073. fi
  14074. # Extract the definition of DEPDIR, am__include, and am__quote
  14075. # from the Makefile without running `make'.
  14076. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14077. test -z "$DEPDIR" && continue
  14078. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14079. test -z "am__include" && continue
  14080. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14081. # When using ansi2knr, U may be empty or an underscore; expand it
  14082. U=`sed -n 's/^U = //p' < "$mf"`
  14083. # Find all dependency output files, they are included files with
  14084. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14085. # simplest approach to changing $(DEPDIR) to its actual value in the
  14086. # expansion.
  14087. for file in `sed -n "
  14088. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14089. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14090. # Make sure the directory exists.
  14091. test -f "$dirpart/$file" && continue
  14092. fdir=`$as_dirname -- "$file" ||
  14093. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14094. X"$file" : 'X\(//\)[^/]' \| \
  14095. X"$file" : 'X\(//\)$' \| \
  14096. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14097. $as_echo X"$file" |
  14098. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14099. s//\1/
  14100. q
  14101. }
  14102. /^X\(\/\/\)[^/].*/{
  14103. s//\1/
  14104. q
  14105. }
  14106. /^X\(\/\/\)$/{
  14107. s//\1/
  14108. q
  14109. }
  14110. /^X\(\/\).*/{
  14111. s//\1/
  14112. q
  14113. }
  14114. s/.*/./; q'`
  14115. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14116. # echo "creating $dirpart/$file"
  14117. echo '# dummy' > "$dirpart/$file"
  14118. done
  14119. done
  14120. }
  14121. ;;
  14122. "libtool":C)
  14123. # See if we are running on zsh, and set the options which allow our
  14124. # commands through without removal of \ escapes.
  14125. if test -n "${ZSH_VERSION+set}" ; then
  14126. setopt NO_GLOB_SUBST
  14127. fi
  14128. cfgfile="${ofile}T"
  14129. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14130. $RM "$cfgfile"
  14131. cat <<_LT_EOF >> "$cfgfile"
  14132. #! $SHELL
  14133. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14134. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14135. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14136. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14137. #
  14138. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14139. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14140. # Written by Gordon Matzigkeit, 1996
  14141. #
  14142. # This file is part of GNU Libtool.
  14143. #
  14144. # GNU Libtool is free software; you can redistribute it and/or
  14145. # modify it under the terms of the GNU General Public License as
  14146. # published by the Free Software Foundation; either version 2 of
  14147. # the License, or (at your option) any later version.
  14148. #
  14149. # As a special exception to the GNU General Public License,
  14150. # if you distribute this file as part of a program or library that
  14151. # is built using GNU Libtool, you may include this file under the
  14152. # same distribution terms that you use for the rest of that program.
  14153. #
  14154. # GNU Libtool is distributed in the hope that it will be useful,
  14155. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14156. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14157. # GNU General Public License for more details.
  14158. #
  14159. # You should have received a copy of the GNU General Public License
  14160. # along with GNU Libtool; see the file COPYING. If not, a copy
  14161. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14162. # obtained by writing to the Free Software Foundation, Inc.,
  14163. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14164. # The names of the tagged configurations supported by this script.
  14165. available_tags=""
  14166. # ### BEGIN LIBTOOL CONFIG
  14167. # Which release of libtool.m4 was used?
  14168. macro_version=$macro_version
  14169. macro_revision=$macro_revision
  14170. # Whether or not to build shared libraries.
  14171. build_libtool_libs=$enable_shared
  14172. # Whether or not to build static libraries.
  14173. build_old_libs=$enable_static
  14174. # What type of objects to build.
  14175. pic_mode=$pic_mode
  14176. # Whether or not to optimize for fast installation.
  14177. fast_install=$enable_fast_install
  14178. # Shell to use when invoking shell scripts.
  14179. SHELL=$lt_SHELL
  14180. # An echo program that protects backslashes.
  14181. ECHO=$lt_ECHO
  14182. # The host system.
  14183. host_alias=$host_alias
  14184. host=$host
  14185. host_os=$host_os
  14186. # The build system.
  14187. build_alias=$build_alias
  14188. build=$build
  14189. build_os=$build_os
  14190. # A sed program that does not truncate output.
  14191. SED=$lt_SED
  14192. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14193. Xsed="\$SED -e 1s/^X//"
  14194. # A grep program that handles long lines.
  14195. GREP=$lt_GREP
  14196. # An ERE matcher.
  14197. EGREP=$lt_EGREP
  14198. # A literal string matcher.
  14199. FGREP=$lt_FGREP
  14200. # A BSD- or MS-compatible name lister.
  14201. NM=$lt_NM
  14202. # Whether we need soft or hard links.
  14203. LN_S=$lt_LN_S
  14204. # What is the maximum length of a command?
  14205. max_cmd_len=$max_cmd_len
  14206. # Object file suffix (normally "o").
  14207. objext=$ac_objext
  14208. # Executable file suffix (normally "").
  14209. exeext=$exeext
  14210. # whether the shell understands "unset".
  14211. lt_unset=$lt_unset
  14212. # turn spaces into newlines.
  14213. SP2NL=$lt_lt_SP2NL
  14214. # turn newlines into spaces.
  14215. NL2SP=$lt_lt_NL2SP
  14216. # An object symbol dumper.
  14217. OBJDUMP=$lt_OBJDUMP
  14218. # Method to check whether dependent libraries are shared objects.
  14219. deplibs_check_method=$lt_deplibs_check_method
  14220. # Command to use when deplibs_check_method == "file_magic".
  14221. file_magic_cmd=$lt_file_magic_cmd
  14222. # The archiver.
  14223. AR=$lt_AR
  14224. AR_FLAGS=$lt_AR_FLAGS
  14225. # A symbol stripping program.
  14226. STRIP=$lt_STRIP
  14227. # Commands used to install an old-style archive.
  14228. RANLIB=$lt_RANLIB
  14229. old_postinstall_cmds=$lt_old_postinstall_cmds
  14230. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14231. # Whether to use a lock for old archive extraction.
  14232. lock_old_archive_extraction=$lock_old_archive_extraction
  14233. # A C compiler.
  14234. LTCC=$lt_CC
  14235. # LTCC compiler flags.
  14236. LTCFLAGS=$lt_CFLAGS
  14237. # Take the output of nm and produce a listing of raw symbols and C names.
  14238. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14239. # Transform the output of nm in a proper C declaration.
  14240. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14241. # Transform the output of nm in a C name address pair.
  14242. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14243. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14244. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14245. # The name of the directory that contains temporary libtool files.
  14246. objdir=$objdir
  14247. # Used to examine libraries when file_magic_cmd begins with "file".
  14248. MAGIC_CMD=$MAGIC_CMD
  14249. # Must we lock files when doing compilation?
  14250. need_locks=$lt_need_locks
  14251. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14252. DSYMUTIL=$lt_DSYMUTIL
  14253. # Tool to change global to local symbols on Mac OS X.
  14254. NMEDIT=$lt_NMEDIT
  14255. # Tool to manipulate fat objects and archives on Mac OS X.
  14256. LIPO=$lt_LIPO
  14257. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14258. OTOOL=$lt_OTOOL
  14259. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14260. OTOOL64=$lt_OTOOL64
  14261. # Old archive suffix (normally "a").
  14262. libext=$libext
  14263. # Shared library suffix (normally ".so").
  14264. shrext_cmds=$lt_shrext_cmds
  14265. # The commands to extract the exported symbol list from a shared archive.
  14266. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14267. # Variables whose values should be saved in libtool wrapper scripts and
  14268. # restored at link time.
  14269. variables_saved_for_relink=$lt_variables_saved_for_relink
  14270. # Do we need the "lib" prefix for modules?
  14271. need_lib_prefix=$need_lib_prefix
  14272. # Do we need a version for libraries?
  14273. need_version=$need_version
  14274. # Library versioning type.
  14275. version_type=$version_type
  14276. # Shared library runtime path variable.
  14277. runpath_var=$runpath_var
  14278. # Shared library path variable.
  14279. shlibpath_var=$shlibpath_var
  14280. # Is shlibpath searched before the hard-coded library search path?
  14281. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14282. # Format of library name prefix.
  14283. libname_spec=$lt_libname_spec
  14284. # List of archive names. First name is the real one, the rest are links.
  14285. # The last name is the one that the linker finds with -lNAME
  14286. library_names_spec=$lt_library_names_spec
  14287. # The coded name of the library, if different from the real name.
  14288. soname_spec=$lt_soname_spec
  14289. # Permission mode override for installation of shared libraries.
  14290. install_override_mode=$lt_install_override_mode
  14291. # Command to use after installation of a shared archive.
  14292. postinstall_cmds=$lt_postinstall_cmds
  14293. # Command to use after uninstallation of a shared archive.
  14294. postuninstall_cmds=$lt_postuninstall_cmds
  14295. # Commands used to finish a libtool library installation in a directory.
  14296. finish_cmds=$lt_finish_cmds
  14297. # As "finish_cmds", except a single script fragment to be evaled but
  14298. # not shown.
  14299. finish_eval=$lt_finish_eval
  14300. # Whether we should hardcode library paths into libraries.
  14301. hardcode_into_libs=$hardcode_into_libs
  14302. # Compile-time system search path for libraries.
  14303. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14304. # Run-time system search path for libraries.
  14305. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14306. # Whether dlopen is supported.
  14307. dlopen_support=$enable_dlopen
  14308. # Whether dlopen of programs is supported.
  14309. dlopen_self=$enable_dlopen_self
  14310. # Whether dlopen of statically linked programs is supported.
  14311. dlopen_self_static=$enable_dlopen_self_static
  14312. # Commands to strip libraries.
  14313. old_striplib=$lt_old_striplib
  14314. striplib=$lt_striplib
  14315. # The linker used to build libraries.
  14316. LD=$lt_LD
  14317. # How to create reloadable object files.
  14318. reload_flag=$lt_reload_flag
  14319. reload_cmds=$lt_reload_cmds
  14320. # Commands used to build an old-style archive.
  14321. old_archive_cmds=$lt_old_archive_cmds
  14322. # A language specific compiler.
  14323. CC=$lt_compiler
  14324. # Is the compiler the GNU compiler?
  14325. with_gcc=$GCC
  14326. # Compiler flag to turn off builtin functions.
  14327. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14328. # How to pass a linker flag through the compiler.
  14329. wl=$lt_lt_prog_compiler_wl
  14330. # Additional compiler flags for building library objects.
  14331. pic_flag=$lt_lt_prog_compiler_pic
  14332. # Compiler flag to prevent dynamic linking.
  14333. link_static_flag=$lt_lt_prog_compiler_static
  14334. # Does compiler simultaneously support -c and -o options?
  14335. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14336. # Whether or not to add -lc for building shared libraries.
  14337. build_libtool_need_lc=$archive_cmds_need_lc
  14338. # Whether or not to disallow shared libs when runtime libs are static.
  14339. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14340. # Compiler flag to allow reflexive dlopens.
  14341. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14342. # Compiler flag to generate shared objects directly from archives.
  14343. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14344. # Whether the compiler copes with passing no objects directly.
  14345. compiler_needs_object=$lt_compiler_needs_object
  14346. # Create an old-style archive from a shared archive.
  14347. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14348. # Create a temporary old-style archive to link instead of a shared archive.
  14349. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14350. # Commands used to build a shared archive.
  14351. archive_cmds=$lt_archive_cmds
  14352. archive_expsym_cmds=$lt_archive_expsym_cmds
  14353. # Commands used to build a loadable module if different from building
  14354. # a shared archive.
  14355. module_cmds=$lt_module_cmds
  14356. module_expsym_cmds=$lt_module_expsym_cmds
  14357. # Whether we are building with GNU ld or not.
  14358. with_gnu_ld=$lt_with_gnu_ld
  14359. # Flag that allows shared libraries with undefined symbols to be built.
  14360. allow_undefined_flag=$lt_allow_undefined_flag
  14361. # Flag that enforces no undefined symbols.
  14362. no_undefined_flag=$lt_no_undefined_flag
  14363. # Flag to hardcode \$libdir into a binary during linking.
  14364. # This must work even if \$libdir does not exist
  14365. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14366. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14367. # during linking. This must work even if \$libdir does not exist.
  14368. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14369. # Whether we need a single "-rpath" flag with a separated argument.
  14370. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14371. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14372. # DIR into the resulting binary.
  14373. hardcode_direct=$hardcode_direct
  14374. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14375. # DIR into the resulting binary and the resulting library dependency is
  14376. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14377. # library is relocated.
  14378. hardcode_direct_absolute=$hardcode_direct_absolute
  14379. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14380. # into the resulting binary.
  14381. hardcode_minus_L=$hardcode_minus_L
  14382. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14383. # into the resulting binary.
  14384. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14385. # Set to "yes" if building a shared library automatically hardcodes DIR
  14386. # into the library and all subsequent libraries and executables linked
  14387. # against it.
  14388. hardcode_automatic=$hardcode_automatic
  14389. # Set to yes if linker adds runtime paths of dependent libraries
  14390. # to runtime path list.
  14391. inherit_rpath=$inherit_rpath
  14392. # Whether libtool must link a program against all its dependency libraries.
  14393. link_all_deplibs=$link_all_deplibs
  14394. # Fix the shell variable \$srcfile for the compiler.
  14395. fix_srcfile_path=$lt_fix_srcfile_path
  14396. # Set to "yes" if exported symbols are required.
  14397. always_export_symbols=$always_export_symbols
  14398. # The commands to list exported symbols.
  14399. export_symbols_cmds=$lt_export_symbols_cmds
  14400. # Symbols that should not be listed in the preloaded symbols.
  14401. exclude_expsyms=$lt_exclude_expsyms
  14402. # Symbols that must always be exported.
  14403. include_expsyms=$lt_include_expsyms
  14404. # Commands necessary for linking programs (against libraries) with templates.
  14405. prelink_cmds=$lt_prelink_cmds
  14406. # Specify filename containing input files.
  14407. file_list_spec=$lt_file_list_spec
  14408. # How to hardcode a shared library path into an executable.
  14409. hardcode_action=$hardcode_action
  14410. # ### END LIBTOOL CONFIG
  14411. _LT_EOF
  14412. case $host_os in
  14413. aix3*)
  14414. cat <<\_LT_EOF >> "$cfgfile"
  14415. # AIX sometimes has problems with the GCC collect2 program. For some
  14416. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14417. # vanish in a puff of smoke.
  14418. if test "X${COLLECT_NAMES+set}" != Xset; then
  14419. COLLECT_NAMES=
  14420. export COLLECT_NAMES
  14421. fi
  14422. _LT_EOF
  14423. ;;
  14424. esac
  14425. ltmain="$ac_aux_dir/ltmain.sh"
  14426. # We use sed instead of cat because bash on DJGPP gets confused if
  14427. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14428. # text mode, it properly converts lines to CR/LF. This bash problem
  14429. # is reportedly fixed, but why not run on old versions too?
  14430. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14431. || (rm -f "$cfgfile"; exit 1)
  14432. case $xsi_shell in
  14433. yes)
  14434. cat << \_LT_EOF >> "$cfgfile"
  14435. # func_dirname file append nondir_replacement
  14436. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14437. # otherwise set result to NONDIR_REPLACEMENT.
  14438. func_dirname ()
  14439. {
  14440. case ${1} in
  14441. */*) func_dirname_result="${1%/*}${2}" ;;
  14442. * ) func_dirname_result="${3}" ;;
  14443. esac
  14444. }
  14445. # func_basename file
  14446. func_basename ()
  14447. {
  14448. func_basename_result="${1##*/}"
  14449. }
  14450. # func_dirname_and_basename file append nondir_replacement
  14451. # perform func_basename and func_dirname in a single function
  14452. # call:
  14453. # dirname: Compute the dirname of FILE. If nonempty,
  14454. # add APPEND to the result, otherwise set result
  14455. # to NONDIR_REPLACEMENT.
  14456. # value returned in "$func_dirname_result"
  14457. # basename: Compute filename of FILE.
  14458. # value retuned in "$func_basename_result"
  14459. # Implementation must be kept synchronized with func_dirname
  14460. # and func_basename. For efficiency, we do not delegate to
  14461. # those functions but instead duplicate the functionality here.
  14462. func_dirname_and_basename ()
  14463. {
  14464. case ${1} in
  14465. */*) func_dirname_result="${1%/*}${2}" ;;
  14466. * ) func_dirname_result="${3}" ;;
  14467. esac
  14468. func_basename_result="${1##*/}"
  14469. }
  14470. # func_stripname prefix suffix name
  14471. # strip PREFIX and SUFFIX off of NAME.
  14472. # PREFIX and SUFFIX must not contain globbing or regex special
  14473. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14474. # dot (in which case that matches only a dot).
  14475. func_stripname ()
  14476. {
  14477. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14478. # positional parameters, so assign one to ordinary parameter first.
  14479. func_stripname_result=${3}
  14480. func_stripname_result=${func_stripname_result#"${1}"}
  14481. func_stripname_result=${func_stripname_result%"${2}"}
  14482. }
  14483. # func_opt_split
  14484. func_opt_split ()
  14485. {
  14486. func_opt_split_opt=${1%%=*}
  14487. func_opt_split_arg=${1#*=}
  14488. }
  14489. # func_lo2o object
  14490. func_lo2o ()
  14491. {
  14492. case ${1} in
  14493. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14494. *) func_lo2o_result=${1} ;;
  14495. esac
  14496. }
  14497. # func_xform libobj-or-source
  14498. func_xform ()
  14499. {
  14500. func_xform_result=${1%.*}.lo
  14501. }
  14502. # func_arith arithmetic-term...
  14503. func_arith ()
  14504. {
  14505. func_arith_result=$(( $* ))
  14506. }
  14507. # func_len string
  14508. # STRING may not start with a hyphen.
  14509. func_len ()
  14510. {
  14511. func_len_result=${#1}
  14512. }
  14513. _LT_EOF
  14514. ;;
  14515. *) # Bourne compatible functions.
  14516. cat << \_LT_EOF >> "$cfgfile"
  14517. # func_dirname file append nondir_replacement
  14518. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14519. # otherwise set result to NONDIR_REPLACEMENT.
  14520. func_dirname ()
  14521. {
  14522. # Extract subdirectory from the argument.
  14523. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  14524. if test "X$func_dirname_result" = "X${1}"; then
  14525. func_dirname_result="${3}"
  14526. else
  14527. func_dirname_result="$func_dirname_result${2}"
  14528. fi
  14529. }
  14530. # func_basename file
  14531. func_basename ()
  14532. {
  14533. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  14534. }
  14535. # func_stripname prefix suffix name
  14536. # strip PREFIX and SUFFIX off of NAME.
  14537. # PREFIX and SUFFIX must not contain globbing or regex special
  14538. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14539. # dot (in which case that matches only a dot).
  14540. # func_strip_suffix prefix name
  14541. func_stripname ()
  14542. {
  14543. case ${2} in
  14544. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  14545. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  14546. esac
  14547. }
  14548. # sed scripts:
  14549. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14550. my_sed_long_arg='1s/^-[^=]*=//'
  14551. # func_opt_split
  14552. func_opt_split ()
  14553. {
  14554. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  14555. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  14556. }
  14557. # func_lo2o object
  14558. func_lo2o ()
  14559. {
  14560. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  14561. }
  14562. # func_xform libobj-or-source
  14563. func_xform ()
  14564. {
  14565. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  14566. }
  14567. # func_arith arithmetic-term...
  14568. func_arith ()
  14569. {
  14570. func_arith_result=`expr "$@"`
  14571. }
  14572. # func_len string
  14573. # STRING may not start with a hyphen.
  14574. func_len ()
  14575. {
  14576. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14577. }
  14578. _LT_EOF
  14579. esac
  14580. case $lt_shell_append in
  14581. yes)
  14582. cat << \_LT_EOF >> "$cfgfile"
  14583. # func_append var value
  14584. # Append VALUE to the end of shell variable VAR.
  14585. func_append ()
  14586. {
  14587. eval "$1+=\$2"
  14588. }
  14589. _LT_EOF
  14590. ;;
  14591. *)
  14592. cat << \_LT_EOF >> "$cfgfile"
  14593. # func_append var value
  14594. # Append VALUE to the end of shell variable VAR.
  14595. func_append ()
  14596. {
  14597. eval "$1=\$$1\$2"
  14598. }
  14599. _LT_EOF
  14600. ;;
  14601. esac
  14602. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14603. || (rm -f "$cfgfile"; exit 1)
  14604. mv -f "$cfgfile" "$ofile" ||
  14605. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14606. chmod +x "$ofile"
  14607. ;;
  14608. "default-1":C)
  14609. for ac_file in $CONFIG_FILES; do
  14610. # Support "outfile[:infile[:infile...]]"
  14611. case "$ac_file" in
  14612. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  14613. esac
  14614. # PO directories have a Makefile.in generated from Makefile.in.in.
  14615. case "$ac_file" in */Makefile.in)
  14616. # Adjust a relative srcdir.
  14617. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  14618. ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
  14619. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  14620. # In autoconf-2.13 it is called $ac_given_srcdir.
  14621. # In autoconf-2.50 it is called $srcdir.
  14622. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  14623. case "$ac_given_srcdir" in
  14624. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  14625. /*) top_srcdir="$ac_given_srcdir" ;;
  14626. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  14627. esac
  14628. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  14629. rm -f "$ac_dir/POTFILES"
  14630. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  14631. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  14632. POMAKEFILEDEPS="POTFILES.in"
  14633. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  14634. # on $ac_dir but don't depend on user-specified configuration
  14635. # parameters.
  14636. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  14637. # The LINGUAS file contains the set of available languages.
  14638. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  14639. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
  14640. fi
  14641. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  14642. # Hide the ALL_LINGUAS assigment from automake.
  14643. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  14644. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  14645. else
  14646. # The set of available languages was given in configure.ac.
  14647. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  14648. fi
  14649. case "$ac_given_srcdir" in
  14650. .) srcdirpre= ;;
  14651. *) srcdirpre='$(srcdir)/' ;;
  14652. esac
  14653. POFILES=
  14654. GMOFILES=
  14655. UPDATEPOFILES=
  14656. DUMMYPOFILES=
  14657. for lang in $ALL_LINGUAS; do
  14658. POFILES="$POFILES $srcdirpre$lang.po"
  14659. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  14660. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  14661. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  14662. done
  14663. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  14664. # environment variable.
  14665. INST_LINGUAS=
  14666. if test -n "$ALL_LINGUAS"; then
  14667. for presentlang in $ALL_LINGUAS; do
  14668. useit=no
  14669. if test "%UNSET%" != "$LINGUAS"; then
  14670. desiredlanguages="$LINGUAS"
  14671. else
  14672. desiredlanguages="$ALL_LINGUAS"
  14673. fi
  14674. for desiredlang in $desiredlanguages; do
  14675. # Use the presentlang catalog if desiredlang is
  14676. # a. equal to presentlang, or
  14677. # b. a variant of presentlang (because in this case,
  14678. # presentlang can be used as a fallback for messages
  14679. # which are not translated in the desiredlang catalog).
  14680. case "$desiredlang" in
  14681. "$presentlang"*) useit=yes;;
  14682. esac
  14683. done
  14684. if test $useit = yes; then
  14685. INST_LINGUAS="$INST_LINGUAS $presentlang"
  14686. fi
  14687. done
  14688. fi
  14689. CATALOGS=
  14690. if test -n "$INST_LINGUAS"; then
  14691. for lang in $INST_LINGUAS; do
  14692. CATALOGS="$CATALOGS $lang.gmo"
  14693. done
  14694. fi
  14695. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  14696. 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"
  14697. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  14698. if test -f "$f"; then
  14699. case "$f" in
  14700. *.orig | *.bak | *~) ;;
  14701. *) cat "$f" >> "$ac_dir/Makefile" ;;
  14702. esac
  14703. fi
  14704. done
  14705. fi
  14706. ;;
  14707. esac
  14708. done ;;
  14709. esac
  14710. done # for ac_tag
  14711. as_fn_exit 0
  14712. _ACEOF
  14713. ac_clean_files=$ac_clean_files_save
  14714. test $ac_write_fail = 0 ||
  14715. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14716. # configure is writing to config.log, and then calls config.status.
  14717. # config.status does its own redirection, appending to config.log.
  14718. # Unfortunately, on DOS this fails, as config.log is still kept open
  14719. # by configure, so config.status won't be able to write to it; its
  14720. # output is simply discarded. So we exec the FD to /dev/null,
  14721. # effectively closing config.log, so it can be properly (re)opened and
  14722. # appended to by config.status. When coming back to configure, we
  14723. # need to make the FD available again.
  14724. if test "$no_create" != yes; then
  14725. ac_cs_success=:
  14726. ac_config_status_args=
  14727. test "$silent" = yes &&
  14728. ac_config_status_args="$ac_config_status_args --quiet"
  14729. exec 5>/dev/null
  14730. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14731. exec 5>>config.log
  14732. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14733. # would make configure fail if this is the last instruction.
  14734. $ac_cs_success || as_fn_exit $?
  14735. fi
  14736. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14737. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14738. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14739. fi