configure 475 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 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=
  509. PACKAGE_TARNAME=
  510. PACKAGE_VERSION=
  511. PACKAGE_STRING=
  512. PACKAGE_BUGREPORT=
  513. PACKAGE_URL=
  514. ac_unique_file="Makefile.in"
  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='LTLIBOBJS
  551. LIBOBJS
  552. cgen_breaks
  553. mips_extra_libs
  554. XMKMF
  555. mips_igen_engine
  556. sim_multi_obj
  557. sim_multi_src
  558. sim_multi_igen_configs
  559. sim_multi_flags
  560. sim_gen
  561. sim_micromips16_flags
  562. sim_micromips_flags
  563. sim_m16_flags
  564. sim_igen_flags
  565. SIM_SUBTARGET
  566. REPORT_BUGS_TEXI
  567. REPORT_BUGS_TO
  568. PKGVERSION
  569. sim_profile
  570. sim_trace
  571. sim_stdio
  572. sim_debug
  573. sim_cflags
  574. sim_bswap
  575. MAINT
  576. MAINTAINER_MODE_FALSE
  577. MAINTAINER_MODE_TRUE
  578. lt_cv_dlopen_libs
  579. OTOOL64
  580. OTOOL
  581. LIPO
  582. NMEDIT
  583. DSYMUTIL
  584. AWK
  585. STRIP
  586. OBJDUMP
  587. LN_S
  588. NM
  589. ac_ct_DUMPBIN
  590. DUMPBIN
  591. LD
  592. FGREP
  593. SED
  594. LIBTOOL
  595. PLUGINS_FALSE
  596. PLUGINS_TRUE
  597. zlibinc
  598. zlibdir
  599. CATOBJEXT
  600. GENCAT
  601. INSTOBJEXT
  602. DATADIRNAME
  603. CATALOGS
  604. POSUB
  605. GMSGFMT
  606. XGETTEXT
  607. INCINTL
  608. LIBINTL_DEP
  609. LIBINTL
  610. USE_NLS
  611. GMAKE_FALSE
  612. GMAKE_TRUE
  613. MAKE
  614. CCDEPMODE
  615. DEPDIR
  616. am__leading_dot
  617. PACKAGE
  618. RANLIB
  619. AR
  620. HDEFINES
  621. CC_FOR_BUILD
  622. INSTALL_DATA
  623. INSTALL_SCRIPT
  624. INSTALL_PROGRAM
  625. EGREP
  626. GREP
  627. CPP
  628. target_os
  629. target_vendor
  630. target_cpu
  631. target
  632. host_os
  633. host_vendor
  634. host_cpu
  635. host
  636. build_os
  637. build_vendor
  638. build_cpu
  639. build
  640. OBJEXT
  641. EXEEXT
  642. ac_ct_CC
  643. CPPFLAGS
  644. LDFLAGS
  645. CFLAGS
  646. CC
  647. WERROR_CFLAGS
  648. WARN_CFLAGS
  649. sim_xor_endian
  650. sim_stdcall
  651. sim_smp
  652. sim_reserved_bits
  653. sim_regparm
  654. sim_packages
  655. sim_inline
  656. sim_hw
  657. sim_hw_objs
  658. sim_hw_cflags
  659. sim_default_model
  660. sim_scache
  661. sim_float
  662. sim_hostendian
  663. sim_endian
  664. sim_bitsize
  665. sim_assert
  666. sim_alignment
  667. sim_environment
  668. target_alias
  669. host_alias
  670. build_alias
  671. LIBS
  672. ECHO_T
  673. ECHO_N
  674. ECHO_C
  675. DEFS
  676. mandir
  677. localedir
  678. libdir
  679. psdir
  680. pdfdir
  681. dvidir
  682. htmldir
  683. infodir
  684. docdir
  685. oldincludedir
  686. includedir
  687. localstatedir
  688. sharedstatedir
  689. sysconfdir
  690. datadir
  691. datarootdir
  692. libexecdir
  693. sbindir
  694. bindir
  695. program_transform_name
  696. prefix
  697. exec_prefix
  698. PACKAGE_URL
  699. PACKAGE_BUGREPORT
  700. PACKAGE_STRING
  701. PACKAGE_VERSION
  702. PACKAGE_TARNAME
  703. PACKAGE_NAME
  704. PATH_SEPARATOR
  705. SHELL'
  706. ac_subst_files=''
  707. ac_user_opts='
  708. enable_option_checking
  709. with_system_zlib
  710. enable_plugins
  711. enable_shared
  712. enable_static
  713. with_pic
  714. enable_fast_install
  715. with_gnu_ld
  716. enable_libtool_lock
  717. enable_maintainer_mode
  718. enable_sim_bswap
  719. enable_sim_cflags
  720. enable_sim_debug
  721. enable_sim_stdio
  722. enable_sim_trace
  723. enable_sim_profile
  724. with_pkgversion
  725. with_bugurl
  726. enable_sim_inline
  727. enable_sim_alignment
  728. enable_sim_hostendian
  729. enable_werror
  730. enable_build_warnings
  731. enable_sim_build_warnings
  732. enable_sim_reserved_bits
  733. enable_sim_endian
  734. enable_sim_bitsize
  735. enable_sim_float
  736. enable_sim_smp
  737. enable_sim_hardware
  738. with_x
  739. '
  740. ac_precious_vars='build_alias
  741. host_alias
  742. target_alias
  743. CC
  744. CFLAGS
  745. LDFLAGS
  746. LIBS
  747. CPPFLAGS
  748. CPP
  749. XMKMF'
  750. # Initialize some variables set by options.
  751. ac_init_help=
  752. ac_init_version=false
  753. ac_unrecognized_opts=
  754. ac_unrecognized_sep=
  755. # The variables have the same names as the options, with
  756. # dashes changed to underlines.
  757. cache_file=/dev/null
  758. exec_prefix=NONE
  759. no_create=
  760. no_recursion=
  761. prefix=NONE
  762. program_prefix=NONE
  763. program_suffix=NONE
  764. program_transform_name=s,x,x,
  765. silent=
  766. site=
  767. srcdir=
  768. verbose=
  769. x_includes=NONE
  770. x_libraries=NONE
  771. # Installation directory options.
  772. # These are left unexpanded so users can "make install exec_prefix=/foo"
  773. # and all the variables that are supposed to be based on exec_prefix
  774. # by default will actually change.
  775. # Use braces instead of parens because sh, perl, etc. also accept them.
  776. # (The list follows the same order as the GNU Coding Standards.)
  777. bindir='${exec_prefix}/bin'
  778. sbindir='${exec_prefix}/sbin'
  779. libexecdir='${exec_prefix}/libexec'
  780. datarootdir='${prefix}/share'
  781. datadir='${datarootdir}'
  782. sysconfdir='${prefix}/etc'
  783. sharedstatedir='${prefix}/com'
  784. localstatedir='${prefix}/var'
  785. includedir='${prefix}/include'
  786. oldincludedir='/usr/include'
  787. docdir='${datarootdir}/doc/${PACKAGE}'
  788. infodir='${datarootdir}/info'
  789. htmldir='${docdir}'
  790. dvidir='${docdir}'
  791. pdfdir='${docdir}'
  792. psdir='${docdir}'
  793. libdir='${exec_prefix}/lib'
  794. localedir='${datarootdir}/locale'
  795. mandir='${datarootdir}/man'
  796. ac_prev=
  797. ac_dashdash=
  798. for ac_option
  799. do
  800. # If the previous option needs an argument, assign it.
  801. if test -n "$ac_prev"; then
  802. eval $ac_prev=\$ac_option
  803. ac_prev=
  804. continue
  805. fi
  806. case $ac_option in
  807. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  808. *) ac_optarg=yes ;;
  809. esac
  810. # Accept the important Cygnus configure options, so we can diagnose typos.
  811. case $ac_dashdash$ac_option in
  812. --)
  813. ac_dashdash=yes ;;
  814. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  815. ac_prev=bindir ;;
  816. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  817. bindir=$ac_optarg ;;
  818. -build | --build | --buil | --bui | --bu)
  819. ac_prev=build_alias ;;
  820. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  821. build_alias=$ac_optarg ;;
  822. -cache-file | --cache-file | --cache-fil | --cache-fi \
  823. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  824. ac_prev=cache_file ;;
  825. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  826. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  827. cache_file=$ac_optarg ;;
  828. --config-cache | -C)
  829. cache_file=config.cache ;;
  830. -datadir | --datadir | --datadi | --datad)
  831. ac_prev=datadir ;;
  832. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  833. datadir=$ac_optarg ;;
  834. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  835. | --dataroo | --dataro | --datar)
  836. ac_prev=datarootdir ;;
  837. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  838. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  839. datarootdir=$ac_optarg ;;
  840. -disable-* | --disable-*)
  841. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  842. # Reject names that are not valid shell variable names.
  843. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  844. as_fn_error "invalid feature name: $ac_useropt"
  845. ac_useropt_orig=$ac_useropt
  846. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  847. case $ac_user_opts in
  848. *"
  849. "enable_$ac_useropt"
  850. "*) ;;
  851. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  852. ac_unrecognized_sep=', ';;
  853. esac
  854. eval enable_$ac_useropt=no ;;
  855. -docdir | --docdir | --docdi | --doc | --do)
  856. ac_prev=docdir ;;
  857. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  858. docdir=$ac_optarg ;;
  859. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  860. ac_prev=dvidir ;;
  861. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  862. dvidir=$ac_optarg ;;
  863. -enable-* | --enable-*)
  864. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  865. # Reject names that are not valid shell variable names.
  866. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  867. as_fn_error "invalid feature name: $ac_useropt"
  868. ac_useropt_orig=$ac_useropt
  869. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  870. case $ac_user_opts in
  871. *"
  872. "enable_$ac_useropt"
  873. "*) ;;
  874. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  875. ac_unrecognized_sep=', ';;
  876. esac
  877. eval enable_$ac_useropt=\$ac_optarg ;;
  878. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  879. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  880. | --exec | --exe | --ex)
  881. ac_prev=exec_prefix ;;
  882. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  883. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  884. | --exec=* | --exe=* | --ex=*)
  885. exec_prefix=$ac_optarg ;;
  886. -gas | --gas | --ga | --g)
  887. # Obsolete; use --with-gas.
  888. with_gas=yes ;;
  889. -help | --help | --hel | --he | -h)
  890. ac_init_help=long ;;
  891. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  892. ac_init_help=recursive ;;
  893. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  894. ac_init_help=short ;;
  895. -host | --host | --hos | --ho)
  896. ac_prev=host_alias ;;
  897. -host=* | --host=* | --hos=* | --ho=*)
  898. host_alias=$ac_optarg ;;
  899. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  900. ac_prev=htmldir ;;
  901. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  902. | --ht=*)
  903. htmldir=$ac_optarg ;;
  904. -includedir | --includedir | --includedi | --included | --include \
  905. | --includ | --inclu | --incl | --inc)
  906. ac_prev=includedir ;;
  907. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  908. | --includ=* | --inclu=* | --incl=* | --inc=*)
  909. includedir=$ac_optarg ;;
  910. -infodir | --infodir | --infodi | --infod | --info | --inf)
  911. ac_prev=infodir ;;
  912. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  913. infodir=$ac_optarg ;;
  914. -libdir | --libdir | --libdi | --libd)
  915. ac_prev=libdir ;;
  916. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  917. libdir=$ac_optarg ;;
  918. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  919. | --libexe | --libex | --libe)
  920. ac_prev=libexecdir ;;
  921. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  922. | --libexe=* | --libex=* | --libe=*)
  923. libexecdir=$ac_optarg ;;
  924. -localedir | --localedir | --localedi | --localed | --locale)
  925. ac_prev=localedir ;;
  926. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  927. localedir=$ac_optarg ;;
  928. -localstatedir | --localstatedir | --localstatedi | --localstated \
  929. | --localstate | --localstat | --localsta | --localst | --locals)
  930. ac_prev=localstatedir ;;
  931. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  932. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  933. localstatedir=$ac_optarg ;;
  934. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  935. ac_prev=mandir ;;
  936. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  937. mandir=$ac_optarg ;;
  938. -nfp | --nfp | --nf)
  939. # Obsolete; use --without-fp.
  940. with_fp=no ;;
  941. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  942. | --no-cr | --no-c | -n)
  943. no_create=yes ;;
  944. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  945. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  946. no_recursion=yes ;;
  947. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  948. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  949. | --oldin | --oldi | --old | --ol | --o)
  950. ac_prev=oldincludedir ;;
  951. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  952. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  953. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  954. oldincludedir=$ac_optarg ;;
  955. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  956. ac_prev=prefix ;;
  957. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  958. prefix=$ac_optarg ;;
  959. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  960. | --program-pre | --program-pr | --program-p)
  961. ac_prev=program_prefix ;;
  962. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  963. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  964. program_prefix=$ac_optarg ;;
  965. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  966. | --program-suf | --program-su | --program-s)
  967. ac_prev=program_suffix ;;
  968. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  969. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  970. program_suffix=$ac_optarg ;;
  971. -program-transform-name | --program-transform-name \
  972. | --program-transform-nam | --program-transform-na \
  973. | --program-transform-n | --program-transform- \
  974. | --program-transform | --program-transfor \
  975. | --program-transfo | --program-transf \
  976. | --program-trans | --program-tran \
  977. | --progr-tra | --program-tr | --program-t)
  978. ac_prev=program_transform_name ;;
  979. -program-transform-name=* | --program-transform-name=* \
  980. | --program-transform-nam=* | --program-transform-na=* \
  981. | --program-transform-n=* | --program-transform-=* \
  982. | --program-transform=* | --program-transfor=* \
  983. | --program-transfo=* | --program-transf=* \
  984. | --program-trans=* | --program-tran=* \
  985. | --progr-tra=* | --program-tr=* | --program-t=*)
  986. program_transform_name=$ac_optarg ;;
  987. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  988. ac_prev=pdfdir ;;
  989. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  990. pdfdir=$ac_optarg ;;
  991. -psdir | --psdir | --psdi | --psd | --ps)
  992. ac_prev=psdir ;;
  993. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  994. psdir=$ac_optarg ;;
  995. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  996. | -silent | --silent | --silen | --sile | --sil)
  997. silent=yes ;;
  998. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  999. ac_prev=sbindir ;;
  1000. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1001. | --sbi=* | --sb=*)
  1002. sbindir=$ac_optarg ;;
  1003. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1004. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1005. | --sharedst | --shareds | --shared | --share | --shar \
  1006. | --sha | --sh)
  1007. ac_prev=sharedstatedir ;;
  1008. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1009. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1010. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1011. | --sha=* | --sh=*)
  1012. sharedstatedir=$ac_optarg ;;
  1013. -site | --site | --sit)
  1014. ac_prev=site ;;
  1015. -site=* | --site=* | --sit=*)
  1016. site=$ac_optarg ;;
  1017. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1018. ac_prev=srcdir ;;
  1019. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1020. srcdir=$ac_optarg ;;
  1021. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1022. | --syscon | --sysco | --sysc | --sys | --sy)
  1023. ac_prev=sysconfdir ;;
  1024. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1025. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1026. sysconfdir=$ac_optarg ;;
  1027. -target | --target | --targe | --targ | --tar | --ta | --t)
  1028. ac_prev=target_alias ;;
  1029. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1030. target_alias=$ac_optarg ;;
  1031. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1032. verbose=yes ;;
  1033. -version | --version | --versio | --versi | --vers | -V)
  1034. ac_init_version=: ;;
  1035. -with-* | --with-*)
  1036. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1037. # Reject names that are not valid shell variable names.
  1038. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1039. as_fn_error "invalid package name: $ac_useropt"
  1040. ac_useropt_orig=$ac_useropt
  1041. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1042. case $ac_user_opts in
  1043. *"
  1044. "with_$ac_useropt"
  1045. "*) ;;
  1046. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1047. ac_unrecognized_sep=', ';;
  1048. esac
  1049. eval with_$ac_useropt=\$ac_optarg ;;
  1050. -without-* | --without-*)
  1051. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1052. # Reject names that are not valid shell variable names.
  1053. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1054. as_fn_error "invalid package name: $ac_useropt"
  1055. ac_useropt_orig=$ac_useropt
  1056. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1057. case $ac_user_opts in
  1058. *"
  1059. "with_$ac_useropt"
  1060. "*) ;;
  1061. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1062. ac_unrecognized_sep=', ';;
  1063. esac
  1064. eval with_$ac_useropt=no ;;
  1065. --x)
  1066. # Obsolete; use --with-x.
  1067. with_x=yes ;;
  1068. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1069. | --x-incl | --x-inc | --x-in | --x-i)
  1070. ac_prev=x_includes ;;
  1071. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1072. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1073. x_includes=$ac_optarg ;;
  1074. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1075. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1076. ac_prev=x_libraries ;;
  1077. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1078. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1079. x_libraries=$ac_optarg ;;
  1080. -*) as_fn_error "unrecognized option: \`$ac_option'
  1081. Try \`$0 --help' for more information."
  1082. ;;
  1083. *=*)
  1084. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1085. # Reject names that are not valid shell variable names.
  1086. case $ac_envvar in #(
  1087. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1088. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1089. esac
  1090. eval $ac_envvar=\$ac_optarg
  1091. export $ac_envvar ;;
  1092. *)
  1093. # FIXME: should be removed in autoconf 3.0.
  1094. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1095. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1096. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1097. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1098. ;;
  1099. esac
  1100. done
  1101. if test -n "$ac_prev"; then
  1102. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1103. as_fn_error "missing argument to $ac_option"
  1104. fi
  1105. if test -n "$ac_unrecognized_opts"; then
  1106. case $enable_option_checking in
  1107. no) ;;
  1108. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1109. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1110. esac
  1111. fi
  1112. # Check all directory arguments for consistency.
  1113. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1114. datadir sysconfdir sharedstatedir localstatedir includedir \
  1115. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1116. libdir localedir mandir
  1117. do
  1118. eval ac_val=\$$ac_var
  1119. # Remove trailing slashes.
  1120. case $ac_val in
  1121. */ )
  1122. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1123. eval $ac_var=\$ac_val;;
  1124. esac
  1125. # Be sure to have absolute directory names.
  1126. case $ac_val in
  1127. [\\/$]* | ?:[\\/]* ) continue;;
  1128. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1129. esac
  1130. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1131. done
  1132. # There might be people who depend on the old broken behavior: `$host'
  1133. # used to hold the argument of --host etc.
  1134. # FIXME: To remove some day.
  1135. build=$build_alias
  1136. host=$host_alias
  1137. target=$target_alias
  1138. # FIXME: To remove some day.
  1139. if test "x$host_alias" != x; then
  1140. if test "x$build_alias" = x; then
  1141. cross_compiling=maybe
  1142. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1143. If a cross compiler is detected then cross compile mode will be used." >&2
  1144. elif test "x$build_alias" != "x$host_alias"; then
  1145. cross_compiling=yes
  1146. fi
  1147. fi
  1148. ac_tool_prefix=
  1149. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1150. test "$silent" = yes && exec 6>/dev/null
  1151. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1152. ac_ls_di=`ls -di .` &&
  1153. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1154. as_fn_error "working directory cannot be determined"
  1155. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1156. as_fn_error "pwd does not report name of working directory"
  1157. # Find the source files, if location was not specified.
  1158. if test -z "$srcdir"; then
  1159. ac_srcdir_defaulted=yes
  1160. # Try the directory containing this script, then the parent directory.
  1161. ac_confdir=`$as_dirname -- "$as_myself" ||
  1162. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1163. X"$as_myself" : 'X\(//\)[^/]' \| \
  1164. X"$as_myself" : 'X\(//\)$' \| \
  1165. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1166. $as_echo X"$as_myself" |
  1167. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1168. s//\1/
  1169. q
  1170. }
  1171. /^X\(\/\/\)[^/].*/{
  1172. s//\1/
  1173. q
  1174. }
  1175. /^X\(\/\/\)$/{
  1176. s//\1/
  1177. q
  1178. }
  1179. /^X\(\/\).*/{
  1180. s//\1/
  1181. q
  1182. }
  1183. s/.*/./; q'`
  1184. srcdir=$ac_confdir
  1185. if test ! -r "$srcdir/$ac_unique_file"; then
  1186. srcdir=..
  1187. fi
  1188. else
  1189. ac_srcdir_defaulted=no
  1190. fi
  1191. if test ! -r "$srcdir/$ac_unique_file"; then
  1192. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1193. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1194. fi
  1195. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1196. ac_abs_confdir=`(
  1197. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1198. pwd)`
  1199. # When building in place, set srcdir=.
  1200. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1201. srcdir=.
  1202. fi
  1203. # Remove unnecessary trailing slashes from srcdir.
  1204. # Double slashes in file names in object file debugging info
  1205. # mess up M-x gdb in Emacs.
  1206. case $srcdir in
  1207. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1208. esac
  1209. for ac_var in $ac_precious_vars; do
  1210. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1211. eval ac_env_${ac_var}_value=\$${ac_var}
  1212. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1213. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1214. done
  1215. #
  1216. # Report the --help message.
  1217. #
  1218. if test "$ac_init_help" = "long"; then
  1219. # Omit some internal or obsolete options to make the list less imposing.
  1220. # This message is too long to be a string in the A/UX 3.1 sh.
  1221. cat <<_ACEOF
  1222. \`configure' configures this package to adapt to many kinds of systems.
  1223. Usage: $0 [OPTION]... [VAR=VALUE]...
  1224. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1225. VAR=VALUE. See below for descriptions of some of the useful variables.
  1226. Defaults for the options are specified in brackets.
  1227. Configuration:
  1228. -h, --help display this help and exit
  1229. --help=short display options specific to this package
  1230. --help=recursive display the short help of all the included packages
  1231. -V, --version display version information and exit
  1232. -q, --quiet, --silent do not print \`checking...' messages
  1233. --cache-file=FILE cache test results in FILE [disabled]
  1234. -C, --config-cache alias for \`--cache-file=config.cache'
  1235. -n, --no-create do not create output files
  1236. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1237. Installation directories:
  1238. --prefix=PREFIX install architecture-independent files in PREFIX
  1239. [$ac_default_prefix]
  1240. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1241. [PREFIX]
  1242. By default, \`make install' will install all the files in
  1243. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1244. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1245. for instance \`--prefix=\$HOME'.
  1246. For better control, use the options below.
  1247. Fine tuning of the installation directories:
  1248. --bindir=DIR user executables [EPREFIX/bin]
  1249. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1250. --libexecdir=DIR program executables [EPREFIX/libexec]
  1251. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1252. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1253. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1254. --libdir=DIR object code libraries [EPREFIX/lib]
  1255. --includedir=DIR C header files [PREFIX/include]
  1256. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1257. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1258. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1259. --infodir=DIR info documentation [DATAROOTDIR/info]
  1260. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1261. --mandir=DIR man documentation [DATAROOTDIR/man]
  1262. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1263. --htmldir=DIR html documentation [DOCDIR]
  1264. --dvidir=DIR dvi documentation [DOCDIR]
  1265. --pdfdir=DIR pdf documentation [DOCDIR]
  1266. --psdir=DIR ps documentation [DOCDIR]
  1267. _ACEOF
  1268. cat <<\_ACEOF
  1269. Program names:
  1270. --program-prefix=PREFIX prepend PREFIX to installed program names
  1271. --program-suffix=SUFFIX append SUFFIX to installed program names
  1272. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1273. X features:
  1274. --x-includes=DIR X include files are in DIR
  1275. --x-libraries=DIR X library files are in DIR
  1276. System types:
  1277. --build=BUILD configure for building on BUILD [guessed]
  1278. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1279. --target=TARGET configure for building compilers for TARGET [HOST]
  1280. _ACEOF
  1281. fi
  1282. if test -n "$ac_init_help"; then
  1283. cat <<\_ACEOF
  1284. Optional Features:
  1285. --disable-option-checking ignore unrecognized --enable/--with options
  1286. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1287. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1288. --enable-plugins Enable support for plugins
  1289. --enable-shared[=PKGS] build shared libraries [default=yes]
  1290. --enable-static[=PKGS] build static libraries [default=yes]
  1291. --enable-fast-install[=PKGS]
  1292. optimize for fast installation [default=yes]
  1293. --disable-libtool-lock avoid locking (might break parallel builds)
  1294. --enable-maintainer-mode enable make rules and dependencies not useful
  1295. (and sometimes confusing) to the casual installer
  1296. --enable-sim-bswap Use Host specific BSWAP instruction
  1297. --enable-sim-cflags=opts
  1298. Extra CFLAGS for use in building simulator
  1299. --enable-sim-debug=opts Enable debugging flags (for developers of the sim
  1300. itself)
  1301. --enable-sim-stdio Specify whether to use stdio for console
  1302. input/output
  1303. --enable-sim-trace=opts Enable tracing of simulated programs
  1304. --enable-sim-profile=opts
  1305. Enable profiling flags
  1306. --enable-sim-inline=inlines
  1307. Specify which functions should be inlined
  1308. --enable-sim-alignment=align
  1309. Specify strict, nonstrict or forced alignment of
  1310. memory accesses
  1311. --enable-sim-hostendian=end
  1312. Specify host byte endian orientation
  1313. --enable-werror treat compile warnings as errors
  1314. --enable-build-warnings enable build-time compiler warnings if gcc is used
  1315. --enable-sim-build-warnings
  1316. enable SIM specific build-time compiler warnings if
  1317. gcc is used
  1318. --enable-sim-reserved-bits
  1319. Specify whether to check reserved bits in
  1320. instruction
  1321. --enable-sim-endian=endian
  1322. Specify target byte endian orientation
  1323. --enable-sim-bitsize=N Specify target bitsize (32 or 64)
  1324. --enable-sim-float Specify that the target processor has floating point
  1325. hardware
  1326. --enable-sim-smp=n Specify number of processors to configure for
  1327. (default ${default_sim_smp})
  1328. --enable-sim-hardware=LIST
  1329. Specify the hardware to be included in the build.
  1330. Optional Packages:
  1331. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1332. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1333. --with-system-zlib use installed libz
  1334. --with-pic try to use only PIC/non-PIC objects [default=use
  1335. both]
  1336. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1337. --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
  1338. --with-bugurl=URL Direct users to URL to report a bug
  1339. --with-x use the X Window System
  1340. Some influential environment variables:
  1341. CC C compiler command
  1342. CFLAGS C compiler flags
  1343. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1344. nonstandard directory <lib dir>
  1345. LIBS libraries to pass to the linker, e.g. -l<library>
  1346. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1347. you have headers in a nonstandard directory <include dir>
  1348. CPP C preprocessor
  1349. XMKMF Path to xmkmf, Makefile generator for X Window System
  1350. Use these variables to override the choices made by `configure' or to help
  1351. it to find libraries and programs with nonstandard names/locations.
  1352. Report bugs to the package provider.
  1353. _ACEOF
  1354. ac_status=$?
  1355. fi
  1356. if test "$ac_init_help" = "recursive"; then
  1357. # If there are subdirs, report their specific --help.
  1358. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1359. test -d "$ac_dir" ||
  1360. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1361. continue
  1362. ac_builddir=.
  1363. case "$ac_dir" in
  1364. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1365. *)
  1366. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1367. # A ".." for each directory in $ac_dir_suffix.
  1368. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1369. case $ac_top_builddir_sub in
  1370. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1371. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1372. esac ;;
  1373. esac
  1374. ac_abs_top_builddir=$ac_pwd
  1375. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1376. # for backward compatibility:
  1377. ac_top_builddir=$ac_top_build_prefix
  1378. case $srcdir in
  1379. .) # We are building in place.
  1380. ac_srcdir=.
  1381. ac_top_srcdir=$ac_top_builddir_sub
  1382. ac_abs_top_srcdir=$ac_pwd ;;
  1383. [\\/]* | ?:[\\/]* ) # Absolute name.
  1384. ac_srcdir=$srcdir$ac_dir_suffix;
  1385. ac_top_srcdir=$srcdir
  1386. ac_abs_top_srcdir=$srcdir ;;
  1387. *) # Relative name.
  1388. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1389. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1390. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1391. esac
  1392. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1393. cd "$ac_dir" || { ac_status=$?; continue; }
  1394. # Check for guested configure.
  1395. if test -f "$ac_srcdir/configure.gnu"; then
  1396. echo &&
  1397. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1398. elif test -f "$ac_srcdir/configure"; then
  1399. echo &&
  1400. $SHELL "$ac_srcdir/configure" --help=recursive
  1401. else
  1402. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1403. fi || ac_status=$?
  1404. cd "$ac_pwd" || { ac_status=$?; break; }
  1405. done
  1406. fi
  1407. test -n "$ac_init_help" && exit $ac_status
  1408. if $ac_init_version; then
  1409. cat <<\_ACEOF
  1410. configure
  1411. generated by GNU Autoconf 2.64
  1412. Copyright (C) 2009 Free Software Foundation, Inc.
  1413. This configure script is free software; the Free Software Foundation
  1414. gives unlimited permission to copy, distribute and modify it.
  1415. _ACEOF
  1416. exit
  1417. fi
  1418. ## ------------------------ ##
  1419. ## Autoconf initialization. ##
  1420. ## ------------------------ ##
  1421. # ac_fn_c_try_compile LINENO
  1422. # --------------------------
  1423. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1424. ac_fn_c_try_compile ()
  1425. {
  1426. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1427. rm -f conftest.$ac_objext
  1428. if { { ac_try="$ac_compile"
  1429. case "(($ac_try" in
  1430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1431. *) ac_try_echo=$ac_try;;
  1432. esac
  1433. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1434. $as_echo "$ac_try_echo"; } >&5
  1435. (eval "$ac_compile") 2>conftest.err
  1436. ac_status=$?
  1437. if test -s conftest.err; then
  1438. grep -v '^ *+' conftest.err >conftest.er1
  1439. cat conftest.er1 >&5
  1440. mv -f conftest.er1 conftest.err
  1441. fi
  1442. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1443. test $ac_status = 0; } && {
  1444. test -z "$ac_c_werror_flag" ||
  1445. test ! -s conftest.err
  1446. } && test -s conftest.$ac_objext; then :
  1447. ac_retval=0
  1448. else
  1449. $as_echo "$as_me: failed program was:" >&5
  1450. sed 's/^/| /' conftest.$ac_ext >&5
  1451. ac_retval=1
  1452. fi
  1453. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1454. return $ac_retval
  1455. } # ac_fn_c_try_compile
  1456. # ac_fn_c_try_cpp LINENO
  1457. # ----------------------
  1458. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1459. ac_fn_c_try_cpp ()
  1460. {
  1461. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1462. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1463. case "(($ac_try" in
  1464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1465. *) ac_try_echo=$ac_try;;
  1466. esac
  1467. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1468. $as_echo "$ac_try_echo"; } >&5
  1469. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1470. ac_status=$?
  1471. if test -s conftest.err; then
  1472. grep -v '^ *+' conftest.err >conftest.er1
  1473. cat conftest.er1 >&5
  1474. mv -f conftest.er1 conftest.err
  1475. fi
  1476. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1477. test $ac_status = 0; } >/dev/null && {
  1478. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1479. test ! -s conftest.err
  1480. }; then :
  1481. ac_retval=0
  1482. else
  1483. $as_echo "$as_me: failed program was:" >&5
  1484. sed 's/^/| /' conftest.$ac_ext >&5
  1485. ac_retval=1
  1486. fi
  1487. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1488. return $ac_retval
  1489. } # ac_fn_c_try_cpp
  1490. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1491. # -------------------------------------------------------
  1492. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1493. # the include files in INCLUDES and setting the cache variable VAR
  1494. # accordingly.
  1495. ac_fn_c_check_header_mongrel ()
  1496. {
  1497. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1498. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1500. $as_echo_n "checking for $2... " >&6; }
  1501. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1502. $as_echo_n "(cached) " >&6
  1503. fi
  1504. eval ac_res=\$$3
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1506. $as_echo "$ac_res" >&6; }
  1507. else
  1508. # Is the header compilable?
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1510. $as_echo_n "checking $2 usability... " >&6; }
  1511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1512. /* end confdefs.h. */
  1513. $4
  1514. #include <$2>
  1515. _ACEOF
  1516. if ac_fn_c_try_compile "$LINENO"; then :
  1517. ac_header_compiler=yes
  1518. else
  1519. ac_header_compiler=no
  1520. fi
  1521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1523. $as_echo "$ac_header_compiler" >&6; }
  1524. # Is the header present?
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1526. $as_echo_n "checking $2 presence... " >&6; }
  1527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1528. /* end confdefs.h. */
  1529. #include <$2>
  1530. _ACEOF
  1531. if ac_fn_c_try_cpp "$LINENO"; then :
  1532. ac_header_preproc=yes
  1533. else
  1534. ac_header_preproc=no
  1535. fi
  1536. rm -f conftest.err conftest.$ac_ext
  1537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1538. $as_echo "$ac_header_preproc" >&6; }
  1539. # So? What about this header?
  1540. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1541. yes:no: )
  1542. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1543. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1544. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1545. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1546. ;;
  1547. no:yes:* )
  1548. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1549. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1550. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1551. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1552. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1553. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1554. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1555. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1556. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1557. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1558. ;;
  1559. esac
  1560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1561. $as_echo_n "checking for $2... " >&6; }
  1562. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1563. $as_echo_n "(cached) " >&6
  1564. else
  1565. eval "$3=\$ac_header_compiler"
  1566. fi
  1567. eval ac_res=\$$3
  1568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1569. $as_echo "$ac_res" >&6; }
  1570. fi
  1571. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1572. } # ac_fn_c_check_header_mongrel
  1573. # ac_fn_c_try_run LINENO
  1574. # ----------------------
  1575. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1576. # that executables *can* be run.
  1577. ac_fn_c_try_run ()
  1578. {
  1579. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1580. if { { ac_try="$ac_link"
  1581. case "(($ac_try" in
  1582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1583. *) ac_try_echo=$ac_try;;
  1584. esac
  1585. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1586. $as_echo "$ac_try_echo"; } >&5
  1587. (eval "$ac_link") 2>&5
  1588. ac_status=$?
  1589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1590. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1591. { { case "(($ac_try" in
  1592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1593. *) ac_try_echo=$ac_try;;
  1594. esac
  1595. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1596. $as_echo "$ac_try_echo"; } >&5
  1597. (eval "$ac_try") 2>&5
  1598. ac_status=$?
  1599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1600. test $ac_status = 0; }; }; then :
  1601. ac_retval=0
  1602. else
  1603. $as_echo "$as_me: program exited with status $ac_status" >&5
  1604. $as_echo "$as_me: failed program was:" >&5
  1605. sed 's/^/| /' conftest.$ac_ext >&5
  1606. ac_retval=$ac_status
  1607. fi
  1608. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1609. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1610. return $ac_retval
  1611. } # ac_fn_c_try_run
  1612. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1613. # -------------------------------------------------------
  1614. # Tests whether HEADER exists and can be compiled using the include files in
  1615. # INCLUDES, setting the cache variable VAR accordingly.
  1616. ac_fn_c_check_header_compile ()
  1617. {
  1618. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1620. $as_echo_n "checking for $2... " >&6; }
  1621. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1622. $as_echo_n "(cached) " >&6
  1623. else
  1624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1625. /* end confdefs.h. */
  1626. $4
  1627. #include <$2>
  1628. _ACEOF
  1629. if ac_fn_c_try_compile "$LINENO"; then :
  1630. eval "$3=yes"
  1631. else
  1632. eval "$3=no"
  1633. fi
  1634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1635. fi
  1636. eval ac_res=\$$3
  1637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1638. $as_echo "$ac_res" >&6; }
  1639. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1640. } # ac_fn_c_check_header_compile
  1641. # ac_fn_c_try_link LINENO
  1642. # -----------------------
  1643. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1644. ac_fn_c_try_link ()
  1645. {
  1646. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1647. rm -f conftest.$ac_objext conftest$ac_exeext
  1648. if { { ac_try="$ac_link"
  1649. case "(($ac_try" in
  1650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1651. *) ac_try_echo=$ac_try;;
  1652. esac
  1653. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1654. $as_echo "$ac_try_echo"; } >&5
  1655. (eval "$ac_link") 2>conftest.err
  1656. ac_status=$?
  1657. if test -s conftest.err; then
  1658. grep -v '^ *+' conftest.err >conftest.er1
  1659. cat conftest.er1 >&5
  1660. mv -f conftest.er1 conftest.err
  1661. fi
  1662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1663. test $ac_status = 0; } && {
  1664. test -z "$ac_c_werror_flag" ||
  1665. test ! -s conftest.err
  1666. } && test -s conftest$ac_exeext && {
  1667. test "$cross_compiling" = yes ||
  1668. $as_test_x conftest$ac_exeext
  1669. }; then :
  1670. ac_retval=0
  1671. else
  1672. $as_echo "$as_me: failed program was:" >&5
  1673. sed 's/^/| /' conftest.$ac_ext >&5
  1674. ac_retval=1
  1675. fi
  1676. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1677. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1678. # interfere with the next link command; also delete a directory that is
  1679. # left behind by Apple's compiler. We do this before executing the actions.
  1680. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1681. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1682. return $ac_retval
  1683. } # ac_fn_c_try_link
  1684. # ac_fn_c_check_func LINENO FUNC VAR
  1685. # ----------------------------------
  1686. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1687. ac_fn_c_check_func ()
  1688. {
  1689. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1691. $as_echo_n "checking for $2... " >&6; }
  1692. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1693. $as_echo_n "(cached) " >&6
  1694. else
  1695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1696. /* end confdefs.h. */
  1697. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1698. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1699. #define $2 innocuous_$2
  1700. /* System header to define __stub macros and hopefully few prototypes,
  1701. which can conflict with char $2 (); below.
  1702. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1703. <limits.h> exists even on freestanding compilers. */
  1704. #ifdef __STDC__
  1705. # include <limits.h>
  1706. #else
  1707. # include <assert.h>
  1708. #endif
  1709. #undef $2
  1710. /* Override any GCC internal prototype to avoid an error.
  1711. Use char because int might match the return type of a GCC
  1712. builtin and then its argument prototype would still apply. */
  1713. #ifdef __cplusplus
  1714. extern "C"
  1715. #endif
  1716. char $2 ();
  1717. /* The GNU C library defines this for functions which it implements
  1718. to always fail with ENOSYS. Some functions are actually named
  1719. something starting with __ and the normal name is an alias. */
  1720. #if defined __stub_$2 || defined __stub___$2
  1721. choke me
  1722. #endif
  1723. int
  1724. main ()
  1725. {
  1726. return $2 ();
  1727. ;
  1728. return 0;
  1729. }
  1730. _ACEOF
  1731. if ac_fn_c_try_link "$LINENO"; then :
  1732. eval "$3=yes"
  1733. else
  1734. eval "$3=no"
  1735. fi
  1736. rm -f core conftest.err conftest.$ac_objext \
  1737. conftest$ac_exeext conftest.$ac_ext
  1738. fi
  1739. eval ac_res=\$$3
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1741. $as_echo "$ac_res" >&6; }
  1742. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1743. } # ac_fn_c_check_func
  1744. cat >config.log <<_ACEOF
  1745. This file contains any messages produced by compilers while
  1746. running configure, to aid debugging if configure makes a mistake.
  1747. It was created by $as_me, which was
  1748. generated by GNU Autoconf 2.64. Invocation command line was
  1749. $ $0 $@
  1750. _ACEOF
  1751. exec 5>>config.log
  1752. {
  1753. cat <<_ASUNAME
  1754. ## --------- ##
  1755. ## Platform. ##
  1756. ## --------- ##
  1757. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1758. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1759. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1760. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1761. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1762. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1763. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1764. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1765. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1766. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1767. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1768. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1769. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1770. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1771. _ASUNAME
  1772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1773. for as_dir in $PATH
  1774. do
  1775. IFS=$as_save_IFS
  1776. test -z "$as_dir" && as_dir=.
  1777. $as_echo "PATH: $as_dir"
  1778. done
  1779. IFS=$as_save_IFS
  1780. } >&5
  1781. cat >&5 <<_ACEOF
  1782. ## ----------- ##
  1783. ## Core tests. ##
  1784. ## ----------- ##
  1785. _ACEOF
  1786. # Keep a trace of the command line.
  1787. # Strip out --no-create and --no-recursion so they do not pile up.
  1788. # Strip out --silent because we don't want to record it for future runs.
  1789. # Also quote any args containing shell meta-characters.
  1790. # Make two passes to allow for proper duplicate-argument suppression.
  1791. ac_configure_args=
  1792. ac_configure_args0=
  1793. ac_configure_args1=
  1794. ac_must_keep_next=false
  1795. for ac_pass in 1 2
  1796. do
  1797. for ac_arg
  1798. do
  1799. case $ac_arg in
  1800. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1801. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1802. | -silent | --silent | --silen | --sile | --sil)
  1803. continue ;;
  1804. *\'*)
  1805. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1806. esac
  1807. case $ac_pass in
  1808. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1809. 2)
  1810. as_fn_append ac_configure_args1 " '$ac_arg'"
  1811. if test $ac_must_keep_next = true; then
  1812. ac_must_keep_next=false # Got value, back to normal.
  1813. else
  1814. case $ac_arg in
  1815. *=* | --config-cache | -C | -disable-* | --disable-* \
  1816. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1817. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1818. | -with-* | --with-* | -without-* | --without-* | --x)
  1819. case "$ac_configure_args0 " in
  1820. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1821. esac
  1822. ;;
  1823. -* ) ac_must_keep_next=true ;;
  1824. esac
  1825. fi
  1826. as_fn_append ac_configure_args " '$ac_arg'"
  1827. ;;
  1828. esac
  1829. done
  1830. done
  1831. { ac_configure_args0=; unset ac_configure_args0;}
  1832. { ac_configure_args1=; unset ac_configure_args1;}
  1833. # When interrupted or exit'd, cleanup temporary files, and complete
  1834. # config.log. We remove comments because anyway the quotes in there
  1835. # would cause problems or look ugly.
  1836. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1837. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1838. trap 'exit_status=$?
  1839. # Save into config.log some information that might help in debugging.
  1840. {
  1841. echo
  1842. cat <<\_ASBOX
  1843. ## ---------------- ##
  1844. ## Cache variables. ##
  1845. ## ---------------- ##
  1846. _ASBOX
  1847. echo
  1848. # The following way of writing the cache mishandles newlines in values,
  1849. (
  1850. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1851. eval ac_val=\$$ac_var
  1852. case $ac_val in #(
  1853. *${as_nl}*)
  1854. case $ac_var in #(
  1855. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1856. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1857. esac
  1858. case $ac_var in #(
  1859. _ | IFS | as_nl) ;; #(
  1860. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1861. *) { eval $ac_var=; unset $ac_var;} ;;
  1862. esac ;;
  1863. esac
  1864. done
  1865. (set) 2>&1 |
  1866. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1867. *${as_nl}ac_space=\ *)
  1868. sed -n \
  1869. "s/'\''/'\''\\\\'\'''\''/g;
  1870. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1871. ;; #(
  1872. *)
  1873. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1874. ;;
  1875. esac |
  1876. sort
  1877. )
  1878. echo
  1879. cat <<\_ASBOX
  1880. ## ----------------- ##
  1881. ## Output variables. ##
  1882. ## ----------------- ##
  1883. _ASBOX
  1884. echo
  1885. for ac_var in $ac_subst_vars
  1886. do
  1887. eval ac_val=\$$ac_var
  1888. case $ac_val in
  1889. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1890. esac
  1891. $as_echo "$ac_var='\''$ac_val'\''"
  1892. done | sort
  1893. echo
  1894. if test -n "$ac_subst_files"; then
  1895. cat <<\_ASBOX
  1896. ## ------------------- ##
  1897. ## File substitutions. ##
  1898. ## ------------------- ##
  1899. _ASBOX
  1900. echo
  1901. for ac_var in $ac_subst_files
  1902. do
  1903. eval ac_val=\$$ac_var
  1904. case $ac_val in
  1905. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1906. esac
  1907. $as_echo "$ac_var='\''$ac_val'\''"
  1908. done | sort
  1909. echo
  1910. fi
  1911. if test -s confdefs.h; then
  1912. cat <<\_ASBOX
  1913. ## ----------- ##
  1914. ## confdefs.h. ##
  1915. ## ----------- ##
  1916. _ASBOX
  1917. echo
  1918. cat confdefs.h
  1919. echo
  1920. fi
  1921. test "$ac_signal" != 0 &&
  1922. $as_echo "$as_me: caught signal $ac_signal"
  1923. $as_echo "$as_me: exit $exit_status"
  1924. } >&5
  1925. rm -f core *.core core.conftest.* &&
  1926. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1927. exit $exit_status
  1928. ' 0
  1929. for ac_signal in 1 2 13 15; do
  1930. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1931. done
  1932. ac_signal=0
  1933. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1934. rm -f -r conftest* confdefs.h
  1935. $as_echo "/* confdefs.h */" > confdefs.h
  1936. # Predefined preprocessor variables.
  1937. cat >>confdefs.h <<_ACEOF
  1938. #define PACKAGE_NAME "$PACKAGE_NAME"
  1939. _ACEOF
  1940. cat >>confdefs.h <<_ACEOF
  1941. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1942. _ACEOF
  1943. cat >>confdefs.h <<_ACEOF
  1944. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1945. _ACEOF
  1946. cat >>confdefs.h <<_ACEOF
  1947. #define PACKAGE_STRING "$PACKAGE_STRING"
  1948. _ACEOF
  1949. cat >>confdefs.h <<_ACEOF
  1950. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1951. _ACEOF
  1952. cat >>confdefs.h <<_ACEOF
  1953. #define PACKAGE_URL "$PACKAGE_URL"
  1954. _ACEOF
  1955. # Let the site file select an alternate cache file if it wants to.
  1956. # Prefer an explicitly selected file to automatically selected ones.
  1957. ac_site_file1=NONE
  1958. ac_site_file2=NONE
  1959. if test -n "$CONFIG_SITE"; then
  1960. ac_site_file1=$CONFIG_SITE
  1961. elif test "x$prefix" != xNONE; then
  1962. ac_site_file1=$prefix/share/config.site
  1963. ac_site_file2=$prefix/etc/config.site
  1964. else
  1965. ac_site_file1=$ac_default_prefix/share/config.site
  1966. ac_site_file2=$ac_default_prefix/etc/config.site
  1967. fi
  1968. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1969. do
  1970. test "x$ac_site_file" = xNONE && continue
  1971. if test -r "$ac_site_file"; then
  1972. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1973. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1974. sed 's/^/| /' "$ac_site_file" >&5
  1975. . "$ac_site_file"
  1976. fi
  1977. done
  1978. if test -r "$cache_file"; then
  1979. # Some versions of bash will fail to source /dev/null (special
  1980. # files actually), so we avoid doing that.
  1981. if test -f "$cache_file"; then
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1983. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1984. case $cache_file in
  1985. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1986. *) . "./$cache_file";;
  1987. esac
  1988. fi
  1989. else
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1991. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1992. >$cache_file
  1993. fi
  1994. # Check that the precious variables saved in the cache have kept the same
  1995. # value.
  1996. ac_cache_corrupted=false
  1997. for ac_var in $ac_precious_vars; do
  1998. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1999. eval ac_new_set=\$ac_env_${ac_var}_set
  2000. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2001. eval ac_new_val=\$ac_env_${ac_var}_value
  2002. case $ac_old_set,$ac_new_set in
  2003. set,)
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2005. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2006. ac_cache_corrupted=: ;;
  2007. ,set)
  2008. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2009. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2010. ac_cache_corrupted=: ;;
  2011. ,);;
  2012. *)
  2013. if test "x$ac_old_val" != "x$ac_new_val"; then
  2014. # differences in whitespace do not lead to failure.
  2015. ac_old_val_w=`echo x $ac_old_val`
  2016. ac_new_val_w=`echo x $ac_new_val`
  2017. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2019. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2020. ac_cache_corrupted=:
  2021. else
  2022. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2023. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2024. eval $ac_var=\$ac_old_val
  2025. fi
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2027. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2029. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2030. fi;;
  2031. esac
  2032. # Pass precious variables to config.status.
  2033. if test "$ac_new_set" = set; then
  2034. case $ac_new_val in
  2035. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2036. *) ac_arg=$ac_var=$ac_new_val ;;
  2037. esac
  2038. case " $ac_configure_args " in
  2039. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2040. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2041. esac
  2042. fi
  2043. done
  2044. if $ac_cache_corrupted; then
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2046. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2047. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2048. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2049. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2050. fi
  2051. ## -------------------- ##
  2052. ## Main body of script. ##
  2053. ## -------------------- ##
  2054. ac_ext=c
  2055. ac_cpp='$CPP $CPPFLAGS'
  2056. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2057. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2058. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2059. # This file contains common code used by all simulators.
  2060. #
  2061. # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
  2062. # directory. It is intended to be invoked before any target specific stuff.
  2063. # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
  2064. # It is intended to be invoked last.
  2065. #
  2066. # The simulator's configure.ac should look like:
  2067. #
  2068. # dnl Process this file with autoconf to produce a configure script.
  2069. # AC_PREREQ(2.64)dnl
  2070. # AC_INIT(Makefile.in)
  2071. # sinclude(../common/aclocal.m4)
  2072. #
  2073. # SIM_AC_COMMON
  2074. #
  2075. # ... target specific stuff ...
  2076. #
  2077. # SIM_AC_OUTPUT
  2078. # Include global overrides and fixes for Autoconf.
  2079. # _AC_CHECK_DECL_BODY
  2080. # -------------------
  2081. # Shell function body for AC_CHECK_DECL.
  2082. # _AC_CHECK_DECL_BODY
  2083. # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
  2084. # INCLUDES)
  2085. # -------------------------------------------------------------
  2086. # Helper to AC_CHECK_DECLS, which generates the check for a single
  2087. # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
  2088. # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
  2089. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  2090. #
  2091. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  2092. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  2093. # Written by Gordon Matzigkeit, 1996
  2094. #
  2095. # This file is free software; the Free Software Foundation gives
  2096. # unlimited permission to copy and/or distribute it, with or without
  2097. # modifications, as long as this notice is preserved.
  2098. # serial 56 LT_INIT
  2099. # LT_PREREQ(VERSION)
  2100. # ------------------
  2101. # Complain and exit if this libtool version is less that VERSION.
  2102. # _LT_CHECK_BUILDDIR
  2103. # ------------------
  2104. # Complain if the absolute build directory name contains unusual characters
  2105. # LT_INIT([OPTIONS])
  2106. # ------------------
  2107. # LT_INIT
  2108. # Old names:
  2109. # This is what autoupdate's m4 run will expand. It fires
  2110. # the warning (with _au_warn_XXX), outputs it into the
  2111. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2112. # the replacement expansion.
  2113. # This is an auxiliary macro that is also run when
  2114. # autoupdate runs m4. It simply calls m4_warning, but
  2115. # we need a wrapper so that each warning is emitted only
  2116. # once. We break the quoting in m4_warning's argument in
  2117. # order to expand this macro's arguments, not AU_DEFUN's.
  2118. # Finally, this is the expansion that is picked up by
  2119. # autoconf. It tells the user to run autoupdate, and
  2120. # then outputs the replacement expansion. We do not care
  2121. # about autoupdate's warning because that contains
  2122. # information on what to do *after* running autoupdate.
  2123. # This is what autoupdate's m4 run will expand. It fires
  2124. # the warning (with _au_warn_XXX), outputs it into the
  2125. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2126. # the replacement expansion.
  2127. # This is an auxiliary macro that is also run when
  2128. # autoupdate runs m4. It simply calls m4_warning, but
  2129. # we need a wrapper so that each warning is emitted only
  2130. # once. We break the quoting in m4_warning's argument in
  2131. # order to expand this macro's arguments, not AU_DEFUN's.
  2132. # Finally, this is the expansion that is picked up by
  2133. # autoconf. It tells the user to run autoupdate, and
  2134. # then outputs the replacement expansion. We do not care
  2135. # about autoupdate's warning because that contains
  2136. # information on what to do *after* running autoupdate.
  2137. # _LT_CC_BASENAME(CC)
  2138. # -------------------
  2139. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  2140. # _LT_FILEUTILS_DEFAULTS
  2141. # ----------------------
  2142. # It is okay to use these file commands and assume they have been set
  2143. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  2144. # _LT_FILEUTILS_DEFAULTS
  2145. # _LT_SETUP
  2146. # ---------
  2147. # _LT_SETUP
  2148. # _LT_PREPARE_SED_QUOTE_VARS
  2149. # --------------------------
  2150. # Define a few sed substitution that help us do robust quoting.
  2151. # _LT_PROG_LTMAIN
  2152. # ---------------
  2153. # Note that this code is called both from `configure', and `config.status'
  2154. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  2155. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  2156. # so we pass a copy along to make sure it has a sensible value anyway.
  2157. # _LT_PROG_LTMAIN
  2158. ## ------------------------------------- ##
  2159. ## Accumulate code for creating libtool. ##
  2160. ## ------------------------------------- ##
  2161. # So that we can recreate a full libtool script including additional
  2162. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  2163. # in macros and then make a single call at the end using the `libtool'
  2164. # label.
  2165. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  2166. # ----------------------------------------
  2167. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2168. # Initialize.
  2169. # _LT_CONFIG_LIBTOOL([COMMANDS])
  2170. # ------------------------------
  2171. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2172. # Initialize.
  2173. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  2174. # -----------------------------------------------------
  2175. # _LT_FORMAT_COMMENT([COMMENT])
  2176. # -----------------------------
  2177. # Add leading comment marks to the start of each line, and a trailing
  2178. # full-stop to the whole comment if one is not present already.
  2179. ## ------------------------ ##
  2180. ## FIXME: Eliminate VARNAME ##
  2181. ## ------------------------ ##
  2182. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  2183. # -------------------------------------------------------------------
  2184. # CONFIGNAME is the name given to the value in the libtool script.
  2185. # VARNAME is the (base) name used in the configure script.
  2186. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  2187. # VARNAME. Any other value will be used directly.
  2188. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  2189. # --------------------------------------------------------
  2190. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  2191. # ------------------------------------------------
  2192. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  2193. # ---------------------------------------------------------
  2194. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  2195. # --------------------------------------------------
  2196. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  2197. # ---------------------------------------------------
  2198. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  2199. # ---------------------------------------------------
  2200. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  2201. # ------------------------------------------------
  2202. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  2203. # ------------------------------------
  2204. # Quote a variable value, and forward it to `config.status' so that its
  2205. # declaration there will have the same value as in `configure'. VARNAME
  2206. # must have a single quote delimited value for this to work.
  2207. # _LT_CONFIG_STATUS_DECLARATIONS
  2208. # ------------------------------
  2209. # We delimit libtool config variables with single quotes, so when
  2210. # we write them to config.status, we have to be sure to quote all
  2211. # embedded single quotes properly. In configure, this macro expands
  2212. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  2213. #
  2214. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  2215. # _LT_LIBTOOL_TAGS
  2216. # ----------------
  2217. # Output comment and list of tags supported by the script
  2218. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  2219. # -----------------------------------
  2220. # Extract the dictionary values for VARNAME (optionally with TAG) and
  2221. # expand to a commented shell variable setting:
  2222. #
  2223. # # Some comment about what VAR is for.
  2224. # visible_name=$lt_internal_name
  2225. # _LT_LIBTOOL_CONFIG_VARS
  2226. # -----------------------
  2227. # Produce commented declarations of non-tagged libtool config variables
  2228. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  2229. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  2230. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  2231. # _LT_LIBTOOL_TAG_VARS(TAG)
  2232. # -------------------------
  2233. # _LT_TAGVAR(VARNAME, [TAGNAME])
  2234. # ------------------------------
  2235. # _LT_CONFIG_COMMANDS
  2236. # -------------------
  2237. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  2238. # variables for single and double quote escaping we saved from calls
  2239. # to _LT_DECL, we can put quote escaped variables declarations
  2240. # into `config.status', and then the shell code to quote escape them in
  2241. # for loops in `config.status'. Finally, any additional code accumulated
  2242. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  2243. #_LT_CONFIG_COMMANDS
  2244. # Initialize.
  2245. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  2246. # ------------------------------------
  2247. # Generate a child script FILE with all initialization necessary to
  2248. # reuse the environment learned by the parent script, and make the
  2249. # file executable. If COMMENT is supplied, it is inserted after the
  2250. # `#!' sequence but before initialization text begins. After this
  2251. # macro, additional text can be appended to FILE to form the body of
  2252. # the child script. The macro ends with non-zero status if the
  2253. # file could not be fully written (such as if the disk is full).
  2254. # _LT_GENERATED_FILE_INIT
  2255. # LT_OUTPUT
  2256. # ---------
  2257. # This macro allows early generation of the libtool script (before
  2258. # AC_OUTPUT is called), incase it is used in configure for compilation
  2259. # tests.
  2260. # LT_OUTPUT
  2261. # _LT_CONFIG(TAG)
  2262. # ---------------
  2263. # If TAG is the built-in tag, create an initial libtool script with a
  2264. # default configuration from the untagged config vars. Otherwise add code
  2265. # to config.status for appending the configuration named by TAG from the
  2266. # matching tagged config vars.
  2267. # _LT_CONFIG
  2268. # LT_SUPPORTED_TAG(TAG)
  2269. # ---------------------
  2270. # Trace this macro to discover what tags are supported by the libtool
  2271. # --tag option, using:
  2272. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  2273. # C support is built-in for now
  2274. # LT_LANG(LANG)
  2275. # -------------
  2276. # Enable libtool support for the given language if not already enabled.
  2277. # LT_LANG
  2278. # _LT_LANG(LANGNAME)
  2279. # ------------------
  2280. # _LT_LANG
  2281. # _LT_LANG_DEFAULT_CONFIG
  2282. # -----------------------
  2283. # _LT_LANG_DEFAULT_CONFIG
  2284. # Obsolete macros:
  2285. # This is what autoupdate's m4 run will expand. It fires
  2286. # the warning (with _au_warn_XXX), outputs it into the
  2287. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2288. # the replacement expansion.
  2289. # This is an auxiliary macro that is also run when
  2290. # autoupdate runs m4. It simply calls m4_warning, but
  2291. # we need a wrapper so that each warning is emitted only
  2292. # once. We break the quoting in m4_warning's argument in
  2293. # order to expand this macro's arguments, not AU_DEFUN's.
  2294. # Finally, this is the expansion that is picked up by
  2295. # autoconf. It tells the user to run autoupdate, and
  2296. # then outputs the replacement expansion. We do not care
  2297. # about autoupdate's warning because that contains
  2298. # information on what to do *after* running autoupdate.
  2299. # This is what autoupdate's m4 run will expand. It fires
  2300. # the warning (with _au_warn_XXX), outputs it into the
  2301. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2302. # the replacement expansion.
  2303. # This is an auxiliary macro that is also run when
  2304. # autoupdate runs m4. It simply calls m4_warning, but
  2305. # we need a wrapper so that each warning is emitted only
  2306. # once. We break the quoting in m4_warning's argument in
  2307. # order to expand this macro's arguments, not AU_DEFUN's.
  2308. # Finally, this is the expansion that is picked up by
  2309. # autoconf. It tells the user to run autoupdate, and
  2310. # then outputs the replacement expansion. We do not care
  2311. # about autoupdate's warning because that contains
  2312. # information on what to do *after* running autoupdate.
  2313. # This is what autoupdate's m4 run will expand. It fires
  2314. # the warning (with _au_warn_XXX), outputs it into the
  2315. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2316. # the replacement expansion.
  2317. # This is an auxiliary macro that is also run when
  2318. # autoupdate runs m4. It simply calls m4_warning, but
  2319. # we need a wrapper so that each warning is emitted only
  2320. # once. We break the quoting in m4_warning's argument in
  2321. # order to expand this macro's arguments, not AU_DEFUN's.
  2322. # Finally, this is the expansion that is picked up by
  2323. # autoconf. It tells the user to run autoupdate, and
  2324. # then outputs the replacement expansion. We do not care
  2325. # about autoupdate's warning because that contains
  2326. # information on what to do *after* running autoupdate.
  2327. # This is what autoupdate's m4 run will expand. It fires
  2328. # the warning (with _au_warn_XXX), outputs it into the
  2329. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2330. # the replacement expansion.
  2331. # This is an auxiliary macro that is also run when
  2332. # autoupdate runs m4. It simply calls m4_warning, but
  2333. # we need a wrapper so that each warning is emitted only
  2334. # once. We break the quoting in m4_warning's argument in
  2335. # order to expand this macro's arguments, not AU_DEFUN's.
  2336. # Finally, this is the expansion that is picked up by
  2337. # autoconf. It tells the user to run autoupdate, and
  2338. # then outputs the replacement expansion. We do not care
  2339. # about autoupdate's warning because that contains
  2340. # information on what to do *after* running autoupdate.
  2341. # This is what autoupdate's m4 run will expand. It fires
  2342. # the warning (with _au_warn_XXX), outputs it into the
  2343. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2344. # the replacement expansion.
  2345. # This is an auxiliary macro that is also run when
  2346. # autoupdate runs m4. It simply calls m4_warning, but
  2347. # we need a wrapper so that each warning is emitted only
  2348. # once. We break the quoting in m4_warning's argument in
  2349. # order to expand this macro's arguments, not AU_DEFUN's.
  2350. # Finally, this is the expansion that is picked up by
  2351. # autoconf. It tells the user to run autoupdate, and
  2352. # then outputs the replacement expansion. We do not care
  2353. # about autoupdate's warning because that contains
  2354. # information on what to do *after* running autoupdate.
  2355. # _LT_TAG_COMPILER
  2356. # ----------------
  2357. # _LT_TAG_COMPILER
  2358. # _LT_COMPILER_BOILERPLATE
  2359. # ------------------------
  2360. # Check for compiler boilerplate output or warnings with
  2361. # the simple compiler test code.
  2362. # _LT_COMPILER_BOILERPLATE
  2363. # _LT_LINKER_BOILERPLATE
  2364. # ----------------------
  2365. # Check for linker boilerplate output or warnings with
  2366. # the simple link test code.
  2367. # _LT_LINKER_BOILERPLATE
  2368. # _LT_REQUIRED_DARWIN_CHECKS
  2369. # -------------------------
  2370. # _LT_DARWIN_LINKER_FEATURES
  2371. # --------------------------
  2372. # Checks for linker and compiler features on darwin
  2373. # _LT_SYS_MODULE_PATH_AIX
  2374. # -----------------------
  2375. # Links a minimal program and checks the executable
  2376. # for the system default hardcoded library path. In most cases,
  2377. # this is /usr/lib:/lib, but when the MPI compilers are used
  2378. # the location of the communication and MPI libs are included too.
  2379. # If we don't find anything, use the default library path according
  2380. # to the aix ld manual.
  2381. # _LT_SYS_MODULE_PATH_AIX
  2382. # _LT_SHELL_INIT(ARG)
  2383. # -------------------
  2384. # _LT_SHELL_INIT
  2385. # _LT_PROG_ECHO_BACKSLASH
  2386. # -----------------------
  2387. # Find how we can fake an echo command that does not interpret backslash.
  2388. # In particular, with Autoconf 2.60 or later we add some code to the start
  2389. # of the generated configure script which will find a shell with a builtin
  2390. # printf (which we can use as an echo command).
  2391. # _LT_PROG_ECHO_BACKSLASH
  2392. # _LT_ENABLE_LOCK
  2393. # ---------------
  2394. # _LT_ENABLE_LOCK
  2395. # _LT_CMD_OLD_ARCHIVE
  2396. # -------------------
  2397. # _LT_CMD_OLD_ARCHIVE
  2398. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2399. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2400. # ----------------------------------------------------------------
  2401. # Check whether the given compiler option works
  2402. # _LT_COMPILER_OPTION
  2403. # Old name:
  2404. # This is what autoupdate's m4 run will expand. It fires
  2405. # the warning (with _au_warn_XXX), outputs it into the
  2406. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2407. # the replacement expansion.
  2408. # This is an auxiliary macro that is also run when
  2409. # autoupdate runs m4. It simply calls m4_warning, but
  2410. # we need a wrapper so that each warning is emitted only
  2411. # once. We break the quoting in m4_warning's argument in
  2412. # order to expand this macro's arguments, not AU_DEFUN's.
  2413. # Finally, this is the expansion that is picked up by
  2414. # autoconf. It tells the user to run autoupdate, and
  2415. # then outputs the replacement expansion. We do not care
  2416. # about autoupdate's warning because that contains
  2417. # information on what to do *after* running autoupdate.
  2418. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2419. # [ACTION-SUCCESS], [ACTION-FAILURE])
  2420. # ----------------------------------------------------
  2421. # Check whether the given linker option works
  2422. # _LT_LINKER_OPTION
  2423. # Old name:
  2424. # This is what autoupdate's m4 run will expand. It fires
  2425. # the warning (with _au_warn_XXX), outputs it into the
  2426. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2427. # the replacement expansion.
  2428. # This is an auxiliary macro that is also run when
  2429. # autoupdate runs m4. It simply calls m4_warning, but
  2430. # we need a wrapper so that each warning is emitted only
  2431. # once. We break the quoting in m4_warning's argument in
  2432. # order to expand this macro's arguments, not AU_DEFUN's.
  2433. # Finally, this is the expansion that is picked up by
  2434. # autoconf. It tells the user to run autoupdate, and
  2435. # then outputs the replacement expansion. We do not care
  2436. # about autoupdate's warning because that contains
  2437. # information on what to do *after* running autoupdate.
  2438. # LT_CMD_MAX_LEN
  2439. #---------------
  2440. # LT_CMD_MAX_LEN
  2441. # Old name:
  2442. # This is what autoupdate's m4 run will expand. It fires
  2443. # the warning (with _au_warn_XXX), outputs it into the
  2444. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2445. # the replacement expansion.
  2446. # This is an auxiliary macro that is also run when
  2447. # autoupdate runs m4. It simply calls m4_warning, but
  2448. # we need a wrapper so that each warning is emitted only
  2449. # once. We break the quoting in m4_warning's argument in
  2450. # order to expand this macro's arguments, not AU_DEFUN's.
  2451. # Finally, this is the expansion that is picked up by
  2452. # autoconf. It tells the user to run autoupdate, and
  2453. # then outputs the replacement expansion. We do not care
  2454. # about autoupdate's warning because that contains
  2455. # information on what to do *after* running autoupdate.
  2456. # _LT_HEADER_DLFCN
  2457. # ----------------
  2458. # _LT_HEADER_DLFCN
  2459. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2460. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2461. # ----------------------------------------------------------------
  2462. # _LT_TRY_DLOPEN_SELF
  2463. # LT_SYS_DLOPEN_SELF
  2464. # ------------------
  2465. # LT_SYS_DLOPEN_SELF
  2466. # Old name:
  2467. # This is what autoupdate's m4 run will expand. It fires
  2468. # the warning (with _au_warn_XXX), outputs it into the
  2469. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2470. # the replacement expansion.
  2471. # This is an auxiliary macro that is also run when
  2472. # autoupdate runs m4. It simply calls m4_warning, but
  2473. # we need a wrapper so that each warning is emitted only
  2474. # once. We break the quoting in m4_warning's argument in
  2475. # order to expand this macro's arguments, not AU_DEFUN's.
  2476. # Finally, this is the expansion that is picked up by
  2477. # autoconf. It tells the user to run autoupdate, and
  2478. # then outputs the replacement expansion. We do not care
  2479. # about autoupdate's warning because that contains
  2480. # information on what to do *after* running autoupdate.
  2481. # _LT_COMPILER_C_O([TAGNAME])
  2482. # ---------------------------
  2483. # Check to see if options -c and -o are simultaneously supported by compiler.
  2484. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2485. # _LT_COMPILER_C_O
  2486. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2487. # ----------------------------------
  2488. # Check to see if we can do hard links to lock some files if needed
  2489. # _LT_COMPILER_FILE_LOCKS
  2490. # _LT_CHECK_OBJDIR
  2491. # ----------------
  2492. # _LT_CHECK_OBJDIR
  2493. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2494. # --------------------------------------
  2495. # Check hardcoding attributes.
  2496. # _LT_LINKER_HARDCODE_LIBPATH
  2497. # _LT_CMD_STRIPLIB
  2498. # ----------------
  2499. # _LT_CMD_STRIPLIB
  2500. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2501. # -----------------------------
  2502. # PORTME Fill in your ld.so characteristics
  2503. # _LT_SYS_DYNAMIC_LINKER
  2504. # _LT_PATH_TOOL_PREFIX(TOOL)
  2505. # --------------------------
  2506. # find a file program which can recognize shared library
  2507. # _LT_PATH_TOOL_PREFIX
  2508. # Old name:
  2509. # This is what autoupdate's m4 run will expand. It fires
  2510. # the warning (with _au_warn_XXX), outputs it into the
  2511. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2512. # the replacement expansion.
  2513. # This is an auxiliary macro that is also run when
  2514. # autoupdate runs m4. It simply calls m4_warning, but
  2515. # we need a wrapper so that each warning is emitted only
  2516. # once. We break the quoting in m4_warning's argument in
  2517. # order to expand this macro's arguments, not AU_DEFUN's.
  2518. # Finally, this is the expansion that is picked up by
  2519. # autoconf. It tells the user to run autoupdate, and
  2520. # then outputs the replacement expansion. We do not care
  2521. # about autoupdate's warning because that contains
  2522. # information on what to do *after* running autoupdate.
  2523. # _LT_PATH_MAGIC
  2524. # --------------
  2525. # find a file program which can recognize a shared library
  2526. # _LT_PATH_MAGIC
  2527. # LT_PATH_LD
  2528. # ----------
  2529. # find the pathname to the GNU or non-GNU linker
  2530. # LT_PATH_LD
  2531. # Old names:
  2532. # This is what autoupdate's m4 run will expand. It fires
  2533. # the warning (with _au_warn_XXX), outputs it into the
  2534. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2535. # the replacement expansion.
  2536. # This is an auxiliary macro that is also run when
  2537. # autoupdate runs m4. It simply calls m4_warning, but
  2538. # we need a wrapper so that each warning is emitted only
  2539. # once. We break the quoting in m4_warning's argument in
  2540. # order to expand this macro's arguments, not AU_DEFUN's.
  2541. # Finally, this is the expansion that is picked up by
  2542. # autoconf. It tells the user to run autoupdate, and
  2543. # then outputs the replacement expansion. We do not care
  2544. # about autoupdate's warning because that contains
  2545. # information on what to do *after* running autoupdate.
  2546. # This is what autoupdate's m4 run will expand. It fires
  2547. # the warning (with _au_warn_XXX), outputs it into the
  2548. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2549. # the replacement expansion.
  2550. # This is an auxiliary macro that is also run when
  2551. # autoupdate runs m4. It simply calls m4_warning, but
  2552. # we need a wrapper so that each warning is emitted only
  2553. # once. We break the quoting in m4_warning's argument in
  2554. # order to expand this macro's arguments, not AU_DEFUN's.
  2555. # Finally, this is the expansion that is picked up by
  2556. # autoconf. It tells the user to run autoupdate, and
  2557. # then outputs the replacement expansion. We do not care
  2558. # about autoupdate's warning because that contains
  2559. # information on what to do *after* running autoupdate.
  2560. # _LT_PATH_LD_GNU
  2561. #- --------------
  2562. # _LT_PATH_LD_GNU
  2563. # _LT_CMD_RELOAD
  2564. # --------------
  2565. # find reload flag for linker
  2566. # -- PORTME Some linkers may need a different reload flag.
  2567. # _LT_CMD_RELOAD
  2568. # _LT_CHECK_MAGIC_METHOD
  2569. # ----------------------
  2570. # how to check for library dependencies
  2571. # -- PORTME fill in with the dynamic library characteristics
  2572. # _LT_CHECK_MAGIC_METHOD
  2573. # LT_PATH_NM
  2574. # ----------
  2575. # find the pathname to a BSD- or MS-compatible name lister
  2576. # LT_PATH_NM
  2577. # Old names:
  2578. # This is what autoupdate's m4 run will expand. It fires
  2579. # the warning (with _au_warn_XXX), outputs it into the
  2580. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2581. # the replacement expansion.
  2582. # This is an auxiliary macro that is also run when
  2583. # autoupdate runs m4. It simply calls m4_warning, but
  2584. # we need a wrapper so that each warning is emitted only
  2585. # once. We break the quoting in m4_warning's argument in
  2586. # order to expand this macro's arguments, not AU_DEFUN's.
  2587. # Finally, this is the expansion that is picked up by
  2588. # autoconf. It tells the user to run autoupdate, and
  2589. # then outputs the replacement expansion. We do not care
  2590. # about autoupdate's warning because that contains
  2591. # information on what to do *after* running autoupdate.
  2592. # This is what autoupdate's m4 run will expand. It fires
  2593. # the warning (with _au_warn_XXX), outputs it into the
  2594. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2595. # the replacement expansion.
  2596. # This is an auxiliary macro that is also run when
  2597. # autoupdate runs m4. It simply calls m4_warning, but
  2598. # we need a wrapper so that each warning is emitted only
  2599. # once. We break the quoting in m4_warning's argument in
  2600. # order to expand this macro's arguments, not AU_DEFUN's.
  2601. # Finally, this is the expansion that is picked up by
  2602. # autoconf. It tells the user to run autoupdate, and
  2603. # then outputs the replacement expansion. We do not care
  2604. # about autoupdate's warning because that contains
  2605. # information on what to do *after* running autoupdate.
  2606. # LT_LIB_M
  2607. # --------
  2608. # check for math library
  2609. # LT_LIB_M
  2610. # Old name:
  2611. # This is what autoupdate's m4 run will expand. It fires
  2612. # the warning (with _au_warn_XXX), outputs it into the
  2613. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2614. # the replacement expansion.
  2615. # This is an auxiliary macro that is also run when
  2616. # autoupdate runs m4. It simply calls m4_warning, but
  2617. # we need a wrapper so that each warning is emitted only
  2618. # once. We break the quoting in m4_warning's argument in
  2619. # order to expand this macro's arguments, not AU_DEFUN's.
  2620. # Finally, this is the expansion that is picked up by
  2621. # autoconf. It tells the user to run autoupdate, and
  2622. # then outputs the replacement expansion. We do not care
  2623. # about autoupdate's warning because that contains
  2624. # information on what to do *after* running autoupdate.
  2625. # _LT_COMPILER_NO_RTTI([TAGNAME])
  2626. # -------------------------------
  2627. # _LT_COMPILER_NO_RTTI
  2628. # _LT_CMD_GLOBAL_SYMBOLS
  2629. # ----------------------
  2630. # _LT_CMD_GLOBAL_SYMBOLS
  2631. # _LT_COMPILER_PIC([TAGNAME])
  2632. # ---------------------------
  2633. # _LT_COMPILER_PIC
  2634. # _LT_LINKER_SHLIBS([TAGNAME])
  2635. # ----------------------------
  2636. # See if the linker supports building shared libraries.
  2637. # _LT_LINKER_SHLIBS
  2638. # _LT_LANG_C_CONFIG([TAG])
  2639. # ------------------------
  2640. # Ensure that the configuration variables for a C compiler are suitably
  2641. # defined. These variables are subsequently used by _LT_CONFIG to write
  2642. # the compiler configuration to `libtool'.
  2643. # _LT_LANG_C_CONFIG
  2644. # _LT_LANG_CXX_CONFIG([TAG])
  2645. # --------------------------
  2646. # Ensure that the configuration variables for a C++ compiler are suitably
  2647. # defined. These variables are subsequently used by _LT_CONFIG to write
  2648. # the compiler configuration to `libtool'.
  2649. # _LT_LANG_CXX_CONFIG
  2650. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  2651. # ---------------------------------
  2652. # Figure out "hidden" library dependencies from verbose
  2653. # compiler output when linking a shared library.
  2654. # Parse the compiler output and extract the necessary
  2655. # objects, libraries and library flags.
  2656. # _LT_SYS_HIDDEN_LIBDEPS
  2657. # _LT_LANG_F77_CONFIG([TAG])
  2658. # --------------------------
  2659. # Ensure that the configuration variables for a Fortran 77 compiler are
  2660. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2661. # to write the compiler configuration to `libtool'.
  2662. # _LT_LANG_F77_CONFIG
  2663. # _LT_LANG_FC_CONFIG([TAG])
  2664. # -------------------------
  2665. # Ensure that the configuration variables for a Fortran compiler are
  2666. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2667. # to write the compiler configuration to `libtool'.
  2668. # _LT_LANG_FC_CONFIG
  2669. # _LT_LANG_GCJ_CONFIG([TAG])
  2670. # --------------------------
  2671. # Ensure that the configuration variables for the GNU Java Compiler compiler
  2672. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2673. # to write the compiler configuration to `libtool'.
  2674. # _LT_LANG_GCJ_CONFIG
  2675. # _LT_LANG_RC_CONFIG([TAG])
  2676. # -------------------------
  2677. # Ensure that the configuration variables for the Windows resource compiler
  2678. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2679. # to write the compiler configuration to `libtool'.
  2680. # _LT_LANG_RC_CONFIG
  2681. # LT_PROG_GCJ
  2682. # -----------
  2683. # Old name:
  2684. # This is what autoupdate's m4 run will expand. It fires
  2685. # the warning (with _au_warn_XXX), outputs it into the
  2686. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2687. # the replacement expansion.
  2688. # This is an auxiliary macro that is also run when
  2689. # autoupdate runs m4. It simply calls m4_warning, but
  2690. # we need a wrapper so that each warning is emitted only
  2691. # once. We break the quoting in m4_warning's argument in
  2692. # order to expand this macro's arguments, not AU_DEFUN's.
  2693. # Finally, this is the expansion that is picked up by
  2694. # autoconf. It tells the user to run autoupdate, and
  2695. # then outputs the replacement expansion. We do not care
  2696. # about autoupdate's warning because that contains
  2697. # information on what to do *after* running autoupdate.
  2698. # LT_PROG_RC
  2699. # ----------
  2700. # Old name:
  2701. # This is what autoupdate's m4 run will expand. It fires
  2702. # the warning (with _au_warn_XXX), outputs it into the
  2703. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2704. # the replacement expansion.
  2705. # This is an auxiliary macro that is also run when
  2706. # autoupdate runs m4. It simply calls m4_warning, but
  2707. # we need a wrapper so that each warning is emitted only
  2708. # once. We break the quoting in m4_warning's argument in
  2709. # order to expand this macro's arguments, not AU_DEFUN's.
  2710. # Finally, this is the expansion that is picked up by
  2711. # autoconf. It tells the user to run autoupdate, and
  2712. # then outputs the replacement expansion. We do not care
  2713. # about autoupdate's warning because that contains
  2714. # information on what to do *after* running autoupdate.
  2715. # _LT_DECL_EGREP
  2716. # --------------
  2717. # If we don't have a new enough Autoconf to choose the best grep
  2718. # available, choose the one first in the user's PATH.
  2719. # _LT_DECL_OBJDUMP
  2720. # --------------
  2721. # If we don't have a new enough Autoconf to choose the best objdump
  2722. # available, choose the one first in the user's PATH.
  2723. # _LT_DECL_SED
  2724. # ------------
  2725. # Check for a fully-functional sed program, that truncates
  2726. # as few characters as possible. Prefer GNU sed if found.
  2727. # _LT_DECL_SED
  2728. #m4_ifndef
  2729. # Old name:
  2730. # This is what autoupdate's m4 run will expand. It fires
  2731. # the warning (with _au_warn_XXX), outputs it into the
  2732. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2733. # the replacement expansion.
  2734. # This is an auxiliary macro that is also run when
  2735. # autoupdate runs m4. It simply calls m4_warning, but
  2736. # we need a wrapper so that each warning is emitted only
  2737. # once. We break the quoting in m4_warning's argument in
  2738. # order to expand this macro's arguments, not AU_DEFUN's.
  2739. # Finally, this is the expansion that is picked up by
  2740. # autoconf. It tells the user to run autoupdate, and
  2741. # then outputs the replacement expansion. We do not care
  2742. # about autoupdate's warning because that contains
  2743. # information on what to do *after* running autoupdate.
  2744. # _LT_CHECK_SHELL_FEATURES
  2745. # ------------------------
  2746. # Find out whether the shell is Bourne or XSI compatible,
  2747. # or has some other useful features.
  2748. # _LT_CHECK_SHELL_FEATURES
  2749. # _LT_PROG_XSI_SHELLFNS
  2750. # ---------------------
  2751. # Bourne and XSI compatible variants of some useful shell functions.
  2752. # Helper functions for option handling. -*- Autoconf -*-
  2753. #
  2754. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  2755. # Inc.
  2756. # Written by Gary V. Vaughan, 2004
  2757. #
  2758. # This file is free software; the Free Software Foundation gives
  2759. # unlimited permission to copy and/or distribute it, with or without
  2760. # modifications, as long as this notice is preserved.
  2761. # serial 6 ltoptions.m4
  2762. # This is to help aclocal find these macros, as it can't see m4_define.
  2763. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  2764. # ------------------------------------------
  2765. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  2766. # ---------------------------------------
  2767. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  2768. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  2769. # saved as a flag.
  2770. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  2771. # ------------------------------------------------------------
  2772. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  2773. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  2774. # -------------------------------------------------------
  2775. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  2776. # are set.
  2777. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  2778. # ----------------------------------------
  2779. # OPTION-LIST is a space-separated list of Libtool options associated
  2780. # with MACRO-NAME. If any OPTION has a matching handler declared with
  2781. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  2782. # the unknown option and exit.
  2783. # _LT_SET_OPTIONS
  2784. ## --------------------------------- ##
  2785. ## Macros to handle LT_INIT options. ##
  2786. ## --------------------------------- ##
  2787. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  2788. # -----------------------------------------
  2789. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  2790. # -----------------------------------------------
  2791. # LT_OPTION_DEFINE
  2792. # dlopen
  2793. # ------
  2794. # This is what autoupdate's m4 run will expand. It fires
  2795. # the warning (with _au_warn_XXX), outputs it into the
  2796. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2797. # the replacement expansion.
  2798. # This is an auxiliary macro that is also run when
  2799. # autoupdate runs m4. It simply calls m4_warning, but
  2800. # we need a wrapper so that each warning is emitted only
  2801. # once. We break the quoting in m4_warning's argument in
  2802. # order to expand this macro's arguments, not AU_DEFUN's.
  2803. # Finally, this is the expansion that is picked up by
  2804. # autoconf. It tells the user to run autoupdate, and
  2805. # then outputs the replacement expansion. We do not care
  2806. # about autoupdate's warning because that contains
  2807. # information on what to do *after* running autoupdate.
  2808. # win32-dll
  2809. # ---------
  2810. # Declare package support for building win32 dll's.
  2811. # win32-dll
  2812. # This is what autoupdate's m4 run will expand. It fires
  2813. # the warning (with _au_warn_XXX), outputs it into the
  2814. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2815. # the replacement expansion.
  2816. # This is an auxiliary macro that is also run when
  2817. # autoupdate runs m4. It simply calls m4_warning, but
  2818. # we need a wrapper so that each warning is emitted only
  2819. # once. We break the quoting in m4_warning's argument in
  2820. # order to expand this macro's arguments, not AU_DEFUN's.
  2821. # Finally, this is the expansion that is picked up by
  2822. # autoconf. It tells the user to run autoupdate, and
  2823. # then outputs the replacement expansion. We do not care
  2824. # about autoupdate's warning because that contains
  2825. # information on what to do *after* running autoupdate.
  2826. # _LT_ENABLE_SHARED([DEFAULT])
  2827. # ----------------------------
  2828. # implement the --enable-shared flag, and supports the `shared' and
  2829. # `disable-shared' LT_INIT options.
  2830. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2831. # _LT_ENABLE_SHARED
  2832. # Old names:
  2833. # This is what autoupdate's m4 run will expand. It fires
  2834. # the warning (with _au_warn_XXX), outputs it into the
  2835. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2836. # the replacement expansion.
  2837. # This is an auxiliary macro that is also run when
  2838. # autoupdate runs m4. It simply calls m4_warning, but
  2839. # we need a wrapper so that each warning is emitted only
  2840. # once. We break the quoting in m4_warning's argument in
  2841. # order to expand this macro's arguments, not AU_DEFUN's.
  2842. # Finally, this is the expansion that is picked up by
  2843. # autoconf. It tells the user to run autoupdate, and
  2844. # then outputs the replacement expansion. We do not care
  2845. # about autoupdate's warning because that contains
  2846. # information on what to do *after* running autoupdate.
  2847. # This is what autoupdate's m4 run will expand. It fires
  2848. # the warning (with _au_warn_XXX), outputs it into the
  2849. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2850. # the replacement expansion.
  2851. # This is an auxiliary macro that is also run when
  2852. # autoupdate runs m4. It simply calls m4_warning, but
  2853. # we need a wrapper so that each warning is emitted only
  2854. # once. We break the quoting in m4_warning's argument in
  2855. # order to expand this macro's arguments, not AU_DEFUN's.
  2856. # Finally, this is the expansion that is picked up by
  2857. # autoconf. It tells the user to run autoupdate, and
  2858. # then outputs the replacement expansion. We do not care
  2859. # about autoupdate's warning because that contains
  2860. # information on what to do *after* running autoupdate.
  2861. # _LT_ENABLE_STATIC([DEFAULT])
  2862. # ----------------------------
  2863. # implement the --enable-static flag, and support the `static' and
  2864. # `disable-static' LT_INIT options.
  2865. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2866. # _LT_ENABLE_STATIC
  2867. # Old names:
  2868. # This is what autoupdate's m4 run will expand. It fires
  2869. # the warning (with _au_warn_XXX), outputs it into the
  2870. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2871. # the replacement expansion.
  2872. # This is an auxiliary macro that is also run when
  2873. # autoupdate runs m4. It simply calls m4_warning, but
  2874. # we need a wrapper so that each warning is emitted only
  2875. # once. We break the quoting in m4_warning's argument in
  2876. # order to expand this macro's arguments, not AU_DEFUN's.
  2877. # Finally, this is the expansion that is picked up by
  2878. # autoconf. It tells the user to run autoupdate, and
  2879. # then outputs the replacement expansion. We do not care
  2880. # about autoupdate's warning because that contains
  2881. # information on what to do *after* running autoupdate.
  2882. # This is what autoupdate's m4 run will expand. It fires
  2883. # the warning (with _au_warn_XXX), outputs it into the
  2884. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2885. # the replacement expansion.
  2886. # This is an auxiliary macro that is also run when
  2887. # autoupdate runs m4. It simply calls m4_warning, but
  2888. # we need a wrapper so that each warning is emitted only
  2889. # once. We break the quoting in m4_warning's argument in
  2890. # order to expand this macro's arguments, not AU_DEFUN's.
  2891. # Finally, this is the expansion that is picked up by
  2892. # autoconf. It tells the user to run autoupdate, and
  2893. # then outputs the replacement expansion. We do not care
  2894. # about autoupdate's warning because that contains
  2895. # information on what to do *after* running autoupdate.
  2896. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  2897. # ----------------------------------
  2898. # implement the --enable-fast-install flag, and support the `fast-install'
  2899. # and `disable-fast-install' LT_INIT options.
  2900. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2901. # _LT_ENABLE_FAST_INSTALL
  2902. # Old names:
  2903. # This is what autoupdate's m4 run will expand. It fires
  2904. # the warning (with _au_warn_XXX), outputs it into the
  2905. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2906. # the replacement expansion.
  2907. # This is an auxiliary macro that is also run when
  2908. # autoupdate runs m4. It simply calls m4_warning, but
  2909. # we need a wrapper so that each warning is emitted only
  2910. # once. We break the quoting in m4_warning's argument in
  2911. # order to expand this macro's arguments, not AU_DEFUN's.
  2912. # Finally, this is the expansion that is picked up by
  2913. # autoconf. It tells the user to run autoupdate, and
  2914. # then outputs the replacement expansion. We do not care
  2915. # about autoupdate's warning because that contains
  2916. # information on what to do *after* running autoupdate.
  2917. # This is what autoupdate's m4 run will expand. It fires
  2918. # the warning (with _au_warn_XXX), outputs it into the
  2919. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2920. # the replacement expansion.
  2921. # This is an auxiliary macro that is also run when
  2922. # autoupdate runs m4. It simply calls m4_warning, but
  2923. # we need a wrapper so that each warning is emitted only
  2924. # once. We break the quoting in m4_warning's argument in
  2925. # order to expand this macro's arguments, not AU_DEFUN's.
  2926. # Finally, this is the expansion that is picked up by
  2927. # autoconf. It tells the user to run autoupdate, and
  2928. # then outputs the replacement expansion. We do not care
  2929. # about autoupdate's warning because that contains
  2930. # information on what to do *after* running autoupdate.
  2931. # _LT_WITH_PIC([MODE])
  2932. # --------------------
  2933. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  2934. # LT_INIT options.
  2935. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2936. # _LT_WITH_PIC
  2937. # Old name:
  2938. # This is what autoupdate's m4 run will expand. It fires
  2939. # the warning (with _au_warn_XXX), outputs it into the
  2940. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2941. # the replacement expansion.
  2942. # This is an auxiliary macro that is also run when
  2943. # autoupdate runs m4. It simply calls m4_warning, but
  2944. # we need a wrapper so that each warning is emitted only
  2945. # once. We break the quoting in m4_warning's argument in
  2946. # order to expand this macro's arguments, not AU_DEFUN's.
  2947. # Finally, this is the expansion that is picked up by
  2948. # autoconf. It tells the user to run autoupdate, and
  2949. # then outputs the replacement expansion. We do not care
  2950. # about autoupdate's warning because that contains
  2951. # information on what to do *after* running autoupdate.
  2952. ## ----------------- ##
  2953. ## LTDL_INIT Options ##
  2954. ## ----------------- ##
  2955. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  2956. #
  2957. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  2958. # Written by Gary V. Vaughan, 2004
  2959. #
  2960. # This file is free software; the Free Software Foundation gives
  2961. # unlimited permission to copy and/or distribute it, with or without
  2962. # modifications, as long as this notice is preserved.
  2963. # serial 6 ltsugar.m4
  2964. # This is to help aclocal find these macros, as it can't see m4_define.
  2965. # lt_join(SEP, ARG1, [ARG2...])
  2966. # -----------------------------
  2967. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  2968. # associated separator.
  2969. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  2970. # versions in m4sugar had bugs.
  2971. # lt_car(LIST)
  2972. # lt_cdr(LIST)
  2973. # ------------
  2974. # Manipulate m4 lists.
  2975. # These macros are necessary as long as will still need to support
  2976. # Autoconf-2.59 which quotes differently.
  2977. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  2978. # ------------------------------------------
  2979. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  2980. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  2981. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  2982. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  2983. # than defined and empty).
  2984. #
  2985. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  2986. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  2987. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  2988. # ----------------------------------------------------------
  2989. # Produce a SEP delimited list of all paired combinations of elements of
  2990. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  2991. # has the form PREFIXmINFIXSUFFIXn.
  2992. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  2993. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  2994. # -----------------------------------------------------------------------
  2995. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  2996. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  2997. # lt_dict_add(DICT, KEY, VALUE)
  2998. # -----------------------------
  2999. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  3000. # --------------------------------------------
  3001. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  3002. # ----------------------------------
  3003. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  3004. # -----------------------------------------------------------------
  3005. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  3006. # --------------------------------------------------------------
  3007. # ltversion.m4 -- version numbers -*- Autoconf -*-
  3008. #
  3009. # Copyright (C) 2004 Free Software Foundation, Inc.
  3010. # Written by Scott James Remnant, 2004
  3011. #
  3012. # This file is free software; the Free Software Foundation gives
  3013. # unlimited permission to copy and/or distribute it, with or without
  3014. # modifications, as long as this notice is preserved.
  3015. # Generated from ltversion.in.
  3016. # serial 3134 ltversion.m4
  3017. # This file is part of GNU Libtool
  3018. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  3019. #
  3020. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  3021. # Written by Scott James Remnant, 2004.
  3022. #
  3023. # This file is free software; the Free Software Foundation gives
  3024. # unlimited permission to copy and/or distribute it, with or without
  3025. # modifications, as long as this notice is preserved.
  3026. # serial 4 lt~obsolete.m4
  3027. # These exist entirely to fool aclocal when bootstrapping libtool.
  3028. #
  3029. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  3030. # which have later been changed to m4_define as they aren't part of the
  3031. # exported API, or moved to Autoconf or Automake where they belong.
  3032. #
  3033. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  3034. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  3035. # using a macro with the same name in our local m4/libtool.m4 it'll
  3036. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  3037. # and doesn't know about Autoconf macros at all.)
  3038. #
  3039. # So we provide this file, which has a silly filename so it's always
  3040. # included after everything else. This provides aclocal with the
  3041. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  3042. # because those macros already exist, or will be overwritten later.
  3043. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  3044. #
  3045. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  3046. # Yes, that means every name once taken will need to remain here until
  3047. # we give up compatibility with versions before 1.7, at which point
  3048. # we need to keep only those names which we still refer to.
  3049. # This is to help aclocal find these macros, as it can't see m4_define.
  3050. ## -*- Autoconf -*-
  3051. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
  3052. # Free Software Foundation, Inc.
  3053. #
  3054. # This file is free software; the Free Software Foundation
  3055. # gives unlimited permission to copy and/or distribute it,
  3056. # with or without modifications, as long as this notice is preserved.
  3057. # serial 8
  3058. # Based on depend.m4 from automake 1.9, modified for standalone use in
  3059. # an environment where GNU make is required.
  3060. # ZW_PROG_COMPILER_DEPENDENCIES
  3061. # -----------------------------
  3062. # Variant of _AM_DEPENDENCIES which just does the dependency probe and
  3063. # sets fooDEPMODE accordingly. Cache-variable compatible with
  3064. # original; not side-effect compatible. As the users of this macro
  3065. # may require accurate dependencies for correct builds, it does *not*
  3066. # honor --disable-dependency-checking, and failure to detect a usable
  3067. # method is an error. depcomp is assumed to be located in
  3068. # $ac_aux_dir.
  3069. #
  3070. # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
  3071. # AM_SET_DEPDIR
  3072. # -------------
  3073. # Choose a directory name for dependency files.
  3074. # ZW_CREATE_DEPDIR
  3075. # ----------------
  3076. # As AM_SET_DEPDIR, but also create the directory at config.status time.
  3077. sim_inline="-DDEFAULT_INLINE=0"
  3078. # intl sister-directory configuration rules.
  3079. #
  3080. # The idea behind this macro is that there's no need to repeat all the
  3081. # autoconf probes done by the intl directory - it's already done them
  3082. # for us. In fact, there's no need even to look at the cache for the
  3083. # answers. All we need to do is nab a few pieces of information.
  3084. # The intl directory is set up to make this easy, by generating a
  3085. # small file which can be sourced as a shell script; then we produce
  3086. # the necessary substitutions and definitions for this directory.
  3087. # Autoconf M4 include file defining utility macros for complex Canadian
  3088. # cross builds.
  3089. ####
  3090. # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
  3091. # or AC_INIT.
  3092. # These demand that AC_CANONICAL_SYSTEM be called beforehand.
  3093. ####
  3094. # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3095. # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
  3096. ####
  3097. # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3098. # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
  3099. # Backported from Autoconf 2.5x; can go away when and if
  3100. # we switch. Put the OS path separator in $PATH_SEPARATOR.
  3101. # ACX_HAVE_GCC_FOR_TARGET
  3102. # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
  3103. # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
  3104. # Searching for installed target binutils. We need to take extra care,
  3105. # else we may find the wrong assembler, linker, etc., and lose.
  3106. #
  3107. # First try --with-build-time-tools, if specified.
  3108. #
  3109. # For build != host, we ask the installed GCC for the name of the tool it
  3110. # uses, and accept it if it is an absolute path. This is because the
  3111. # only good choice for a compiler is the same GCC version that is being
  3112. # installed (or we couldn't make target libraries), and we assume that
  3113. # on the host system we'll have not only the same GCC version, but also
  3114. # the same binutils version.
  3115. #
  3116. # For build == host, search the same directories that the installed
  3117. # compiler will search. We used to do this for the assembler, linker,
  3118. # and nm only; for simplicity of configuration, however, we extend this
  3119. # criterion to tools (such as ar and ranlib) that are never invoked by
  3120. # the compiler, to avoid mismatches.
  3121. #
  3122. # Also note we have to check MD_EXEC_PREFIX before checking the user's path
  3123. # if build == target. This makes the most sense only when bootstrapping,
  3124. # but we also do so when build != host. In this case, we hope that the
  3125. # build and host systems will have similar contents of MD_EXEC_PREFIX.
  3126. #
  3127. # If we do not find a suitable binary, then try the user's path.
  3128. ###
  3129. # AC_PROG_CPP_WERROR
  3130. # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
  3131. # triggers warnings from the preprocessor. Will be in autoconf 2.58.
  3132. # For now, using this also overrides header checks to use only the
  3133. # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
  3134. # bit harder from here).
  3135. # Eventually autoconf will default to checking headers with the compiler
  3136. # instead, and we'll have to do this differently.
  3137. # AC_PROG_CPP_WERROR
  3138. # Test for GNAT.
  3139. # We require the gnatbind & gnatmake programs, as well as a compiler driver
  3140. # that understands Ada. We use the user's CC setting, already found, and
  3141. # possibly add $1 to the command-line parameters.
  3142. #
  3143. # Sets the shell variable have_gnat to yes or no as appropriate, and
  3144. # substitutes GNATBIND and GNATMAKE.
  3145. ac_ext=c
  3146. ac_cpp='$CPP $CPPFLAGS'
  3147. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3148. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3149. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3150. if test -n "$ac_tool_prefix"; then
  3151. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3152. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3154. $as_echo_n "checking for $ac_word... " >&6; }
  3155. if test "${ac_cv_prog_CC+set}" = set; then :
  3156. $as_echo_n "(cached) " >&6
  3157. else
  3158. if test -n "$CC"; then
  3159. ac_cv_prog_CC="$CC" # Let the user override the test.
  3160. else
  3161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3162. for as_dir in $PATH
  3163. do
  3164. IFS=$as_save_IFS
  3165. test -z "$as_dir" && as_dir=.
  3166. for ac_exec_ext in '' $ac_executable_extensions; do
  3167. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3168. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3169. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3170. break 2
  3171. fi
  3172. done
  3173. done
  3174. IFS=$as_save_IFS
  3175. fi
  3176. fi
  3177. CC=$ac_cv_prog_CC
  3178. if test -n "$CC"; then
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3180. $as_echo "$CC" >&6; }
  3181. else
  3182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3183. $as_echo "no" >&6; }
  3184. fi
  3185. fi
  3186. if test -z "$ac_cv_prog_CC"; then
  3187. ac_ct_CC=$CC
  3188. # Extract the first word of "gcc", so it can be a program name with args.
  3189. set dummy gcc; ac_word=$2
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3191. $as_echo_n "checking for $ac_word... " >&6; }
  3192. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3193. $as_echo_n "(cached) " >&6
  3194. else
  3195. if test -n "$ac_ct_CC"; then
  3196. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3197. else
  3198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3199. for as_dir in $PATH
  3200. do
  3201. IFS=$as_save_IFS
  3202. test -z "$as_dir" && as_dir=.
  3203. for ac_exec_ext in '' $ac_executable_extensions; do
  3204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3205. ac_cv_prog_ac_ct_CC="gcc"
  3206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3207. break 2
  3208. fi
  3209. done
  3210. done
  3211. IFS=$as_save_IFS
  3212. fi
  3213. fi
  3214. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3215. if test -n "$ac_ct_CC"; then
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3217. $as_echo "$ac_ct_CC" >&6; }
  3218. else
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3220. $as_echo "no" >&6; }
  3221. fi
  3222. if test "x$ac_ct_CC" = x; then
  3223. CC=""
  3224. else
  3225. case $cross_compiling:$ac_tool_warned in
  3226. yes:)
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3228. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3229. ac_tool_warned=yes ;;
  3230. esac
  3231. CC=$ac_ct_CC
  3232. fi
  3233. else
  3234. CC="$ac_cv_prog_CC"
  3235. fi
  3236. if test -z "$CC"; then
  3237. if test -n "$ac_tool_prefix"; then
  3238. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3239. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3241. $as_echo_n "checking for $ac_word... " >&6; }
  3242. if test "${ac_cv_prog_CC+set}" = set; then :
  3243. $as_echo_n "(cached) " >&6
  3244. else
  3245. if test -n "$CC"; then
  3246. ac_cv_prog_CC="$CC" # Let the user override the test.
  3247. else
  3248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3249. for as_dir in $PATH
  3250. do
  3251. IFS=$as_save_IFS
  3252. test -z "$as_dir" && as_dir=.
  3253. for ac_exec_ext in '' $ac_executable_extensions; do
  3254. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3255. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3256. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3257. break 2
  3258. fi
  3259. done
  3260. done
  3261. IFS=$as_save_IFS
  3262. fi
  3263. fi
  3264. CC=$ac_cv_prog_CC
  3265. if test -n "$CC"; then
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3267. $as_echo "$CC" >&6; }
  3268. else
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3270. $as_echo "no" >&6; }
  3271. fi
  3272. fi
  3273. fi
  3274. if test -z "$CC"; then
  3275. # Extract the first word of "cc", so it can be a program name with args.
  3276. set dummy cc; ac_word=$2
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3278. $as_echo_n "checking for $ac_word... " >&6; }
  3279. if test "${ac_cv_prog_CC+set}" = set; then :
  3280. $as_echo_n "(cached) " >&6
  3281. else
  3282. if test -n "$CC"; then
  3283. ac_cv_prog_CC="$CC" # Let the user override the test.
  3284. else
  3285. ac_prog_rejected=no
  3286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3287. for as_dir in $PATH
  3288. do
  3289. IFS=$as_save_IFS
  3290. test -z "$as_dir" && as_dir=.
  3291. for ac_exec_ext in '' $ac_executable_extensions; do
  3292. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3293. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3294. ac_prog_rejected=yes
  3295. continue
  3296. fi
  3297. ac_cv_prog_CC="cc"
  3298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3299. break 2
  3300. fi
  3301. done
  3302. done
  3303. IFS=$as_save_IFS
  3304. if test $ac_prog_rejected = yes; then
  3305. # We found a bogon in the path, so make sure we never use it.
  3306. set dummy $ac_cv_prog_CC
  3307. shift
  3308. if test $# != 0; then
  3309. # We chose a different compiler from the bogus one.
  3310. # However, it has the same basename, so the bogon will be chosen
  3311. # first if we set CC to just the basename; use the full file name.
  3312. shift
  3313. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3314. fi
  3315. fi
  3316. fi
  3317. fi
  3318. CC=$ac_cv_prog_CC
  3319. if test -n "$CC"; then
  3320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3321. $as_echo "$CC" >&6; }
  3322. else
  3323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3324. $as_echo "no" >&6; }
  3325. fi
  3326. fi
  3327. if test -z "$CC"; then
  3328. if test -n "$ac_tool_prefix"; then
  3329. for ac_prog in cl.exe
  3330. do
  3331. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3332. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3334. $as_echo_n "checking for $ac_word... " >&6; }
  3335. if test "${ac_cv_prog_CC+set}" = set; then :
  3336. $as_echo_n "(cached) " >&6
  3337. else
  3338. if test -n "$CC"; then
  3339. ac_cv_prog_CC="$CC" # Let the user override the test.
  3340. else
  3341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3342. for as_dir in $PATH
  3343. do
  3344. IFS=$as_save_IFS
  3345. test -z "$as_dir" && as_dir=.
  3346. for ac_exec_ext in '' $ac_executable_extensions; do
  3347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3348. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3350. break 2
  3351. fi
  3352. done
  3353. done
  3354. IFS=$as_save_IFS
  3355. fi
  3356. fi
  3357. CC=$ac_cv_prog_CC
  3358. if test -n "$CC"; then
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3360. $as_echo "$CC" >&6; }
  3361. else
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3363. $as_echo "no" >&6; }
  3364. fi
  3365. test -n "$CC" && break
  3366. done
  3367. fi
  3368. if test -z "$CC"; then
  3369. ac_ct_CC=$CC
  3370. for ac_prog in cl.exe
  3371. do
  3372. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3373. set dummy $ac_prog; ac_word=$2
  3374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3375. $as_echo_n "checking for $ac_word... " >&6; }
  3376. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3377. $as_echo_n "(cached) " >&6
  3378. else
  3379. if test -n "$ac_ct_CC"; then
  3380. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3381. else
  3382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3383. for as_dir in $PATH
  3384. do
  3385. IFS=$as_save_IFS
  3386. test -z "$as_dir" && as_dir=.
  3387. for ac_exec_ext in '' $ac_executable_extensions; do
  3388. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3389. ac_cv_prog_ac_ct_CC="$ac_prog"
  3390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3391. break 2
  3392. fi
  3393. done
  3394. done
  3395. IFS=$as_save_IFS
  3396. fi
  3397. fi
  3398. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3399. if test -n "$ac_ct_CC"; then
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3401. $as_echo "$ac_ct_CC" >&6; }
  3402. else
  3403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3404. $as_echo "no" >&6; }
  3405. fi
  3406. test -n "$ac_ct_CC" && break
  3407. done
  3408. if test "x$ac_ct_CC" = x; then
  3409. CC=""
  3410. else
  3411. case $cross_compiling:$ac_tool_warned in
  3412. yes:)
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3414. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3415. ac_tool_warned=yes ;;
  3416. esac
  3417. CC=$ac_ct_CC
  3418. fi
  3419. fi
  3420. fi
  3421. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3422. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3423. as_fn_error "no acceptable C compiler found in \$PATH
  3424. See \`config.log' for more details." "$LINENO" 5; }
  3425. # Provide some information about the compiler.
  3426. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3427. set X $ac_compile
  3428. ac_compiler=$2
  3429. for ac_option in --version -v -V -qversion; do
  3430. { { ac_try="$ac_compiler $ac_option >&5"
  3431. case "(($ac_try" in
  3432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3433. *) ac_try_echo=$ac_try;;
  3434. esac
  3435. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3436. $as_echo "$ac_try_echo"; } >&5
  3437. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3438. ac_status=$?
  3439. if test -s conftest.err; then
  3440. sed '10a\
  3441. ... rest of stderr output deleted ...
  3442. 10q' conftest.err >conftest.er1
  3443. cat conftest.er1 >&5
  3444. rm -f conftest.er1 conftest.err
  3445. fi
  3446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3447. test $ac_status = 0; }
  3448. done
  3449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3450. /* end confdefs.h. */
  3451. int
  3452. main ()
  3453. {
  3454. ;
  3455. return 0;
  3456. }
  3457. _ACEOF
  3458. ac_clean_files_save=$ac_clean_files
  3459. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3460. # Try to create an executable without -o first, disregard a.out.
  3461. # It will help us diagnose broken compilers, and finding out an intuition
  3462. # of exeext.
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3464. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3465. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3466. # The possible output files:
  3467. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3468. ac_rmfiles=
  3469. for ac_file in $ac_files
  3470. do
  3471. case $ac_file in
  3472. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3473. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3474. esac
  3475. done
  3476. rm -f $ac_rmfiles
  3477. if { { ac_try="$ac_link_default"
  3478. case "(($ac_try" in
  3479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3480. *) ac_try_echo=$ac_try;;
  3481. esac
  3482. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3483. $as_echo "$ac_try_echo"; } >&5
  3484. (eval "$ac_link_default") 2>&5
  3485. ac_status=$?
  3486. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3487. test $ac_status = 0; }; then :
  3488. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3489. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3490. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3491. # so that the user can short-circuit this test for compilers unknown to
  3492. # Autoconf.
  3493. for ac_file in $ac_files ''
  3494. do
  3495. test -f "$ac_file" || continue
  3496. case $ac_file in
  3497. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3498. ;;
  3499. [ab].out )
  3500. # We found the default executable, but exeext='' is most
  3501. # certainly right.
  3502. break;;
  3503. *.* )
  3504. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3505. then :; else
  3506. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3507. fi
  3508. # We set ac_cv_exeext here because the later test for it is not
  3509. # safe: cross compilers may not add the suffix if given an `-o'
  3510. # argument, so we may need to know it at that point already.
  3511. # Even if this section looks crufty: it has the advantage of
  3512. # actually working.
  3513. break;;
  3514. * )
  3515. break;;
  3516. esac
  3517. done
  3518. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3519. else
  3520. ac_file=''
  3521. fi
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3523. $as_echo "$ac_file" >&6; }
  3524. if test -z "$ac_file"; then :
  3525. $as_echo "$as_me: failed program was:" >&5
  3526. sed 's/^/| /' conftest.$ac_ext >&5
  3527. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3528. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3529. { as_fn_set_status 77
  3530. as_fn_error "C compiler cannot create executables
  3531. See \`config.log' for more details." "$LINENO" 5; }; }
  3532. fi
  3533. ac_exeext=$ac_cv_exeext
  3534. # Check that the compiler produces executables we can run. If not, either
  3535. # the compiler is broken, or we cross compile.
  3536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3537. $as_echo_n "checking whether the C compiler works... " >&6; }
  3538. # If not cross compiling, check that we can run a simple program.
  3539. if test "$cross_compiling" != yes; then
  3540. if { ac_try='./$ac_file'
  3541. { { case "(($ac_try" in
  3542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3543. *) ac_try_echo=$ac_try;;
  3544. esac
  3545. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3546. $as_echo "$ac_try_echo"; } >&5
  3547. (eval "$ac_try") 2>&5
  3548. ac_status=$?
  3549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3550. test $ac_status = 0; }; }; then
  3551. cross_compiling=no
  3552. else
  3553. if test "$cross_compiling" = maybe; then
  3554. cross_compiling=yes
  3555. else
  3556. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3557. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3558. as_fn_error "cannot run C compiled programs.
  3559. If you meant to cross compile, use \`--host'.
  3560. See \`config.log' for more details." "$LINENO" 5; }
  3561. fi
  3562. fi
  3563. fi
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3565. $as_echo "yes" >&6; }
  3566. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3567. ac_clean_files=$ac_clean_files_save
  3568. # Check that the compiler produces executables we can run. If not, either
  3569. # the compiler is broken, or we cross compile.
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3571. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3573. $as_echo "$cross_compiling" >&6; }
  3574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3575. $as_echo_n "checking for suffix of executables... " >&6; }
  3576. if { { ac_try="$ac_link"
  3577. case "(($ac_try" in
  3578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3579. *) ac_try_echo=$ac_try;;
  3580. esac
  3581. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3582. $as_echo "$ac_try_echo"; } >&5
  3583. (eval "$ac_link") 2>&5
  3584. ac_status=$?
  3585. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3586. test $ac_status = 0; }; then :
  3587. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3588. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3589. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3590. # `rm'.
  3591. for ac_file in conftest.exe conftest conftest.*; do
  3592. test -f "$ac_file" || continue
  3593. case $ac_file in
  3594. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3595. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3596. break;;
  3597. * ) break;;
  3598. esac
  3599. done
  3600. else
  3601. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3602. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3603. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3604. See \`config.log' for more details." "$LINENO" 5; }
  3605. fi
  3606. rm -f conftest$ac_cv_exeext
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3608. $as_echo "$ac_cv_exeext" >&6; }
  3609. rm -f conftest.$ac_ext
  3610. EXEEXT=$ac_cv_exeext
  3611. ac_exeext=$EXEEXT
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3613. $as_echo_n "checking for suffix of object files... " >&6; }
  3614. if test "${ac_cv_objext+set}" = set; then :
  3615. $as_echo_n "(cached) " >&6
  3616. else
  3617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3618. /* end confdefs.h. */
  3619. int
  3620. main ()
  3621. {
  3622. ;
  3623. return 0;
  3624. }
  3625. _ACEOF
  3626. rm -f conftest.o conftest.obj
  3627. if { { ac_try="$ac_compile"
  3628. case "(($ac_try" in
  3629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3630. *) ac_try_echo=$ac_try;;
  3631. esac
  3632. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3633. $as_echo "$ac_try_echo"; } >&5
  3634. (eval "$ac_compile") 2>&5
  3635. ac_status=$?
  3636. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3637. test $ac_status = 0; }; then :
  3638. for ac_file in conftest.o conftest.obj conftest.*; do
  3639. test -f "$ac_file" || continue;
  3640. case $ac_file in
  3641. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3642. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3643. break;;
  3644. esac
  3645. done
  3646. else
  3647. $as_echo "$as_me: failed program was:" >&5
  3648. sed 's/^/| /' conftest.$ac_ext >&5
  3649. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3650. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3651. as_fn_error "cannot compute suffix of object files: cannot compile
  3652. See \`config.log' for more details." "$LINENO" 5; }
  3653. fi
  3654. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3655. fi
  3656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3657. $as_echo "$ac_cv_objext" >&6; }
  3658. OBJEXT=$ac_cv_objext
  3659. ac_objext=$OBJEXT
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3661. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3662. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3663. $as_echo_n "(cached) " >&6
  3664. else
  3665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3666. /* end confdefs.h. */
  3667. int
  3668. main ()
  3669. {
  3670. #ifndef __GNUC__
  3671. choke me
  3672. #endif
  3673. ;
  3674. return 0;
  3675. }
  3676. _ACEOF
  3677. if ac_fn_c_try_compile "$LINENO"; then :
  3678. ac_compiler_gnu=yes
  3679. else
  3680. ac_compiler_gnu=no
  3681. fi
  3682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3683. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3684. fi
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3686. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3687. if test $ac_compiler_gnu = yes; then
  3688. GCC=yes
  3689. else
  3690. GCC=
  3691. fi
  3692. ac_test_CFLAGS=${CFLAGS+set}
  3693. ac_save_CFLAGS=$CFLAGS
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3695. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3696. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3697. $as_echo_n "(cached) " >&6
  3698. else
  3699. ac_save_c_werror_flag=$ac_c_werror_flag
  3700. ac_c_werror_flag=yes
  3701. ac_cv_prog_cc_g=no
  3702. CFLAGS="-g"
  3703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3704. /* end confdefs.h. */
  3705. int
  3706. main ()
  3707. {
  3708. ;
  3709. return 0;
  3710. }
  3711. _ACEOF
  3712. if ac_fn_c_try_compile "$LINENO"; then :
  3713. ac_cv_prog_cc_g=yes
  3714. else
  3715. CFLAGS=""
  3716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3717. /* end confdefs.h. */
  3718. int
  3719. main ()
  3720. {
  3721. ;
  3722. return 0;
  3723. }
  3724. _ACEOF
  3725. if ac_fn_c_try_compile "$LINENO"; then :
  3726. else
  3727. ac_c_werror_flag=$ac_save_c_werror_flag
  3728. CFLAGS="-g"
  3729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3730. /* end confdefs.h. */
  3731. int
  3732. main ()
  3733. {
  3734. ;
  3735. return 0;
  3736. }
  3737. _ACEOF
  3738. if ac_fn_c_try_compile "$LINENO"; then :
  3739. ac_cv_prog_cc_g=yes
  3740. fi
  3741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3742. fi
  3743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3744. fi
  3745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3746. ac_c_werror_flag=$ac_save_c_werror_flag
  3747. fi
  3748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3749. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3750. if test "$ac_test_CFLAGS" = set; then
  3751. CFLAGS=$ac_save_CFLAGS
  3752. elif test $ac_cv_prog_cc_g = yes; then
  3753. if test "$GCC" = yes; then
  3754. CFLAGS="-g -O2"
  3755. else
  3756. CFLAGS="-g"
  3757. fi
  3758. else
  3759. if test "$GCC" = yes; then
  3760. CFLAGS="-O2"
  3761. else
  3762. CFLAGS=
  3763. fi
  3764. fi
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3766. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3767. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3768. $as_echo_n "(cached) " >&6
  3769. else
  3770. ac_cv_prog_cc_c89=no
  3771. ac_save_CC=$CC
  3772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3773. /* end confdefs.h. */
  3774. #include <stdarg.h>
  3775. #include <stdio.h>
  3776. #include <sys/types.h>
  3777. #include <sys/stat.h>
  3778. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3779. struct buf { int x; };
  3780. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3781. static char *e (p, i)
  3782. char **p;
  3783. int i;
  3784. {
  3785. return p[i];
  3786. }
  3787. static char *f (char * (*g) (char **, int), char **p, ...)
  3788. {
  3789. char *s;
  3790. va_list v;
  3791. va_start (v,p);
  3792. s = g (p, va_arg (v,int));
  3793. va_end (v);
  3794. return s;
  3795. }
  3796. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3797. function prototypes and stuff, but not '\xHH' hex character constants.
  3798. These don't provoke an error unfortunately, instead are silently treated
  3799. as 'x'. The following induces an error, until -std is added to get
  3800. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3801. array size at least. It's necessary to write '\x00'==0 to get something
  3802. that's true only with -std. */
  3803. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3804. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3805. inside strings and character constants. */
  3806. #define FOO(x) 'x'
  3807. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3808. int test (int i, double x);
  3809. struct s1 {int (*f) (int a);};
  3810. struct s2 {int (*f) (double a);};
  3811. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3812. int argc;
  3813. char **argv;
  3814. int
  3815. main ()
  3816. {
  3817. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3818. ;
  3819. return 0;
  3820. }
  3821. _ACEOF
  3822. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3823. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3824. do
  3825. CC="$ac_save_CC $ac_arg"
  3826. if ac_fn_c_try_compile "$LINENO"; then :
  3827. ac_cv_prog_cc_c89=$ac_arg
  3828. fi
  3829. rm -f core conftest.err conftest.$ac_objext
  3830. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3831. done
  3832. rm -f conftest.$ac_ext
  3833. CC=$ac_save_CC
  3834. fi
  3835. # AC_CACHE_VAL
  3836. case "x$ac_cv_prog_cc_c89" in
  3837. x)
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3839. $as_echo "none needed" >&6; } ;;
  3840. xno)
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3842. $as_echo "unsupported" >&6; } ;;
  3843. *)
  3844. CC="$CC $ac_cv_prog_cc_c89"
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3846. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3847. esac
  3848. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3849. fi
  3850. ac_ext=c
  3851. ac_cpp='$CPP $CPPFLAGS'
  3852. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3853. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3854. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3855. ac_aux_dir=
  3856. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3857. for ac_t in install-sh install.sh shtool; do
  3858. if test -f "$ac_dir/$ac_t"; then
  3859. ac_aux_dir=$ac_dir
  3860. ac_install_sh="$ac_aux_dir/$ac_t -c"
  3861. break 2
  3862. fi
  3863. done
  3864. done
  3865. if test -z "$ac_aux_dir"; then
  3866. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3867. fi
  3868. # These three variables are undocumented and unsupported,
  3869. # and are intended to be withdrawn in a future Autoconf release.
  3870. # They can cause serious problems if a builder's source tree is in a directory
  3871. # whose full name contains unusual characters.
  3872. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3873. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3874. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3875. # Make sure we can run config.sub.
  3876. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3877. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3879. $as_echo_n "checking build system type... " >&6; }
  3880. if test "${ac_cv_build+set}" = set; then :
  3881. $as_echo_n "(cached) " >&6
  3882. else
  3883. ac_build_alias=$build_alias
  3884. test "x$ac_build_alias" = x &&
  3885. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3886. test "x$ac_build_alias" = x &&
  3887. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3888. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3889. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3890. fi
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3892. $as_echo "$ac_cv_build" >&6; }
  3893. case $ac_cv_build in
  3894. *-*-*) ;;
  3895. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3896. esac
  3897. build=$ac_cv_build
  3898. ac_save_IFS=$IFS; IFS='-'
  3899. set x $ac_cv_build
  3900. shift
  3901. build_cpu=$1
  3902. build_vendor=$2
  3903. shift; shift
  3904. # Remember, the first character of IFS is used to create $*,
  3905. # except with old shells:
  3906. build_os=$*
  3907. IFS=$ac_save_IFS
  3908. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3910. $as_echo_n "checking host system type... " >&6; }
  3911. if test "${ac_cv_host+set}" = set; then :
  3912. $as_echo_n "(cached) " >&6
  3913. else
  3914. if test "x$host_alias" = x; then
  3915. ac_cv_host=$ac_cv_build
  3916. else
  3917. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3918. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3919. fi
  3920. fi
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3922. $as_echo "$ac_cv_host" >&6; }
  3923. case $ac_cv_host in
  3924. *-*-*) ;;
  3925. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3926. esac
  3927. host=$ac_cv_host
  3928. ac_save_IFS=$IFS; IFS='-'
  3929. set x $ac_cv_host
  3930. shift
  3931. host_cpu=$1
  3932. host_vendor=$2
  3933. shift; shift
  3934. # Remember, the first character of IFS is used to create $*,
  3935. # except with old shells:
  3936. host_os=$*
  3937. IFS=$ac_save_IFS
  3938. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3940. $as_echo_n "checking target system type... " >&6; }
  3941. if test "${ac_cv_target+set}" = set; then :
  3942. $as_echo_n "(cached) " >&6
  3943. else
  3944. if test "x$target_alias" = x; then
  3945. ac_cv_target=$ac_cv_host
  3946. else
  3947. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3948. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3949. fi
  3950. fi
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3952. $as_echo "$ac_cv_target" >&6; }
  3953. case $ac_cv_target in
  3954. *-*-*) ;;
  3955. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  3956. esac
  3957. target=$ac_cv_target
  3958. ac_save_IFS=$IFS; IFS='-'
  3959. set x $ac_cv_target
  3960. shift
  3961. target_cpu=$1
  3962. target_vendor=$2
  3963. shift; shift
  3964. # Remember, the first character of IFS is used to create $*,
  3965. # except with old shells:
  3966. target_os=$*
  3967. IFS=$ac_save_IFS
  3968. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3969. # The aliases save the names the user supplied, while $host etc.
  3970. # will get canonicalized.
  3971. test -n "$target_alias" &&
  3972. test "$program_prefix$program_suffix$program_transform_name" = \
  3973. NONENONEs,x,x, &&
  3974. program_prefix=${target_alias}-
  3975. ac_ext=c
  3976. ac_cpp='$CPP $CPPFLAGS'
  3977. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3978. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3979. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3981. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3982. # On Suns, sometimes $CPP names a directory.
  3983. if test -n "$CPP" && test -d "$CPP"; then
  3984. CPP=
  3985. fi
  3986. if test -z "$CPP"; then
  3987. if test "${ac_cv_prog_CPP+set}" = set; then :
  3988. $as_echo_n "(cached) " >&6
  3989. else
  3990. # Double quotes because CPP needs to be expanded
  3991. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3992. do
  3993. ac_preproc_ok=false
  3994. for ac_c_preproc_warn_flag in '' yes
  3995. do
  3996. # Use a header file that comes with gcc, so configuring glibc
  3997. # with a fresh cross-compiler works.
  3998. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3999. # <limits.h> exists even on freestanding compilers.
  4000. # On the NeXT, cc -E runs the code through the compiler's parser,
  4001. # not just through cpp. "Syntax error" is here to catch this case.
  4002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4003. /* end confdefs.h. */
  4004. #ifdef __STDC__
  4005. # include <limits.h>
  4006. #else
  4007. # include <assert.h>
  4008. #endif
  4009. Syntax error
  4010. _ACEOF
  4011. if ac_fn_c_try_cpp "$LINENO"; then :
  4012. else
  4013. # Broken: fails on valid input.
  4014. continue
  4015. fi
  4016. rm -f conftest.err conftest.$ac_ext
  4017. # OK, works on sane cases. Now check whether nonexistent headers
  4018. # can be detected and how.
  4019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4020. /* end confdefs.h. */
  4021. #include <ac_nonexistent.h>
  4022. _ACEOF
  4023. if ac_fn_c_try_cpp "$LINENO"; then :
  4024. # Broken: success on invalid input.
  4025. continue
  4026. else
  4027. # Passes both tests.
  4028. ac_preproc_ok=:
  4029. break
  4030. fi
  4031. rm -f conftest.err conftest.$ac_ext
  4032. done
  4033. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4034. rm -f conftest.err conftest.$ac_ext
  4035. if $ac_preproc_ok; then :
  4036. break
  4037. fi
  4038. done
  4039. ac_cv_prog_CPP=$CPP
  4040. fi
  4041. CPP=$ac_cv_prog_CPP
  4042. else
  4043. ac_cv_prog_CPP=$CPP
  4044. fi
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4046. $as_echo "$CPP" >&6; }
  4047. ac_preproc_ok=false
  4048. for ac_c_preproc_warn_flag in '' yes
  4049. do
  4050. # Use a header file that comes with gcc, so configuring glibc
  4051. # with a fresh cross-compiler works.
  4052. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4053. # <limits.h> exists even on freestanding compilers.
  4054. # On the NeXT, cc -E runs the code through the compiler's parser,
  4055. # not just through cpp. "Syntax error" is here to catch this case.
  4056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4057. /* end confdefs.h. */
  4058. #ifdef __STDC__
  4059. # include <limits.h>
  4060. #else
  4061. # include <assert.h>
  4062. #endif
  4063. Syntax error
  4064. _ACEOF
  4065. if ac_fn_c_try_cpp "$LINENO"; then :
  4066. else
  4067. # Broken: fails on valid input.
  4068. continue
  4069. fi
  4070. rm -f conftest.err conftest.$ac_ext
  4071. # OK, works on sane cases. Now check whether nonexistent headers
  4072. # can be detected and how.
  4073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4074. /* end confdefs.h. */
  4075. #include <ac_nonexistent.h>
  4076. _ACEOF
  4077. if ac_fn_c_try_cpp "$LINENO"; then :
  4078. # Broken: success on invalid input.
  4079. continue
  4080. else
  4081. # Passes both tests.
  4082. ac_preproc_ok=:
  4083. break
  4084. fi
  4085. rm -f conftest.err conftest.$ac_ext
  4086. done
  4087. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4088. rm -f conftest.err conftest.$ac_ext
  4089. if $ac_preproc_ok; then :
  4090. else
  4091. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4092. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4093. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4094. See \`config.log' for more details." "$LINENO" 5; }
  4095. fi
  4096. ac_ext=c
  4097. ac_cpp='$CPP $CPPFLAGS'
  4098. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4099. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4100. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4102. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4103. if test "${ac_cv_path_GREP+set}" = set; then :
  4104. $as_echo_n "(cached) " >&6
  4105. else
  4106. if test -z "$GREP"; then
  4107. ac_path_GREP_found=false
  4108. # Loop through the user's path and test for each of PROGNAME-LIST
  4109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4110. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4111. do
  4112. IFS=$as_save_IFS
  4113. test -z "$as_dir" && as_dir=.
  4114. for ac_prog in grep ggrep; do
  4115. for ac_exec_ext in '' $ac_executable_extensions; do
  4116. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4117. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4118. # Check for GNU ac_path_GREP and select it if it is found.
  4119. # Check for GNU $ac_path_GREP
  4120. case `"$ac_path_GREP" --version 2>&1` in
  4121. *GNU*)
  4122. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4123. *)
  4124. ac_count=0
  4125. $as_echo_n 0123456789 >"conftest.in"
  4126. while :
  4127. do
  4128. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4129. mv "conftest.tmp" "conftest.in"
  4130. cp "conftest.in" "conftest.nl"
  4131. $as_echo 'GREP' >> "conftest.nl"
  4132. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4133. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4134. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4135. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4136. # Best one so far, save it but keep looking for a better one
  4137. ac_cv_path_GREP="$ac_path_GREP"
  4138. ac_path_GREP_max=$ac_count
  4139. fi
  4140. # 10*(2^10) chars as input seems more than enough
  4141. test $ac_count -gt 10 && break
  4142. done
  4143. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4144. esac
  4145. $ac_path_GREP_found && break 3
  4146. done
  4147. done
  4148. done
  4149. IFS=$as_save_IFS
  4150. if test -z "$ac_cv_path_GREP"; then
  4151. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4152. fi
  4153. else
  4154. ac_cv_path_GREP=$GREP
  4155. fi
  4156. fi
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4158. $as_echo "$ac_cv_path_GREP" >&6; }
  4159. GREP="$ac_cv_path_GREP"
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4161. $as_echo_n "checking for egrep... " >&6; }
  4162. if test "${ac_cv_path_EGREP+set}" = set; then :
  4163. $as_echo_n "(cached) " >&6
  4164. else
  4165. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4166. then ac_cv_path_EGREP="$GREP -E"
  4167. else
  4168. if test -z "$EGREP"; then
  4169. ac_path_EGREP_found=false
  4170. # Loop through the user's path and test for each of PROGNAME-LIST
  4171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4172. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4173. do
  4174. IFS=$as_save_IFS
  4175. test -z "$as_dir" && as_dir=.
  4176. for ac_prog in egrep; do
  4177. for ac_exec_ext in '' $ac_executable_extensions; do
  4178. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4179. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4180. # Check for GNU ac_path_EGREP and select it if it is found.
  4181. # Check for GNU $ac_path_EGREP
  4182. case `"$ac_path_EGREP" --version 2>&1` in
  4183. *GNU*)
  4184. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4185. *)
  4186. ac_count=0
  4187. $as_echo_n 0123456789 >"conftest.in"
  4188. while :
  4189. do
  4190. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4191. mv "conftest.tmp" "conftest.in"
  4192. cp "conftest.in" "conftest.nl"
  4193. $as_echo 'EGREP' >> "conftest.nl"
  4194. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4195. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4196. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4197. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4198. # Best one so far, save it but keep looking for a better one
  4199. ac_cv_path_EGREP="$ac_path_EGREP"
  4200. ac_path_EGREP_max=$ac_count
  4201. fi
  4202. # 10*(2^10) chars as input seems more than enough
  4203. test $ac_count -gt 10 && break
  4204. done
  4205. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4206. esac
  4207. $ac_path_EGREP_found && break 3
  4208. done
  4209. done
  4210. done
  4211. IFS=$as_save_IFS
  4212. if test -z "$ac_cv_path_EGREP"; then
  4213. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4214. fi
  4215. else
  4216. ac_cv_path_EGREP=$EGREP
  4217. fi
  4218. fi
  4219. fi
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4221. $as_echo "$ac_cv_path_EGREP" >&6; }
  4222. EGREP="$ac_cv_path_EGREP"
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4224. $as_echo_n "checking for ANSI C header files... " >&6; }
  4225. if test "${ac_cv_header_stdc+set}" = set; then :
  4226. $as_echo_n "(cached) " >&6
  4227. else
  4228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4229. /* end confdefs.h. */
  4230. #include <stdlib.h>
  4231. #include <stdarg.h>
  4232. #include <string.h>
  4233. #include <float.h>
  4234. int
  4235. main ()
  4236. {
  4237. ;
  4238. return 0;
  4239. }
  4240. _ACEOF
  4241. if ac_fn_c_try_compile "$LINENO"; then :
  4242. ac_cv_header_stdc=yes
  4243. else
  4244. ac_cv_header_stdc=no
  4245. fi
  4246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4247. if test $ac_cv_header_stdc = yes; then
  4248. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4250. /* end confdefs.h. */
  4251. #include <string.h>
  4252. _ACEOF
  4253. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4254. $EGREP "memchr" >/dev/null 2>&1; then :
  4255. else
  4256. ac_cv_header_stdc=no
  4257. fi
  4258. rm -f conftest*
  4259. fi
  4260. if test $ac_cv_header_stdc = yes; then
  4261. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4263. /* end confdefs.h. */
  4264. #include <stdlib.h>
  4265. _ACEOF
  4266. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4267. $EGREP "free" >/dev/null 2>&1; then :
  4268. else
  4269. ac_cv_header_stdc=no
  4270. fi
  4271. rm -f conftest*
  4272. fi
  4273. if test $ac_cv_header_stdc = yes; then
  4274. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4275. if test "$cross_compiling" = yes; then :
  4276. :
  4277. else
  4278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4279. /* end confdefs.h. */
  4280. #include <ctype.h>
  4281. #include <stdlib.h>
  4282. #if ((' ' & 0x0FF) == 0x020)
  4283. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4284. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4285. #else
  4286. # define ISLOWER(c) \
  4287. (('a' <= (c) && (c) <= 'i') \
  4288. || ('j' <= (c) && (c) <= 'r') \
  4289. || ('s' <= (c) && (c) <= 'z'))
  4290. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4291. #endif
  4292. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4293. int
  4294. main ()
  4295. {
  4296. int i;
  4297. for (i = 0; i < 256; i++)
  4298. if (XOR (islower (i), ISLOWER (i))
  4299. || toupper (i) != TOUPPER (i))
  4300. return 2;
  4301. return 0;
  4302. }
  4303. _ACEOF
  4304. if ac_fn_c_try_run "$LINENO"; then :
  4305. else
  4306. ac_cv_header_stdc=no
  4307. fi
  4308. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4309. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4310. fi
  4311. fi
  4312. fi
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4314. $as_echo "$ac_cv_header_stdc" >&6; }
  4315. if test $ac_cv_header_stdc = yes; then
  4316. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4317. fi
  4318. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4319. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4320. inttypes.h stdint.h unistd.h
  4321. do :
  4322. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4323. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4324. "
  4325. eval as_val=\$$as_ac_Header
  4326. if test "x$as_val" = x""yes; then :
  4327. cat >>confdefs.h <<_ACEOF
  4328. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4329. _ACEOF
  4330. fi
  4331. done
  4332. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4333. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4334. MINIX=yes
  4335. else
  4336. MINIX=
  4337. fi
  4338. if test "$MINIX" = yes; then
  4339. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4340. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4341. $as_echo "#define _MINIX 1" >>confdefs.h
  4342. fi
  4343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4344. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4345. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4346. $as_echo_n "(cached) " >&6
  4347. else
  4348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4349. /* end confdefs.h. */
  4350. # define __EXTENSIONS__ 1
  4351. $ac_includes_default
  4352. int
  4353. main ()
  4354. {
  4355. ;
  4356. return 0;
  4357. }
  4358. _ACEOF
  4359. if ac_fn_c_try_compile "$LINENO"; then :
  4360. ac_cv_safe_to_define___extensions__=yes
  4361. else
  4362. ac_cv_safe_to_define___extensions__=no
  4363. fi
  4364. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4365. fi
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4367. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4368. test $ac_cv_safe_to_define___extensions__ = yes &&
  4369. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4370. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4371. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4372. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4373. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4374. test "$program_prefix" != NONE &&
  4375. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4376. # Use a double $ so make ignores it.
  4377. test "$program_suffix" != NONE &&
  4378. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4379. # Double any \ or $.
  4380. # By default was `s,x,x', remove it if useless.
  4381. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4382. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4383. # Find a good install program. We prefer a C program (faster),
  4384. # so one script is as good as another. But avoid the broken or
  4385. # incompatible versions:
  4386. # SysV /etc/install, /usr/sbin/install
  4387. # SunOS /usr/etc/install
  4388. # IRIX /sbin/install
  4389. # AIX /bin/install
  4390. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4391. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4392. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4393. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4394. # OS/2's system install, which has a completely different semantic
  4395. # ./install, which can be erroneously created by make from ./install.sh.
  4396. # Reject install programs that cannot install multiple files.
  4397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4398. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4399. if test -z "$INSTALL"; then
  4400. if test "${ac_cv_path_install+set}" = set; then :
  4401. $as_echo_n "(cached) " >&6
  4402. else
  4403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4404. for as_dir in $PATH
  4405. do
  4406. IFS=$as_save_IFS
  4407. test -z "$as_dir" && as_dir=.
  4408. # Account for people who put trailing slashes in PATH elements.
  4409. case $as_dir/ in #((
  4410. ./ | .// | /[cC]/* | \
  4411. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4412. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4413. /usr/ucb/* ) ;;
  4414. *)
  4415. # OSF1 and SCO ODT 3.0 have their own names for install.
  4416. # Don't use installbsd from OSF since it installs stuff as root
  4417. # by default.
  4418. for ac_prog in ginstall scoinst install; do
  4419. for ac_exec_ext in '' $ac_executable_extensions; do
  4420. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4421. if test $ac_prog = install &&
  4422. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4423. # AIX install. It has an incompatible calling convention.
  4424. :
  4425. elif test $ac_prog = install &&
  4426. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4427. # program-specific install script used by HP pwplus--don't use.
  4428. :
  4429. else
  4430. rm -rf conftest.one conftest.two conftest.dir
  4431. echo one > conftest.one
  4432. echo two > conftest.two
  4433. mkdir conftest.dir
  4434. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4435. test -s conftest.one && test -s conftest.two &&
  4436. test -s conftest.dir/conftest.one &&
  4437. test -s conftest.dir/conftest.two
  4438. then
  4439. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4440. break 3
  4441. fi
  4442. fi
  4443. fi
  4444. done
  4445. done
  4446. ;;
  4447. esac
  4448. done
  4449. IFS=$as_save_IFS
  4450. rm -rf conftest.one conftest.two conftest.dir
  4451. fi
  4452. if test "${ac_cv_path_install+set}" = set; then
  4453. INSTALL=$ac_cv_path_install
  4454. else
  4455. # As a last resort, use the slow shell script. Don't cache a
  4456. # value for INSTALL within a source directory, because that will
  4457. # break other packages using the cache if that directory is
  4458. # removed, or if the value is a relative name.
  4459. INSTALL=$ac_install_sh
  4460. fi
  4461. fi
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4463. $as_echo "$INSTALL" >&6; }
  4464. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4465. # It thinks the first close brace ends the variable substitution.
  4466. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4467. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4468. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4469. rm -rf .tst 2>/dev/null
  4470. mkdir .tst 2>/dev/null
  4471. if test -d .tst; then
  4472. am__leading_dot=.
  4473. else
  4474. am__leading_dot=_
  4475. fi
  4476. rmdir .tst 2>/dev/null
  4477. DEPDIR="${am__leading_dot}deps"
  4478. case `pwd` in
  4479. *\ * | *\ *)
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4481. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4482. esac
  4483. macro_version='2.2.7a'
  4484. macro_revision='1.3134'
  4485. ltmain="$ac_aux_dir/ltmain.sh"
  4486. # Backslashify metacharacters that are still active within
  4487. # double-quoted strings.
  4488. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4489. # Same as above, but do not quote variable references.
  4490. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4491. # Sed substitution to delay expansion of an escaped shell variable in a
  4492. # double_quote_subst'ed string.
  4493. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4494. # Sed substitution to delay expansion of an escaped single quote.
  4495. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4496. # Sed substitution to avoid accidental globbing in evaled expressions
  4497. no_glob_subst='s/\*/\\\*/g'
  4498. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4499. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4500. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4502. $as_echo_n "checking how to print strings... " >&6; }
  4503. # Test print first, because it will be a builtin if present.
  4504. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4505. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4506. ECHO='print -r --'
  4507. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4508. ECHO='printf %s\n'
  4509. else
  4510. # Use this function as a fallback that always works.
  4511. func_fallback_echo ()
  4512. {
  4513. eval 'cat <<_LTECHO_EOF
  4514. $1
  4515. _LTECHO_EOF'
  4516. }
  4517. ECHO='func_fallback_echo'
  4518. fi
  4519. # func_echo_all arg...
  4520. # Invoke $ECHO with all args, space-separated.
  4521. func_echo_all ()
  4522. {
  4523. $ECHO ""
  4524. }
  4525. case "$ECHO" in
  4526. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4527. $as_echo "printf" >&6; } ;;
  4528. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4529. $as_echo "print -r" >&6; } ;;
  4530. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4531. $as_echo "cat" >&6; } ;;
  4532. esac
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4534. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4535. if test "${ac_cv_path_SED+set}" = set; then :
  4536. $as_echo_n "(cached) " >&6
  4537. else
  4538. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4539. for ac_i in 1 2 3 4 5 6 7; do
  4540. ac_script="$ac_script$as_nl$ac_script"
  4541. done
  4542. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4543. { ac_script=; unset ac_script;}
  4544. if test -z "$SED"; then
  4545. ac_path_SED_found=false
  4546. # Loop through the user's path and test for each of PROGNAME-LIST
  4547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4548. for as_dir in $PATH
  4549. do
  4550. IFS=$as_save_IFS
  4551. test -z "$as_dir" && as_dir=.
  4552. for ac_prog in sed gsed; do
  4553. for ac_exec_ext in '' $ac_executable_extensions; do
  4554. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4555. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4556. # Check for GNU ac_path_SED and select it if it is found.
  4557. # Check for GNU $ac_path_SED
  4558. case `"$ac_path_SED" --version 2>&1` in
  4559. *GNU*)
  4560. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4561. *)
  4562. ac_count=0
  4563. $as_echo_n 0123456789 >"conftest.in"
  4564. while :
  4565. do
  4566. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4567. mv "conftest.tmp" "conftest.in"
  4568. cp "conftest.in" "conftest.nl"
  4569. $as_echo '' >> "conftest.nl"
  4570. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4571. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4572. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4573. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4574. # Best one so far, save it but keep looking for a better one
  4575. ac_cv_path_SED="$ac_path_SED"
  4576. ac_path_SED_max=$ac_count
  4577. fi
  4578. # 10*(2^10) chars as input seems more than enough
  4579. test $ac_count -gt 10 && break
  4580. done
  4581. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4582. esac
  4583. $ac_path_SED_found && break 3
  4584. done
  4585. done
  4586. done
  4587. IFS=$as_save_IFS
  4588. if test -z "$ac_cv_path_SED"; then
  4589. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4590. fi
  4591. else
  4592. ac_cv_path_SED=$SED
  4593. fi
  4594. fi
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4596. $as_echo "$ac_cv_path_SED" >&6; }
  4597. SED="$ac_cv_path_SED"
  4598. rm -f conftest.sed
  4599. test -z "$SED" && SED=sed
  4600. Xsed="$SED -e 1s/^X//"
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4602. $as_echo_n "checking for fgrep... " >&6; }
  4603. if test "${ac_cv_path_FGREP+set}" = set; then :
  4604. $as_echo_n "(cached) " >&6
  4605. else
  4606. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4607. then ac_cv_path_FGREP="$GREP -F"
  4608. else
  4609. if test -z "$FGREP"; then
  4610. ac_path_FGREP_found=false
  4611. # Loop through the user's path and test for each of PROGNAME-LIST
  4612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4613. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4614. do
  4615. IFS=$as_save_IFS
  4616. test -z "$as_dir" && as_dir=.
  4617. for ac_prog in fgrep; do
  4618. for ac_exec_ext in '' $ac_executable_extensions; do
  4619. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4620. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4621. # Check for GNU ac_path_FGREP and select it if it is found.
  4622. # Check for GNU $ac_path_FGREP
  4623. case `"$ac_path_FGREP" --version 2>&1` in
  4624. *GNU*)
  4625. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4626. *)
  4627. ac_count=0
  4628. $as_echo_n 0123456789 >"conftest.in"
  4629. while :
  4630. do
  4631. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4632. mv "conftest.tmp" "conftest.in"
  4633. cp "conftest.in" "conftest.nl"
  4634. $as_echo 'FGREP' >> "conftest.nl"
  4635. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4636. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4637. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4638. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4639. # Best one so far, save it but keep looking for a better one
  4640. ac_cv_path_FGREP="$ac_path_FGREP"
  4641. ac_path_FGREP_max=$ac_count
  4642. fi
  4643. # 10*(2^10) chars as input seems more than enough
  4644. test $ac_count -gt 10 && break
  4645. done
  4646. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4647. esac
  4648. $ac_path_FGREP_found && break 3
  4649. done
  4650. done
  4651. done
  4652. IFS=$as_save_IFS
  4653. if test -z "$ac_cv_path_FGREP"; then
  4654. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4655. fi
  4656. else
  4657. ac_cv_path_FGREP=$FGREP
  4658. fi
  4659. fi
  4660. fi
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4662. $as_echo "$ac_cv_path_FGREP" >&6; }
  4663. FGREP="$ac_cv_path_FGREP"
  4664. test -z "$GREP" && GREP=grep
  4665. # Check whether --with-gnu-ld was given.
  4666. if test "${with_gnu_ld+set}" = set; then :
  4667. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4668. else
  4669. with_gnu_ld=no
  4670. fi
  4671. ac_prog=ld
  4672. if test "$GCC" = yes; then
  4673. # Check if gcc -print-prog-name=ld gives a path.
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4675. $as_echo_n "checking for ld used by $CC... " >&6; }
  4676. case $host in
  4677. *-*-mingw*)
  4678. # gcc leaves a trailing carriage return which upsets mingw
  4679. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4680. *)
  4681. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4682. esac
  4683. case $ac_prog in
  4684. # Accept absolute paths.
  4685. [\\/]* | ?:[\\/]*)
  4686. re_direlt='/[^/][^/]*/\.\./'
  4687. # Canonicalize the pathname of ld
  4688. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4689. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4690. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4691. done
  4692. test -z "$LD" && LD="$ac_prog"
  4693. ;;
  4694. "")
  4695. # If it fails, then pretend we aren't using GCC.
  4696. ac_prog=ld
  4697. ;;
  4698. *)
  4699. # If it is relative, then search for the first ld in PATH.
  4700. with_gnu_ld=unknown
  4701. ;;
  4702. esac
  4703. elif test "$with_gnu_ld" = yes; then
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4705. $as_echo_n "checking for GNU ld... " >&6; }
  4706. else
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4708. $as_echo_n "checking for non-GNU ld... " >&6; }
  4709. fi
  4710. if test "${lt_cv_path_LD+set}" = set; then :
  4711. $as_echo_n "(cached) " >&6
  4712. else
  4713. if test -z "$LD"; then
  4714. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4715. for ac_dir in $PATH; do
  4716. IFS="$lt_save_ifs"
  4717. test -z "$ac_dir" && ac_dir=.
  4718. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4719. lt_cv_path_LD="$ac_dir/$ac_prog"
  4720. # Check to see if the program is GNU ld. I'd rather use --version,
  4721. # but apparently some variants of GNU ld only accept -v.
  4722. # Break only if it was the GNU/non-GNU ld that we prefer.
  4723. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4724. *GNU* | *'with BFD'*)
  4725. test "$with_gnu_ld" != no && break
  4726. ;;
  4727. *)
  4728. test "$with_gnu_ld" != yes && break
  4729. ;;
  4730. esac
  4731. fi
  4732. done
  4733. IFS="$lt_save_ifs"
  4734. else
  4735. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4736. fi
  4737. fi
  4738. LD="$lt_cv_path_LD"
  4739. if test -n "$LD"; then
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4741. $as_echo "$LD" >&6; }
  4742. else
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4744. $as_echo "no" >&6; }
  4745. fi
  4746. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4748. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4749. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4750. $as_echo_n "(cached) " >&6
  4751. else
  4752. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4753. case `$LD -v 2>&1 </dev/null` in
  4754. *GNU* | *'with BFD'*)
  4755. lt_cv_prog_gnu_ld=yes
  4756. ;;
  4757. *)
  4758. lt_cv_prog_gnu_ld=no
  4759. ;;
  4760. esac
  4761. fi
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4763. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4764. with_gnu_ld=$lt_cv_prog_gnu_ld
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4766. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4767. if test "${lt_cv_path_NM+set}" = set; then :
  4768. $as_echo_n "(cached) " >&6
  4769. else
  4770. if test -n "$NM"; then
  4771. # Let the user override the test.
  4772. lt_cv_path_NM="$NM"
  4773. else
  4774. lt_nm_to_check="${ac_tool_prefix}nm"
  4775. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4776. lt_nm_to_check="$lt_nm_to_check nm"
  4777. fi
  4778. for lt_tmp_nm in $lt_nm_to_check; do
  4779. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4780. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4781. IFS="$lt_save_ifs"
  4782. test -z "$ac_dir" && ac_dir=.
  4783. tmp_nm="$ac_dir/$lt_tmp_nm"
  4784. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4785. # Check to see if the nm accepts a BSD-compat flag.
  4786. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4787. # nm: unknown option "B" ignored
  4788. # Tru64's nm complains that /dev/null is an invalid object file
  4789. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4790. */dev/null* | *'Invalid file or object type'*)
  4791. lt_cv_path_NM="$tmp_nm -B"
  4792. break
  4793. ;;
  4794. *)
  4795. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4796. */dev/null*)
  4797. lt_cv_path_NM="$tmp_nm -p"
  4798. break
  4799. ;;
  4800. *)
  4801. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4802. continue # so that we can try to find one that supports BSD flags
  4803. ;;
  4804. esac
  4805. ;;
  4806. esac
  4807. fi
  4808. done
  4809. IFS="$lt_save_ifs"
  4810. done
  4811. : ${lt_cv_path_NM=no}
  4812. fi
  4813. fi
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4815. $as_echo "$lt_cv_path_NM" >&6; }
  4816. if test "$lt_cv_path_NM" != "no"; then
  4817. NM="$lt_cv_path_NM"
  4818. else
  4819. # Didn't find any BSD compatible name lister, look for dumpbin.
  4820. if test -n "$DUMPBIN"; then :
  4821. # Let the user override the test.
  4822. else
  4823. if test -n "$ac_tool_prefix"; then
  4824. for ac_prog in dumpbin "link -dump"
  4825. do
  4826. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4827. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4829. $as_echo_n "checking for $ac_word... " >&6; }
  4830. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4831. $as_echo_n "(cached) " >&6
  4832. else
  4833. if test -n "$DUMPBIN"; then
  4834. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4835. else
  4836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4837. for as_dir in $PATH
  4838. do
  4839. IFS=$as_save_IFS
  4840. test -z "$as_dir" && as_dir=.
  4841. for ac_exec_ext in '' $ac_executable_extensions; do
  4842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4843. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4845. break 2
  4846. fi
  4847. done
  4848. done
  4849. IFS=$as_save_IFS
  4850. fi
  4851. fi
  4852. DUMPBIN=$ac_cv_prog_DUMPBIN
  4853. if test -n "$DUMPBIN"; then
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4855. $as_echo "$DUMPBIN" >&6; }
  4856. else
  4857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4858. $as_echo "no" >&6; }
  4859. fi
  4860. test -n "$DUMPBIN" && break
  4861. done
  4862. fi
  4863. if test -z "$DUMPBIN"; then
  4864. ac_ct_DUMPBIN=$DUMPBIN
  4865. for ac_prog in dumpbin "link -dump"
  4866. do
  4867. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4868. set dummy $ac_prog; ac_word=$2
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4870. $as_echo_n "checking for $ac_word... " >&6; }
  4871. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4872. $as_echo_n "(cached) " >&6
  4873. else
  4874. if test -n "$ac_ct_DUMPBIN"; then
  4875. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4876. else
  4877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4878. for as_dir in $PATH
  4879. do
  4880. IFS=$as_save_IFS
  4881. test -z "$as_dir" && as_dir=.
  4882. for ac_exec_ext in '' $ac_executable_extensions; do
  4883. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4884. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4886. break 2
  4887. fi
  4888. done
  4889. done
  4890. IFS=$as_save_IFS
  4891. fi
  4892. fi
  4893. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4894. if test -n "$ac_ct_DUMPBIN"; then
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4896. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4897. else
  4898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4899. $as_echo "no" >&6; }
  4900. fi
  4901. test -n "$ac_ct_DUMPBIN" && break
  4902. done
  4903. if test "x$ac_ct_DUMPBIN" = x; then
  4904. DUMPBIN=":"
  4905. else
  4906. case $cross_compiling:$ac_tool_warned in
  4907. yes:)
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4909. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4910. ac_tool_warned=yes ;;
  4911. esac
  4912. DUMPBIN=$ac_ct_DUMPBIN
  4913. fi
  4914. fi
  4915. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4916. *COFF*)
  4917. DUMPBIN="$DUMPBIN -symbols"
  4918. ;;
  4919. *)
  4920. DUMPBIN=:
  4921. ;;
  4922. esac
  4923. fi
  4924. if test "$DUMPBIN" != ":"; then
  4925. NM="$DUMPBIN"
  4926. fi
  4927. fi
  4928. test -z "$NM" && NM=nm
  4929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4930. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4931. if test "${lt_cv_nm_interface+set}" = set; then :
  4932. $as_echo_n "(cached) " >&6
  4933. else
  4934. lt_cv_nm_interface="BSD nm"
  4935. echo "int some_variable = 0;" > conftest.$ac_ext
  4936. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4937. (eval "$ac_compile" 2>conftest.err)
  4938. cat conftest.err >&5
  4939. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4940. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4941. cat conftest.err >&5
  4942. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4943. cat conftest.out >&5
  4944. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4945. lt_cv_nm_interface="MS dumpbin"
  4946. fi
  4947. rm -f conftest*
  4948. fi
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4950. $as_echo "$lt_cv_nm_interface" >&6; }
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4952. $as_echo_n "checking whether ln -s works... " >&6; }
  4953. LN_S=$as_ln_s
  4954. if test "$LN_S" = "ln -s"; then
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4956. $as_echo "yes" >&6; }
  4957. else
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4959. $as_echo "no, using $LN_S" >&6; }
  4960. fi
  4961. # find the maximum length of command line arguments
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4963. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4964. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4965. $as_echo_n "(cached) " >&6
  4966. else
  4967. i=0
  4968. teststring="ABCD"
  4969. case $build_os in
  4970. msdosdjgpp*)
  4971. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4972. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4973. # during glob expansion). Even if it were fixed, the result of this
  4974. # check would be larger than it should be.
  4975. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4976. ;;
  4977. gnu*)
  4978. # Under GNU Hurd, this test is not required because there is
  4979. # no limit to the length of command line arguments.
  4980. # Libtool will interpret -1 as no limit whatsoever
  4981. lt_cv_sys_max_cmd_len=-1;
  4982. ;;
  4983. cygwin* | mingw* | cegcc*)
  4984. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4985. # about 5 minutes as the teststring grows exponentially.
  4986. # Worse, since 9x/ME are not pre-emptively multitasking,
  4987. # you end up with a "frozen" computer, even though with patience
  4988. # the test eventually succeeds (with a max line length of 256k).
  4989. # Instead, let's just punt: use the minimum linelength reported by
  4990. # all of the supported platforms: 8192 (on NT/2K/XP).
  4991. lt_cv_sys_max_cmd_len=8192;
  4992. ;;
  4993. mint*)
  4994. # On MiNT this can take a long time and run out of memory.
  4995. lt_cv_sys_max_cmd_len=8192;
  4996. ;;
  4997. amigaos*)
  4998. # On AmigaOS with pdksh, this test takes hours, literally.
  4999. # So we just punt and use a minimum line length of 8192.
  5000. lt_cv_sys_max_cmd_len=8192;
  5001. ;;
  5002. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5003. # This has been around since 386BSD, at least. Likely further.
  5004. if test -x /sbin/sysctl; then
  5005. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5006. elif test -x /usr/sbin/sysctl; then
  5007. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5008. else
  5009. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5010. fi
  5011. # And add a safety zone
  5012. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5013. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5014. ;;
  5015. interix*)
  5016. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5017. lt_cv_sys_max_cmd_len=196608
  5018. ;;
  5019. osf*)
  5020. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5021. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5022. # nice to cause kernel panics so lets avoid the loop below.
  5023. # First set a reasonable default.
  5024. lt_cv_sys_max_cmd_len=16384
  5025. #
  5026. if test -x /sbin/sysconfig; then
  5027. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5028. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5029. esac
  5030. fi
  5031. ;;
  5032. sco3.2v5*)
  5033. lt_cv_sys_max_cmd_len=102400
  5034. ;;
  5035. sysv5* | sco5v6* | sysv4.2uw2*)
  5036. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5037. if test -n "$kargmax"; then
  5038. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5039. else
  5040. lt_cv_sys_max_cmd_len=32768
  5041. fi
  5042. ;;
  5043. *)
  5044. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5045. if test -n "$lt_cv_sys_max_cmd_len"; then
  5046. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5047. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5048. else
  5049. # Make teststring a little bigger before we do anything with it.
  5050. # a 1K string should be a reasonable start.
  5051. for i in 1 2 3 4 5 6 7 8 ; do
  5052. teststring=$teststring$teststring
  5053. done
  5054. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5055. # If test is not a shell built-in, we'll probably end up computing a
  5056. # maximum length that is only half of the actual maximum length, but
  5057. # we can't tell.
  5058. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5059. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5060. test $i != 17 # 1/2 MB should be enough
  5061. do
  5062. i=`expr $i + 1`
  5063. teststring=$teststring$teststring
  5064. done
  5065. # Only check the string length outside the loop.
  5066. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5067. teststring=
  5068. # Add a significant safety factor because C++ compilers can tack on
  5069. # massive amounts of additional arguments before passing them to the
  5070. # linker. It appears as though 1/2 is a usable value.
  5071. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5072. fi
  5073. ;;
  5074. esac
  5075. fi
  5076. if test -n $lt_cv_sys_max_cmd_len ; then
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5078. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5079. else
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5081. $as_echo "none" >&6; }
  5082. fi
  5083. max_cmd_len=$lt_cv_sys_max_cmd_len
  5084. : ${CP="cp -f"}
  5085. : ${MV="mv -f"}
  5086. : ${RM="rm -f"}
  5087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5088. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5089. # Try some XSI features
  5090. xsi_shell=no
  5091. ( _lt_dummy="a/b/c"
  5092. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5093. = c,a/b,, \
  5094. && eval 'test $(( 1 + 1 )) -eq 2 \
  5095. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5096. && xsi_shell=yes
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5098. $as_echo "$xsi_shell" >&6; }
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5100. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5101. lt_shell_append=no
  5102. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5103. >/dev/null 2>&1 \
  5104. && lt_shell_append=yes
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5106. $as_echo "$lt_shell_append" >&6; }
  5107. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5108. lt_unset=unset
  5109. else
  5110. lt_unset=false
  5111. fi
  5112. # test EBCDIC or ASCII
  5113. case `echo X|tr X '\101'` in
  5114. A) # ASCII based system
  5115. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5116. lt_SP2NL='tr \040 \012'
  5117. lt_NL2SP='tr \015\012 \040\040'
  5118. ;;
  5119. *) # EBCDIC based system
  5120. lt_SP2NL='tr \100 \n'
  5121. lt_NL2SP='tr \r\n \100\100'
  5122. ;;
  5123. esac
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5125. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5126. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5127. $as_echo_n "(cached) " >&6
  5128. else
  5129. lt_cv_ld_reload_flag='-r'
  5130. fi
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5132. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5133. reload_flag=$lt_cv_ld_reload_flag
  5134. case $reload_flag in
  5135. "" | " "*) ;;
  5136. *) reload_flag=" $reload_flag" ;;
  5137. esac
  5138. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5139. case $host_os in
  5140. darwin*)
  5141. if test "$GCC" = yes; then
  5142. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5143. else
  5144. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5145. fi
  5146. ;;
  5147. esac
  5148. if test -n "$ac_tool_prefix"; then
  5149. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5150. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5152. $as_echo_n "checking for $ac_word... " >&6; }
  5153. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5154. $as_echo_n "(cached) " >&6
  5155. else
  5156. if test -n "$OBJDUMP"; then
  5157. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5158. else
  5159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5160. for as_dir in $PATH
  5161. do
  5162. IFS=$as_save_IFS
  5163. test -z "$as_dir" && as_dir=.
  5164. for ac_exec_ext in '' $ac_executable_extensions; do
  5165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5166. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5168. break 2
  5169. fi
  5170. done
  5171. done
  5172. IFS=$as_save_IFS
  5173. fi
  5174. fi
  5175. OBJDUMP=$ac_cv_prog_OBJDUMP
  5176. if test -n "$OBJDUMP"; then
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5178. $as_echo "$OBJDUMP" >&6; }
  5179. else
  5180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5181. $as_echo "no" >&6; }
  5182. fi
  5183. fi
  5184. if test -z "$ac_cv_prog_OBJDUMP"; then
  5185. ac_ct_OBJDUMP=$OBJDUMP
  5186. # Extract the first word of "objdump", so it can be a program name with args.
  5187. set dummy objdump; ac_word=$2
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5189. $as_echo_n "checking for $ac_word... " >&6; }
  5190. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5191. $as_echo_n "(cached) " >&6
  5192. else
  5193. if test -n "$ac_ct_OBJDUMP"; then
  5194. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5195. else
  5196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5197. for as_dir in $PATH
  5198. do
  5199. IFS=$as_save_IFS
  5200. test -z "$as_dir" && as_dir=.
  5201. for ac_exec_ext in '' $ac_executable_extensions; do
  5202. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5203. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5204. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5205. break 2
  5206. fi
  5207. done
  5208. done
  5209. IFS=$as_save_IFS
  5210. fi
  5211. fi
  5212. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5213. if test -n "$ac_ct_OBJDUMP"; then
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5215. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5216. else
  5217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5218. $as_echo "no" >&6; }
  5219. fi
  5220. if test "x$ac_ct_OBJDUMP" = x; then
  5221. OBJDUMP="false"
  5222. else
  5223. case $cross_compiling:$ac_tool_warned in
  5224. yes:)
  5225. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5226. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5227. ac_tool_warned=yes ;;
  5228. esac
  5229. OBJDUMP=$ac_ct_OBJDUMP
  5230. fi
  5231. else
  5232. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5233. fi
  5234. test -z "$OBJDUMP" && OBJDUMP=objdump
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5236. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5237. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5238. $as_echo_n "(cached) " >&6
  5239. else
  5240. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5241. lt_cv_file_magic_test_file=
  5242. lt_cv_deplibs_check_method='unknown'
  5243. # Need to set the preceding variable on all platforms that support
  5244. # interlibrary dependencies.
  5245. # 'none' -- dependencies not supported.
  5246. # `unknown' -- same as none, but documents that we really don't know.
  5247. # 'pass_all' -- all dependencies passed with no checks.
  5248. # 'test_compile' -- check by making test program.
  5249. # 'file_magic [[regex]]' -- check by looking for files in library path
  5250. # which responds to the $file_magic_cmd with a given extended regex.
  5251. # If you have `file' or equivalent on your system and you're not sure
  5252. # whether `pass_all' will *always* work, you probably want this one.
  5253. case $host_os in
  5254. aix[4-9]*)
  5255. lt_cv_deplibs_check_method=pass_all
  5256. ;;
  5257. beos*)
  5258. lt_cv_deplibs_check_method=pass_all
  5259. ;;
  5260. bsdi[45]*)
  5261. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5262. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5263. lt_cv_file_magic_test_file=/shlib/libc.so
  5264. ;;
  5265. cygwin*)
  5266. # func_win32_libid is a shell function defined in ltmain.sh
  5267. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5268. lt_cv_file_magic_cmd='func_win32_libid'
  5269. ;;
  5270. mingw* | pw32*)
  5271. # Base MSYS/MinGW do not provide the 'file' command needed by
  5272. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5273. # unless we find 'file', for example because we are cross-compiling.
  5274. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5275. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5276. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5277. lt_cv_file_magic_cmd='func_win32_libid'
  5278. else
  5279. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5280. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5281. fi
  5282. ;;
  5283. cegcc*)
  5284. # use the weaker test based on 'objdump'. See mingw*.
  5285. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5286. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5287. ;;
  5288. darwin* | rhapsody*)
  5289. lt_cv_deplibs_check_method=pass_all
  5290. ;;
  5291. freebsd* | dragonfly*)
  5292. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5293. case $host_cpu in
  5294. i*86 )
  5295. # Not sure whether the presence of OpenBSD here was a mistake.
  5296. # Let's accept both of them until this is cleared up.
  5297. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5298. lt_cv_file_magic_cmd=/usr/bin/file
  5299. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5300. ;;
  5301. esac
  5302. else
  5303. lt_cv_deplibs_check_method=pass_all
  5304. fi
  5305. ;;
  5306. gnu*)
  5307. lt_cv_deplibs_check_method=pass_all
  5308. ;;
  5309. haiku*)
  5310. lt_cv_deplibs_check_method=pass_all
  5311. ;;
  5312. hpux10.20* | hpux11*)
  5313. lt_cv_file_magic_cmd=/usr/bin/file
  5314. case $host_cpu in
  5315. ia64*)
  5316. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5317. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5318. ;;
  5319. hppa*64*)
  5320. 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]'
  5321. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5322. ;;
  5323. *)
  5324. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5325. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5326. ;;
  5327. esac
  5328. ;;
  5329. interix[3-9]*)
  5330. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5331. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5332. ;;
  5333. irix5* | irix6* | nonstopux*)
  5334. case $LD in
  5335. *-32|*"-32 ") libmagic=32-bit;;
  5336. *-n32|*"-n32 ") libmagic=N32;;
  5337. *-64|*"-64 ") libmagic=64-bit;;
  5338. *) libmagic=never-match;;
  5339. esac
  5340. lt_cv_deplibs_check_method=pass_all
  5341. ;;
  5342. # This must be Linux ELF.
  5343. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5344. lt_cv_deplibs_check_method=pass_all
  5345. ;;
  5346. netbsd*)
  5347. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5348. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5349. else
  5350. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5351. fi
  5352. ;;
  5353. newos6*)
  5354. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5355. lt_cv_file_magic_cmd=/usr/bin/file
  5356. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5357. ;;
  5358. *nto* | *qnx*)
  5359. lt_cv_deplibs_check_method=pass_all
  5360. ;;
  5361. openbsd*)
  5362. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5363. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5364. else
  5365. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5366. fi
  5367. ;;
  5368. osf3* | osf4* | osf5*)
  5369. lt_cv_deplibs_check_method=pass_all
  5370. ;;
  5371. rdos*)
  5372. lt_cv_deplibs_check_method=pass_all
  5373. ;;
  5374. solaris*)
  5375. lt_cv_deplibs_check_method=pass_all
  5376. ;;
  5377. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5378. lt_cv_deplibs_check_method=pass_all
  5379. ;;
  5380. sysv4 | sysv4.3*)
  5381. case $host_vendor in
  5382. motorola)
  5383. 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]'
  5384. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5385. ;;
  5386. ncr)
  5387. lt_cv_deplibs_check_method=pass_all
  5388. ;;
  5389. sequent)
  5390. lt_cv_file_magic_cmd='/bin/file'
  5391. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5392. ;;
  5393. sni)
  5394. lt_cv_file_magic_cmd='/bin/file'
  5395. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5396. lt_cv_file_magic_test_file=/lib/libc.so
  5397. ;;
  5398. siemens)
  5399. lt_cv_deplibs_check_method=pass_all
  5400. ;;
  5401. pc)
  5402. lt_cv_deplibs_check_method=pass_all
  5403. ;;
  5404. esac
  5405. ;;
  5406. tpf*)
  5407. lt_cv_deplibs_check_method=pass_all
  5408. ;;
  5409. esac
  5410. fi
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5412. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5413. file_magic_cmd=$lt_cv_file_magic_cmd
  5414. deplibs_check_method=$lt_cv_deplibs_check_method
  5415. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5416. if test -n "$ac_tool_prefix"; then
  5417. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5418. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5420. $as_echo_n "checking for $ac_word... " >&6; }
  5421. if test "${ac_cv_prog_AR+set}" = set; then :
  5422. $as_echo_n "(cached) " >&6
  5423. else
  5424. if test -n "$AR"; then
  5425. ac_cv_prog_AR="$AR" # Let the user override the test.
  5426. else
  5427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5428. for as_dir in $PATH
  5429. do
  5430. IFS=$as_save_IFS
  5431. test -z "$as_dir" && as_dir=.
  5432. for ac_exec_ext in '' $ac_executable_extensions; do
  5433. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5434. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5436. break 2
  5437. fi
  5438. done
  5439. done
  5440. IFS=$as_save_IFS
  5441. fi
  5442. fi
  5443. AR=$ac_cv_prog_AR
  5444. if test -n "$AR"; then
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5446. $as_echo "$AR" >&6; }
  5447. else
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5449. $as_echo "no" >&6; }
  5450. fi
  5451. fi
  5452. if test -z "$ac_cv_prog_AR"; then
  5453. ac_ct_AR=$AR
  5454. # Extract the first word of "ar", so it can be a program name with args.
  5455. set dummy ar; ac_word=$2
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5457. $as_echo_n "checking for $ac_word... " >&6; }
  5458. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5459. $as_echo_n "(cached) " >&6
  5460. else
  5461. if test -n "$ac_ct_AR"; then
  5462. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5463. else
  5464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5465. for as_dir in $PATH
  5466. do
  5467. IFS=$as_save_IFS
  5468. test -z "$as_dir" && as_dir=.
  5469. for ac_exec_ext in '' $ac_executable_extensions; do
  5470. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5471. ac_cv_prog_ac_ct_AR="ar"
  5472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5473. break 2
  5474. fi
  5475. done
  5476. done
  5477. IFS=$as_save_IFS
  5478. fi
  5479. fi
  5480. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5481. if test -n "$ac_ct_AR"; then
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5483. $as_echo "$ac_ct_AR" >&6; }
  5484. else
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5486. $as_echo "no" >&6; }
  5487. fi
  5488. if test "x$ac_ct_AR" = x; then
  5489. AR="false"
  5490. else
  5491. case $cross_compiling:$ac_tool_warned in
  5492. yes:)
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5494. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5495. ac_tool_warned=yes ;;
  5496. esac
  5497. AR=$ac_ct_AR
  5498. fi
  5499. else
  5500. AR="$ac_cv_prog_AR"
  5501. fi
  5502. test -z "$AR" && AR=ar
  5503. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5504. if test -n "$ac_tool_prefix"; then
  5505. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5506. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5508. $as_echo_n "checking for $ac_word... " >&6; }
  5509. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5510. $as_echo_n "(cached) " >&6
  5511. else
  5512. if test -n "$STRIP"; then
  5513. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5514. else
  5515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5516. for as_dir in $PATH
  5517. do
  5518. IFS=$as_save_IFS
  5519. test -z "$as_dir" && as_dir=.
  5520. for ac_exec_ext in '' $ac_executable_extensions; do
  5521. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5522. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5524. break 2
  5525. fi
  5526. done
  5527. done
  5528. IFS=$as_save_IFS
  5529. fi
  5530. fi
  5531. STRIP=$ac_cv_prog_STRIP
  5532. if test -n "$STRIP"; then
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5534. $as_echo "$STRIP" >&6; }
  5535. else
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5537. $as_echo "no" >&6; }
  5538. fi
  5539. fi
  5540. if test -z "$ac_cv_prog_STRIP"; then
  5541. ac_ct_STRIP=$STRIP
  5542. # Extract the first word of "strip", so it can be a program name with args.
  5543. set dummy strip; ac_word=$2
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5545. $as_echo_n "checking for $ac_word... " >&6; }
  5546. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5547. $as_echo_n "(cached) " >&6
  5548. else
  5549. if test -n "$ac_ct_STRIP"; then
  5550. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5551. else
  5552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5553. for as_dir in $PATH
  5554. do
  5555. IFS=$as_save_IFS
  5556. test -z "$as_dir" && as_dir=.
  5557. for ac_exec_ext in '' $ac_executable_extensions; do
  5558. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5559. ac_cv_prog_ac_ct_STRIP="strip"
  5560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5561. break 2
  5562. fi
  5563. done
  5564. done
  5565. IFS=$as_save_IFS
  5566. fi
  5567. fi
  5568. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5569. if test -n "$ac_ct_STRIP"; then
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5571. $as_echo "$ac_ct_STRIP" >&6; }
  5572. else
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5574. $as_echo "no" >&6; }
  5575. fi
  5576. if test "x$ac_ct_STRIP" = x; then
  5577. STRIP=":"
  5578. else
  5579. case $cross_compiling:$ac_tool_warned in
  5580. yes:)
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5582. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5583. ac_tool_warned=yes ;;
  5584. esac
  5585. STRIP=$ac_ct_STRIP
  5586. fi
  5587. else
  5588. STRIP="$ac_cv_prog_STRIP"
  5589. fi
  5590. test -z "$STRIP" && STRIP=:
  5591. if test -n "$ac_tool_prefix"; then
  5592. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5593. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5595. $as_echo_n "checking for $ac_word... " >&6; }
  5596. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5597. $as_echo_n "(cached) " >&6
  5598. else
  5599. if test -n "$RANLIB"; then
  5600. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5601. else
  5602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5603. for as_dir in $PATH
  5604. do
  5605. IFS=$as_save_IFS
  5606. test -z "$as_dir" && as_dir=.
  5607. for ac_exec_ext in '' $ac_executable_extensions; do
  5608. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5609. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5611. break 2
  5612. fi
  5613. done
  5614. done
  5615. IFS=$as_save_IFS
  5616. fi
  5617. fi
  5618. RANLIB=$ac_cv_prog_RANLIB
  5619. if test -n "$RANLIB"; then
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5621. $as_echo "$RANLIB" >&6; }
  5622. else
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5624. $as_echo "no" >&6; }
  5625. fi
  5626. fi
  5627. if test -z "$ac_cv_prog_RANLIB"; then
  5628. ac_ct_RANLIB=$RANLIB
  5629. # Extract the first word of "ranlib", so it can be a program name with args.
  5630. set dummy ranlib; ac_word=$2
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5632. $as_echo_n "checking for $ac_word... " >&6; }
  5633. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5634. $as_echo_n "(cached) " >&6
  5635. else
  5636. if test -n "$ac_ct_RANLIB"; then
  5637. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5638. else
  5639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5640. for as_dir in $PATH
  5641. do
  5642. IFS=$as_save_IFS
  5643. test -z "$as_dir" && as_dir=.
  5644. for ac_exec_ext in '' $ac_executable_extensions; do
  5645. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5646. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5648. break 2
  5649. fi
  5650. done
  5651. done
  5652. IFS=$as_save_IFS
  5653. fi
  5654. fi
  5655. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5656. if test -n "$ac_ct_RANLIB"; then
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5658. $as_echo "$ac_ct_RANLIB" >&6; }
  5659. else
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5661. $as_echo "no" >&6; }
  5662. fi
  5663. if test "x$ac_ct_RANLIB" = x; then
  5664. RANLIB=":"
  5665. else
  5666. case $cross_compiling:$ac_tool_warned in
  5667. yes:)
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5669. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5670. ac_tool_warned=yes ;;
  5671. esac
  5672. RANLIB=$ac_ct_RANLIB
  5673. fi
  5674. else
  5675. RANLIB="$ac_cv_prog_RANLIB"
  5676. fi
  5677. test -z "$RANLIB" && RANLIB=:
  5678. # Determine commands to create old-style static archives.
  5679. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5680. old_postinstall_cmds='chmod 644 $oldlib'
  5681. old_postuninstall_cmds=
  5682. if test -n "$RANLIB"; then
  5683. case $host_os in
  5684. openbsd*)
  5685. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5686. ;;
  5687. *)
  5688. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5689. ;;
  5690. esac
  5691. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5692. fi
  5693. case $host_os in
  5694. darwin*)
  5695. lock_old_archive_extraction=yes ;;
  5696. *)
  5697. lock_old_archive_extraction=no ;;
  5698. esac
  5699. for ac_prog in gawk mawk nawk awk
  5700. do
  5701. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5702. set dummy $ac_prog; ac_word=$2
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5704. $as_echo_n "checking for $ac_word... " >&6; }
  5705. if test "${ac_cv_prog_AWK+set}" = set; then :
  5706. $as_echo_n "(cached) " >&6
  5707. else
  5708. if test -n "$AWK"; then
  5709. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5710. else
  5711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5712. for as_dir in $PATH
  5713. do
  5714. IFS=$as_save_IFS
  5715. test -z "$as_dir" && as_dir=.
  5716. for ac_exec_ext in '' $ac_executable_extensions; do
  5717. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5718. ac_cv_prog_AWK="$ac_prog"
  5719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5720. break 2
  5721. fi
  5722. done
  5723. done
  5724. IFS=$as_save_IFS
  5725. fi
  5726. fi
  5727. AWK=$ac_cv_prog_AWK
  5728. if test -n "$AWK"; then
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5730. $as_echo "$AWK" >&6; }
  5731. else
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5733. $as_echo "no" >&6; }
  5734. fi
  5735. test -n "$AWK" && break
  5736. done
  5737. # If no C compiler was specified, use CC.
  5738. LTCC=${LTCC-"$CC"}
  5739. # If no C compiler flags were specified, use CFLAGS.
  5740. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5741. # Allow CC to be a program name with arguments.
  5742. compiler=$CC
  5743. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5745. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5746. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5747. $as_echo_n "(cached) " >&6
  5748. else
  5749. # These are sane defaults that work on at least a few old systems.
  5750. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5751. # Character class describing NM global symbol codes.
  5752. symcode='[BCDEGRST]'
  5753. # Regexp to match symbols that can be accessed directly from C.
  5754. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5755. # Define system-specific variables.
  5756. case $host_os in
  5757. aix*)
  5758. symcode='[BCDT]'
  5759. ;;
  5760. cygwin* | mingw* | pw32* | cegcc*)
  5761. symcode='[ABCDGISTW]'
  5762. ;;
  5763. hpux*)
  5764. if test "$host_cpu" = ia64; then
  5765. symcode='[ABCDEGRST]'
  5766. fi
  5767. ;;
  5768. irix* | nonstopux*)
  5769. symcode='[BCDEGRST]'
  5770. ;;
  5771. osf*)
  5772. symcode='[BCDEGQRST]'
  5773. ;;
  5774. solaris*)
  5775. symcode='[BDRT]'
  5776. ;;
  5777. sco3.2v5*)
  5778. symcode='[DT]'
  5779. ;;
  5780. sysv4.2uw2*)
  5781. symcode='[DT]'
  5782. ;;
  5783. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5784. symcode='[ABDT]'
  5785. ;;
  5786. sysv4)
  5787. symcode='[DFNSTU]'
  5788. ;;
  5789. esac
  5790. # If we're using GNU nm, then use its standard symbol codes.
  5791. case `$NM -V 2>&1` in
  5792. *GNU* | *'with BFD'*)
  5793. symcode='[ABCDGIRSTW]' ;;
  5794. esac
  5795. # Transform an extracted symbol line into a proper C declaration.
  5796. # Some systems (esp. on ia64) link data and code symbols differently,
  5797. # so use this general approach.
  5798. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5799. # Transform an extracted symbol line into symbol name and symbol address
  5800. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5801. 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'"
  5802. # Handle CRLF in mingw tool chain
  5803. opt_cr=
  5804. case $build_os in
  5805. mingw*)
  5806. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5807. ;;
  5808. esac
  5809. # Try without a prefix underscore, then with it.
  5810. for ac_symprfx in "" "_"; do
  5811. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5812. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5813. # Write the raw and C identifiers.
  5814. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5815. # Fake it for dumpbin and say T for any non-static function
  5816. # and D for any global variable.
  5817. # Also find C++ and __fastcall symbols from MSVC++,
  5818. # which start with @ or ?.
  5819. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5820. " {last_section=section; section=\$ 3};"\
  5821. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5822. " \$ 0!~/External *\|/{next};"\
  5823. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5824. " {if(hide[section]) next};"\
  5825. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5826. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5827. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5828. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5829. " ' prfx=^$ac_symprfx"
  5830. else
  5831. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5832. fi
  5833. # Check to see that the pipe works correctly.
  5834. pipe_works=no
  5835. rm -f conftest*
  5836. cat > conftest.$ac_ext <<_LT_EOF
  5837. #ifdef __cplusplus
  5838. extern "C" {
  5839. #endif
  5840. char nm_test_var;
  5841. void nm_test_func(void);
  5842. void nm_test_func(void){}
  5843. #ifdef __cplusplus
  5844. }
  5845. #endif
  5846. int main(){nm_test_var='a';nm_test_func();return(0);}
  5847. _LT_EOF
  5848. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5849. (eval $ac_compile) 2>&5
  5850. ac_status=$?
  5851. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5852. test $ac_status = 0; }; then
  5853. # Now try to grab the symbols.
  5854. nlist=conftest.nm
  5855. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5856. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5857. ac_status=$?
  5858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5859. test $ac_status = 0; } && test -s "$nlist"; then
  5860. # Try sorting and uniquifying the output.
  5861. if sort "$nlist" | uniq > "$nlist"T; then
  5862. mv -f "$nlist"T "$nlist"
  5863. else
  5864. rm -f "$nlist"T
  5865. fi
  5866. # Make sure that we snagged all the symbols we need.
  5867. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5868. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5869. cat <<_LT_EOF > conftest.$ac_ext
  5870. #ifdef __cplusplus
  5871. extern "C" {
  5872. #endif
  5873. _LT_EOF
  5874. # Now generate the symbol file.
  5875. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5876. cat <<_LT_EOF >> conftest.$ac_ext
  5877. /* The mapping between symbol names and symbols. */
  5878. const struct {
  5879. const char *name;
  5880. void *address;
  5881. }
  5882. lt__PROGRAM__LTX_preloaded_symbols[] =
  5883. {
  5884. { "@PROGRAM@", (void *) 0 },
  5885. _LT_EOF
  5886. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5887. cat <<\_LT_EOF >> conftest.$ac_ext
  5888. {0, (void *) 0}
  5889. };
  5890. /* This works around a problem in FreeBSD linker */
  5891. #ifdef FREEBSD_WORKAROUND
  5892. static const void *lt_preloaded_setup() {
  5893. return lt__PROGRAM__LTX_preloaded_symbols;
  5894. }
  5895. #endif
  5896. #ifdef __cplusplus
  5897. }
  5898. #endif
  5899. _LT_EOF
  5900. # Now try linking the two files.
  5901. mv conftest.$ac_objext conftstm.$ac_objext
  5902. lt_save_LIBS="$LIBS"
  5903. lt_save_CFLAGS="$CFLAGS"
  5904. LIBS="conftstm.$ac_objext"
  5905. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5906. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5907. (eval $ac_link) 2>&5
  5908. ac_status=$?
  5909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5910. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5911. pipe_works=yes
  5912. fi
  5913. LIBS="$lt_save_LIBS"
  5914. CFLAGS="$lt_save_CFLAGS"
  5915. else
  5916. echo "cannot find nm_test_func in $nlist" >&5
  5917. fi
  5918. else
  5919. echo "cannot find nm_test_var in $nlist" >&5
  5920. fi
  5921. else
  5922. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5923. fi
  5924. else
  5925. echo "$progname: failed program was:" >&5
  5926. cat conftest.$ac_ext >&5
  5927. fi
  5928. rm -rf conftest* conftst*
  5929. # Do not use the global_symbol_pipe unless it works.
  5930. if test "$pipe_works" = yes; then
  5931. break
  5932. else
  5933. lt_cv_sys_global_symbol_pipe=
  5934. fi
  5935. done
  5936. fi
  5937. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5938. lt_cv_sys_global_symbol_to_cdecl=
  5939. fi
  5940. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5942. $as_echo "failed" >&6; }
  5943. else
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5945. $as_echo "ok" >&6; }
  5946. fi
  5947. # Check whether --enable-libtool-lock was given.
  5948. if test "${enable_libtool_lock+set}" = set; then :
  5949. enableval=$enable_libtool_lock;
  5950. fi
  5951. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5952. # Some flags need to be propagated to the compiler or linker for good
  5953. # libtool support.
  5954. case $host in
  5955. ia64-*-hpux*)
  5956. # Find out which ABI we are using.
  5957. echo 'int i;' > conftest.$ac_ext
  5958. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5959. (eval $ac_compile) 2>&5
  5960. ac_status=$?
  5961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5962. test $ac_status = 0; }; then
  5963. case `/usr/bin/file conftest.$ac_objext` in
  5964. *ELF-32*)
  5965. HPUX_IA64_MODE="32"
  5966. ;;
  5967. *ELF-64*)
  5968. HPUX_IA64_MODE="64"
  5969. ;;
  5970. esac
  5971. fi
  5972. rm -rf conftest*
  5973. ;;
  5974. *-*-irix6*)
  5975. # Find out which ABI we are using.
  5976. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5977. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5978. (eval $ac_compile) 2>&5
  5979. ac_status=$?
  5980. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5981. test $ac_status = 0; }; then
  5982. if test "$lt_cv_prog_gnu_ld" = yes; then
  5983. case `/usr/bin/file conftest.$ac_objext` in
  5984. *32-bit*)
  5985. LD="${LD-ld} -melf32bsmip"
  5986. ;;
  5987. *N32*)
  5988. LD="${LD-ld} -melf32bmipn32"
  5989. ;;
  5990. *64-bit*)
  5991. LD="${LD-ld} -melf64bmip"
  5992. ;;
  5993. esac
  5994. else
  5995. case `/usr/bin/file conftest.$ac_objext` in
  5996. *32-bit*)
  5997. LD="${LD-ld} -32"
  5998. ;;
  5999. *N32*)
  6000. LD="${LD-ld} -n32"
  6001. ;;
  6002. *64-bit*)
  6003. LD="${LD-ld} -64"
  6004. ;;
  6005. esac
  6006. fi
  6007. fi
  6008. rm -rf conftest*
  6009. ;;
  6010. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6011. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6012. # Find out which ABI we are using.
  6013. echo 'int i;' > conftest.$ac_ext
  6014. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6015. (eval $ac_compile) 2>&5
  6016. ac_status=$?
  6017. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6018. test $ac_status = 0; }; then
  6019. case `/usr/bin/file conftest.o` in
  6020. *32-bit*)
  6021. case $host in
  6022. x86_64-*kfreebsd*-gnu)
  6023. LD="${LD-ld} -m elf_i386_fbsd"
  6024. ;;
  6025. x86_64-*linux*)
  6026. case `/usr/bin/file conftest.o` in
  6027. *x86-64*)
  6028. LD="${LD-ld} -m elf32_x86_64"
  6029. ;;
  6030. *)
  6031. LD="${LD-ld} -m elf_i386"
  6032. ;;
  6033. esac
  6034. ;;
  6035. powerpc64le-*linux*)
  6036. LD="${LD-ld} -m elf32lppclinux"
  6037. ;;
  6038. powerpc64-*linux*)
  6039. LD="${LD-ld} -m elf32ppclinux"
  6040. ;;
  6041. s390x-*linux*)
  6042. LD="${LD-ld} -m elf_s390"
  6043. ;;
  6044. sparc64-*linux*)
  6045. LD="${LD-ld} -m elf32_sparc"
  6046. ;;
  6047. esac
  6048. ;;
  6049. *64-bit*)
  6050. case $host in
  6051. x86_64-*kfreebsd*-gnu)
  6052. LD="${LD-ld} -m elf_x86_64_fbsd"
  6053. ;;
  6054. x86_64-*linux*)
  6055. LD="${LD-ld} -m elf_x86_64"
  6056. ;;
  6057. powerpcle-*linux*)
  6058. LD="${LD-ld} -m elf64lppc"
  6059. ;;
  6060. powerpc-*linux*)
  6061. LD="${LD-ld} -m elf64ppc"
  6062. ;;
  6063. s390*-*linux*|s390*-*tpf*)
  6064. LD="${LD-ld} -m elf64_s390"
  6065. ;;
  6066. sparc*-*linux*)
  6067. LD="${LD-ld} -m elf64_sparc"
  6068. ;;
  6069. esac
  6070. ;;
  6071. esac
  6072. fi
  6073. rm -rf conftest*
  6074. ;;
  6075. *-*-sco3.2v5*)
  6076. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6077. SAVE_CFLAGS="$CFLAGS"
  6078. CFLAGS="$CFLAGS -belf"
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6080. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6081. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6082. $as_echo_n "(cached) " >&6
  6083. else
  6084. ac_ext=c
  6085. ac_cpp='$CPP $CPPFLAGS'
  6086. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6087. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6088. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6090. /* end confdefs.h. */
  6091. int
  6092. main ()
  6093. {
  6094. ;
  6095. return 0;
  6096. }
  6097. _ACEOF
  6098. if ac_fn_c_try_link "$LINENO"; then :
  6099. lt_cv_cc_needs_belf=yes
  6100. else
  6101. lt_cv_cc_needs_belf=no
  6102. fi
  6103. rm -f core conftest.err conftest.$ac_objext \
  6104. conftest$ac_exeext conftest.$ac_ext
  6105. ac_ext=c
  6106. ac_cpp='$CPP $CPPFLAGS'
  6107. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6108. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6109. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6110. fi
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6112. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6113. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6114. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6115. CFLAGS="$SAVE_CFLAGS"
  6116. fi
  6117. ;;
  6118. sparc*-*solaris*)
  6119. # Find out which ABI we are using.
  6120. echo 'int i;' > conftest.$ac_ext
  6121. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6122. (eval $ac_compile) 2>&5
  6123. ac_status=$?
  6124. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6125. test $ac_status = 0; }; then
  6126. case `/usr/bin/file conftest.o` in
  6127. *64-bit*)
  6128. case $lt_cv_prog_gnu_ld in
  6129. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6130. *)
  6131. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6132. LD="${LD-ld} -64"
  6133. fi
  6134. ;;
  6135. esac
  6136. ;;
  6137. esac
  6138. fi
  6139. rm -rf conftest*
  6140. ;;
  6141. esac
  6142. need_locks="$enable_libtool_lock"
  6143. case $host_os in
  6144. rhapsody* | darwin*)
  6145. if test -n "$ac_tool_prefix"; then
  6146. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6147. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6149. $as_echo_n "checking for $ac_word... " >&6; }
  6150. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6151. $as_echo_n "(cached) " >&6
  6152. else
  6153. if test -n "$DSYMUTIL"; then
  6154. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6155. else
  6156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6157. for as_dir in $PATH
  6158. do
  6159. IFS=$as_save_IFS
  6160. test -z "$as_dir" && as_dir=.
  6161. for ac_exec_ext in '' $ac_executable_extensions; do
  6162. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6163. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6165. break 2
  6166. fi
  6167. done
  6168. done
  6169. IFS=$as_save_IFS
  6170. fi
  6171. fi
  6172. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6173. if test -n "$DSYMUTIL"; then
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6175. $as_echo "$DSYMUTIL" >&6; }
  6176. else
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6178. $as_echo "no" >&6; }
  6179. fi
  6180. fi
  6181. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6182. ac_ct_DSYMUTIL=$DSYMUTIL
  6183. # Extract the first word of "dsymutil", so it can be a program name with args.
  6184. set dummy dsymutil; ac_word=$2
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6186. $as_echo_n "checking for $ac_word... " >&6; }
  6187. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6188. $as_echo_n "(cached) " >&6
  6189. else
  6190. if test -n "$ac_ct_DSYMUTIL"; then
  6191. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6192. else
  6193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6194. for as_dir in $PATH
  6195. do
  6196. IFS=$as_save_IFS
  6197. test -z "$as_dir" && as_dir=.
  6198. for ac_exec_ext in '' $ac_executable_extensions; do
  6199. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6200. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6201. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6202. break 2
  6203. fi
  6204. done
  6205. done
  6206. IFS=$as_save_IFS
  6207. fi
  6208. fi
  6209. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6210. if test -n "$ac_ct_DSYMUTIL"; then
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6212. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6213. else
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6215. $as_echo "no" >&6; }
  6216. fi
  6217. if test "x$ac_ct_DSYMUTIL" = x; then
  6218. DSYMUTIL=":"
  6219. else
  6220. case $cross_compiling:$ac_tool_warned in
  6221. yes:)
  6222. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6223. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6224. ac_tool_warned=yes ;;
  6225. esac
  6226. DSYMUTIL=$ac_ct_DSYMUTIL
  6227. fi
  6228. else
  6229. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6230. fi
  6231. if test -n "$ac_tool_prefix"; then
  6232. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6233. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6235. $as_echo_n "checking for $ac_word... " >&6; }
  6236. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6237. $as_echo_n "(cached) " >&6
  6238. else
  6239. if test -n "$NMEDIT"; then
  6240. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6241. else
  6242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6243. for as_dir in $PATH
  6244. do
  6245. IFS=$as_save_IFS
  6246. test -z "$as_dir" && as_dir=.
  6247. for ac_exec_ext in '' $ac_executable_extensions; do
  6248. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6249. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6251. break 2
  6252. fi
  6253. done
  6254. done
  6255. IFS=$as_save_IFS
  6256. fi
  6257. fi
  6258. NMEDIT=$ac_cv_prog_NMEDIT
  6259. if test -n "$NMEDIT"; then
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6261. $as_echo "$NMEDIT" >&6; }
  6262. else
  6263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6264. $as_echo "no" >&6; }
  6265. fi
  6266. fi
  6267. if test -z "$ac_cv_prog_NMEDIT"; then
  6268. ac_ct_NMEDIT=$NMEDIT
  6269. # Extract the first word of "nmedit", so it can be a program name with args.
  6270. set dummy nmedit; ac_word=$2
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6272. $as_echo_n "checking for $ac_word... " >&6; }
  6273. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6274. $as_echo_n "(cached) " >&6
  6275. else
  6276. if test -n "$ac_ct_NMEDIT"; then
  6277. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6278. else
  6279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6280. for as_dir in $PATH
  6281. do
  6282. IFS=$as_save_IFS
  6283. test -z "$as_dir" && as_dir=.
  6284. for ac_exec_ext in '' $ac_executable_extensions; do
  6285. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6286. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6288. break 2
  6289. fi
  6290. done
  6291. done
  6292. IFS=$as_save_IFS
  6293. fi
  6294. fi
  6295. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6296. if test -n "$ac_ct_NMEDIT"; then
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6298. $as_echo "$ac_ct_NMEDIT" >&6; }
  6299. else
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6301. $as_echo "no" >&6; }
  6302. fi
  6303. if test "x$ac_ct_NMEDIT" = x; then
  6304. NMEDIT=":"
  6305. else
  6306. case $cross_compiling:$ac_tool_warned in
  6307. yes:)
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6309. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6310. ac_tool_warned=yes ;;
  6311. esac
  6312. NMEDIT=$ac_ct_NMEDIT
  6313. fi
  6314. else
  6315. NMEDIT="$ac_cv_prog_NMEDIT"
  6316. fi
  6317. if test -n "$ac_tool_prefix"; then
  6318. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6319. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6321. $as_echo_n "checking for $ac_word... " >&6; }
  6322. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6323. $as_echo_n "(cached) " >&6
  6324. else
  6325. if test -n "$LIPO"; then
  6326. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6327. else
  6328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6329. for as_dir in $PATH
  6330. do
  6331. IFS=$as_save_IFS
  6332. test -z "$as_dir" && as_dir=.
  6333. for ac_exec_ext in '' $ac_executable_extensions; do
  6334. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6335. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6336. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6337. break 2
  6338. fi
  6339. done
  6340. done
  6341. IFS=$as_save_IFS
  6342. fi
  6343. fi
  6344. LIPO=$ac_cv_prog_LIPO
  6345. if test -n "$LIPO"; then
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6347. $as_echo "$LIPO" >&6; }
  6348. else
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6350. $as_echo "no" >&6; }
  6351. fi
  6352. fi
  6353. if test -z "$ac_cv_prog_LIPO"; then
  6354. ac_ct_LIPO=$LIPO
  6355. # Extract the first word of "lipo", so it can be a program name with args.
  6356. set dummy lipo; ac_word=$2
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6358. $as_echo_n "checking for $ac_word... " >&6; }
  6359. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6360. $as_echo_n "(cached) " >&6
  6361. else
  6362. if test -n "$ac_ct_LIPO"; then
  6363. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6364. else
  6365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6366. for as_dir in $PATH
  6367. do
  6368. IFS=$as_save_IFS
  6369. test -z "$as_dir" && as_dir=.
  6370. for ac_exec_ext in '' $ac_executable_extensions; do
  6371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6372. ac_cv_prog_ac_ct_LIPO="lipo"
  6373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6374. break 2
  6375. fi
  6376. done
  6377. done
  6378. IFS=$as_save_IFS
  6379. fi
  6380. fi
  6381. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6382. if test -n "$ac_ct_LIPO"; then
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6384. $as_echo "$ac_ct_LIPO" >&6; }
  6385. else
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6387. $as_echo "no" >&6; }
  6388. fi
  6389. if test "x$ac_ct_LIPO" = x; then
  6390. LIPO=":"
  6391. else
  6392. case $cross_compiling:$ac_tool_warned in
  6393. yes:)
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6395. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6396. ac_tool_warned=yes ;;
  6397. esac
  6398. LIPO=$ac_ct_LIPO
  6399. fi
  6400. else
  6401. LIPO="$ac_cv_prog_LIPO"
  6402. fi
  6403. if test -n "$ac_tool_prefix"; then
  6404. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6405. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6407. $as_echo_n "checking for $ac_word... " >&6; }
  6408. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6409. $as_echo_n "(cached) " >&6
  6410. else
  6411. if test -n "$OTOOL"; then
  6412. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6413. else
  6414. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6415. for as_dir in $PATH
  6416. do
  6417. IFS=$as_save_IFS
  6418. test -z "$as_dir" && as_dir=.
  6419. for ac_exec_ext in '' $ac_executable_extensions; do
  6420. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6421. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6422. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6423. break 2
  6424. fi
  6425. done
  6426. done
  6427. IFS=$as_save_IFS
  6428. fi
  6429. fi
  6430. OTOOL=$ac_cv_prog_OTOOL
  6431. if test -n "$OTOOL"; then
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6433. $as_echo "$OTOOL" >&6; }
  6434. else
  6435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6436. $as_echo "no" >&6; }
  6437. fi
  6438. fi
  6439. if test -z "$ac_cv_prog_OTOOL"; then
  6440. ac_ct_OTOOL=$OTOOL
  6441. # Extract the first word of "otool", so it can be a program name with args.
  6442. set dummy otool; ac_word=$2
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6444. $as_echo_n "checking for $ac_word... " >&6; }
  6445. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6446. $as_echo_n "(cached) " >&6
  6447. else
  6448. if test -n "$ac_ct_OTOOL"; then
  6449. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6450. else
  6451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6452. for as_dir in $PATH
  6453. do
  6454. IFS=$as_save_IFS
  6455. test -z "$as_dir" && as_dir=.
  6456. for ac_exec_ext in '' $ac_executable_extensions; do
  6457. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6458. ac_cv_prog_ac_ct_OTOOL="otool"
  6459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6460. break 2
  6461. fi
  6462. done
  6463. done
  6464. IFS=$as_save_IFS
  6465. fi
  6466. fi
  6467. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6468. if test -n "$ac_ct_OTOOL"; then
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6470. $as_echo "$ac_ct_OTOOL" >&6; }
  6471. else
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6473. $as_echo "no" >&6; }
  6474. fi
  6475. if test "x$ac_ct_OTOOL" = x; then
  6476. OTOOL=":"
  6477. else
  6478. case $cross_compiling:$ac_tool_warned in
  6479. yes:)
  6480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6481. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6482. ac_tool_warned=yes ;;
  6483. esac
  6484. OTOOL=$ac_ct_OTOOL
  6485. fi
  6486. else
  6487. OTOOL="$ac_cv_prog_OTOOL"
  6488. fi
  6489. if test -n "$ac_tool_prefix"; then
  6490. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6491. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6493. $as_echo_n "checking for $ac_word... " >&6; }
  6494. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6495. $as_echo_n "(cached) " >&6
  6496. else
  6497. if test -n "$OTOOL64"; then
  6498. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6499. else
  6500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6501. for as_dir in $PATH
  6502. do
  6503. IFS=$as_save_IFS
  6504. test -z "$as_dir" && as_dir=.
  6505. for ac_exec_ext in '' $ac_executable_extensions; do
  6506. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6507. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6509. break 2
  6510. fi
  6511. done
  6512. done
  6513. IFS=$as_save_IFS
  6514. fi
  6515. fi
  6516. OTOOL64=$ac_cv_prog_OTOOL64
  6517. if test -n "$OTOOL64"; then
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6519. $as_echo "$OTOOL64" >&6; }
  6520. else
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6522. $as_echo "no" >&6; }
  6523. fi
  6524. fi
  6525. if test -z "$ac_cv_prog_OTOOL64"; then
  6526. ac_ct_OTOOL64=$OTOOL64
  6527. # Extract the first word of "otool64", so it can be a program name with args.
  6528. set dummy otool64; ac_word=$2
  6529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6530. $as_echo_n "checking for $ac_word... " >&6; }
  6531. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6532. $as_echo_n "(cached) " >&6
  6533. else
  6534. if test -n "$ac_ct_OTOOL64"; then
  6535. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6536. else
  6537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6538. for as_dir in $PATH
  6539. do
  6540. IFS=$as_save_IFS
  6541. test -z "$as_dir" && as_dir=.
  6542. for ac_exec_ext in '' $ac_executable_extensions; do
  6543. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6544. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6546. break 2
  6547. fi
  6548. done
  6549. done
  6550. IFS=$as_save_IFS
  6551. fi
  6552. fi
  6553. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6554. if test -n "$ac_ct_OTOOL64"; then
  6555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6556. $as_echo "$ac_ct_OTOOL64" >&6; }
  6557. else
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6559. $as_echo "no" >&6; }
  6560. fi
  6561. if test "x$ac_ct_OTOOL64" = x; then
  6562. OTOOL64=":"
  6563. else
  6564. case $cross_compiling:$ac_tool_warned in
  6565. yes:)
  6566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6567. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6568. ac_tool_warned=yes ;;
  6569. esac
  6570. OTOOL64=$ac_ct_OTOOL64
  6571. fi
  6572. else
  6573. OTOOL64="$ac_cv_prog_OTOOL64"
  6574. fi
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6576. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6577. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6578. $as_echo_n "(cached) " >&6
  6579. else
  6580. lt_cv_apple_cc_single_mod=no
  6581. if test -z "${LT_MULTI_MODULE}"; then
  6582. # By default we will add the -single_module flag. You can override
  6583. # by either setting the environment variable LT_MULTI_MODULE
  6584. # non-empty at configure time, or by adding -multi_module to the
  6585. # link flags.
  6586. rm -rf libconftest.dylib*
  6587. echo "int foo(void){return 1;}" > conftest.c
  6588. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6589. -dynamiclib -Wl,-single_module conftest.c" >&5
  6590. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6591. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6592. _lt_result=$?
  6593. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6594. lt_cv_apple_cc_single_mod=yes
  6595. else
  6596. cat conftest.err >&5
  6597. fi
  6598. rm -rf libconftest.dylib*
  6599. rm -f conftest.*
  6600. fi
  6601. fi
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6603. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6605. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6606. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6607. $as_echo_n "(cached) " >&6
  6608. else
  6609. lt_cv_ld_exported_symbols_list=no
  6610. save_LDFLAGS=$LDFLAGS
  6611. echo "_main" > conftest.sym
  6612. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6614. /* end confdefs.h. */
  6615. int
  6616. main ()
  6617. {
  6618. ;
  6619. return 0;
  6620. }
  6621. _ACEOF
  6622. if ac_fn_c_try_link "$LINENO"; then :
  6623. lt_cv_ld_exported_symbols_list=yes
  6624. else
  6625. lt_cv_ld_exported_symbols_list=no
  6626. fi
  6627. rm -f core conftest.err conftest.$ac_objext \
  6628. conftest$ac_exeext conftest.$ac_ext
  6629. LDFLAGS="$save_LDFLAGS"
  6630. fi
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6632. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6634. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6635. if test "${lt_cv_ld_force_load+set}" = set; then :
  6636. $as_echo_n "(cached) " >&6
  6637. else
  6638. lt_cv_ld_force_load=no
  6639. cat > conftest.c << _LT_EOF
  6640. int forced_loaded() { return 2;}
  6641. _LT_EOF
  6642. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6643. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6644. echo "$AR cru libconftest.a conftest.o" >&5
  6645. $AR cru libconftest.a conftest.o 2>&5
  6646. cat > conftest.c << _LT_EOF
  6647. int main() { return 0;}
  6648. _LT_EOF
  6649. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6650. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6651. _lt_result=$?
  6652. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6653. lt_cv_ld_force_load=yes
  6654. else
  6655. cat conftest.err >&5
  6656. fi
  6657. rm -f conftest.err libconftest.a conftest conftest.c
  6658. rm -rf conftest.dSYM
  6659. fi
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6661. $as_echo "$lt_cv_ld_force_load" >&6; }
  6662. case $host_os in
  6663. rhapsody* | darwin1.[012])
  6664. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6665. darwin1.*)
  6666. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6667. darwin*) # darwin 5.x on
  6668. # if running on 10.5 or later, the deployment target defaults
  6669. # to the OS version, if on x86, and 10.4, the deployment
  6670. # target defaults to 10.4. Don't you love it?
  6671. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6672. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6673. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6674. 10.[012][,.]*)
  6675. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6676. 10.*)
  6677. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6678. esac
  6679. ;;
  6680. esac
  6681. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6682. _lt_dar_single_mod='$single_module'
  6683. fi
  6684. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6685. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6686. else
  6687. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6688. fi
  6689. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6690. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6691. else
  6692. _lt_dsymutil=
  6693. fi
  6694. ;;
  6695. esac
  6696. for ac_header in dlfcn.h
  6697. do :
  6698. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6699. "
  6700. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6701. cat >>confdefs.h <<_ACEOF
  6702. #define HAVE_DLFCN_H 1
  6703. _ACEOF
  6704. fi
  6705. done
  6706. # autoconf.info says this should be called right after AC_INIT.
  6707. ac_config_headers="$ac_config_headers config.h:config.in"
  6708. # Put a plausible default for CC_FOR_BUILD in Makefile.
  6709. if test "x$cross_compiling" = "xno"; then
  6710. CC_FOR_BUILD='$(CC)'
  6711. else
  6712. CC_FOR_BUILD=gcc
  6713. fi
  6714. AR=${AR-ar}
  6715. if test -n "$ac_tool_prefix"; then
  6716. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6717. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6719. $as_echo_n "checking for $ac_word... " >&6; }
  6720. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6721. $as_echo_n "(cached) " >&6
  6722. else
  6723. if test -n "$RANLIB"; then
  6724. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6725. else
  6726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6727. for as_dir in $PATH
  6728. do
  6729. IFS=$as_save_IFS
  6730. test -z "$as_dir" && as_dir=.
  6731. for ac_exec_ext in '' $ac_executable_extensions; do
  6732. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6733. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6735. break 2
  6736. fi
  6737. done
  6738. done
  6739. IFS=$as_save_IFS
  6740. fi
  6741. fi
  6742. RANLIB=$ac_cv_prog_RANLIB
  6743. if test -n "$RANLIB"; then
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6745. $as_echo "$RANLIB" >&6; }
  6746. else
  6747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6748. $as_echo "no" >&6; }
  6749. fi
  6750. fi
  6751. if test -z "$ac_cv_prog_RANLIB"; then
  6752. ac_ct_RANLIB=$RANLIB
  6753. # Extract the first word of "ranlib", so it can be a program name with args.
  6754. set dummy ranlib; ac_word=$2
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6756. $as_echo_n "checking for $ac_word... " >&6; }
  6757. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6758. $as_echo_n "(cached) " >&6
  6759. else
  6760. if test -n "$ac_ct_RANLIB"; then
  6761. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6762. else
  6763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6764. for as_dir in $PATH
  6765. do
  6766. IFS=$as_save_IFS
  6767. test -z "$as_dir" && as_dir=.
  6768. for ac_exec_ext in '' $ac_executable_extensions; do
  6769. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6770. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6772. break 2
  6773. fi
  6774. done
  6775. done
  6776. IFS=$as_save_IFS
  6777. fi
  6778. fi
  6779. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6780. if test -n "$ac_ct_RANLIB"; then
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6782. $as_echo "$ac_ct_RANLIB" >&6; }
  6783. else
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6785. $as_echo "no" >&6; }
  6786. fi
  6787. if test "x$ac_ct_RANLIB" = x; then
  6788. RANLIB=":"
  6789. else
  6790. case $cross_compiling:$ac_tool_warned in
  6791. yes:)
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6793. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6794. ac_tool_warned=yes ;;
  6795. esac
  6796. RANLIB=$ac_ct_RANLIB
  6797. fi
  6798. else
  6799. RANLIB="$ac_cv_prog_RANLIB"
  6800. fi
  6801. # Some of the common include files depend on bfd.h, and bfd.h checks
  6802. # that config.h is included first by testing that the PACKAGE macro
  6803. # is defined.
  6804. PACKAGE=sim
  6805. cat >>confdefs.h <<_ACEOF
  6806. #define PACKAGE "$PACKAGE"
  6807. _ACEOF
  6808. # Dependency checking.
  6809. ac_config_commands="$ac_config_commands depdir"
  6810. depcc="$CC" am_compiler_list=
  6811. am_depcomp=$ac_aux_dir/depcomp
  6812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6813. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6814. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  6815. $as_echo_n "(cached) " >&6
  6816. else
  6817. if test -f "$am_depcomp"; then
  6818. # We make a subdir and do the tests there. Otherwise we can end up
  6819. # making bogus files that we don't know about and never remove. For
  6820. # instance it was reported that on HP-UX the gcc test will end up
  6821. # making a dummy file named `D' -- because `-MD' means `put the output
  6822. # in D'.
  6823. mkdir conftest.dir
  6824. # Copy depcomp to subdir because otherwise we won't find it if we're
  6825. # using a relative directory.
  6826. cp "$am_depcomp" conftest.dir
  6827. cd conftest.dir
  6828. # We will build objects and dependencies in a subdirectory because
  6829. # it helps to detect inapplicable dependency modes. For instance
  6830. # both Tru64's cc and ICC support -MD to output dependencies as a
  6831. # side effect of compilation, but ICC will put the dependencies in
  6832. # the current directory while Tru64 will put them in the object
  6833. # directory.
  6834. mkdir sub
  6835. am_cv_CC_dependencies_compiler_type=none
  6836. if test "$am_compiler_list" = ""; then
  6837. am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6838. fi
  6839. for depmode in $am_compiler_list; do
  6840. if test $depmode = none; then break; fi
  6841. $as_echo "$as_me:$LINENO: trying $depmode" >&5
  6842. # Setup a source with many dependencies, because some compilers
  6843. # like to wrap large dependency lists on column 80 (with \), and
  6844. # we should not choose a depcomp mode which is confused by this.
  6845. #
  6846. # We need to recreate these files for each test, as the compiler may
  6847. # overwrite some of them when testing with obscure command lines.
  6848. # This happens at least with the AIX C compiler.
  6849. : > sub/conftest.c
  6850. for i in 1 2 3 4 5 6; do
  6851. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6852. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6853. # Solaris 8's {/usr,}/bin/sh.
  6854. touch sub/conftst$i.h
  6855. done
  6856. echo "include sub/conftest.Po" > confmf
  6857. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6858. # mode. It turns out that the SunPro C++ compiler does not properly
  6859. # handle `-M -o', and we need to detect this.
  6860. depcmd="depmode=$depmode \
  6861. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6862. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6863. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
  6864. echo "| $depcmd" | sed -e 's/ */ /g' >&5
  6865. if env $depcmd > conftest.err 2>&1 &&
  6866. grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
  6867. grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
  6868. ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
  6869. # icc doesn't choke on unknown options, it will just issue warnings
  6870. # or remarks (even with -Werror). So we grep stderr for any message
  6871. # that says an option was ignored or not supported.
  6872. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6873. # icc: Command line warning: ignoring option '-M'; no argument required
  6874. # The diagnosis changed in icc 8.0:
  6875. # icc: Command line remark: option '-MP' not supported
  6876. if (grep 'ignoring option' conftest.err ||
  6877. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6878. am_cv_CC_dependencies_compiler_type=$depmode
  6879. $as_echo "$as_me:$LINENO: success" >&5
  6880. break
  6881. fi
  6882. fi
  6883. $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
  6884. sed -e 's/^/| /' < conftest.err >&5
  6885. done
  6886. cd ..
  6887. rm -rf conftest.dir
  6888. else
  6889. am_cv_CC_dependencies_compiler_type=none
  6890. fi
  6891. fi
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  6893. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  6894. if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
  6895. then as_fn_error "no usable dependency style found" "$LINENO" 5
  6896. else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  6897. fi
  6898. # Check for the 'make' the user wants to use.
  6899. for ac_prog in make
  6900. do
  6901. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6902. set dummy $ac_prog; ac_word=$2
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6904. $as_echo_n "checking for $ac_word... " >&6; }
  6905. if test "${ac_cv_prog_MAKE+set}" = set; then :
  6906. $as_echo_n "(cached) " >&6
  6907. else
  6908. if test -n "$MAKE"; then
  6909. ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
  6910. else
  6911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6912. for as_dir in $PATH
  6913. do
  6914. IFS=$as_save_IFS
  6915. test -z "$as_dir" && as_dir=.
  6916. for ac_exec_ext in '' $ac_executable_extensions; do
  6917. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6918. ac_cv_prog_MAKE="$ac_prog"
  6919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6920. break 2
  6921. fi
  6922. done
  6923. done
  6924. IFS=$as_save_IFS
  6925. fi
  6926. fi
  6927. MAKE=$ac_cv_prog_MAKE
  6928. if test -n "$MAKE"; then
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
  6930. $as_echo "$MAKE" >&6; }
  6931. else
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6933. $as_echo "no" >&6; }
  6934. fi
  6935. test -n "$MAKE" && break
  6936. done
  6937. MAKE_IS_GNU=
  6938. case "`$MAKE --version 2>&1 | sed 1q`" in
  6939. *GNU*)
  6940. MAKE_IS_GNU=yes
  6941. ;;
  6942. esac
  6943. if test "$MAKE_IS_GNU" = yes; then
  6944. GMAKE_TRUE=
  6945. GMAKE_FALSE='#'
  6946. else
  6947. GMAKE_TRUE='#'
  6948. GMAKE_FALSE=
  6949. fi
  6950. ALL_LINGUAS=
  6951. # If we haven't got the data from the intl directory,
  6952. # assume NLS is disabled.
  6953. USE_NLS=no
  6954. LIBINTL=
  6955. LIBINTL_DEP=
  6956. INCINTL=
  6957. XGETTEXT=
  6958. GMSGFMT=
  6959. POSUB=
  6960. if test -f ../../intl/config.intl; then
  6961. . ../../intl/config.intl
  6962. fi
  6963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  6964. $as_echo_n "checking whether NLS is requested... " >&6; }
  6965. if test x"$USE_NLS" != xyes; then
  6966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6967. $as_echo "no" >&6; }
  6968. else
  6969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6970. $as_echo "yes" >&6; }
  6971. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  6972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  6973. $as_echo_n "checking for catalogs to be installed... " >&6; }
  6974. # Look for .po and .gmo files in the source directory.
  6975. CATALOGS=
  6976. XLINGUAS=
  6977. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  6978. # If there aren't any .gmo files the shell will give us the
  6979. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  6980. # weeded out.
  6981. case "$cat" in *\**)
  6982. continue;;
  6983. esac
  6984. # The quadruple backslash is collapsed to a double backslash
  6985. # by the backticks, then collapsed again by the double quotes,
  6986. # leaving us with one backslash in the sed expression (right
  6987. # before the dot that mustn't act as a wildcard).
  6988. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  6989. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  6990. # The user is allowed to set LINGUAS to a list of languages to
  6991. # install catalogs for. If it's empty that means "all of them."
  6992. if test "x$LINGUAS" = x; then
  6993. CATALOGS="$CATALOGS $cat"
  6994. XLINGUAS="$XLINGUAS $lang"
  6995. else
  6996. case "$LINGUAS" in *$lang*)
  6997. CATALOGS="$CATALOGS $cat"
  6998. XLINGUAS="$XLINGUAS $lang"
  6999. ;;
  7000. esac
  7001. fi
  7002. done
  7003. LINGUAS="$XLINGUAS"
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  7005. $as_echo "$LINGUAS" >&6; }
  7006. DATADIRNAME=share
  7007. INSTOBJEXT=.mo
  7008. GENCAT=gencat
  7009. CATOBJEXT=.gmo
  7010. fi
  7011. # Check for common headers.
  7012. # FIXME: Seems to me this can cause problems for i386-windows hosts.
  7013. # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
  7014. for ac_header in stdlib.h string.h strings.h unistd.h time.h
  7015. do :
  7016. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7017. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7018. eval as_val=\$$as_ac_Header
  7019. if test "x$as_val" = x""yes; then :
  7020. cat >>confdefs.h <<_ACEOF
  7021. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7022. _ACEOF
  7023. fi
  7024. done
  7025. for ac_header in sys/time.h sys/resource.h
  7026. do :
  7027. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7028. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7029. eval as_val=\$$as_ac_Header
  7030. if test "x$as_val" = x""yes; then :
  7031. cat >>confdefs.h <<_ACEOF
  7032. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7033. _ACEOF
  7034. fi
  7035. done
  7036. for ac_header in fcntl.h fpu_control.h
  7037. do :
  7038. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7039. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7040. eval as_val=\$$as_ac_Header
  7041. if test "x$as_val" = x""yes; then :
  7042. cat >>confdefs.h <<_ACEOF
  7043. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7044. _ACEOF
  7045. fi
  7046. done
  7047. for ac_header in dlfcn.h errno.h sys/stat.h
  7048. do :
  7049. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7050. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7051. eval as_val=\$$as_ac_Header
  7052. if test "x$as_val" = x""yes; then :
  7053. cat >>confdefs.h <<_ACEOF
  7054. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7055. _ACEOF
  7056. fi
  7057. done
  7058. for ac_func in getrusage time sigaction __setfpucw
  7059. do :
  7060. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7061. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7062. eval as_val=\$$as_ac_var
  7063. if test "x$as_val" = x""yes; then :
  7064. cat >>confdefs.h <<_ACEOF
  7065. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7066. _ACEOF
  7067. fi
  7068. done
  7069. # Check for socket libraries
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
  7071. $as_echo_n "checking for bind in -lsocket... " >&6; }
  7072. if test "${ac_cv_lib_socket_bind+set}" = set; then :
  7073. $as_echo_n "(cached) " >&6
  7074. else
  7075. ac_check_lib_save_LIBS=$LIBS
  7076. LIBS="-lsocket $LIBS"
  7077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7078. /* end confdefs.h. */
  7079. /* Override any GCC internal prototype to avoid an error.
  7080. Use char because int might match the return type of a GCC
  7081. builtin and then its argument prototype would still apply. */
  7082. #ifdef __cplusplus
  7083. extern "C"
  7084. #endif
  7085. char bind ();
  7086. int
  7087. main ()
  7088. {
  7089. return bind ();
  7090. ;
  7091. return 0;
  7092. }
  7093. _ACEOF
  7094. if ac_fn_c_try_link "$LINENO"; then :
  7095. ac_cv_lib_socket_bind=yes
  7096. else
  7097. ac_cv_lib_socket_bind=no
  7098. fi
  7099. rm -f core conftest.err conftest.$ac_objext \
  7100. conftest$ac_exeext conftest.$ac_ext
  7101. LIBS=$ac_check_lib_save_LIBS
  7102. fi
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
  7104. $as_echo "$ac_cv_lib_socket_bind" >&6; }
  7105. if test "x$ac_cv_lib_socket_bind" = x""yes; then :
  7106. cat >>confdefs.h <<_ACEOF
  7107. #define HAVE_LIBSOCKET 1
  7108. _ACEOF
  7109. LIBS="-lsocket $LIBS"
  7110. fi
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  7112. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  7113. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  7114. $as_echo_n "(cached) " >&6
  7115. else
  7116. ac_check_lib_save_LIBS=$LIBS
  7117. LIBS="-lnsl $LIBS"
  7118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7119. /* end confdefs.h. */
  7120. /* Override any GCC internal prototype to avoid an error.
  7121. Use char because int might match the return type of a GCC
  7122. builtin and then its argument prototype would still apply. */
  7123. #ifdef __cplusplus
  7124. extern "C"
  7125. #endif
  7126. char gethostbyname ();
  7127. int
  7128. main ()
  7129. {
  7130. return gethostbyname ();
  7131. ;
  7132. return 0;
  7133. }
  7134. _ACEOF
  7135. if ac_fn_c_try_link "$LINENO"; then :
  7136. ac_cv_lib_nsl_gethostbyname=yes
  7137. else
  7138. ac_cv_lib_nsl_gethostbyname=no
  7139. fi
  7140. rm -f core conftest.err conftest.$ac_objext \
  7141. conftest$ac_exeext conftest.$ac_ext
  7142. LIBS=$ac_check_lib_save_LIBS
  7143. fi
  7144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  7145. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  7146. if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  7147. cat >>confdefs.h <<_ACEOF
  7148. #define HAVE_LIBNSL 1
  7149. _ACEOF
  7150. LIBS="-lnsl $LIBS"
  7151. fi
  7152. # BFD conditionally uses zlib, so we must link it in if libbfd does, by
  7153. # using the same condition.
  7154. # Use the system's zlib library.
  7155. zlibdir="-L\$(top_builddir)/../zlib"
  7156. zlibinc="-I\$(top_srcdir)/../zlib"
  7157. # Check whether --with-system-zlib was given.
  7158. if test "${with_system_zlib+set}" = set; then :
  7159. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  7160. zlibdir=
  7161. zlibinc=
  7162. fi
  7163. fi
  7164. # BFD uses libdl when when plugins enabled.
  7165. maybe_plugins=no
  7166. for ac_header in dlfcn.h
  7167. do :
  7168. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7169. "
  7170. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7171. cat >>confdefs.h <<_ACEOF
  7172. #define HAVE_DLFCN_H 1
  7173. _ACEOF
  7174. maybe_plugins=yes
  7175. fi
  7176. done
  7177. for ac_header in windows.h
  7178. do :
  7179. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  7180. "
  7181. if test "x$ac_cv_header_windows_h" = x""yes; then :
  7182. cat >>confdefs.h <<_ACEOF
  7183. #define HAVE_WINDOWS_H 1
  7184. _ACEOF
  7185. maybe_plugins=yes
  7186. fi
  7187. done
  7188. # Check whether --enable-plugins was given.
  7189. if test "${enable_plugins+set}" = set; then :
  7190. enableval=$enable_plugins; case "${enableval}" in
  7191. no) plugins=no ;;
  7192. *) plugins=yes
  7193. if test "$maybe_plugins" != "yes" ; then
  7194. as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  7195. fi ;;
  7196. esac
  7197. else
  7198. plugins=$maybe_plugins
  7199. fi
  7200. if test "$plugins" = "yes"; then
  7201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  7202. $as_echo_n "checking for library containing dlopen... " >&6; }
  7203. if test "${ac_cv_search_dlopen+set}" = set; then :
  7204. $as_echo_n "(cached) " >&6
  7205. else
  7206. ac_func_search_save_LIBS=$LIBS
  7207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7208. /* end confdefs.h. */
  7209. /* Override any GCC internal prototype to avoid an error.
  7210. Use char because int might match the return type of a GCC
  7211. builtin and then its argument prototype would still apply. */
  7212. #ifdef __cplusplus
  7213. extern "C"
  7214. #endif
  7215. char dlopen ();
  7216. int
  7217. main ()
  7218. {
  7219. return dlopen ();
  7220. ;
  7221. return 0;
  7222. }
  7223. _ACEOF
  7224. for ac_lib in '' dl; do
  7225. if test -z "$ac_lib"; then
  7226. ac_res="none required"
  7227. else
  7228. ac_res=-l$ac_lib
  7229. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7230. fi
  7231. if ac_fn_c_try_link "$LINENO"; then :
  7232. ac_cv_search_dlopen=$ac_res
  7233. fi
  7234. rm -f core conftest.err conftest.$ac_objext \
  7235. conftest$ac_exeext
  7236. if test "${ac_cv_search_dlopen+set}" = set; then :
  7237. break
  7238. fi
  7239. done
  7240. if test "${ac_cv_search_dlopen+set}" = set; then :
  7241. else
  7242. ac_cv_search_dlopen=no
  7243. fi
  7244. rm conftest.$ac_ext
  7245. LIBS=$ac_func_search_save_LIBS
  7246. fi
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  7248. $as_echo "$ac_cv_search_dlopen" >&6; }
  7249. ac_res=$ac_cv_search_dlopen
  7250. if test "$ac_res" != no; then :
  7251. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7252. fi
  7253. fi
  7254. if test "$plugins" = yes; then
  7255. PLUGINS_TRUE=
  7256. PLUGINS_FALSE='#'
  7257. else
  7258. PLUGINS_TRUE='#'
  7259. PLUGINS_FALSE=
  7260. fi
  7261. # Set options
  7262. enable_dlopen=yes
  7263. enable_win32_dll=no
  7264. # Check whether --enable-shared was given.
  7265. if test "${enable_shared+set}" = set; then :
  7266. enableval=$enable_shared; p=${PACKAGE-default}
  7267. case $enableval in
  7268. yes) enable_shared=yes ;;
  7269. no) enable_shared=no ;;
  7270. *)
  7271. enable_shared=no
  7272. # Look at the argument we got. We use all the common list separators.
  7273. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7274. for pkg in $enableval; do
  7275. IFS="$lt_save_ifs"
  7276. if test "X$pkg" = "X$p"; then
  7277. enable_shared=yes
  7278. fi
  7279. done
  7280. IFS="$lt_save_ifs"
  7281. ;;
  7282. esac
  7283. else
  7284. enable_shared=yes
  7285. fi
  7286. # Check whether --enable-static was given.
  7287. if test "${enable_static+set}" = set; then :
  7288. enableval=$enable_static; p=${PACKAGE-default}
  7289. case $enableval in
  7290. yes) enable_static=yes ;;
  7291. no) enable_static=no ;;
  7292. *)
  7293. enable_static=no
  7294. # Look at the argument we got. We use all the common list separators.
  7295. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7296. for pkg in $enableval; do
  7297. IFS="$lt_save_ifs"
  7298. if test "X$pkg" = "X$p"; then
  7299. enable_static=yes
  7300. fi
  7301. done
  7302. IFS="$lt_save_ifs"
  7303. ;;
  7304. esac
  7305. else
  7306. enable_static=yes
  7307. fi
  7308. # Check whether --with-pic was given.
  7309. if test "${with_pic+set}" = set; then :
  7310. withval=$with_pic; pic_mode="$withval"
  7311. else
  7312. pic_mode=default
  7313. fi
  7314. test -z "$pic_mode" && pic_mode=default
  7315. # Check whether --enable-fast-install was given.
  7316. if test "${enable_fast_install+set}" = set; then :
  7317. enableval=$enable_fast_install; p=${PACKAGE-default}
  7318. case $enableval in
  7319. yes) enable_fast_install=yes ;;
  7320. no) enable_fast_install=no ;;
  7321. *)
  7322. enable_fast_install=no
  7323. # Look at the argument we got. We use all the common list separators.
  7324. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7325. for pkg in $enableval; do
  7326. IFS="$lt_save_ifs"
  7327. if test "X$pkg" = "X$p"; then
  7328. enable_fast_install=yes
  7329. fi
  7330. done
  7331. IFS="$lt_save_ifs"
  7332. ;;
  7333. esac
  7334. else
  7335. enable_fast_install=yes
  7336. fi
  7337. # This can be used to rebuild libtool when needed
  7338. LIBTOOL_DEPS="$ltmain"
  7339. # Always use our own libtool.
  7340. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7341. test -z "$LN_S" && LN_S="ln -s"
  7342. if test -n "${ZSH_VERSION+set}" ; then
  7343. setopt NO_GLOB_SUBST
  7344. fi
  7345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7346. $as_echo_n "checking for objdir... " >&6; }
  7347. if test "${lt_cv_objdir+set}" = set; then :
  7348. $as_echo_n "(cached) " >&6
  7349. else
  7350. rm -f .libs 2>/dev/null
  7351. mkdir .libs 2>/dev/null
  7352. if test -d .libs; then
  7353. lt_cv_objdir=.libs
  7354. else
  7355. # MS-DOS does not allow filenames that begin with a dot.
  7356. lt_cv_objdir=_libs
  7357. fi
  7358. rmdir .libs 2>/dev/null
  7359. fi
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7361. $as_echo "$lt_cv_objdir" >&6; }
  7362. objdir=$lt_cv_objdir
  7363. cat >>confdefs.h <<_ACEOF
  7364. #define LT_OBJDIR "$lt_cv_objdir/"
  7365. _ACEOF
  7366. case $host_os in
  7367. aix3*)
  7368. # AIX sometimes has problems with the GCC collect2 program. For some
  7369. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7370. # vanish in a puff of smoke.
  7371. if test "X${COLLECT_NAMES+set}" != Xset; then
  7372. COLLECT_NAMES=
  7373. export COLLECT_NAMES
  7374. fi
  7375. ;;
  7376. esac
  7377. # Global variables:
  7378. ofile=libtool
  7379. can_build_shared=yes
  7380. # All known linkers require a `.a' archive for static linking (except MSVC,
  7381. # which needs '.lib').
  7382. libext=a
  7383. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7384. old_CC="$CC"
  7385. old_CFLAGS="$CFLAGS"
  7386. # Set sane defaults for various variables
  7387. test -z "$CC" && CC=cc
  7388. test -z "$LTCC" && LTCC=$CC
  7389. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7390. test -z "$LD" && LD=ld
  7391. test -z "$ac_objext" && ac_objext=o
  7392. for cc_temp in $compiler""; do
  7393. case $cc_temp in
  7394. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7395. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7396. \-*) ;;
  7397. *) break;;
  7398. esac
  7399. done
  7400. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7401. # Only perform the check for file, if the check method requires it
  7402. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7403. case $deplibs_check_method in
  7404. file_magic*)
  7405. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7407. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7408. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7409. $as_echo_n "(cached) " >&6
  7410. else
  7411. case $MAGIC_CMD in
  7412. [\\/*] | ?:[\\/]*)
  7413. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7414. ;;
  7415. *)
  7416. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7417. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7418. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7419. for ac_dir in $ac_dummy; do
  7420. IFS="$lt_save_ifs"
  7421. test -z "$ac_dir" && ac_dir=.
  7422. if test -f $ac_dir/${ac_tool_prefix}file; then
  7423. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7424. if test -n "$file_magic_test_file"; then
  7425. case $deplibs_check_method in
  7426. "file_magic "*)
  7427. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7428. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7429. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7430. $EGREP "$file_magic_regex" > /dev/null; then
  7431. :
  7432. else
  7433. cat <<_LT_EOF 1>&2
  7434. *** Warning: the command libtool uses to detect shared libraries,
  7435. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7436. *** The result is that libtool may fail to recognize shared libraries
  7437. *** as such. This will affect the creation of libtool libraries that
  7438. *** depend on shared libraries, but programs linked with such libtool
  7439. *** libraries will work regardless of this problem. Nevertheless, you
  7440. *** may want to report the problem to your system manager and/or to
  7441. *** bug-libtool@gnu.org
  7442. _LT_EOF
  7443. fi ;;
  7444. esac
  7445. fi
  7446. break
  7447. fi
  7448. done
  7449. IFS="$lt_save_ifs"
  7450. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7451. ;;
  7452. esac
  7453. fi
  7454. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7455. if test -n "$MAGIC_CMD"; then
  7456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7457. $as_echo "$MAGIC_CMD" >&6; }
  7458. else
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7460. $as_echo "no" >&6; }
  7461. fi
  7462. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7463. if test -n "$ac_tool_prefix"; then
  7464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7465. $as_echo_n "checking for file... " >&6; }
  7466. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7467. $as_echo_n "(cached) " >&6
  7468. else
  7469. case $MAGIC_CMD in
  7470. [\\/*] | ?:[\\/]*)
  7471. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7472. ;;
  7473. *)
  7474. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7475. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7476. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7477. for ac_dir in $ac_dummy; do
  7478. IFS="$lt_save_ifs"
  7479. test -z "$ac_dir" && ac_dir=.
  7480. if test -f $ac_dir/file; then
  7481. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7482. if test -n "$file_magic_test_file"; then
  7483. case $deplibs_check_method in
  7484. "file_magic "*)
  7485. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7486. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7487. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7488. $EGREP "$file_magic_regex" > /dev/null; then
  7489. :
  7490. else
  7491. cat <<_LT_EOF 1>&2
  7492. *** Warning: the command libtool uses to detect shared libraries,
  7493. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7494. *** The result is that libtool may fail to recognize shared libraries
  7495. *** as such. This will affect the creation of libtool libraries that
  7496. *** depend on shared libraries, but programs linked with such libtool
  7497. *** libraries will work regardless of this problem. Nevertheless, you
  7498. *** may want to report the problem to your system manager and/or to
  7499. *** bug-libtool@gnu.org
  7500. _LT_EOF
  7501. fi ;;
  7502. esac
  7503. fi
  7504. break
  7505. fi
  7506. done
  7507. IFS="$lt_save_ifs"
  7508. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7509. ;;
  7510. esac
  7511. fi
  7512. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7513. if test -n "$MAGIC_CMD"; then
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7515. $as_echo "$MAGIC_CMD" >&6; }
  7516. else
  7517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7518. $as_echo "no" >&6; }
  7519. fi
  7520. else
  7521. MAGIC_CMD=:
  7522. fi
  7523. fi
  7524. fi
  7525. ;;
  7526. esac
  7527. # Use C for the default configuration in the libtool script
  7528. lt_save_CC="$CC"
  7529. ac_ext=c
  7530. ac_cpp='$CPP $CPPFLAGS'
  7531. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7532. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7533. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7534. # Source file extension for C test sources.
  7535. ac_ext=c
  7536. # Object file extension for compiled C test sources.
  7537. objext=o
  7538. objext=$objext
  7539. # Code to be used in simple compile tests
  7540. lt_simple_compile_test_code="int some_variable = 0;"
  7541. # Code to be used in simple link tests
  7542. lt_simple_link_test_code='int main(){return(0);}'
  7543. # If no C compiler was specified, use CC.
  7544. LTCC=${LTCC-"$CC"}
  7545. # If no C compiler flags were specified, use CFLAGS.
  7546. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7547. # Allow CC to be a program name with arguments.
  7548. compiler=$CC
  7549. # Save the default compiler, since it gets overwritten when the other
  7550. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7551. compiler_DEFAULT=$CC
  7552. # save warnings/boilerplate of simple test code
  7553. ac_outfile=conftest.$ac_objext
  7554. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7555. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7556. _lt_compiler_boilerplate=`cat conftest.err`
  7557. $RM conftest*
  7558. ac_outfile=conftest.$ac_objext
  7559. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7560. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7561. _lt_linker_boilerplate=`cat conftest.err`
  7562. $RM -r conftest*
  7563. ## CAVEAT EMPTOR:
  7564. ## There is no encapsulation within the following macros, do not change
  7565. ## the running order or otherwise move them around unless you know exactly
  7566. ## what you are doing...
  7567. if test -n "$compiler"; then
  7568. lt_prog_compiler_no_builtin_flag=
  7569. if test "$GCC" = yes; then
  7570. case $cc_basename in
  7571. nvcc*)
  7572. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7573. *)
  7574. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7575. esac
  7576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7577. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7578. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7579. $as_echo_n "(cached) " >&6
  7580. else
  7581. lt_cv_prog_compiler_rtti_exceptions=no
  7582. ac_outfile=conftest.$ac_objext
  7583. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7584. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7585. # Insert the option either (1) after the last *FLAGS variable, or
  7586. # (2) before a word containing "conftest.", or (3) at the end.
  7587. # Note that $ac_compile itself does not contain backslashes and begins
  7588. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7589. # The option is referenced via a variable to avoid confusing sed.
  7590. lt_compile=`echo "$ac_compile" | $SED \
  7591. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7592. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7593. -e 's:$: $lt_compiler_flag:'`
  7594. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7595. (eval "$lt_compile" 2>conftest.err)
  7596. ac_status=$?
  7597. cat conftest.err >&5
  7598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7599. if (exit $ac_status) && test -s "$ac_outfile"; then
  7600. # The compiler can only warn and ignore the option if not recognized
  7601. # So say no if there are warnings other than the usual output.
  7602. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7603. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7604. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7605. lt_cv_prog_compiler_rtti_exceptions=yes
  7606. fi
  7607. fi
  7608. $RM conftest*
  7609. fi
  7610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7611. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7612. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7613. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7614. else
  7615. :
  7616. fi
  7617. fi
  7618. lt_prog_compiler_wl=
  7619. lt_prog_compiler_pic=
  7620. lt_prog_compiler_static=
  7621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7622. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7623. if test "$GCC" = yes; then
  7624. lt_prog_compiler_wl='-Wl,'
  7625. lt_prog_compiler_static='-static'
  7626. case $host_os in
  7627. aix*)
  7628. # All AIX code is PIC.
  7629. if test "$host_cpu" = ia64; then
  7630. # AIX 5 now supports IA64 processor
  7631. lt_prog_compiler_static='-Bstatic'
  7632. fi
  7633. lt_prog_compiler_pic='-fPIC'
  7634. ;;
  7635. amigaos*)
  7636. case $host_cpu in
  7637. powerpc)
  7638. # see comment about AmigaOS4 .so support
  7639. lt_prog_compiler_pic='-fPIC'
  7640. ;;
  7641. m68k)
  7642. # FIXME: we need at least 68020 code to build shared libraries, but
  7643. # adding the `-m68020' flag to GCC prevents building anything better,
  7644. # like `-m68040'.
  7645. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7646. ;;
  7647. esac
  7648. ;;
  7649. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7650. # PIC is the default for these OSes.
  7651. ;;
  7652. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7653. # This hack is so that the source file can tell whether it is being
  7654. # built for inclusion in a dll (and should export symbols for example).
  7655. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7656. # (--disable-auto-import) libraries
  7657. lt_prog_compiler_pic='-DDLL_EXPORT'
  7658. ;;
  7659. darwin* | rhapsody*)
  7660. # PIC is the default on this platform
  7661. # Common symbols not allowed in MH_DYLIB files
  7662. lt_prog_compiler_pic='-fno-common'
  7663. ;;
  7664. haiku*)
  7665. # PIC is the default for Haiku.
  7666. # The "-static" flag exists, but is broken.
  7667. lt_prog_compiler_static=
  7668. ;;
  7669. hpux*)
  7670. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7671. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7672. # sets the default TLS model and affects inlining.
  7673. case $host_cpu in
  7674. hppa*64*)
  7675. # +Z the default
  7676. ;;
  7677. *)
  7678. lt_prog_compiler_pic='-fPIC'
  7679. ;;
  7680. esac
  7681. ;;
  7682. interix[3-9]*)
  7683. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7684. # Instead, we relocate shared libraries at runtime.
  7685. ;;
  7686. msdosdjgpp*)
  7687. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7688. # on systems that don't support them.
  7689. lt_prog_compiler_can_build_shared=no
  7690. enable_shared=no
  7691. ;;
  7692. *nto* | *qnx*)
  7693. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7694. # it will coredump.
  7695. lt_prog_compiler_pic='-fPIC -shared'
  7696. ;;
  7697. sysv4*MP*)
  7698. if test -d /usr/nec; then
  7699. lt_prog_compiler_pic=-Kconform_pic
  7700. fi
  7701. ;;
  7702. *)
  7703. lt_prog_compiler_pic='-fPIC'
  7704. ;;
  7705. esac
  7706. case $cc_basename in
  7707. nvcc*) # Cuda Compiler Driver 2.2
  7708. lt_prog_compiler_wl='-Xlinker '
  7709. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7710. ;;
  7711. esac
  7712. else
  7713. # PORTME Check for flag to pass linker flags through the system compiler.
  7714. case $host_os in
  7715. aix*)
  7716. lt_prog_compiler_wl='-Wl,'
  7717. if test "$host_cpu" = ia64; then
  7718. # AIX 5 now supports IA64 processor
  7719. lt_prog_compiler_static='-Bstatic'
  7720. else
  7721. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7722. fi
  7723. ;;
  7724. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7725. # This hack is so that the source file can tell whether it is being
  7726. # built for inclusion in a dll (and should export symbols for example).
  7727. lt_prog_compiler_pic='-DDLL_EXPORT'
  7728. ;;
  7729. hpux9* | hpux10* | hpux11*)
  7730. lt_prog_compiler_wl='-Wl,'
  7731. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7732. # not for PA HP-UX.
  7733. case $host_cpu in
  7734. hppa*64*|ia64*)
  7735. # +Z the default
  7736. ;;
  7737. *)
  7738. lt_prog_compiler_pic='+Z'
  7739. ;;
  7740. esac
  7741. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7742. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7743. ;;
  7744. irix5* | irix6* | nonstopux*)
  7745. lt_prog_compiler_wl='-Wl,'
  7746. # PIC (with -KPIC) is the default.
  7747. lt_prog_compiler_static='-non_shared'
  7748. ;;
  7749. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7750. case $cc_basename in
  7751. # old Intel for x86_64 which still supported -KPIC.
  7752. ecc*)
  7753. lt_prog_compiler_wl='-Wl,'
  7754. lt_prog_compiler_pic='-KPIC'
  7755. lt_prog_compiler_static='-static'
  7756. ;;
  7757. # icc used to be incompatible with GCC.
  7758. # ICC 10 doesn't accept -KPIC any more.
  7759. icc* | ifort*)
  7760. lt_prog_compiler_wl='-Wl,'
  7761. lt_prog_compiler_pic='-fPIC'
  7762. lt_prog_compiler_static='-static'
  7763. ;;
  7764. # Lahey Fortran 8.1.
  7765. lf95*)
  7766. lt_prog_compiler_wl='-Wl,'
  7767. lt_prog_compiler_pic='--shared'
  7768. lt_prog_compiler_static='--static'
  7769. ;;
  7770. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7771. # Portland Group compilers (*not* the Pentium gcc compiler,
  7772. # which looks to be a dead project)
  7773. lt_prog_compiler_wl='-Wl,'
  7774. lt_prog_compiler_pic='-fpic'
  7775. lt_prog_compiler_static='-Bstatic'
  7776. ;;
  7777. ccc*)
  7778. lt_prog_compiler_wl='-Wl,'
  7779. # All Alpha code is PIC.
  7780. lt_prog_compiler_static='-non_shared'
  7781. ;;
  7782. xl* | bgxl* | bgf* | mpixl*)
  7783. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7784. lt_prog_compiler_wl='-Wl,'
  7785. lt_prog_compiler_pic='-qpic'
  7786. lt_prog_compiler_static='-qstaticlink'
  7787. ;;
  7788. *)
  7789. case `$CC -V 2>&1 | sed 5q` in
  7790. *Sun\ F* | *Sun*Fortran*)
  7791. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7792. lt_prog_compiler_pic='-KPIC'
  7793. lt_prog_compiler_static='-Bstatic'
  7794. lt_prog_compiler_wl=''
  7795. ;;
  7796. *Sun\ C*)
  7797. # Sun C 5.9
  7798. lt_prog_compiler_pic='-KPIC'
  7799. lt_prog_compiler_static='-Bstatic'
  7800. lt_prog_compiler_wl='-Wl,'
  7801. ;;
  7802. esac
  7803. ;;
  7804. esac
  7805. ;;
  7806. newsos6)
  7807. lt_prog_compiler_pic='-KPIC'
  7808. lt_prog_compiler_static='-Bstatic'
  7809. ;;
  7810. *nto* | *qnx*)
  7811. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7812. # it will coredump.
  7813. lt_prog_compiler_pic='-fPIC -shared'
  7814. ;;
  7815. osf3* | osf4* | osf5*)
  7816. lt_prog_compiler_wl='-Wl,'
  7817. # All OSF/1 code is PIC.
  7818. lt_prog_compiler_static='-non_shared'
  7819. ;;
  7820. rdos*)
  7821. lt_prog_compiler_static='-non_shared'
  7822. ;;
  7823. solaris*)
  7824. lt_prog_compiler_pic='-KPIC'
  7825. lt_prog_compiler_static='-Bstatic'
  7826. case $cc_basename in
  7827. f77* | f90* | f95*)
  7828. lt_prog_compiler_wl='-Qoption ld ';;
  7829. *)
  7830. lt_prog_compiler_wl='-Wl,';;
  7831. esac
  7832. ;;
  7833. sunos4*)
  7834. lt_prog_compiler_wl='-Qoption ld '
  7835. lt_prog_compiler_pic='-PIC'
  7836. lt_prog_compiler_static='-Bstatic'
  7837. ;;
  7838. sysv4 | sysv4.2uw2* | sysv4.3*)
  7839. lt_prog_compiler_wl='-Wl,'
  7840. lt_prog_compiler_pic='-KPIC'
  7841. lt_prog_compiler_static='-Bstatic'
  7842. ;;
  7843. sysv4*MP*)
  7844. if test -d /usr/nec ;then
  7845. lt_prog_compiler_pic='-Kconform_pic'
  7846. lt_prog_compiler_static='-Bstatic'
  7847. fi
  7848. ;;
  7849. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7850. lt_prog_compiler_wl='-Wl,'
  7851. lt_prog_compiler_pic='-KPIC'
  7852. lt_prog_compiler_static='-Bstatic'
  7853. ;;
  7854. unicos*)
  7855. lt_prog_compiler_wl='-Wl,'
  7856. lt_prog_compiler_can_build_shared=no
  7857. ;;
  7858. uts4*)
  7859. lt_prog_compiler_pic='-pic'
  7860. lt_prog_compiler_static='-Bstatic'
  7861. ;;
  7862. *)
  7863. lt_prog_compiler_can_build_shared=no
  7864. ;;
  7865. esac
  7866. fi
  7867. case $host_os in
  7868. # For platforms which do not support PIC, -DPIC is meaningless:
  7869. *djgpp*)
  7870. lt_prog_compiler_pic=
  7871. ;;
  7872. *)
  7873. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7874. ;;
  7875. esac
  7876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7877. $as_echo "$lt_prog_compiler_pic" >&6; }
  7878. #
  7879. # Check to make sure the PIC flag actually works.
  7880. #
  7881. if test -n "$lt_prog_compiler_pic"; then
  7882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7883. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7884. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7885. $as_echo_n "(cached) " >&6
  7886. else
  7887. lt_cv_prog_compiler_pic_works=no
  7888. ac_outfile=conftest.$ac_objext
  7889. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7890. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7891. # Insert the option either (1) after the last *FLAGS variable, or
  7892. # (2) before a word containing "conftest.", or (3) at the end.
  7893. # Note that $ac_compile itself does not contain backslashes and begins
  7894. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7895. # The option is referenced via a variable to avoid confusing sed.
  7896. lt_compile=`echo "$ac_compile" | $SED \
  7897. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7898. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7899. -e 's:$: $lt_compiler_flag:'`
  7900. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7901. (eval "$lt_compile" 2>conftest.err)
  7902. ac_status=$?
  7903. cat conftest.err >&5
  7904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7905. if (exit $ac_status) && test -s "$ac_outfile"; then
  7906. # The compiler can only warn and ignore the option if not recognized
  7907. # So say no if there are warnings other than the usual output.
  7908. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7909. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7910. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7911. lt_cv_prog_compiler_pic_works=yes
  7912. fi
  7913. fi
  7914. $RM conftest*
  7915. fi
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7917. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7918. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7919. case $lt_prog_compiler_pic in
  7920. "" | " "*) ;;
  7921. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7922. esac
  7923. else
  7924. lt_prog_compiler_pic=
  7925. lt_prog_compiler_can_build_shared=no
  7926. fi
  7927. fi
  7928. #
  7929. # Check to make sure the static flag actually works.
  7930. #
  7931. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7933. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7934. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7935. $as_echo_n "(cached) " >&6
  7936. else
  7937. lt_cv_prog_compiler_static_works=no
  7938. save_LDFLAGS="$LDFLAGS"
  7939. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7940. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7941. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7942. # The linker can only warn and ignore the option if not recognized
  7943. # So say no if there are warnings
  7944. if test -s conftest.err; then
  7945. # Append any errors to the config.log.
  7946. cat conftest.err 1>&5
  7947. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7948. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7949. if diff conftest.exp conftest.er2 >/dev/null; then
  7950. lt_cv_prog_compiler_static_works=yes
  7951. fi
  7952. else
  7953. lt_cv_prog_compiler_static_works=yes
  7954. fi
  7955. fi
  7956. $RM -r conftest*
  7957. LDFLAGS="$save_LDFLAGS"
  7958. fi
  7959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7960. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7961. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7962. :
  7963. else
  7964. lt_prog_compiler_static=
  7965. fi
  7966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7967. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7968. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7969. $as_echo_n "(cached) " >&6
  7970. else
  7971. lt_cv_prog_compiler_c_o=no
  7972. $RM -r conftest 2>/dev/null
  7973. mkdir conftest
  7974. cd conftest
  7975. mkdir out
  7976. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7977. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7978. # Insert the option either (1) after the last *FLAGS variable, or
  7979. # (2) before a word containing "conftest.", or (3) at the end.
  7980. # Note that $ac_compile itself does not contain backslashes and begins
  7981. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7982. lt_compile=`echo "$ac_compile" | $SED \
  7983. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7984. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7985. -e 's:$: $lt_compiler_flag:'`
  7986. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7987. (eval "$lt_compile" 2>out/conftest.err)
  7988. ac_status=$?
  7989. cat out/conftest.err >&5
  7990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7991. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7992. then
  7993. # The compiler can only warn and ignore the option if not recognized
  7994. # So say no if there are warnings
  7995. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7996. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7997. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7998. lt_cv_prog_compiler_c_o=yes
  7999. fi
  8000. fi
  8001. chmod u+w . 2>&5
  8002. $RM conftest*
  8003. # SGI C++ compiler will create directory out/ii_files/ for
  8004. # template instantiation
  8005. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8006. $RM out/* && rmdir out
  8007. cd ..
  8008. $RM -r conftest
  8009. $RM conftest*
  8010. fi
  8011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8012. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8014. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8015. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  8016. $as_echo_n "(cached) " >&6
  8017. else
  8018. lt_cv_prog_compiler_c_o=no
  8019. $RM -r conftest 2>/dev/null
  8020. mkdir conftest
  8021. cd conftest
  8022. mkdir out
  8023. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8024. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8025. # Insert the option either (1) after the last *FLAGS variable, or
  8026. # (2) before a word containing "conftest.", or (3) at the end.
  8027. # Note that $ac_compile itself does not contain backslashes and begins
  8028. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8029. lt_compile=`echo "$ac_compile" | $SED \
  8030. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8031. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8032. -e 's:$: $lt_compiler_flag:'`
  8033. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8034. (eval "$lt_compile" 2>out/conftest.err)
  8035. ac_status=$?
  8036. cat out/conftest.err >&5
  8037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8038. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8039. then
  8040. # The compiler can only warn and ignore the option if not recognized
  8041. # So say no if there are warnings
  8042. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8043. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8044. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8045. lt_cv_prog_compiler_c_o=yes
  8046. fi
  8047. fi
  8048. chmod u+w . 2>&5
  8049. $RM conftest*
  8050. # SGI C++ compiler will create directory out/ii_files/ for
  8051. # template instantiation
  8052. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8053. $RM out/* && rmdir out
  8054. cd ..
  8055. $RM -r conftest
  8056. $RM conftest*
  8057. fi
  8058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8059. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8060. hard_links="nottested"
  8061. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8062. # do not overwrite the value of need_locks provided by the user
  8063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8064. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8065. hard_links=yes
  8066. $RM conftest*
  8067. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8068. touch conftest.a
  8069. ln conftest.a conftest.b 2>&5 || hard_links=no
  8070. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8072. $as_echo "$hard_links" >&6; }
  8073. if test "$hard_links" = no; then
  8074. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8075. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8076. need_locks=warn
  8077. fi
  8078. else
  8079. need_locks=no
  8080. fi
  8081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8082. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8083. runpath_var=
  8084. allow_undefined_flag=
  8085. always_export_symbols=no
  8086. archive_cmds=
  8087. archive_expsym_cmds=
  8088. compiler_needs_object=no
  8089. enable_shared_with_static_runtimes=no
  8090. export_dynamic_flag_spec=
  8091. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8092. hardcode_automatic=no
  8093. hardcode_direct=no
  8094. hardcode_direct_absolute=no
  8095. hardcode_libdir_flag_spec=
  8096. hardcode_libdir_flag_spec_ld=
  8097. hardcode_libdir_separator=
  8098. hardcode_minus_L=no
  8099. hardcode_shlibpath_var=unsupported
  8100. inherit_rpath=no
  8101. link_all_deplibs=unknown
  8102. module_cmds=
  8103. module_expsym_cmds=
  8104. old_archive_from_new_cmds=
  8105. old_archive_from_expsyms_cmds=
  8106. thread_safe_flag_spec=
  8107. whole_archive_flag_spec=
  8108. # include_expsyms should be a list of space-separated symbols to be *always*
  8109. # included in the symbol list
  8110. include_expsyms=
  8111. # exclude_expsyms can be an extended regexp of symbols to exclude
  8112. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8113. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8114. # as well as any symbol that contains `d'.
  8115. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8116. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8117. # platforms (ab)use it in PIC code, but their linkers get confused if
  8118. # the symbol is explicitly referenced. Since portable code cannot
  8119. # rely on this symbol name, it's probably fine to never include it in
  8120. # preloaded symbol tables.
  8121. # Exclude shared library initialization/finalization symbols.
  8122. extract_expsyms_cmds=
  8123. case $host_os in
  8124. cygwin* | mingw* | pw32* | cegcc*)
  8125. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8126. # When not using gcc, we currently assume that we are using
  8127. # Microsoft Visual C++.
  8128. if test "$GCC" != yes; then
  8129. with_gnu_ld=no
  8130. fi
  8131. ;;
  8132. interix*)
  8133. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8134. with_gnu_ld=yes
  8135. ;;
  8136. openbsd*)
  8137. with_gnu_ld=no
  8138. ;;
  8139. esac
  8140. ld_shlibs=yes
  8141. # On some targets, GNU ld is compatible enough with the native linker
  8142. # that we're better off using the native interface for both.
  8143. lt_use_gnu_ld_interface=no
  8144. if test "$with_gnu_ld" = yes; then
  8145. case $host_os in
  8146. aix*)
  8147. # The AIX port of GNU ld has always aspired to compatibility
  8148. # with the native linker. However, as the warning in the GNU ld
  8149. # block says, versions before 2.19.5* couldn't really create working
  8150. # shared libraries, regardless of the interface used.
  8151. case `$LD -v 2>&1` in
  8152. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8153. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8154. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8155. *)
  8156. lt_use_gnu_ld_interface=yes
  8157. ;;
  8158. esac
  8159. ;;
  8160. *)
  8161. lt_use_gnu_ld_interface=yes
  8162. ;;
  8163. esac
  8164. fi
  8165. if test "$lt_use_gnu_ld_interface" = yes; then
  8166. # If archive_cmds runs LD, not CC, wlarc should be empty
  8167. wlarc='${wl}'
  8168. # Set some defaults for GNU ld with shared library support. These
  8169. # are reset later if shared libraries are not supported. Putting them
  8170. # here allows them to be overridden if necessary.
  8171. runpath_var=LD_RUN_PATH
  8172. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8173. export_dynamic_flag_spec='${wl}--export-dynamic'
  8174. # ancient GNU ld didn't support --whole-archive et. al.
  8175. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8176. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8177. else
  8178. whole_archive_flag_spec=
  8179. fi
  8180. supports_anon_versioning=no
  8181. case `$LD -v 2>&1` in
  8182. *GNU\ gold*) supports_anon_versioning=yes ;;
  8183. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8184. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8185. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8186. *\ 2.11.*) ;; # other 2.11 versions
  8187. *) supports_anon_versioning=yes ;;
  8188. esac
  8189. # See if GNU ld supports shared libraries.
  8190. case $host_os in
  8191. aix[3-9]*)
  8192. # On AIX/PPC, the GNU linker is very broken
  8193. if test "$host_cpu" != ia64; then
  8194. ld_shlibs=no
  8195. cat <<_LT_EOF 1>&2
  8196. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8197. *** to be unable to reliably create shared libraries on AIX.
  8198. *** Therefore, libtool is disabling shared libraries support. If you
  8199. *** really care for shared libraries, you may want to install binutils
  8200. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8201. *** You will then need to restart the configuration process.
  8202. _LT_EOF
  8203. fi
  8204. ;;
  8205. amigaos*)
  8206. case $host_cpu in
  8207. powerpc)
  8208. # see comment about AmigaOS4 .so support
  8209. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8210. archive_expsym_cmds=''
  8211. ;;
  8212. m68k)
  8213. 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)'
  8214. hardcode_libdir_flag_spec='-L$libdir'
  8215. hardcode_minus_L=yes
  8216. ;;
  8217. esac
  8218. ;;
  8219. beos*)
  8220. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8221. allow_undefined_flag=unsupported
  8222. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8223. # support --undefined. This deserves some investigation. FIXME
  8224. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8225. else
  8226. ld_shlibs=no
  8227. fi
  8228. ;;
  8229. cygwin* | mingw* | pw32* | cegcc*)
  8230. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8231. # as there is no search path for DLLs.
  8232. hardcode_libdir_flag_spec='-L$libdir'
  8233. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8234. allow_undefined_flag=unsupported
  8235. always_export_symbols=no
  8236. enable_shared_with_static_runtimes=yes
  8237. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8238. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8239. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8240. # If the export-symbols file already is a .def file (1st line
  8241. # is EXPORTS), use it as is; otherwise, prepend...
  8242. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8243. cp $export_symbols $output_objdir/$soname.def;
  8244. else
  8245. echo EXPORTS > $output_objdir/$soname.def;
  8246. cat $export_symbols >> $output_objdir/$soname.def;
  8247. fi~
  8248. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8249. else
  8250. ld_shlibs=no
  8251. fi
  8252. ;;
  8253. haiku*)
  8254. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8255. link_all_deplibs=yes
  8256. ;;
  8257. interix[3-9]*)
  8258. hardcode_direct=no
  8259. hardcode_shlibpath_var=no
  8260. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8261. export_dynamic_flag_spec='${wl}-E'
  8262. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8263. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8264. # default) and relocated if they conflict, which is a slow very memory
  8265. # consuming and fragmenting process. To avoid this, we pick a random,
  8266. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8267. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8268. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8269. 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'
  8270. ;;
  8271. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8272. tmp_diet=no
  8273. if test "$host_os" = linux-dietlibc; then
  8274. case $cc_basename in
  8275. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8276. esac
  8277. fi
  8278. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8279. && test "$tmp_diet" = no
  8280. then
  8281. tmp_addflag=' $pic_flag'
  8282. tmp_sharedflag='-shared'
  8283. case $cc_basename,$host_cpu in
  8284. pgcc*) # Portland Group C compiler
  8285. 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'
  8286. tmp_addflag=' $pic_flag'
  8287. ;;
  8288. pgf77* | pgf90* | pgf95* | pgfortran*)
  8289. # Portland Group f77 and f90 compilers
  8290. 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'
  8291. tmp_addflag=' $pic_flag -Mnomain' ;;
  8292. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8293. tmp_addflag=' -i_dynamic' ;;
  8294. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8295. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8296. ifc* | ifort*) # Intel Fortran compiler
  8297. tmp_addflag=' -nofor_main' ;;
  8298. lf95*) # Lahey Fortran 8.1
  8299. whole_archive_flag_spec=
  8300. tmp_sharedflag='--shared' ;;
  8301. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8302. tmp_sharedflag='-qmkshrobj'
  8303. tmp_addflag= ;;
  8304. nvcc*) # Cuda Compiler Driver 2.2
  8305. 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'
  8306. compiler_needs_object=yes
  8307. ;;
  8308. esac
  8309. case `$CC -V 2>&1 | sed 5q` in
  8310. *Sun\ C*) # Sun C 5.9
  8311. 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'
  8312. compiler_needs_object=yes
  8313. tmp_sharedflag='-G' ;;
  8314. *Sun\ F*) # Sun Fortran 8.3
  8315. tmp_sharedflag='-G' ;;
  8316. esac
  8317. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8318. if test "x$supports_anon_versioning" = xyes; then
  8319. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8320. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8321. echo "local: *; };" >> $output_objdir/$libname.ver~
  8322. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8323. fi
  8324. case $cc_basename in
  8325. xlf* | bgf* | bgxlf* | mpixlf*)
  8326. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8327. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8328. hardcode_libdir_flag_spec=
  8329. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8330. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8331. if test "x$supports_anon_versioning" = xyes; then
  8332. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8333. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8334. echo "local: *; };" >> $output_objdir/$libname.ver~
  8335. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8336. fi
  8337. ;;
  8338. esac
  8339. else
  8340. ld_shlibs=no
  8341. fi
  8342. ;;
  8343. netbsd*)
  8344. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8345. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8346. wlarc=
  8347. else
  8348. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8349. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8350. fi
  8351. ;;
  8352. solaris*)
  8353. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8354. ld_shlibs=no
  8355. cat <<_LT_EOF 1>&2
  8356. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8357. *** create shared libraries on Solaris systems. Therefore, libtool
  8358. *** is disabling shared libraries support. We urge you to upgrade GNU
  8359. *** binutils to release 2.9.1 or newer. Another option is to modify
  8360. *** your PATH or compiler configuration so that the native linker is
  8361. *** used, and then restart.
  8362. _LT_EOF
  8363. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8364. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8365. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8366. else
  8367. ld_shlibs=no
  8368. fi
  8369. ;;
  8370. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8371. case `$LD -v 2>&1` in
  8372. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8373. ld_shlibs=no
  8374. cat <<_LT_EOF 1>&2
  8375. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8376. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8377. *** is disabling shared libraries support. We urge you to upgrade GNU
  8378. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8379. *** your PATH or compiler configuration so that the native linker is
  8380. *** used, and then restart.
  8381. _LT_EOF
  8382. ;;
  8383. *)
  8384. # For security reasons, it is highly recommended that you always
  8385. # use absolute paths for naming shared libraries, and exclude the
  8386. # DT_RUNPATH tag from executables and libraries. But doing so
  8387. # requires that you compile everything twice, which is a pain.
  8388. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8389. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8390. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8391. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8392. else
  8393. ld_shlibs=no
  8394. fi
  8395. ;;
  8396. esac
  8397. ;;
  8398. sunos4*)
  8399. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8400. wlarc=
  8401. hardcode_direct=yes
  8402. hardcode_shlibpath_var=no
  8403. ;;
  8404. *)
  8405. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8406. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8407. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8408. else
  8409. ld_shlibs=no
  8410. fi
  8411. ;;
  8412. esac
  8413. if test "$ld_shlibs" = no; then
  8414. runpath_var=
  8415. hardcode_libdir_flag_spec=
  8416. export_dynamic_flag_spec=
  8417. whole_archive_flag_spec=
  8418. fi
  8419. else
  8420. # PORTME fill in a description of your system's linker (not GNU ld)
  8421. case $host_os in
  8422. aix3*)
  8423. allow_undefined_flag=unsupported
  8424. always_export_symbols=yes
  8425. 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'
  8426. # Note: this linker hardcodes the directories in LIBPATH if there
  8427. # are no directories specified by -L.
  8428. hardcode_minus_L=yes
  8429. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8430. # Neither direct hardcoding nor static linking is supported with a
  8431. # broken collect2.
  8432. hardcode_direct=unsupported
  8433. fi
  8434. ;;
  8435. aix[4-9]*)
  8436. if test "$host_cpu" = ia64; then
  8437. # On IA64, the linker does run time linking by default, so we don't
  8438. # have to do anything special.
  8439. aix_use_runtimelinking=no
  8440. exp_sym_flag='-Bexport'
  8441. no_entry_flag=""
  8442. else
  8443. # If we're using GNU nm, then we don't want the "-C" option.
  8444. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8445. # Also, AIX nm treats weak defined symbols like other global
  8446. # defined symbols, whereas GNU nm marks them as "W".
  8447. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8448. 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'
  8449. else
  8450. 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'
  8451. fi
  8452. aix_use_runtimelinking=no
  8453. # Test if we are trying to use run time linking or normal
  8454. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8455. # need to do runtime linking.
  8456. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8457. for ld_flag in $LDFLAGS; do
  8458. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8459. aix_use_runtimelinking=yes
  8460. break
  8461. fi
  8462. done
  8463. ;;
  8464. esac
  8465. exp_sym_flag='-bexport'
  8466. no_entry_flag='-bnoentry'
  8467. fi
  8468. # When large executables or shared objects are built, AIX ld can
  8469. # have problems creating the table of contents. If linking a library
  8470. # or program results in "error TOC overflow" add -mminimal-toc to
  8471. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8472. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8473. archive_cmds=''
  8474. hardcode_direct=yes
  8475. hardcode_direct_absolute=yes
  8476. hardcode_libdir_separator=':'
  8477. link_all_deplibs=yes
  8478. file_list_spec='${wl}-f,'
  8479. if test "$GCC" = yes; then
  8480. case $host_os in aix4.[012]|aix4.[012].*)
  8481. # We only want to do this on AIX 4.2 and lower, the check
  8482. # below for broken collect2 doesn't work under 4.3+
  8483. collect2name=`${CC} -print-prog-name=collect2`
  8484. if test -f "$collect2name" &&
  8485. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8486. then
  8487. # We have reworked collect2
  8488. :
  8489. else
  8490. # We have old collect2
  8491. hardcode_direct=unsupported
  8492. # It fails to find uninstalled libraries when the uninstalled
  8493. # path is not listed in the libpath. Setting hardcode_minus_L
  8494. # to unsupported forces relinking
  8495. hardcode_minus_L=yes
  8496. hardcode_libdir_flag_spec='-L$libdir'
  8497. hardcode_libdir_separator=
  8498. fi
  8499. ;;
  8500. esac
  8501. shared_flag='-shared'
  8502. if test "$aix_use_runtimelinking" = yes; then
  8503. shared_flag="$shared_flag "'${wl}-G'
  8504. fi
  8505. else
  8506. # not using gcc
  8507. if test "$host_cpu" = ia64; then
  8508. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8509. # chokes on -Wl,-G. The following line is correct:
  8510. shared_flag='-G'
  8511. else
  8512. if test "$aix_use_runtimelinking" = yes; then
  8513. shared_flag='${wl}-G'
  8514. else
  8515. shared_flag='${wl}-bM:SRE'
  8516. fi
  8517. fi
  8518. fi
  8519. export_dynamic_flag_spec='${wl}-bexpall'
  8520. # It seems that -bexpall does not export symbols beginning with
  8521. # underscore (_), so it is better to generate a list of symbols to export.
  8522. always_export_symbols=yes
  8523. if test "$aix_use_runtimelinking" = yes; then
  8524. # Warning - without using the other runtime loading flags (-brtl),
  8525. # -berok will link without error, but may produce a broken library.
  8526. allow_undefined_flag='-berok'
  8527. # Determine the default libpath from the value encoded in an
  8528. # empty executable.
  8529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8530. /* end confdefs.h. */
  8531. int
  8532. main ()
  8533. {
  8534. ;
  8535. return 0;
  8536. }
  8537. _ACEOF
  8538. if ac_fn_c_try_link "$LINENO"; then :
  8539. lt_aix_libpath_sed='
  8540. /Import File Strings/,/^$/ {
  8541. /^0/ {
  8542. s/^0 *\(.*\)$/\1/
  8543. p
  8544. }
  8545. }'
  8546. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8547. # Check for a 64-bit object if we didn't find anything.
  8548. if test -z "$aix_libpath"; then
  8549. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8550. fi
  8551. fi
  8552. rm -f core conftest.err conftest.$ac_objext \
  8553. conftest$ac_exeext conftest.$ac_ext
  8554. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8555. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8556. 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"
  8557. else
  8558. if test "$host_cpu" = ia64; then
  8559. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8560. allow_undefined_flag="-z nodefs"
  8561. 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"
  8562. else
  8563. # Determine the default libpath from the value encoded in an
  8564. # empty executable.
  8565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8566. /* end confdefs.h. */
  8567. int
  8568. main ()
  8569. {
  8570. ;
  8571. return 0;
  8572. }
  8573. _ACEOF
  8574. if ac_fn_c_try_link "$LINENO"; then :
  8575. lt_aix_libpath_sed='
  8576. /Import File Strings/,/^$/ {
  8577. /^0/ {
  8578. s/^0 *\(.*\)$/\1/
  8579. p
  8580. }
  8581. }'
  8582. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8583. # Check for a 64-bit object if we didn't find anything.
  8584. if test -z "$aix_libpath"; then
  8585. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8586. fi
  8587. fi
  8588. rm -f core conftest.err conftest.$ac_objext \
  8589. conftest$ac_exeext conftest.$ac_ext
  8590. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8591. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8592. # Warning - without using the other run time loading flags,
  8593. # -berok will link without error, but may produce a broken library.
  8594. no_undefined_flag=' ${wl}-bernotok'
  8595. allow_undefined_flag=' ${wl}-berok'
  8596. if test "$with_gnu_ld" = yes; then
  8597. # We only use this code for GNU lds that support --whole-archive.
  8598. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8599. else
  8600. # Exported symbols can be pulled into shared objects from archives
  8601. whole_archive_flag_spec='$convenience'
  8602. fi
  8603. archive_cmds_need_lc=yes
  8604. # This is similar to how AIX traditionally builds its shared libraries.
  8605. 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'
  8606. fi
  8607. fi
  8608. ;;
  8609. amigaos*)
  8610. case $host_cpu in
  8611. powerpc)
  8612. # see comment about AmigaOS4 .so support
  8613. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8614. archive_expsym_cmds=''
  8615. ;;
  8616. m68k)
  8617. 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)'
  8618. hardcode_libdir_flag_spec='-L$libdir'
  8619. hardcode_minus_L=yes
  8620. ;;
  8621. esac
  8622. ;;
  8623. bsdi[45]*)
  8624. export_dynamic_flag_spec=-rdynamic
  8625. ;;
  8626. cygwin* | mingw* | pw32* | cegcc*)
  8627. # When not using gcc, we currently assume that we are using
  8628. # Microsoft Visual C++.
  8629. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8630. # no search path for DLLs.
  8631. hardcode_libdir_flag_spec=' '
  8632. allow_undefined_flag=unsupported
  8633. # Tell ltmain to make .lib files, not .a files.
  8634. libext=lib
  8635. # Tell ltmain to make .dll files, not .so files.
  8636. shrext_cmds=".dll"
  8637. # FIXME: Setting linknames here is a bad hack.
  8638. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8639. # The linker will automatically build a .lib file if we build a DLL.
  8640. old_archive_from_new_cmds='true'
  8641. # FIXME: Should let the user specify the lib program.
  8642. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8643. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8644. enable_shared_with_static_runtimes=yes
  8645. ;;
  8646. darwin* | rhapsody*)
  8647. archive_cmds_need_lc=no
  8648. hardcode_direct=no
  8649. hardcode_automatic=yes
  8650. hardcode_shlibpath_var=unsupported
  8651. if test "$lt_cv_ld_force_load" = "yes"; then
  8652. 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\"`'
  8653. else
  8654. whole_archive_flag_spec=''
  8655. fi
  8656. link_all_deplibs=yes
  8657. allow_undefined_flag="$_lt_dar_allow_undefined"
  8658. case $cc_basename in
  8659. ifort*) _lt_dar_can_shared=yes ;;
  8660. *) _lt_dar_can_shared=$GCC ;;
  8661. esac
  8662. if test "$_lt_dar_can_shared" = "yes"; then
  8663. output_verbose_link_cmd=func_echo_all
  8664. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8665. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8666. 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}"
  8667. 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}"
  8668. else
  8669. ld_shlibs=no
  8670. fi
  8671. ;;
  8672. dgux*)
  8673. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8674. hardcode_libdir_flag_spec='-L$libdir'
  8675. hardcode_shlibpath_var=no
  8676. ;;
  8677. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8678. # support. Future versions do this automatically, but an explicit c++rt0.o
  8679. # does not break anything, and helps significantly (at the cost of a little
  8680. # extra space).
  8681. freebsd2.2*)
  8682. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8683. hardcode_libdir_flag_spec='-R$libdir'
  8684. hardcode_direct=yes
  8685. hardcode_shlibpath_var=no
  8686. ;;
  8687. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8688. freebsd2.*)
  8689. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8690. hardcode_direct=yes
  8691. hardcode_minus_L=yes
  8692. hardcode_shlibpath_var=no
  8693. ;;
  8694. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8695. freebsd* | dragonfly*)
  8696. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8697. hardcode_libdir_flag_spec='-R$libdir'
  8698. hardcode_direct=yes
  8699. hardcode_shlibpath_var=no
  8700. ;;
  8701. hpux9*)
  8702. if test "$GCC" = yes; then
  8703. 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'
  8704. else
  8705. 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'
  8706. fi
  8707. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8708. hardcode_libdir_separator=:
  8709. hardcode_direct=yes
  8710. # hardcode_minus_L: Not really in the search PATH,
  8711. # but as the default location of the library.
  8712. hardcode_minus_L=yes
  8713. export_dynamic_flag_spec='${wl}-E'
  8714. ;;
  8715. hpux10*)
  8716. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8717. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8718. else
  8719. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8720. fi
  8721. if test "$with_gnu_ld" = no; then
  8722. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8723. hardcode_libdir_flag_spec_ld='+b $libdir'
  8724. hardcode_libdir_separator=:
  8725. hardcode_direct=yes
  8726. hardcode_direct_absolute=yes
  8727. export_dynamic_flag_spec='${wl}-E'
  8728. # hardcode_minus_L: Not really in the search PATH,
  8729. # but as the default location of the library.
  8730. hardcode_minus_L=yes
  8731. fi
  8732. ;;
  8733. hpux11*)
  8734. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8735. case $host_cpu in
  8736. hppa*64*)
  8737. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8738. ;;
  8739. ia64*)
  8740. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8741. ;;
  8742. *)
  8743. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8744. ;;
  8745. esac
  8746. else
  8747. case $host_cpu in
  8748. hppa*64*)
  8749. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8750. ;;
  8751. ia64*)
  8752. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8753. ;;
  8754. *)
  8755. # Older versions of the 11.00 compiler do not understand -b yet
  8756. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8758. $as_echo_n "checking if $CC understands -b... " >&6; }
  8759. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8760. $as_echo_n "(cached) " >&6
  8761. else
  8762. lt_cv_prog_compiler__b=no
  8763. save_LDFLAGS="$LDFLAGS"
  8764. LDFLAGS="$LDFLAGS -b"
  8765. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8766. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8767. # The linker can only warn and ignore the option if not recognized
  8768. # So say no if there are warnings
  8769. if test -s conftest.err; then
  8770. # Append any errors to the config.log.
  8771. cat conftest.err 1>&5
  8772. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8773. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8774. if diff conftest.exp conftest.er2 >/dev/null; then
  8775. lt_cv_prog_compiler__b=yes
  8776. fi
  8777. else
  8778. lt_cv_prog_compiler__b=yes
  8779. fi
  8780. fi
  8781. $RM -r conftest*
  8782. LDFLAGS="$save_LDFLAGS"
  8783. fi
  8784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8785. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8786. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8787. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8788. else
  8789. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8790. fi
  8791. ;;
  8792. esac
  8793. fi
  8794. if test "$with_gnu_ld" = no; then
  8795. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8796. hardcode_libdir_separator=:
  8797. case $host_cpu in
  8798. hppa*64*|ia64*)
  8799. hardcode_direct=no
  8800. hardcode_shlibpath_var=no
  8801. ;;
  8802. *)
  8803. hardcode_direct=yes
  8804. hardcode_direct_absolute=yes
  8805. export_dynamic_flag_spec='${wl}-E'
  8806. # hardcode_minus_L: Not really in the search PATH,
  8807. # but as the default location of the library.
  8808. hardcode_minus_L=yes
  8809. ;;
  8810. esac
  8811. fi
  8812. ;;
  8813. irix5* | irix6* | nonstopux*)
  8814. if test "$GCC" = yes; then
  8815. 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'
  8816. # Try to use the -exported_symbol ld option, if it does not
  8817. # work, assume that -exports_file does not work either and
  8818. # implicitly export all symbols.
  8819. save_LDFLAGS="$LDFLAGS"
  8820. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8822. /* end confdefs.h. */
  8823. int foo(void) {}
  8824. _ACEOF
  8825. if ac_fn_c_try_link "$LINENO"; then :
  8826. 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'
  8827. fi
  8828. rm -f core conftest.err conftest.$ac_objext \
  8829. conftest$ac_exeext conftest.$ac_ext
  8830. LDFLAGS="$save_LDFLAGS"
  8831. else
  8832. 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'
  8833. 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'
  8834. fi
  8835. archive_cmds_need_lc='no'
  8836. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8837. hardcode_libdir_separator=:
  8838. inherit_rpath=yes
  8839. link_all_deplibs=yes
  8840. ;;
  8841. netbsd*)
  8842. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8843. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8844. else
  8845. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8846. fi
  8847. hardcode_libdir_flag_spec='-R$libdir'
  8848. hardcode_direct=yes
  8849. hardcode_shlibpath_var=no
  8850. ;;
  8851. newsos6)
  8852. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8853. hardcode_direct=yes
  8854. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8855. hardcode_libdir_separator=:
  8856. hardcode_shlibpath_var=no
  8857. ;;
  8858. *nto* | *qnx*)
  8859. ;;
  8860. openbsd*)
  8861. if test -f /usr/libexec/ld.so; then
  8862. hardcode_direct=yes
  8863. hardcode_shlibpath_var=no
  8864. hardcode_direct_absolute=yes
  8865. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8866. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8867. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8868. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8869. export_dynamic_flag_spec='${wl}-E'
  8870. else
  8871. case $host_os in
  8872. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8873. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8874. hardcode_libdir_flag_spec='-R$libdir'
  8875. ;;
  8876. *)
  8877. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8878. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8879. ;;
  8880. esac
  8881. fi
  8882. else
  8883. ld_shlibs=no
  8884. fi
  8885. ;;
  8886. os2*)
  8887. hardcode_libdir_flag_spec='-L$libdir'
  8888. hardcode_minus_L=yes
  8889. allow_undefined_flag=unsupported
  8890. 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'
  8891. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8892. ;;
  8893. osf3*)
  8894. if test "$GCC" = yes; then
  8895. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8896. 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'
  8897. else
  8898. allow_undefined_flag=' -expect_unresolved \*'
  8899. 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'
  8900. fi
  8901. archive_cmds_need_lc='no'
  8902. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8903. hardcode_libdir_separator=:
  8904. ;;
  8905. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8906. if test "$GCC" = yes; then
  8907. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8908. 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'
  8909. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8910. else
  8911. allow_undefined_flag=' -expect_unresolved \*'
  8912. 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'
  8913. 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~
  8914. $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'
  8915. # Both c and cxx compiler support -rpath directly
  8916. hardcode_libdir_flag_spec='-rpath $libdir'
  8917. fi
  8918. archive_cmds_need_lc='no'
  8919. hardcode_libdir_separator=:
  8920. ;;
  8921. solaris*)
  8922. no_undefined_flag=' -z defs'
  8923. if test "$GCC" = yes; then
  8924. wlarc='${wl}'
  8925. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8926. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8927. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8928. else
  8929. case `$CC -V 2>&1` in
  8930. *"Compilers 5.0"*)
  8931. wlarc=''
  8932. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8933. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8934. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8935. ;;
  8936. *)
  8937. wlarc='${wl}'
  8938. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8939. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8940. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8941. ;;
  8942. esac
  8943. fi
  8944. hardcode_libdir_flag_spec='-R$libdir'
  8945. hardcode_shlibpath_var=no
  8946. case $host_os in
  8947. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8948. *)
  8949. # The compiler driver will combine and reorder linker options,
  8950. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8951. # but is careful enough not to reorder.
  8952. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8953. if test "$GCC" = yes; then
  8954. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8955. else
  8956. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8957. fi
  8958. ;;
  8959. esac
  8960. link_all_deplibs=yes
  8961. ;;
  8962. sunos4*)
  8963. if test "x$host_vendor" = xsequent; then
  8964. # Use $CC to link under sequent, because it throws in some extra .o
  8965. # files that make .init and .fini sections work.
  8966. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8967. else
  8968. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8969. fi
  8970. hardcode_libdir_flag_spec='-L$libdir'
  8971. hardcode_direct=yes
  8972. hardcode_minus_L=yes
  8973. hardcode_shlibpath_var=no
  8974. ;;
  8975. sysv4)
  8976. case $host_vendor in
  8977. sni)
  8978. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8979. hardcode_direct=yes # is this really true???
  8980. ;;
  8981. siemens)
  8982. ## LD is ld it makes a PLAMLIB
  8983. ## CC just makes a GrossModule.
  8984. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8985. reload_cmds='$CC -r -o $output$reload_objs'
  8986. hardcode_direct=no
  8987. ;;
  8988. motorola)
  8989. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8990. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8991. ;;
  8992. esac
  8993. runpath_var='LD_RUN_PATH'
  8994. hardcode_shlibpath_var=no
  8995. ;;
  8996. sysv4.3*)
  8997. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8998. hardcode_shlibpath_var=no
  8999. export_dynamic_flag_spec='-Bexport'
  9000. ;;
  9001. sysv4*MP*)
  9002. if test -d /usr/nec; then
  9003. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9004. hardcode_shlibpath_var=no
  9005. runpath_var=LD_RUN_PATH
  9006. hardcode_runpath_var=yes
  9007. ld_shlibs=yes
  9008. fi
  9009. ;;
  9010. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9011. no_undefined_flag='${wl}-z,text'
  9012. archive_cmds_need_lc=no
  9013. hardcode_shlibpath_var=no
  9014. runpath_var='LD_RUN_PATH'
  9015. if test "$GCC" = yes; then
  9016. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9017. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9018. else
  9019. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9020. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9021. fi
  9022. ;;
  9023. sysv5* | sco3.2v5* | sco5v6*)
  9024. # Note: We can NOT use -z defs as we might desire, because we do not
  9025. # link with -lc, and that would cause any symbols used from libc to
  9026. # always be unresolved, which means just about no library would
  9027. # ever link correctly. If we're not using GNU ld we use -z text
  9028. # though, which does catch some bad symbols but isn't as heavy-handed
  9029. # as -z defs.
  9030. no_undefined_flag='${wl}-z,text'
  9031. allow_undefined_flag='${wl}-z,nodefs'
  9032. archive_cmds_need_lc=no
  9033. hardcode_shlibpath_var=no
  9034. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9035. hardcode_libdir_separator=':'
  9036. link_all_deplibs=yes
  9037. export_dynamic_flag_spec='${wl}-Bexport'
  9038. runpath_var='LD_RUN_PATH'
  9039. if test "$GCC" = yes; then
  9040. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9041. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9042. else
  9043. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9044. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9045. fi
  9046. ;;
  9047. uts4*)
  9048. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9049. hardcode_libdir_flag_spec='-L$libdir'
  9050. hardcode_shlibpath_var=no
  9051. ;;
  9052. *)
  9053. ld_shlibs=no
  9054. ;;
  9055. esac
  9056. if test x$host_vendor = xsni; then
  9057. case $host in
  9058. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9059. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9060. ;;
  9061. esac
  9062. fi
  9063. fi
  9064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9065. $as_echo "$ld_shlibs" >&6; }
  9066. test "$ld_shlibs" = no && can_build_shared=no
  9067. with_gnu_ld=$with_gnu_ld
  9068. #
  9069. # Do we need to explicitly link libc?
  9070. #
  9071. case "x$archive_cmds_need_lc" in
  9072. x|xyes)
  9073. # Assume -lc should be added
  9074. archive_cmds_need_lc=yes
  9075. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9076. case $archive_cmds in
  9077. *'~'*)
  9078. # FIXME: we may have to deal with multi-command sequences.
  9079. ;;
  9080. '$CC '*)
  9081. # Test whether the compiler implicitly links with -lc since on some
  9082. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9083. # to ld, don't add -lc before -lgcc.
  9084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9085. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9086. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  9087. $as_echo_n "(cached) " >&6
  9088. else
  9089. $RM conftest*
  9090. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9091. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9092. (eval $ac_compile) 2>&5
  9093. ac_status=$?
  9094. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9095. test $ac_status = 0; } 2>conftest.err; then
  9096. soname=conftest
  9097. lib=conftest
  9098. libobjs=conftest.$ac_objext
  9099. deplibs=
  9100. wl=$lt_prog_compiler_wl
  9101. pic_flag=$lt_prog_compiler_pic
  9102. compiler_flags=-v
  9103. linker_flags=-v
  9104. verstring=
  9105. output_objdir=.
  9106. libname=conftest
  9107. lt_save_allow_undefined_flag=$allow_undefined_flag
  9108. allow_undefined_flag=
  9109. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9110. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9111. ac_status=$?
  9112. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9113. test $ac_status = 0; }
  9114. then
  9115. lt_cv_archive_cmds_need_lc=no
  9116. else
  9117. lt_cv_archive_cmds_need_lc=yes
  9118. fi
  9119. allow_undefined_flag=$lt_save_allow_undefined_flag
  9120. else
  9121. cat conftest.err 1>&5
  9122. fi
  9123. $RM conftest*
  9124. fi
  9125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9126. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9127. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9128. ;;
  9129. esac
  9130. fi
  9131. ;;
  9132. esac
  9133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9134. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9135. if test "$GCC" = yes; then
  9136. case $host_os in
  9137. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9138. *) lt_awk_arg="/^libraries:/" ;;
  9139. esac
  9140. case $host_os in
  9141. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9142. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9143. esac
  9144. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9145. case $lt_search_path_spec in
  9146. *\;*)
  9147. # if the path contains ";" then we assume it to be the separator
  9148. # otherwise default to the standard path separator (i.e. ":") - it is
  9149. # assumed that no part of a normal pathname contains ";" but that should
  9150. # okay in the real world where ";" in dirpaths is itself problematic.
  9151. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9152. ;;
  9153. *)
  9154. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9155. ;;
  9156. esac
  9157. # Ok, now we have the path, separated by spaces, we can step through it
  9158. # and add multilib dir if necessary.
  9159. lt_tmp_lt_search_path_spec=
  9160. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9161. for lt_sys_path in $lt_search_path_spec; do
  9162. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9163. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9164. else
  9165. test -d "$lt_sys_path" && \
  9166. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9167. fi
  9168. done
  9169. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9170. BEGIN {RS=" "; FS="/|\n";} {
  9171. lt_foo="";
  9172. lt_count=0;
  9173. for (lt_i = NF; lt_i > 0; lt_i--) {
  9174. if ($lt_i != "" && $lt_i != ".") {
  9175. if ($lt_i == "..") {
  9176. lt_count++;
  9177. } else {
  9178. if (lt_count == 0) {
  9179. lt_foo="/" $lt_i lt_foo;
  9180. } else {
  9181. lt_count--;
  9182. }
  9183. }
  9184. }
  9185. }
  9186. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9187. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9188. }'`
  9189. # AWK program above erroneously prepends '/' to C:/dos/paths
  9190. # for these hosts.
  9191. case $host_os in
  9192. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9193. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9194. esac
  9195. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9196. else
  9197. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9198. fi
  9199. library_names_spec=
  9200. libname_spec='lib$name'
  9201. soname_spec=
  9202. shrext_cmds=".so"
  9203. postinstall_cmds=
  9204. postuninstall_cmds=
  9205. finish_cmds=
  9206. finish_eval=
  9207. shlibpath_var=
  9208. shlibpath_overrides_runpath=unknown
  9209. version_type=none
  9210. dynamic_linker="$host_os ld.so"
  9211. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9212. need_lib_prefix=unknown
  9213. hardcode_into_libs=no
  9214. # when you set need_version to no, make sure it does not cause -set_version
  9215. # flags to be left without arguments
  9216. need_version=unknown
  9217. case $host_os in
  9218. aix3*)
  9219. version_type=linux
  9220. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9221. shlibpath_var=LIBPATH
  9222. # AIX 3 has no versioning support, so we append a major version to the name.
  9223. soname_spec='${libname}${release}${shared_ext}$major'
  9224. ;;
  9225. aix[4-9]*)
  9226. version_type=linux
  9227. need_lib_prefix=no
  9228. need_version=no
  9229. hardcode_into_libs=yes
  9230. if test "$host_cpu" = ia64; then
  9231. # AIX 5 supports IA64
  9232. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9233. shlibpath_var=LD_LIBRARY_PATH
  9234. else
  9235. # With GCC up to 2.95.x, collect2 would create an import file
  9236. # for dependence libraries. The import file would start with
  9237. # the line `#! .'. This would cause the generated library to
  9238. # depend on `.', always an invalid library. This was fixed in
  9239. # development snapshots of GCC prior to 3.0.
  9240. case $host_os in
  9241. aix4 | aix4.[01] | aix4.[01].*)
  9242. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9243. echo ' yes '
  9244. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9245. :
  9246. else
  9247. can_build_shared=no
  9248. fi
  9249. ;;
  9250. esac
  9251. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9252. # soname into executable. Probably we can add versioning support to
  9253. # collect2, so additional links can be useful in future.
  9254. if test "$aix_use_runtimelinking" = yes; then
  9255. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9256. # instead of lib<name>.a to let people know that these are not
  9257. # typical AIX shared libraries.
  9258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9259. else
  9260. # We preserve .a as extension for shared libraries through AIX4.2
  9261. # and later when we are not doing run time linking.
  9262. library_names_spec='${libname}${release}.a $libname.a'
  9263. soname_spec='${libname}${release}${shared_ext}$major'
  9264. fi
  9265. shlibpath_var=LIBPATH
  9266. fi
  9267. ;;
  9268. amigaos*)
  9269. case $host_cpu in
  9270. powerpc)
  9271. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9272. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9274. ;;
  9275. m68k)
  9276. library_names_spec='$libname.ixlibrary $libname.a'
  9277. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9278. 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'
  9279. ;;
  9280. esac
  9281. ;;
  9282. beos*)
  9283. library_names_spec='${libname}${shared_ext}'
  9284. dynamic_linker="$host_os ld.so"
  9285. shlibpath_var=LIBRARY_PATH
  9286. ;;
  9287. bsdi[45]*)
  9288. version_type=linux
  9289. need_version=no
  9290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9291. soname_spec='${libname}${release}${shared_ext}$major'
  9292. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9293. shlibpath_var=LD_LIBRARY_PATH
  9294. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9295. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9296. # the default ld.so.conf also contains /usr/contrib/lib and
  9297. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9298. # libtool to hard-code these into programs
  9299. ;;
  9300. cygwin* | mingw* | pw32* | cegcc*)
  9301. version_type=windows
  9302. shrext_cmds=".dll"
  9303. need_version=no
  9304. need_lib_prefix=no
  9305. case $GCC,$host_os in
  9306. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9307. library_names_spec='$libname.dll.a'
  9308. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9309. postinstall_cmds='base_file=`basename \${file}`~
  9310. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9311. dldir=$destdir/`dirname \$dlpath`~
  9312. test -d \$dldir || mkdir -p \$dldir~
  9313. $install_prog $dir/$dlname \$dldir/$dlname~
  9314. chmod a+x \$dldir/$dlname~
  9315. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9316. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9317. fi'
  9318. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9319. dlpath=$dir/\$dldll~
  9320. $RM \$dlpath'
  9321. shlibpath_overrides_runpath=yes
  9322. case $host_os in
  9323. cygwin*)
  9324. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9325. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9326. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9327. ;;
  9328. mingw* | cegcc*)
  9329. # MinGW DLLs use traditional 'lib' prefix
  9330. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9331. ;;
  9332. pw32*)
  9333. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9334. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9335. ;;
  9336. esac
  9337. ;;
  9338. *)
  9339. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9340. ;;
  9341. esac
  9342. dynamic_linker='Win32 ld.exe'
  9343. # FIXME: first we should search . and the directory the executable is in
  9344. shlibpath_var=PATH
  9345. ;;
  9346. darwin* | rhapsody*)
  9347. dynamic_linker="$host_os dyld"
  9348. version_type=darwin
  9349. need_lib_prefix=no
  9350. need_version=no
  9351. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9352. soname_spec='${libname}${release}${major}$shared_ext'
  9353. shlibpath_overrides_runpath=yes
  9354. shlibpath_var=DYLD_LIBRARY_PATH
  9355. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9356. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9357. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9358. ;;
  9359. dgux*)
  9360. version_type=linux
  9361. need_lib_prefix=no
  9362. need_version=no
  9363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9364. soname_spec='${libname}${release}${shared_ext}$major'
  9365. shlibpath_var=LD_LIBRARY_PATH
  9366. ;;
  9367. freebsd* | dragonfly*)
  9368. # DragonFly does not have aout. When/if they implement a new
  9369. # versioning mechanism, adjust this.
  9370. if test -x /usr/bin/objformat; then
  9371. objformat=`/usr/bin/objformat`
  9372. else
  9373. case $host_os in
  9374. freebsd[23].*) objformat=aout ;;
  9375. *) objformat=elf ;;
  9376. esac
  9377. fi
  9378. version_type=freebsd-$objformat
  9379. case $version_type in
  9380. freebsd-elf*)
  9381. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9382. need_version=no
  9383. need_lib_prefix=no
  9384. ;;
  9385. freebsd-*)
  9386. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9387. need_version=yes
  9388. ;;
  9389. esac
  9390. shlibpath_var=LD_LIBRARY_PATH
  9391. case $host_os in
  9392. freebsd2.*)
  9393. shlibpath_overrides_runpath=yes
  9394. ;;
  9395. freebsd3.[01]* | freebsdelf3.[01]*)
  9396. shlibpath_overrides_runpath=yes
  9397. hardcode_into_libs=yes
  9398. ;;
  9399. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9400. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9401. shlibpath_overrides_runpath=no
  9402. hardcode_into_libs=yes
  9403. ;;
  9404. *) # from 4.6 on, and DragonFly
  9405. shlibpath_overrides_runpath=yes
  9406. hardcode_into_libs=yes
  9407. ;;
  9408. esac
  9409. ;;
  9410. gnu*)
  9411. version_type=linux
  9412. need_lib_prefix=no
  9413. need_version=no
  9414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9415. soname_spec='${libname}${release}${shared_ext}$major'
  9416. shlibpath_var=LD_LIBRARY_PATH
  9417. hardcode_into_libs=yes
  9418. ;;
  9419. haiku*)
  9420. version_type=linux
  9421. need_lib_prefix=no
  9422. need_version=no
  9423. dynamic_linker="$host_os runtime_loader"
  9424. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9425. soname_spec='${libname}${release}${shared_ext}$major'
  9426. shlibpath_var=LIBRARY_PATH
  9427. shlibpath_overrides_runpath=yes
  9428. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9429. hardcode_into_libs=yes
  9430. ;;
  9431. hpux9* | hpux10* | hpux11*)
  9432. # Give a soname corresponding to the major version so that dld.sl refuses to
  9433. # link against other versions.
  9434. version_type=sunos
  9435. need_lib_prefix=no
  9436. need_version=no
  9437. case $host_cpu in
  9438. ia64*)
  9439. shrext_cmds='.so'
  9440. hardcode_into_libs=yes
  9441. dynamic_linker="$host_os dld.so"
  9442. shlibpath_var=LD_LIBRARY_PATH
  9443. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9444. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9445. soname_spec='${libname}${release}${shared_ext}$major'
  9446. if test "X$HPUX_IA64_MODE" = X32; then
  9447. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9448. else
  9449. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9450. fi
  9451. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9452. ;;
  9453. hppa*64*)
  9454. shrext_cmds='.sl'
  9455. hardcode_into_libs=yes
  9456. dynamic_linker="$host_os dld.sl"
  9457. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9458. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9459. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9460. soname_spec='${libname}${release}${shared_ext}$major'
  9461. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9462. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9463. ;;
  9464. *)
  9465. shrext_cmds='.sl'
  9466. dynamic_linker="$host_os dld.sl"
  9467. shlibpath_var=SHLIB_PATH
  9468. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9470. soname_spec='${libname}${release}${shared_ext}$major'
  9471. ;;
  9472. esac
  9473. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9474. postinstall_cmds='chmod 555 $lib'
  9475. # or fails outright, so override atomically:
  9476. install_override_mode=555
  9477. ;;
  9478. interix[3-9]*)
  9479. version_type=linux
  9480. need_lib_prefix=no
  9481. need_version=no
  9482. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9483. soname_spec='${libname}${release}${shared_ext}$major'
  9484. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9485. shlibpath_var=LD_LIBRARY_PATH
  9486. shlibpath_overrides_runpath=no
  9487. hardcode_into_libs=yes
  9488. ;;
  9489. irix5* | irix6* | nonstopux*)
  9490. case $host_os in
  9491. nonstopux*) version_type=nonstopux ;;
  9492. *)
  9493. if test "$lt_cv_prog_gnu_ld" = yes; then
  9494. version_type=linux
  9495. else
  9496. version_type=irix
  9497. fi ;;
  9498. esac
  9499. need_lib_prefix=no
  9500. need_version=no
  9501. soname_spec='${libname}${release}${shared_ext}$major'
  9502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9503. case $host_os in
  9504. irix5* | nonstopux*)
  9505. libsuff= shlibsuff=
  9506. ;;
  9507. *)
  9508. case $LD in # libtool.m4 will add one of these switches to LD
  9509. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9510. libsuff= shlibsuff= libmagic=32-bit;;
  9511. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9512. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9513. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9514. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9515. *) libsuff= shlibsuff= libmagic=never-match;;
  9516. esac
  9517. ;;
  9518. esac
  9519. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9520. shlibpath_overrides_runpath=no
  9521. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9522. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9523. hardcode_into_libs=yes
  9524. ;;
  9525. # No shared lib support for Linux oldld, aout, or coff.
  9526. linux*oldld* | linux*aout* | linux*coff*)
  9527. dynamic_linker=no
  9528. ;;
  9529. # This must be Linux ELF.
  9530. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9531. version_type=linux
  9532. need_lib_prefix=no
  9533. need_version=no
  9534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9535. soname_spec='${libname}${release}${shared_ext}$major'
  9536. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9537. shlibpath_var=LD_LIBRARY_PATH
  9538. shlibpath_overrides_runpath=no
  9539. # Some binutils ld are patched to set DT_RUNPATH
  9540. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9541. $as_echo_n "(cached) " >&6
  9542. else
  9543. lt_cv_shlibpath_overrides_runpath=no
  9544. save_LDFLAGS=$LDFLAGS
  9545. save_libdir=$libdir
  9546. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9547. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9549. /* end confdefs.h. */
  9550. int
  9551. main ()
  9552. {
  9553. ;
  9554. return 0;
  9555. }
  9556. _ACEOF
  9557. if ac_fn_c_try_link "$LINENO"; then :
  9558. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9559. lt_cv_shlibpath_overrides_runpath=yes
  9560. fi
  9561. fi
  9562. rm -f core conftest.err conftest.$ac_objext \
  9563. conftest$ac_exeext conftest.$ac_ext
  9564. LDFLAGS=$save_LDFLAGS
  9565. libdir=$save_libdir
  9566. fi
  9567. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9568. # This implies no fast_install, which is unacceptable.
  9569. # Some rework will be needed to allow for fast_install
  9570. # before this can be enabled.
  9571. hardcode_into_libs=yes
  9572. # Append ld.so.conf contents to the search path
  9573. if test -f /etc/ld.so.conf; then
  9574. 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' ' '`
  9575. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9576. fi
  9577. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9578. # powerpc, because MkLinux only supported shared libraries with the
  9579. # GNU dynamic linker. Since this was broken with cross compilers,
  9580. # most powerpc-linux boxes support dynamic linking these days and
  9581. # people can always --disable-shared, the test was removed, and we
  9582. # assume the GNU/Linux dynamic linker is in use.
  9583. dynamic_linker='GNU/Linux ld.so'
  9584. ;;
  9585. netbsd*)
  9586. version_type=sunos
  9587. need_lib_prefix=no
  9588. need_version=no
  9589. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9590. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9591. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9592. dynamic_linker='NetBSD (a.out) ld.so'
  9593. else
  9594. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9595. soname_spec='${libname}${release}${shared_ext}$major'
  9596. dynamic_linker='NetBSD ld.elf_so'
  9597. fi
  9598. shlibpath_var=LD_LIBRARY_PATH
  9599. shlibpath_overrides_runpath=yes
  9600. hardcode_into_libs=yes
  9601. ;;
  9602. newsos6)
  9603. version_type=linux
  9604. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9605. shlibpath_var=LD_LIBRARY_PATH
  9606. shlibpath_overrides_runpath=yes
  9607. ;;
  9608. *nto* | *qnx*)
  9609. version_type=qnx
  9610. need_lib_prefix=no
  9611. need_version=no
  9612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9613. soname_spec='${libname}${release}${shared_ext}$major'
  9614. shlibpath_var=LD_LIBRARY_PATH
  9615. shlibpath_overrides_runpath=no
  9616. hardcode_into_libs=yes
  9617. dynamic_linker='ldqnx.so'
  9618. ;;
  9619. openbsd*)
  9620. version_type=sunos
  9621. sys_lib_dlsearch_path_spec="/usr/lib"
  9622. need_lib_prefix=no
  9623. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9624. case $host_os in
  9625. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9626. *) need_version=no ;;
  9627. esac
  9628. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9629. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9630. shlibpath_var=LD_LIBRARY_PATH
  9631. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9632. case $host_os in
  9633. openbsd2.[89] | openbsd2.[89].*)
  9634. shlibpath_overrides_runpath=no
  9635. ;;
  9636. *)
  9637. shlibpath_overrides_runpath=yes
  9638. ;;
  9639. esac
  9640. else
  9641. shlibpath_overrides_runpath=yes
  9642. fi
  9643. ;;
  9644. os2*)
  9645. libname_spec='$name'
  9646. shrext_cmds=".dll"
  9647. need_lib_prefix=no
  9648. library_names_spec='$libname${shared_ext} $libname.a'
  9649. dynamic_linker='OS/2 ld.exe'
  9650. shlibpath_var=LIBPATH
  9651. ;;
  9652. osf3* | osf4* | osf5*)
  9653. version_type=osf
  9654. need_lib_prefix=no
  9655. need_version=no
  9656. soname_spec='${libname}${release}${shared_ext}$major'
  9657. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9658. shlibpath_var=LD_LIBRARY_PATH
  9659. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9660. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9661. ;;
  9662. rdos*)
  9663. dynamic_linker=no
  9664. ;;
  9665. solaris*)
  9666. version_type=linux
  9667. need_lib_prefix=no
  9668. need_version=no
  9669. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9670. soname_spec='${libname}${release}${shared_ext}$major'
  9671. shlibpath_var=LD_LIBRARY_PATH
  9672. shlibpath_overrides_runpath=yes
  9673. hardcode_into_libs=yes
  9674. # ldd complains unless libraries are executable
  9675. postinstall_cmds='chmod +x $lib'
  9676. ;;
  9677. sunos4*)
  9678. version_type=sunos
  9679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9680. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9681. shlibpath_var=LD_LIBRARY_PATH
  9682. shlibpath_overrides_runpath=yes
  9683. if test "$with_gnu_ld" = yes; then
  9684. need_lib_prefix=no
  9685. fi
  9686. need_version=yes
  9687. ;;
  9688. sysv4 | sysv4.3*)
  9689. version_type=linux
  9690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9691. soname_spec='${libname}${release}${shared_ext}$major'
  9692. shlibpath_var=LD_LIBRARY_PATH
  9693. case $host_vendor in
  9694. sni)
  9695. shlibpath_overrides_runpath=no
  9696. need_lib_prefix=no
  9697. runpath_var=LD_RUN_PATH
  9698. ;;
  9699. siemens)
  9700. need_lib_prefix=no
  9701. ;;
  9702. motorola)
  9703. need_lib_prefix=no
  9704. need_version=no
  9705. shlibpath_overrides_runpath=no
  9706. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9707. ;;
  9708. esac
  9709. ;;
  9710. sysv4*MP*)
  9711. if test -d /usr/nec ;then
  9712. version_type=linux
  9713. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9714. soname_spec='$libname${shared_ext}.$major'
  9715. shlibpath_var=LD_LIBRARY_PATH
  9716. fi
  9717. ;;
  9718. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9719. version_type=freebsd-elf
  9720. need_lib_prefix=no
  9721. need_version=no
  9722. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9723. soname_spec='${libname}${release}${shared_ext}$major'
  9724. shlibpath_var=LD_LIBRARY_PATH
  9725. shlibpath_overrides_runpath=yes
  9726. hardcode_into_libs=yes
  9727. if test "$with_gnu_ld" = yes; then
  9728. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9729. else
  9730. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9731. case $host_os in
  9732. sco3.2v5*)
  9733. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9734. ;;
  9735. esac
  9736. fi
  9737. sys_lib_dlsearch_path_spec='/usr/lib'
  9738. ;;
  9739. tpf*)
  9740. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9741. version_type=linux
  9742. need_lib_prefix=no
  9743. need_version=no
  9744. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9745. shlibpath_var=LD_LIBRARY_PATH
  9746. shlibpath_overrides_runpath=no
  9747. hardcode_into_libs=yes
  9748. ;;
  9749. uts4*)
  9750. version_type=linux
  9751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9752. soname_spec='${libname}${release}${shared_ext}$major'
  9753. shlibpath_var=LD_LIBRARY_PATH
  9754. ;;
  9755. *)
  9756. dynamic_linker=no
  9757. ;;
  9758. esac
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9760. $as_echo "$dynamic_linker" >&6; }
  9761. test "$dynamic_linker" = no && can_build_shared=no
  9762. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9763. if test "$GCC" = yes; then
  9764. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9765. fi
  9766. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9767. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9768. fi
  9769. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9770. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9771. fi
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9773. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9774. hardcode_action=
  9775. if test -n "$hardcode_libdir_flag_spec" ||
  9776. test -n "$runpath_var" ||
  9777. test "X$hardcode_automatic" = "Xyes" ; then
  9778. # We can hardcode non-existent directories.
  9779. if test "$hardcode_direct" != no &&
  9780. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9781. # have to relink, otherwise we might link with an installed library
  9782. # when we should be linking with a yet-to-be-installed one
  9783. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9784. test "$hardcode_minus_L" != no; then
  9785. # Linking always hardcodes the temporary library directory.
  9786. hardcode_action=relink
  9787. else
  9788. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9789. hardcode_action=immediate
  9790. fi
  9791. else
  9792. # We cannot hardcode anything, or else we can only hardcode existing
  9793. # directories.
  9794. hardcode_action=unsupported
  9795. fi
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9797. $as_echo "$hardcode_action" >&6; }
  9798. if test "$hardcode_action" = relink ||
  9799. test "$inherit_rpath" = yes; then
  9800. # Fast installation is not supported
  9801. enable_fast_install=no
  9802. elif test "$shlibpath_overrides_runpath" = yes ||
  9803. test "$enable_shared" = no; then
  9804. # Fast installation is not necessary
  9805. enable_fast_install=needless
  9806. fi
  9807. if test "x$enable_dlopen" != xyes; then
  9808. enable_dlopen=unknown
  9809. enable_dlopen_self=unknown
  9810. enable_dlopen_self_static=unknown
  9811. else
  9812. lt_cv_dlopen=no
  9813. lt_cv_dlopen_libs=
  9814. case $host_os in
  9815. beos*)
  9816. lt_cv_dlopen="load_add_on"
  9817. lt_cv_dlopen_libs=
  9818. lt_cv_dlopen_self=yes
  9819. ;;
  9820. mingw* | pw32* | cegcc*)
  9821. lt_cv_dlopen="LoadLibrary"
  9822. lt_cv_dlopen_libs=
  9823. ;;
  9824. cygwin*)
  9825. lt_cv_dlopen="dlopen"
  9826. lt_cv_dlopen_libs=
  9827. ;;
  9828. darwin*)
  9829. # if libdl is installed we need to link against it
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9831. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9832. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9833. $as_echo_n "(cached) " >&6
  9834. else
  9835. ac_check_lib_save_LIBS=$LIBS
  9836. LIBS="-ldl $LIBS"
  9837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9838. /* end confdefs.h. */
  9839. /* Override any GCC internal prototype to avoid an error.
  9840. Use char because int might match the return type of a GCC
  9841. builtin and then its argument prototype would still apply. */
  9842. #ifdef __cplusplus
  9843. extern "C"
  9844. #endif
  9845. char dlopen ();
  9846. int
  9847. main ()
  9848. {
  9849. return dlopen ();
  9850. ;
  9851. return 0;
  9852. }
  9853. _ACEOF
  9854. if ac_fn_c_try_link "$LINENO"; then :
  9855. ac_cv_lib_dl_dlopen=yes
  9856. else
  9857. ac_cv_lib_dl_dlopen=no
  9858. fi
  9859. rm -f core conftest.err conftest.$ac_objext \
  9860. conftest$ac_exeext conftest.$ac_ext
  9861. LIBS=$ac_check_lib_save_LIBS
  9862. fi
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9864. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9865. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9866. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9867. else
  9868. lt_cv_dlopen="dyld"
  9869. lt_cv_dlopen_libs=
  9870. lt_cv_dlopen_self=yes
  9871. fi
  9872. ;;
  9873. *)
  9874. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9875. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9876. lt_cv_dlopen="shl_load"
  9877. else
  9878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9879. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9880. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9881. $as_echo_n "(cached) " >&6
  9882. else
  9883. ac_check_lib_save_LIBS=$LIBS
  9884. LIBS="-ldld $LIBS"
  9885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9886. /* end confdefs.h. */
  9887. /* Override any GCC internal prototype to avoid an error.
  9888. Use char because int might match the return type of a GCC
  9889. builtin and then its argument prototype would still apply. */
  9890. #ifdef __cplusplus
  9891. extern "C"
  9892. #endif
  9893. char shl_load ();
  9894. int
  9895. main ()
  9896. {
  9897. return shl_load ();
  9898. ;
  9899. return 0;
  9900. }
  9901. _ACEOF
  9902. if ac_fn_c_try_link "$LINENO"; then :
  9903. ac_cv_lib_dld_shl_load=yes
  9904. else
  9905. ac_cv_lib_dld_shl_load=no
  9906. fi
  9907. rm -f core conftest.err conftest.$ac_objext \
  9908. conftest$ac_exeext conftest.$ac_ext
  9909. LIBS=$ac_check_lib_save_LIBS
  9910. fi
  9911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9912. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9913. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9914. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9915. else
  9916. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9917. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9918. lt_cv_dlopen="dlopen"
  9919. else
  9920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9921. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9922. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9923. $as_echo_n "(cached) " >&6
  9924. else
  9925. ac_check_lib_save_LIBS=$LIBS
  9926. LIBS="-ldl $LIBS"
  9927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9928. /* end confdefs.h. */
  9929. /* Override any GCC internal prototype to avoid an error.
  9930. Use char because int might match the return type of a GCC
  9931. builtin and then its argument prototype would still apply. */
  9932. #ifdef __cplusplus
  9933. extern "C"
  9934. #endif
  9935. char dlopen ();
  9936. int
  9937. main ()
  9938. {
  9939. return dlopen ();
  9940. ;
  9941. return 0;
  9942. }
  9943. _ACEOF
  9944. if ac_fn_c_try_link "$LINENO"; then :
  9945. ac_cv_lib_dl_dlopen=yes
  9946. else
  9947. ac_cv_lib_dl_dlopen=no
  9948. fi
  9949. rm -f core conftest.err conftest.$ac_objext \
  9950. conftest$ac_exeext conftest.$ac_ext
  9951. LIBS=$ac_check_lib_save_LIBS
  9952. fi
  9953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9954. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9955. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9956. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9957. else
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9959. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9960. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9961. $as_echo_n "(cached) " >&6
  9962. else
  9963. ac_check_lib_save_LIBS=$LIBS
  9964. LIBS="-lsvld $LIBS"
  9965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9966. /* end confdefs.h. */
  9967. /* Override any GCC internal prototype to avoid an error.
  9968. Use char because int might match the return type of a GCC
  9969. builtin and then its argument prototype would still apply. */
  9970. #ifdef __cplusplus
  9971. extern "C"
  9972. #endif
  9973. char dlopen ();
  9974. int
  9975. main ()
  9976. {
  9977. return dlopen ();
  9978. ;
  9979. return 0;
  9980. }
  9981. _ACEOF
  9982. if ac_fn_c_try_link "$LINENO"; then :
  9983. ac_cv_lib_svld_dlopen=yes
  9984. else
  9985. ac_cv_lib_svld_dlopen=no
  9986. fi
  9987. rm -f core conftest.err conftest.$ac_objext \
  9988. conftest$ac_exeext conftest.$ac_ext
  9989. LIBS=$ac_check_lib_save_LIBS
  9990. fi
  9991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9992. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9993. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9994. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9995. else
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9997. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9998. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9999. $as_echo_n "(cached) " >&6
  10000. else
  10001. ac_check_lib_save_LIBS=$LIBS
  10002. LIBS="-ldld $LIBS"
  10003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10004. /* end confdefs.h. */
  10005. /* Override any GCC internal prototype to avoid an error.
  10006. Use char because int might match the return type of a GCC
  10007. builtin and then its argument prototype would still apply. */
  10008. #ifdef __cplusplus
  10009. extern "C"
  10010. #endif
  10011. char dld_link ();
  10012. int
  10013. main ()
  10014. {
  10015. return dld_link ();
  10016. ;
  10017. return 0;
  10018. }
  10019. _ACEOF
  10020. if ac_fn_c_try_link "$LINENO"; then :
  10021. ac_cv_lib_dld_dld_link=yes
  10022. else
  10023. ac_cv_lib_dld_dld_link=no
  10024. fi
  10025. rm -f core conftest.err conftest.$ac_objext \
  10026. conftest$ac_exeext conftest.$ac_ext
  10027. LIBS=$ac_check_lib_save_LIBS
  10028. fi
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10030. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10031. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10032. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10033. fi
  10034. fi
  10035. fi
  10036. fi
  10037. fi
  10038. fi
  10039. ;;
  10040. esac
  10041. if test "x$lt_cv_dlopen" != xno; then
  10042. enable_dlopen=yes
  10043. else
  10044. enable_dlopen=no
  10045. fi
  10046. case $lt_cv_dlopen in
  10047. dlopen)
  10048. save_CPPFLAGS="$CPPFLAGS"
  10049. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10050. save_LDFLAGS="$LDFLAGS"
  10051. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10052. save_LIBS="$LIBS"
  10053. LIBS="$lt_cv_dlopen_libs $LIBS"
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10055. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10056. if test "${lt_cv_dlopen_self+set}" = set; then :
  10057. $as_echo_n "(cached) " >&6
  10058. else
  10059. if test "$cross_compiling" = yes; then :
  10060. lt_cv_dlopen_self=cross
  10061. else
  10062. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10063. lt_status=$lt_dlunknown
  10064. cat > conftest.$ac_ext <<_LT_EOF
  10065. #line 12352 "configure"
  10066. #include "confdefs.h"
  10067. #if HAVE_DLFCN_H
  10068. #include <dlfcn.h>
  10069. #endif
  10070. #include <stdio.h>
  10071. #ifdef RTLD_GLOBAL
  10072. # define LT_DLGLOBAL RTLD_GLOBAL
  10073. #else
  10074. # ifdef DL_GLOBAL
  10075. # define LT_DLGLOBAL DL_GLOBAL
  10076. # else
  10077. # define LT_DLGLOBAL 0
  10078. # endif
  10079. #endif
  10080. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10081. find out it does not work in some platform. */
  10082. #ifndef LT_DLLAZY_OR_NOW
  10083. # ifdef RTLD_LAZY
  10084. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10085. # else
  10086. # ifdef DL_LAZY
  10087. # define LT_DLLAZY_OR_NOW DL_LAZY
  10088. # else
  10089. # ifdef RTLD_NOW
  10090. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10091. # else
  10092. # ifdef DL_NOW
  10093. # define LT_DLLAZY_OR_NOW DL_NOW
  10094. # else
  10095. # define LT_DLLAZY_OR_NOW 0
  10096. # endif
  10097. # endif
  10098. # endif
  10099. # endif
  10100. #endif
  10101. /* When -fvisbility=hidden is used, assume the code has been annotated
  10102. correspondingly for the symbols needed. */
  10103. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10104. void fnord () __attribute__((visibility("default")));
  10105. #endif
  10106. void fnord () { int i=42; }
  10107. int main ()
  10108. {
  10109. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10110. int status = $lt_dlunknown;
  10111. if (self)
  10112. {
  10113. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10114. else
  10115. {
  10116. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10117. else puts (dlerror ());
  10118. }
  10119. /* dlclose (self); */
  10120. }
  10121. else
  10122. puts (dlerror ());
  10123. return status;
  10124. }
  10125. _LT_EOF
  10126. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10127. (eval $ac_link) 2>&5
  10128. ac_status=$?
  10129. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10130. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10131. (./conftest; exit; ) >&5 2>/dev/null
  10132. lt_status=$?
  10133. case x$lt_status in
  10134. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10135. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10136. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10137. esac
  10138. else :
  10139. # compilation failed
  10140. lt_cv_dlopen_self=no
  10141. fi
  10142. fi
  10143. rm -fr conftest*
  10144. fi
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10146. $as_echo "$lt_cv_dlopen_self" >&6; }
  10147. if test "x$lt_cv_dlopen_self" = xyes; then
  10148. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10150. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10151. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10152. $as_echo_n "(cached) " >&6
  10153. else
  10154. if test "$cross_compiling" = yes; then :
  10155. lt_cv_dlopen_self_static=cross
  10156. else
  10157. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10158. lt_status=$lt_dlunknown
  10159. cat > conftest.$ac_ext <<_LT_EOF
  10160. #line 12458 "configure"
  10161. #include "confdefs.h"
  10162. #if HAVE_DLFCN_H
  10163. #include <dlfcn.h>
  10164. #endif
  10165. #include <stdio.h>
  10166. #ifdef RTLD_GLOBAL
  10167. # define LT_DLGLOBAL RTLD_GLOBAL
  10168. #else
  10169. # ifdef DL_GLOBAL
  10170. # define LT_DLGLOBAL DL_GLOBAL
  10171. # else
  10172. # define LT_DLGLOBAL 0
  10173. # endif
  10174. #endif
  10175. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10176. find out it does not work in some platform. */
  10177. #ifndef LT_DLLAZY_OR_NOW
  10178. # ifdef RTLD_LAZY
  10179. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10180. # else
  10181. # ifdef DL_LAZY
  10182. # define LT_DLLAZY_OR_NOW DL_LAZY
  10183. # else
  10184. # ifdef RTLD_NOW
  10185. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10186. # else
  10187. # ifdef DL_NOW
  10188. # define LT_DLLAZY_OR_NOW DL_NOW
  10189. # else
  10190. # define LT_DLLAZY_OR_NOW 0
  10191. # endif
  10192. # endif
  10193. # endif
  10194. # endif
  10195. #endif
  10196. /* When -fvisbility=hidden is used, assume the code has been annotated
  10197. correspondingly for the symbols needed. */
  10198. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10199. void fnord () __attribute__((visibility("default")));
  10200. #endif
  10201. void fnord () { int i=42; }
  10202. int main ()
  10203. {
  10204. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10205. int status = $lt_dlunknown;
  10206. if (self)
  10207. {
  10208. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10209. else
  10210. {
  10211. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10212. else puts (dlerror ());
  10213. }
  10214. /* dlclose (self); */
  10215. }
  10216. else
  10217. puts (dlerror ());
  10218. return status;
  10219. }
  10220. _LT_EOF
  10221. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10222. (eval $ac_link) 2>&5
  10223. ac_status=$?
  10224. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10225. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10226. (./conftest; exit; ) >&5 2>/dev/null
  10227. lt_status=$?
  10228. case x$lt_status in
  10229. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10230. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10231. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10232. esac
  10233. else :
  10234. # compilation failed
  10235. lt_cv_dlopen_self_static=no
  10236. fi
  10237. fi
  10238. rm -fr conftest*
  10239. fi
  10240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10241. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10242. fi
  10243. CPPFLAGS="$save_CPPFLAGS"
  10244. LDFLAGS="$save_LDFLAGS"
  10245. LIBS="$save_LIBS"
  10246. ;;
  10247. esac
  10248. case $lt_cv_dlopen_self in
  10249. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10250. *) enable_dlopen_self=unknown ;;
  10251. esac
  10252. case $lt_cv_dlopen_self_static in
  10253. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10254. *) enable_dlopen_self_static=unknown ;;
  10255. esac
  10256. fi
  10257. striplib=
  10258. old_striplib=
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10260. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10261. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10262. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10263. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10265. $as_echo "yes" >&6; }
  10266. else
  10267. # FIXME - insert some real tests, host_os isn't really good enough
  10268. case $host_os in
  10269. darwin*)
  10270. if test -n "$STRIP" ; then
  10271. striplib="$STRIP -x"
  10272. old_striplib="$STRIP -S"
  10273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10274. $as_echo "yes" >&6; }
  10275. else
  10276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10277. $as_echo "no" >&6; }
  10278. fi
  10279. ;;
  10280. *)
  10281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10282. $as_echo "no" >&6; }
  10283. ;;
  10284. esac
  10285. fi
  10286. # Report which library types will actually be built
  10287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10288. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10290. $as_echo "$can_build_shared" >&6; }
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10292. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10293. test "$can_build_shared" = "no" && enable_shared=no
  10294. # On AIX, shared libraries and static libraries use the same namespace, and
  10295. # are all built from PIC.
  10296. case $host_os in
  10297. aix3*)
  10298. test "$enable_shared" = yes && enable_static=no
  10299. if test -n "$RANLIB"; then
  10300. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10301. postinstall_cmds='$RANLIB $lib'
  10302. fi
  10303. ;;
  10304. aix[4-9]*)
  10305. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10306. test "$enable_shared" = yes && enable_static=no
  10307. fi
  10308. ;;
  10309. esac
  10310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10311. $as_echo "$enable_shared" >&6; }
  10312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10313. $as_echo_n "checking whether to build static libraries... " >&6; }
  10314. # Make sure either enable_shared or enable_static is yes.
  10315. test "$enable_shared" = yes || enable_static=yes
  10316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10317. $as_echo "$enable_static" >&6; }
  10318. fi
  10319. ac_ext=c
  10320. ac_cpp='$CPP $CPPFLAGS'
  10321. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10322. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10323. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10324. CC="$lt_save_CC"
  10325. ac_config_commands="$ac_config_commands libtool"
  10326. # Only expand once:
  10327. . ${srcdir}/../../bfd/configure.host
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10329. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10330. # Check whether --enable-maintainer-mode was given.
  10331. if test "${enable_maintainer_mode+set}" = set; then :
  10332. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10333. else
  10334. USE_MAINTAINER_MODE=no
  10335. fi
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10337. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10338. if test $USE_MAINTAINER_MODE = yes; then
  10339. MAINTAINER_MODE_TRUE=
  10340. MAINTAINER_MODE_FALSE='#'
  10341. else
  10342. MAINTAINER_MODE_TRUE='#'
  10343. MAINTAINER_MODE_FALSE=
  10344. fi
  10345. MAINT=$MAINTAINER_MODE_TRUE
  10346. # Check whether --enable-sim-bswap was given.
  10347. if test "${enable_sim_bswap+set}" = set; then :
  10348. enableval=$enable_sim_bswap; case "${enableval}" in
  10349. yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
  10350. no) sim_bswap="-DWITH_BSWAP=0";;
  10351. *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
  10352. esac
  10353. if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
  10354. echo "Setting bswap flags = $sim_bswap" 6>&1
  10355. fi
  10356. else
  10357. sim_bswap=""
  10358. fi
  10359. # Check whether --enable-sim-cflags was given.
  10360. if test "${enable_sim_cflags+set}" = set; then :
  10361. enableval=$enable_sim_cflags; case "${enableval}" in
  10362. yes) sim_cflags="-O2 -fomit-frame-pointer";;
  10363. trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
  10364. no) sim_cflags="";;
  10365. *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10366. esac
  10367. if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
  10368. echo "Setting sim cflags = $sim_cflags" 6>&1
  10369. fi
  10370. else
  10371. sim_cflags=""
  10372. fi
  10373. # Check whether --enable-sim-debug was given.
  10374. if test "${enable_sim_debug+set}" = set; then :
  10375. enableval=$enable_sim_debug; case "${enableval}" in
  10376. yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
  10377. no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
  10378. *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
  10379. esac
  10380. if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
  10381. echo "Setting sim debug = $sim_debug" 6>&1
  10382. fi
  10383. else
  10384. sim_debug=""
  10385. fi
  10386. # Check whether --enable-sim-stdio was given.
  10387. if test "${enable_sim_stdio+set}" = set; then :
  10388. enableval=$enable_sim_stdio; case "${enableval}" in
  10389. yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
  10390. no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
  10391. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
  10392. esac
  10393. if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
  10394. echo "Setting stdio flags = $sim_stdio" 6>&1
  10395. fi
  10396. else
  10397. sim_stdio=""
  10398. fi
  10399. # Check whether --enable-sim-trace was given.
  10400. if test "${enable_sim_trace+set}" = set; then :
  10401. enableval=$enable_sim_trace; case "${enableval}" in
  10402. yes) sim_trace="-DWITH_TRACE=-1";;
  10403. no) sim_trace="-DWITH_TRACE=0";;
  10404. [-0-9]*)
  10405. sim_trace="-DWITH_TRACE='(${enableval})'";;
  10406. [[:lower:]]*)
  10407. sim_trace=""
  10408. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10409. if test x"$sim_trace" = x; then
  10410. sim_trace="-DWITH_TRACE='(TRACE_$x"
  10411. else
  10412. sim_trace="${sim_trace}|TRACE_$x"
  10413. fi
  10414. done
  10415. sim_trace="$sim_trace)'" ;;
  10416. esac
  10417. if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
  10418. echo "Setting sim trace = $sim_trace" 6>&1
  10419. fi
  10420. else
  10421. sim_trace=""
  10422. fi
  10423. # Check whether --enable-sim-profile was given.
  10424. if test "${enable_sim_profile+set}" = set; then :
  10425. enableval=$enable_sim_profile; case "${enableval}" in
  10426. yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
  10427. no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
  10428. [-0-9]*)
  10429. sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
  10430. [a-z]*)
  10431. sim_profile=""
  10432. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10433. if test x"$sim_profile" = x; then
  10434. sim_profile="-DWITH_PROFILE='(PROFILE_$x"
  10435. else
  10436. sim_profile="${sim_profile}|PROFILE_$x"
  10437. fi
  10438. done
  10439. sim_profile="$sim_profile)'" ;;
  10440. esac
  10441. if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
  10442. echo "Setting sim profile = $sim_profile" 6>&1
  10443. fi
  10444. else
  10445. sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
  10446. fi
  10447. # Check whether --with-pkgversion was given.
  10448. if test "${with_pkgversion+set}" = set; then :
  10449. withval=$with_pkgversion; case "$withval" in
  10450. yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
  10451. no) PKGVERSION= ;;
  10452. *) PKGVERSION="($withval) " ;;
  10453. esac
  10454. else
  10455. PKGVERSION="(SIM) "
  10456. fi
  10457. # Check whether --with-bugurl was given.
  10458. if test "${with_bugurl+set}" = set; then :
  10459. withval=$with_bugurl; case "$withval" in
  10460. yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
  10461. no) BUGURL=
  10462. ;;
  10463. *) BUGURL="$withval"
  10464. ;;
  10465. esac
  10466. else
  10467. BUGURL="http://www.gnu.org/software/gdb/bugs/"
  10468. fi
  10469. case ${BUGURL} in
  10470. "")
  10471. REPORT_BUGS_TO=
  10472. REPORT_BUGS_TEXI=
  10473. ;;
  10474. *)
  10475. REPORT_BUGS_TO="<$BUGURL>"
  10476. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  10477. ;;
  10478. esac;
  10479. cat >>confdefs.h <<_ACEOF
  10480. #define PKGVERSION "$PKGVERSION"
  10481. _ACEOF
  10482. cat >>confdefs.h <<_ACEOF
  10483. #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
  10484. _ACEOF
  10485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  10486. $as_echo_n "checking return type of signal handlers... " >&6; }
  10487. if test "${ac_cv_type_signal+set}" = set; then :
  10488. $as_echo_n "(cached) " >&6
  10489. else
  10490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10491. /* end confdefs.h. */
  10492. #include <sys/types.h>
  10493. #include <signal.h>
  10494. int
  10495. main ()
  10496. {
  10497. return *(signal (0, 0)) (0) == 1;
  10498. ;
  10499. return 0;
  10500. }
  10501. _ACEOF
  10502. if ac_fn_c_try_compile "$LINENO"; then :
  10503. ac_cv_type_signal=int
  10504. else
  10505. ac_cv_type_signal=void
  10506. fi
  10507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10508. fi
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  10510. $as_echo "$ac_cv_type_signal" >&6; }
  10511. cat >>confdefs.h <<_ACEOF
  10512. #define RETSIGTYPE $ac_cv_type_signal
  10513. _ACEOF
  10514. sim_link_files=
  10515. sim_link_links=
  10516. # targ-vals.def points to the libc macro description file.
  10517. case "${target}" in
  10518. *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
  10519. esac
  10520. sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
  10521. sim_link_links="${sim_link_links} targ-vals.def"
  10522. default_sim_inline=""
  10523. # Check whether --enable-sim-inline was given.
  10524. if test "${enable_sim_inline+set}" = set; then :
  10525. enableval=$enable_sim_inline; sim_inline=""
  10526. case "$enableval" in
  10527. no) sim_inline="-DDEFAULT_INLINE=0";;
  10528. 0) sim_inline="-DDEFAULT_INLINE=0";;
  10529. yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
  10530. 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
  10531. *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10532. new_flag=""
  10533. case "$x" in
  10534. *_INLINE=*) new_flag="-D$x";;
  10535. *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
  10536. *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
  10537. *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
  10538. esac
  10539. if test x"$sim_inline" = x""; then
  10540. sim_inline="$new_flag"
  10541. else
  10542. sim_inline="$sim_inline $new_flag"
  10543. fi
  10544. done;;
  10545. esac
  10546. if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
  10547. echo "Setting inline flags = $sim_inline" 6>&1
  10548. fi
  10549. else
  10550. if test "x$cross_compiling" = "xno"; then
  10551. if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
  10552. sim_inline="${default_sim_inline}"
  10553. if test x"$silent" != x"yes"; then
  10554. echo "Setting inline flags = $sim_inline" 6>&1
  10555. fi
  10556. else
  10557. sim_inline=""
  10558. fi
  10559. else
  10560. sim_inline="-DDEFAULT_INLINE=0"
  10561. fi
  10562. fi
  10563. wire_alignment="NONSTRICT_ALIGNMENT"
  10564. default_alignment=""
  10565. # Check whether --enable-sim-alignment was given.
  10566. if test "${enable_sim_alignment+set}" = set; then :
  10567. enableval=$enable_sim_alignment; case "${enableval}" in
  10568. strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
  10569. nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
  10570. forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
  10571. yes) if test x"$wire_alignment" != x; then
  10572. sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
  10573. else
  10574. if test x"$default_alignment" != x; then
  10575. sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
  10576. else
  10577. echo "No hard-wired alignment for target $target" 1>&6
  10578. sim_alignment="-DWITH_ALIGNMENT=0"
  10579. fi
  10580. fi;;
  10581. no) if test x"$default_alignment" != x; then
  10582. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
  10583. else
  10584. if test x"$wire_alignment" != x; then
  10585. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
  10586. else
  10587. echo "No default alignment for target $target" 1>&6
  10588. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
  10589. fi
  10590. fi;;
  10591. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
  10592. esac
  10593. if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
  10594. echo "Setting alignment flags = $sim_alignment" 6>&1
  10595. fi
  10596. else
  10597. if test x"$default_alignment" != x; then
  10598. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
  10599. else
  10600. if test x"$wire_alignment" != x; then
  10601. sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
  10602. else
  10603. sim_alignment=
  10604. fi
  10605. fi
  10606. fi
  10607. # Check whether --enable-sim-hostendian was given.
  10608. if test "${enable_sim_hostendian+set}" = set; then :
  10609. enableval=$enable_sim_hostendian; case "${enableval}" in
  10610. no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
  10611. b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
  10612. l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
  10613. *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
  10614. esac
  10615. if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
  10616. echo "Setting hostendian flags = $sim_hostendian" 6>&1
  10617. fi
  10618. else
  10619. if test "x$cross_compiling" = "xno"; then
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  10621. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  10622. if test "${ac_cv_c_bigendian+set}" = set; then :
  10623. $as_echo_n "(cached) " >&6
  10624. else
  10625. ac_cv_c_bigendian=unknown
  10626. # See if we're dealing with a universal compiler.
  10627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10628. /* end confdefs.h. */
  10629. #ifndef __APPLE_CC__
  10630. not a universal capable compiler
  10631. #endif
  10632. typedef int dummy;
  10633. _ACEOF
  10634. if ac_fn_c_try_compile "$LINENO"; then :
  10635. # Check for potential -arch flags. It is not universal unless
  10636. # there are at least two -arch flags with different values.
  10637. ac_arch=
  10638. ac_prev=
  10639. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  10640. if test -n "$ac_prev"; then
  10641. case $ac_word in
  10642. i?86 | x86_64 | ppc | ppc64)
  10643. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  10644. ac_arch=$ac_word
  10645. else
  10646. ac_cv_c_bigendian=universal
  10647. break
  10648. fi
  10649. ;;
  10650. esac
  10651. ac_prev=
  10652. elif test "x$ac_word" = "x-arch"; then
  10653. ac_prev=arch
  10654. fi
  10655. done
  10656. fi
  10657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10658. if test $ac_cv_c_bigendian = unknown; then
  10659. # See if sys/param.h defines the BYTE_ORDER macro.
  10660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10661. /* end confdefs.h. */
  10662. #include <sys/types.h>
  10663. #include <sys/param.h>
  10664. int
  10665. main ()
  10666. {
  10667. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  10668. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  10669. && LITTLE_ENDIAN)
  10670. bogus endian macros
  10671. #endif
  10672. ;
  10673. return 0;
  10674. }
  10675. _ACEOF
  10676. if ac_fn_c_try_compile "$LINENO"; then :
  10677. # It does; now see whether it defined to BIG_ENDIAN or not.
  10678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10679. /* end confdefs.h. */
  10680. #include <sys/types.h>
  10681. #include <sys/param.h>
  10682. int
  10683. main ()
  10684. {
  10685. #if BYTE_ORDER != BIG_ENDIAN
  10686. not big endian
  10687. #endif
  10688. ;
  10689. return 0;
  10690. }
  10691. _ACEOF
  10692. if ac_fn_c_try_compile "$LINENO"; then :
  10693. ac_cv_c_bigendian=yes
  10694. else
  10695. ac_cv_c_bigendian=no
  10696. fi
  10697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10698. fi
  10699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10700. fi
  10701. if test $ac_cv_c_bigendian = unknown; then
  10702. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  10703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10704. /* end confdefs.h. */
  10705. #include <limits.h>
  10706. int
  10707. main ()
  10708. {
  10709. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  10710. bogus endian macros
  10711. #endif
  10712. ;
  10713. return 0;
  10714. }
  10715. _ACEOF
  10716. if ac_fn_c_try_compile "$LINENO"; then :
  10717. # It does; now see whether it defined to _BIG_ENDIAN or not.
  10718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10719. /* end confdefs.h. */
  10720. #include <limits.h>
  10721. int
  10722. main ()
  10723. {
  10724. #ifndef _BIG_ENDIAN
  10725. not big endian
  10726. #endif
  10727. ;
  10728. return 0;
  10729. }
  10730. _ACEOF
  10731. if ac_fn_c_try_compile "$LINENO"; then :
  10732. ac_cv_c_bigendian=yes
  10733. else
  10734. ac_cv_c_bigendian=no
  10735. fi
  10736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10737. fi
  10738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10739. fi
  10740. if test $ac_cv_c_bigendian = unknown; then
  10741. # Compile a test program.
  10742. if test "$cross_compiling" = yes; then :
  10743. # Try to guess by grepping values from an object file.
  10744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10745. /* end confdefs.h. */
  10746. short int ascii_mm[] =
  10747. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  10748. short int ascii_ii[] =
  10749. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  10750. int use_ascii (int i) {
  10751. return ascii_mm[i] + ascii_ii[i];
  10752. }
  10753. short int ebcdic_ii[] =
  10754. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  10755. short int ebcdic_mm[] =
  10756. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  10757. int use_ebcdic (int i) {
  10758. return ebcdic_mm[i] + ebcdic_ii[i];
  10759. }
  10760. extern int foo;
  10761. int
  10762. main ()
  10763. {
  10764. return use_ascii (foo) == use_ebcdic (foo);
  10765. ;
  10766. return 0;
  10767. }
  10768. _ACEOF
  10769. if ac_fn_c_try_compile "$LINENO"; then :
  10770. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  10771. ac_cv_c_bigendian=yes
  10772. fi
  10773. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  10774. if test "$ac_cv_c_bigendian" = unknown; then
  10775. ac_cv_c_bigendian=no
  10776. else
  10777. # finding both strings is unlikely to happen, but who knows?
  10778. ac_cv_c_bigendian=unknown
  10779. fi
  10780. fi
  10781. fi
  10782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10783. else
  10784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10785. /* end confdefs.h. */
  10786. $ac_includes_default
  10787. int
  10788. main ()
  10789. {
  10790. /* Are we little or big endian? From Harbison&Steele. */
  10791. union
  10792. {
  10793. long int l;
  10794. char c[sizeof (long int)];
  10795. } u;
  10796. u.l = 1;
  10797. return u.c[sizeof (long int) - 1] == 1;
  10798. ;
  10799. return 0;
  10800. }
  10801. _ACEOF
  10802. if ac_fn_c_try_run "$LINENO"; then :
  10803. ac_cv_c_bigendian=no
  10804. else
  10805. ac_cv_c_bigendian=yes
  10806. fi
  10807. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10808. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10809. fi
  10810. fi
  10811. fi
  10812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  10813. $as_echo "$ac_cv_c_bigendian" >&6; }
  10814. case $ac_cv_c_bigendian in #(
  10815. yes)
  10816. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  10817. ;; #(
  10818. no)
  10819. ;; #(
  10820. universal)
  10821. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  10822. ;; #(
  10823. *)
  10824. as_fn_error "unknown endianness
  10825. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  10826. esac
  10827. if test $ac_cv_c_bigendian = yes; then
  10828. sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
  10829. else
  10830. sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
  10831. fi
  10832. else
  10833. sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
  10834. fi
  10835. fi
  10836. # Check whether --enable-werror was given.
  10837. if test "${enable_werror+set}" = set; then :
  10838. enableval=$enable_werror; case "${enableval}" in
  10839. yes | y) ERROR_ON_WARNING="yes" ;;
  10840. no | n) ERROR_ON_WARNING="no" ;;
  10841. *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  10842. esac
  10843. fi
  10844. # Enable -Werror by default when using gcc
  10845. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  10846. ERROR_ON_WARNING=yes
  10847. fi
  10848. WERROR_CFLAGS=""
  10849. if test "${ERROR_ON_WARNING}" = yes ; then
  10850. # NOTE: Disabled in the sim dir due to most sims generating warnings.
  10851. # WERROR_CFLAGS="-Werror"
  10852. true
  10853. fi
  10854. build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
  10855. -Wpointer-sign \
  10856. -Wno-unused -Wunused-value -Wunused-function \
  10857. -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
  10858. -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
  10859. -Wold-style-declaration -Wold-style-definition"
  10860. # Enable -Wno-format by default when using gcc on mingw since many
  10861. # GCC versions complain about %I64.
  10862. case "${host}" in
  10863. *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
  10864. *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
  10865. esac
  10866. # Check whether --enable-build-warnings was given.
  10867. if test "${enable_build_warnings+set}" = set; then :
  10868. enableval=$enable_build_warnings; case "${enableval}" in
  10869. yes) ;;
  10870. no) build_warnings="-w";;
  10871. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10872. build_warnings="${build_warnings} ${t}";;
  10873. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10874. build_warnings="${t} ${build_warnings}";;
  10875. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10876. esac
  10877. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  10878. echo "Setting compiler warning flags = $build_warnings" 6>&1
  10879. fi
  10880. fi
  10881. # Check whether --enable-sim-build-warnings was given.
  10882. if test "${enable_sim_build_warnings+set}" = set; then :
  10883. enableval=$enable_sim_build_warnings; case "${enableval}" in
  10884. yes) ;;
  10885. no) build_warnings="-w";;
  10886. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10887. build_warnings="${build_warnings} ${t}";;
  10888. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10889. build_warnings="${t} ${build_warnings}";;
  10890. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10891. esac
  10892. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  10893. echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
  10894. fi
  10895. fi
  10896. WARN_CFLAGS=""
  10897. if test "x${build_warnings}" != x -a "x$GCC" = xyes
  10898. then
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
  10900. $as_echo_n "checking compiler warning flags... " >&6; }
  10901. # Separate out the -Werror flag as some files just cannot be
  10902. # compiled with it enabled.
  10903. for w in ${build_warnings}; do
  10904. case $w in
  10905. -Werr*) WERROR_CFLAGS=-Werror ;;
  10906. *) # Check that GCC accepts it
  10907. saved_CFLAGS="$CFLAGS"
  10908. CFLAGS="$CFLAGS $w"
  10909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10910. /* end confdefs.h. */
  10911. int
  10912. main ()
  10913. {
  10914. ;
  10915. return 0;
  10916. }
  10917. _ACEOF
  10918. if ac_fn_c_try_compile "$LINENO"; then :
  10919. WARN_CFLAGS="${WARN_CFLAGS} $w"
  10920. fi
  10921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10922. CFLAGS="$saved_CFLAGS"
  10923. esac
  10924. done
  10925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
  10926. $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
  10927. fi
  10928. default_sim_reserved_bits="1"
  10929. # Check whether --enable-sim-reserved-bits was given.
  10930. if test "${enable_sim_reserved_bits+set}" = set; then :
  10931. enableval=$enable_sim_reserved_bits; case "${enableval}" in
  10932. yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
  10933. no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
  10934. *) as_fn_error "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
  10935. esac
  10936. if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
  10937. echo "Setting reserved flags = $sim_reserved_bits" 6>&1
  10938. fi
  10939. else
  10940. sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
  10941. fi
  10942. # DEPRECATED
  10943. #
  10944. # Instead of defining a `subtarget' macro, code should be checking
  10945. # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
  10946. # in question.
  10947. #
  10948. case "${target}" in
  10949. mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
  10950. mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
  10951. mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
  10952. mips*-mti-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
  10953. mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
  10954. mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
  10955. *) SIM_SUBTARGET="";;
  10956. esac
  10957. #
  10958. # Select the byte order of the target
  10959. #
  10960. mips_endian=
  10961. default_endian=
  10962. case "${target}" in
  10963. mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
  10964. mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
  10965. mips64*-*-*) default_endian=BIG_ENDIAN ;;
  10966. mips16*-*-*) default_endian=BIG_ENDIAN ;;
  10967. mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
  10968. mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
  10969. mips*-*-*) default_endian=BIG_ENDIAN ;;
  10970. *) default_endian=BIG_ENDIAN ;;
  10971. esac
  10972. wire_endian="$mips_endian"
  10973. default_endian="$default_endian"
  10974. # Check whether --enable-sim-endian was given.
  10975. if test "${enable_sim_endian+set}" = set; then :
  10976. enableval=$enable_sim_endian; case "${enableval}" in
  10977. b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
  10978. l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
  10979. yes) if test x"$wire_endian" != x; then
  10980. sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
  10981. else
  10982. if test x"$default_endian" != x; then
  10983. sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
  10984. else
  10985. echo "No hard-wired endian for target $target" 1>&6
  10986. sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
  10987. fi
  10988. fi;;
  10989. no) if test x"$default_endian" != x; then
  10990. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
  10991. else
  10992. if test x"$wire_endian" != x; then
  10993. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
  10994. else
  10995. echo "No default endian for target $target" 1>&6
  10996. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
  10997. fi
  10998. fi;;
  10999. *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
  11000. esac
  11001. if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
  11002. echo "Setting endian flags = $sim_endian" 6>&1
  11003. fi
  11004. else
  11005. if test x"$default_endian" != x; then
  11006. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
  11007. else
  11008. if test x"$wire_endian" != x; then
  11009. sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
  11010. else
  11011. sim_endian=
  11012. fi
  11013. fi
  11014. fi
  11015. #
  11016. # Select the bitsize of the target
  11017. #
  11018. mips_addr_bitsize=
  11019. case "${target}" in
  11020. mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
  11021. mips*-mti-elf*) mips_bitsize=64 ; mips_msb=63 ;;
  11022. mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
  11023. mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
  11024. mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
  11025. mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
  11026. mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
  11027. *) mips_bitsize=64 ; mips_msb=63 ;;
  11028. esac
  11029. wire_word_bitsize="$mips_bitsize"
  11030. wire_word_msb="$mips_msb"
  11031. wire_address_bitsize="$mips_addr_bitsize"
  11032. wire_cell_bitsize=""
  11033. # Check whether --enable-sim-bitsize was given.
  11034. if test "${enable_sim_bitsize+set}" = set; then :
  11035. enableval=$enable_sim_bitsize; sim_bitsize=
  11036. case "${enableval}" in
  11037. 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
  11038. 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
  11039. 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
  11040. 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
  11041. 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
  11042. sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
  11043. else
  11044. sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
  11045. fi ;;
  11046. 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
  11047. sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
  11048. else
  11049. sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
  11050. fi ;;
  11051. *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
  11052. esac
  11053. # address bitsize
  11054. tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
  11055. case x"${tmp}" in
  11056. x ) ;;
  11057. x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
  11058. x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
  11059. * ) as_fn_error "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
  11060. esac
  11061. # cell bitsize
  11062. tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
  11063. case x"${tmp}" in
  11064. x ) ;;
  11065. x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
  11066. x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
  11067. * ) as_fn_error "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
  11068. esac
  11069. if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
  11070. echo "Setting bitsize flags = $sim_bitsize" 6>&1
  11071. fi
  11072. else
  11073. sim_bitsize=""
  11074. if test x"$wire_word_bitsize" != x; then
  11075. sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
  11076. fi
  11077. if test x"$wire_word_msb" != x; then
  11078. sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
  11079. fi
  11080. if test x"$wire_address_bitsize" != x; then
  11081. sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
  11082. fi
  11083. if test x"$wire_cell_bitsize" != x; then
  11084. sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
  11085. fi
  11086. fi
  11087. #
  11088. # Select the floating hardware support of the target
  11089. #
  11090. mips_fpu=HARDWARE_FLOATING_POINT
  11091. mips_fpu_bitsize=
  11092. case "${target}" in
  11093. mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
  11094. mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
  11095. mips*-mti-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
  11096. mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
  11097. mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
  11098. mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
  11099. mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
  11100. mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
  11101. *) mips_fpu=HARD_FLOATING_POINT ;;
  11102. esac
  11103. default_sim_float="$mips_fpu"
  11104. default_sim_float_bitsize="$mips_fpu_bitsize"
  11105. # Check whether --enable-sim-float was given.
  11106. if test "${enable_sim_float+set}" = set; then :
  11107. enableval=$enable_sim_float; case "${enableval}" in
  11108. yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
  11109. no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
  11110. 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
  11111. 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
  11112. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
  11113. esac
  11114. if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
  11115. echo "Setting float flags = $sim_float" 6>&1
  11116. fi
  11117. else
  11118. sim_float=
  11119. if test x"${default_sim_float}" != x""; then
  11120. sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
  11121. fi
  11122. if test x"${default_sim_float_bitsize}" != x""; then
  11123. sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
  11124. fi
  11125. fi
  11126. #
  11127. # Select the level of SMP support
  11128. #
  11129. case "${target}" in
  11130. *) mips_smp=0 ;;
  11131. esac
  11132. default_sim_smp="$mips_smp"
  11133. # Check whether --enable-sim-smp was given.
  11134. if test "${enable_sim_smp+set}" = set; then :
  11135. enableval=$enable_sim_smp; case "${enableval}" in
  11136. yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
  11137. no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
  11138. *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
  11139. esac
  11140. if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
  11141. echo "Setting smp flags = $sim_smp" 6>&1
  11142. fi
  11143. else
  11144. sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
  11145. if test x"$silent" != x"yes"; then
  11146. echo "Setting smp flags = $sim_smp" 6>&1
  11147. fi
  11148. fi
  11149. #
  11150. # Select the IGEN architecture
  11151. #
  11152. sim_gen=IGEN
  11153. sim_igen_machine="-M mipsIV"
  11154. sim_m16_machine="-M mips16,mipsIII"
  11155. sim_igen_filter="32,64,f"
  11156. sim_m16_filter="16"
  11157. sim_mach_default="mips8000"
  11158. case "${target}" in
  11159. mips*tx39*) sim_gen=IGEN
  11160. sim_igen_filter="32,f"
  11161. sim_igen_machine="-M r3900"
  11162. ;;
  11163. mips64vr43*-*-*) sim_gen=IGEN
  11164. sim_igen_machine="-M mipsIV"
  11165. sim_mach_default="mips8000"
  11166. ;;
  11167. mips64vr5*-*-*) sim_gen=IGEN
  11168. sim_igen_machine="-M vr5000"
  11169. sim_mach_default="mips5000"
  11170. ;;
  11171. mips64vr41*) sim_gen=M16
  11172. sim_igen_machine="-M vr4100"
  11173. sim_m16_machine="-M vr4100"
  11174. sim_igen_filter="32,64,f"
  11175. sim_m16_filter="16"
  11176. sim_mach_default="mips4100"
  11177. ;;
  11178. mips64vr-*-* | mips64vrel-*-*)
  11179. sim_gen=MULTI
  11180. sim_multi_configs="\
  11181. vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
  11182. vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
  11183. vr5000:mipsIV:32,64,f:mips4300,mips5000\
  11184. vr5400:mipsIV,vr5400:32,64,f:mips5400\
  11185. vr5500:mipsIV,vr5500:32,64,f:mips5500"
  11186. sim_multi_default=mips5000
  11187. ;;
  11188. mips*-sde-elf* | mips*-mti-elf*)
  11189. sim_gen=MULTI
  11190. sim_multi_configs="\
  11191. micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
  11192. mips64r2:mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,64,f:mipsisa64r2"
  11193. sim_multi_default=mipsisa64r2
  11194. ;;
  11195. mips64*-*-*) sim_igen_filter="32,64,f"
  11196. sim_gen=IGEN
  11197. ;;
  11198. mips16*-*-*) sim_gen=M16
  11199. sim_igen_filter="32,64,f"
  11200. sim_m16_filter="16"
  11201. ;;
  11202. mipsisa32r2*-*-*) sim_gen=MULTI
  11203. sim_multi_configs="\
  11204. micromips:micromips32,micromipsdsp:32,f:mips_micromips\
  11205. mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
  11206. sim_multi_default=mipsisa32r2
  11207. ;;
  11208. mipsisa32*-*-*) sim_gen=M16
  11209. sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
  11210. sim_m16_machine="-M mips16,mips16e,mips32"
  11211. sim_igen_filter="32,f"
  11212. sim_mach_default="mipsisa32"
  11213. ;;
  11214. mipsisa64r2*-*-*) sim_gen=M16
  11215. sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
  11216. sim_m16_machine="-M mips16,mips16e,mips64r2"
  11217. sim_igen_filter="32,64,f"
  11218. sim_mach_default="mipsisa64r2"
  11219. ;;
  11220. mipsisa64sb1*-*-*) sim_gen=IGEN
  11221. sim_igen_machine="-M mips64,mips3d,sb1"
  11222. sim_igen_filter="32,64,f"
  11223. sim_mach_default="mips_sb1"
  11224. ;;
  11225. mipsisa64*-*-*) sim_gen=M16
  11226. sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
  11227. sim_m16_machine="-M mips16,mips16e,mips64"
  11228. sim_igen_filter="32,64,f"
  11229. sim_mach_default="mipsisa64"
  11230. ;;
  11231. mips*lsi*) sim_gen=M16
  11232. sim_igen_machine="-M mipsIII,mips16"
  11233. sim_m16_machine="-M mips16,mipsIII"
  11234. sim_igen_filter="32,f"
  11235. sim_m16_filter="16"
  11236. sim_mach_default="mips4000"
  11237. ;;
  11238. mips*-*-*) sim_gen=IGEN
  11239. sim_igen_filter="32,f"
  11240. ;;
  11241. esac
  11242. # The MULTI generator can combine several simulation engines into one.
  11243. # executable. A configuration which uses the MULTI should set two
  11244. # variables: ${sim_multi_configs} and ${sim_multi_default}.
  11245. #
  11246. # ${sim_multi_configs} is the list of engines to build. Each
  11247. # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
  11248. # where:
  11249. #
  11250. # - NAME is a C-compatible prefix for the engine,
  11251. # - MACHINE is a -M argument,
  11252. # - FILTER is a -F argument, and
  11253. # - BFDMACHS is a comma-separated list of bfd machines that the
  11254. # simulator can run.
  11255. #
  11256. # Each entry will have a separate simulation engine whose prefix is
  11257. # m32<NAME>. If the machine list includes "mips16", there will also
  11258. # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
  11259. # generated using the same machine list as the 32-bit version,
  11260. # but the filter will be "16" instead of FILTER.
  11261. #
  11262. # The simulator compares the bfd mach against BFDMACHS to decide
  11263. # which engine to use. Entries in BFDMACHS should be bfd_mach
  11264. # values with "bfd_mach_" removed. ${sim_multi_default} says
  11265. # which entry should be the default.
  11266. if test ${sim_gen} = MULTI; then
  11267. # Simple sanity check.
  11268. if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
  11269. as_fn_error "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
  11270. fi
  11271. # Start in a known state.
  11272. rm -f multi-include.h multi-run.c
  11273. sim_multi_flags=
  11274. sim_multi_src=
  11275. sim_multi_obj=
  11276. sim_multi_igen_configs=
  11277. sim_seen_default=no
  11278. cat << __EOF__ > multi-run.c
  11279. /* Main entry point for MULTI simulators.
  11280. Copyright (C) 2003-2015 Free Software Foundation, Inc.
  11281. This program is free software; you can redistribute it and/or modify
  11282. it under the terms of the GNU General Public License as published by
  11283. the Free Software Foundation; either version 3 of the License, or
  11284. (at your option) any later version.
  11285. This program is distributed in the hope that it will be useful,
  11286. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11287. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11288. GNU General Public License for more details.
  11289. You should have received a copy of the GNU General Public License
  11290. along with this program. If not, see <http://www.gnu.org/licenses/>.
  11291. --
  11292. This file was generated by sim/mips/configure. */
  11293. #include "sim-main.h"
  11294. #include "multi-include.h"
  11295. #include "elf-bfd.h"
  11296. #include "elf/mips.h"
  11297. #define SD sd
  11298. #define CPU cpu
  11299. void
  11300. sim_engine_run (SIM_DESC sd,
  11301. int next_cpu_nr,
  11302. int nr_cpus,
  11303. int signal) /* ignore */
  11304. {
  11305. int mach;
  11306. if (STATE_ARCHITECTURE (sd) == NULL)
  11307. mach = bfd_mach_${sim_multi_default};
  11308. else if (elf_elfheader (sd->base.prog_bfd)->e_flags
  11309. & EF_MIPS_ARCH_ASE_MICROMIPS)
  11310. mach = bfd_mach_mips_micromips;
  11311. else
  11312. mach = STATE_ARCHITECTURE (SD)->mach;
  11313. switch (mach)
  11314. {
  11315. __EOF__
  11316. for fc in ${sim_multi_configs}; do
  11317. # Split up the entry. ${c} contains the first three elements.
  11318. # Note: outer sqaure brackets are m4 quotes.
  11319. c=`echo ${fc} | sed 's/:[^:]*$//'`
  11320. bfdmachs=`echo ${fc} | sed 's/.*://'`
  11321. name=`echo ${c} | sed 's/:.*//'`
  11322. machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
  11323. filter=`echo ${c} | sed 's/.*://'`
  11324. # Build the following lists:
  11325. #
  11326. # sim_multi_flags: all -M and -F flags used by the simulator
  11327. # sim_multi_src: all makefile-generated source files
  11328. # sim_multi_obj: the objects for ${sim_multi_src}
  11329. # sim_multi_igen_configs: igen configuration strings.
  11330. #
  11331. # Each entry in ${sim_multi_igen_configs} is a prefix (m32
  11332. # or m16) followed by the NAME, MACHINE and FILTER part of
  11333. # the ${sim_multi_configs} entry.
  11334. sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
  11335. # Check whether special handling is needed.
  11336. case ${c} in
  11337. *:*mips16*:*)
  11338. # Run igen twice, once for normal mode and once for mips16.
  11339. ws="m32 m16"
  11340. # The top-level function for the mips16 simulator is
  11341. # in a file m16${name}_run.c, generated by the
  11342. # tmp-run-multi Makefile rule.
  11343. sim_multi_src="${sim_multi_src} m16${name}_run.c"
  11344. sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
  11345. sim_multi_flags="${sim_multi_flags} -F 16"
  11346. ;;
  11347. *:*micromips32*:*)
  11348. # Run igen thrice, once for micromips32, once for micromips16,
  11349. # and once for m32.
  11350. ws="micromips_m32 micromips16 micromips32"
  11351. # The top-level function for the micromips simulator is
  11352. # in a file micromips${name}_run.c, generated by the
  11353. # tmp-run-multi Makefile rule.
  11354. sim_multi_src="${sim_multi_src} micromips${name}_run.c"
  11355. sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
  11356. sim_multi_flags="${sim_multi_flags} -F 16,32"
  11357. ;;
  11358. *:*micromips64*:*)
  11359. # Run igen thrice, once for micromips64, once for micromips16,
  11360. # and once for m64.
  11361. ws="micromips_m64 micromips16 micromips64"
  11362. # The top-level function for the micromips simulator is
  11363. # in a file micromips${name}_run.c, generated by the
  11364. # tmp-run-multi Makefile rule.
  11365. sim_multi_src="${sim_multi_src} micromips${name}_run.c"
  11366. sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
  11367. sim_multi_flags="${sim_multi_flags} -F 16,32,64"
  11368. ;;
  11369. *)
  11370. ws=m32
  11371. ;;
  11372. esac
  11373. # Now add the list of igen-generated files to ${sim_multi_src}
  11374. # and ${sim_multi_obj}.
  11375. for w in ${ws}; do
  11376. for base in engine icache idecode model semantics support; do
  11377. sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
  11378. sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
  11379. sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
  11380. done
  11381. sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
  11382. done
  11383. # Add an include for the engine.h file. This file declares the
  11384. # top-level foo_engine_run() function.
  11385. echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
  11386. # Add case statements for this engine to sim_engine_run().
  11387. for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
  11388. echo " case bfd_mach_${mach}:" >> multi-run.c
  11389. if test ${mach} = ${sim_multi_default}; then
  11390. echo " default:" >> multi-run.c
  11391. sim_seen_default=yes
  11392. fi
  11393. done
  11394. echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
  11395. >> multi-run.c
  11396. echo " break;" >> multi-run.c
  11397. done
  11398. # Check whether we added a 'default:' label.
  11399. if test ${sim_seen_default} = no; then
  11400. as_fn_error "Error in configure.ac: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
  11401. fi
  11402. cat << __EOF__ >> multi-run.c
  11403. }
  11404. }
  11405. int
  11406. mips_mach_multi (SIM_DESC sd)
  11407. {
  11408. if (STATE_ARCHITECTURE (sd) == NULL)
  11409. return bfd_mach_${sim_multi_default};
  11410. switch (STATE_ARCHITECTURE (SD)->mach)
  11411. {
  11412. __EOF__
  11413. # Add case statements for this engine to mips_mach_multi().
  11414. for fc in ${sim_multi_configs}; do
  11415. # Split up the entry. ${c} contains the first three elements.
  11416. # Note: outer sqaure brackets are m4 quotes.
  11417. c=`echo ${fc} | sed 's/:[^:]*$//'`
  11418. bfdmachs=`echo ${fc} | sed 's/.*://'`
  11419. for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
  11420. echo " case bfd_mach_${mach}:" >> multi-run.c
  11421. done
  11422. done
  11423. cat << __EOF__ >> multi-run.c
  11424. return (STATE_ARCHITECTURE (SD)->mach);
  11425. default:
  11426. return bfd_mach_${sim_multi_default};
  11427. }
  11428. }
  11429. __EOF__
  11430. SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
  11431. else
  11432. # For clean-extra
  11433. sim_multi_src=doesnt-exist.c
  11434. if test x"${sim_mach_default}" = x""; then
  11435. as_fn_error "Error in configure.ac: \${sim_mach_default} not defined" "$LINENO" 5
  11436. fi
  11437. SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
  11438. fi
  11439. sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
  11440. sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
  11441. sim_micromips16_flags=" -F ${sim_micromips16_filter} ${sim_micromips16_machine} ${sim_igen_smp}"
  11442. sim_micromips_flags=" -F ${sim_micromips_filter} ${sim_micromips_machine} ${sim_igen_smp}"
  11443. #
  11444. # Add simulated hardware devices
  11445. #
  11446. hw_enabled=no
  11447. case "${target}" in
  11448. mips*tx39*)
  11449. hw_enabled=yes
  11450. hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
  11451. SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
  11452. ;;
  11453. *)
  11454. ;;
  11455. esac
  11456. if test "$hw_devices"; then
  11457. hardware="$hw_devices"
  11458. else
  11459. hardware="cfi core pal glue"
  11460. fi
  11461. hardware="$hardware $hw_extra_devices"
  11462. sim_hw_cflags="-DWITH_HW=1"
  11463. sim_hw="$hardware"
  11464. sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
  11465. # Check whether --enable-sim-hardware was given.
  11466. if test "${enable_sim_hardware+set}" = set; then :
  11467. enableval=$enable_sim_hardware;
  11468. else
  11469. enable_sim_hardware="$hw_enabled"
  11470. fi
  11471. case ${enable_sim_hardware} in
  11472. yes|no) ;;
  11473. ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
  11474. *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
  11475. *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
  11476. esac
  11477. if test "$enable_sim_hardware" = no; then
  11478. sim_hw_objs=
  11479. sim_hw_cflags="-DWITH_HW=0"
  11480. sim_hw=
  11481. else
  11482. sim_hw_cflags="-DWITH_HW=1"
  11483. # remove duplicates
  11484. sim_hw=""
  11485. sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
  11486. for i in $hardware ; do
  11487. case " $sim_hw " in
  11488. *" $i "*) ;;
  11489. *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
  11490. esac
  11491. done
  11492. # mingw does not support sockser
  11493. case ${host} in
  11494. *mingw*) ;;
  11495. *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
  11496. # that you instatiate. Instead, other code will call into it directly.
  11497. # At some point, we should convert it over.
  11498. sim_hw_objs="$sim_hw_objs dv-sockser.o"
  11499. cat >>confdefs.h <<_ACEOF
  11500. #define HAVE_DV_SOCKSER 1
  11501. _ACEOF
  11502. ;;
  11503. esac
  11504. if test x"$silent" != x"yes"; then
  11505. echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
  11506. fi
  11507. case " $hardware " in
  11508. *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
  11509. $as_echo_n "checking for log2 in -lm... " >&6; }
  11510. if test "${ac_cv_lib_m_log2+set}" = set; then :
  11511. $as_echo_n "(cached) " >&6
  11512. else
  11513. ac_check_lib_save_LIBS=$LIBS
  11514. LIBS="-lm $LIBS"
  11515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11516. /* end confdefs.h. */
  11517. /* Override any GCC internal prototype to avoid an error.
  11518. Use char because int might match the return type of a GCC
  11519. builtin and then its argument prototype would still apply. */
  11520. #ifdef __cplusplus
  11521. extern "C"
  11522. #endif
  11523. char log2 ();
  11524. int
  11525. main ()
  11526. {
  11527. return log2 ();
  11528. ;
  11529. return 0;
  11530. }
  11531. _ACEOF
  11532. if ac_fn_c_try_link "$LINENO"; then :
  11533. ac_cv_lib_m_log2=yes
  11534. else
  11535. ac_cv_lib_m_log2=no
  11536. fi
  11537. rm -f core conftest.err conftest.$ac_objext \
  11538. conftest$ac_exeext conftest.$ac_ext
  11539. LIBS=$ac_check_lib_save_LIBS
  11540. fi
  11541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
  11542. $as_echo "$ac_cv_lib_m_log2" >&6; }
  11543. if test "x$ac_cv_lib_m_log2" = x""yes; then :
  11544. cat >>confdefs.h <<_ACEOF
  11545. #define HAVE_LIBM 1
  11546. _ACEOF
  11547. LIBS="-lm $LIBS"
  11548. fi
  11549. ;;
  11550. esac
  11551. fi
  11552. # Choose simulator engine
  11553. case "${target}" in
  11554. *) mips_igen_engine="engine.o"
  11555. ;;
  11556. esac
  11557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  11558. $as_echo_n "checking for X... " >&6; }
  11559. # Check whether --with-x was given.
  11560. if test "${with_x+set}" = set; then :
  11561. withval=$with_x;
  11562. fi
  11563. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  11564. if test "x$with_x" = xno; then
  11565. # The user explicitly disabled X.
  11566. have_x=disabled
  11567. else
  11568. case $x_includes,$x_libraries in #(
  11569. *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
  11570. *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
  11571. $as_echo_n "(cached) " >&6
  11572. else
  11573. # One or both of the vars are not set, and there is no cached value.
  11574. ac_x_includes=no ac_x_libraries=no
  11575. rm -f -r conftest.dir
  11576. if mkdir conftest.dir; then
  11577. cd conftest.dir
  11578. cat >Imakefile <<'_ACEOF'
  11579. incroot:
  11580. @echo incroot='${INCROOT}'
  11581. usrlibdir:
  11582. @echo usrlibdir='${USRLIBDIR}'
  11583. libdir:
  11584. @echo libdir='${LIBDIR}'
  11585. _ACEOF
  11586. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  11587. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  11588. for ac_var in incroot usrlibdir libdir; do
  11589. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  11590. done
  11591. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  11592. for ac_extension in a so sl dylib la dll; do
  11593. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  11594. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  11595. ac_im_usrlibdir=$ac_im_libdir; break
  11596. fi
  11597. done
  11598. # Screen out bogus values from the imake configuration. They are
  11599. # bogus both because they are the default anyway, and because
  11600. # using them would break gcc on systems where it needs fixed includes.
  11601. case $ac_im_incroot in
  11602. /usr/include) ac_x_includes= ;;
  11603. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  11604. esac
  11605. case $ac_im_usrlibdir in
  11606. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  11607. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  11608. esac
  11609. fi
  11610. cd ..
  11611. rm -f -r conftest.dir
  11612. fi
  11613. # Standard set of common directories for X headers.
  11614. # Check X11 before X11Rn because it is often a symlink to the current release.
  11615. ac_x_header_dirs='
  11616. /usr/X11/include
  11617. /usr/X11R7/include
  11618. /usr/X11R6/include
  11619. /usr/X11R5/include
  11620. /usr/X11R4/include
  11621. /usr/include/X11
  11622. /usr/include/X11R7
  11623. /usr/include/X11R6
  11624. /usr/include/X11R5
  11625. /usr/include/X11R4
  11626. /usr/local/X11/include
  11627. /usr/local/X11R7/include
  11628. /usr/local/X11R6/include
  11629. /usr/local/X11R5/include
  11630. /usr/local/X11R4/include
  11631. /usr/local/include/X11
  11632. /usr/local/include/X11R7
  11633. /usr/local/include/X11R6
  11634. /usr/local/include/X11R5
  11635. /usr/local/include/X11R4
  11636. /usr/X386/include
  11637. /usr/x386/include
  11638. /usr/XFree86/include/X11
  11639. /usr/include
  11640. /usr/local/include
  11641. /usr/unsupported/include
  11642. /usr/athena/include
  11643. /usr/local/x11r5/include
  11644. /usr/lpp/Xamples/include
  11645. /usr/openwin/include
  11646. /usr/openwin/share/include'
  11647. if test "$ac_x_includes" = no; then
  11648. # Guess where to find include files, by looking for Xlib.h.
  11649. # First, try using that file with no special directory specified.
  11650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11651. /* end confdefs.h. */
  11652. #include <X11/Xlib.h>
  11653. _ACEOF
  11654. if ac_fn_c_try_cpp "$LINENO"; then :
  11655. # We can compile using X headers with no special include directory.
  11656. ac_x_includes=
  11657. else
  11658. for ac_dir in $ac_x_header_dirs; do
  11659. if test -r "$ac_dir/X11/Xlib.h"; then
  11660. ac_x_includes=$ac_dir
  11661. break
  11662. fi
  11663. done
  11664. fi
  11665. rm -f conftest.err conftest.$ac_ext
  11666. fi # $ac_x_includes = no
  11667. if test "$ac_x_libraries" = no; then
  11668. # Check for the libraries.
  11669. # See if we find them without any special options.
  11670. # Don't add to $LIBS permanently.
  11671. ac_save_LIBS=$LIBS
  11672. LIBS="-lX11 $LIBS"
  11673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11674. /* end confdefs.h. */
  11675. #include <X11/Xlib.h>
  11676. int
  11677. main ()
  11678. {
  11679. XrmInitialize ()
  11680. ;
  11681. return 0;
  11682. }
  11683. _ACEOF
  11684. if ac_fn_c_try_link "$LINENO"; then :
  11685. LIBS=$ac_save_LIBS
  11686. # We can link X programs with no special library path.
  11687. ac_x_libraries=
  11688. else
  11689. LIBS=$ac_save_LIBS
  11690. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  11691. do
  11692. # Don't even attempt the hair of trying to link an X program!
  11693. for ac_extension in a so sl dylib la dll; do
  11694. if test -r "$ac_dir/libX11.$ac_extension"; then
  11695. ac_x_libraries=$ac_dir
  11696. break 2
  11697. fi
  11698. done
  11699. done
  11700. fi
  11701. rm -f core conftest.err conftest.$ac_objext \
  11702. conftest$ac_exeext conftest.$ac_ext
  11703. fi # $ac_x_libraries = no
  11704. case $ac_x_includes,$ac_x_libraries in #(
  11705. no,* | *,no | *\'*)
  11706. # Didn't find X, or a directory has "'" in its name.
  11707. ac_cv_have_x="have_x=no";; #(
  11708. *)
  11709. # Record where we found X for the cache.
  11710. ac_cv_have_x="have_x=yes\
  11711. ac_x_includes='$ac_x_includes'\
  11712. ac_x_libraries='$ac_x_libraries'"
  11713. esac
  11714. fi
  11715. ;; #(
  11716. *) have_x=yes;;
  11717. esac
  11718. eval "$ac_cv_have_x"
  11719. fi # $with_x != no
  11720. if test "$have_x" != yes; then
  11721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  11722. $as_echo "$have_x" >&6; }
  11723. no_x=yes
  11724. else
  11725. # If each of the values was on the command line, it overrides each guess.
  11726. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  11727. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  11728. # Update the cache value to reflect the command line values.
  11729. ac_cv_have_x="have_x=yes\
  11730. ac_x_includes='$x_includes'\
  11731. ac_x_libraries='$x_libraries'"
  11732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  11733. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  11734. fi
  11735. mips_extra_libs=""
  11736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
  11737. $as_echo_n "checking for fabs in -lm... " >&6; }
  11738. if test "${ac_cv_lib_m_fabs+set}" = set; then :
  11739. $as_echo_n "(cached) " >&6
  11740. else
  11741. ac_check_lib_save_LIBS=$LIBS
  11742. LIBS="-lm $LIBS"
  11743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11744. /* end confdefs.h. */
  11745. /* Override any GCC internal prototype to avoid an error.
  11746. Use char because int might match the return type of a GCC
  11747. builtin and then its argument prototype would still apply. */
  11748. #ifdef __cplusplus
  11749. extern "C"
  11750. #endif
  11751. char fabs ();
  11752. int
  11753. main ()
  11754. {
  11755. return fabs ();
  11756. ;
  11757. return 0;
  11758. }
  11759. _ACEOF
  11760. if ac_fn_c_try_link "$LINENO"; then :
  11761. ac_cv_lib_m_fabs=yes
  11762. else
  11763. ac_cv_lib_m_fabs=no
  11764. fi
  11765. rm -f core conftest.err conftest.$ac_objext \
  11766. conftest$ac_exeext conftest.$ac_ext
  11767. LIBS=$ac_check_lib_save_LIBS
  11768. fi
  11769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
  11770. $as_echo "$ac_cv_lib_m_fabs" >&6; }
  11771. if test "x$ac_cv_lib_m_fabs" = x""yes; then :
  11772. cat >>confdefs.h <<_ACEOF
  11773. #define HAVE_LIBM 1
  11774. _ACEOF
  11775. LIBS="-lm $LIBS"
  11776. fi
  11777. for ac_func in aint anint sqrt
  11778. do :
  11779. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11780. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11781. eval as_val=\$$as_ac_var
  11782. if test "x$as_val" = x""yes; then :
  11783. cat >>confdefs.h <<_ACEOF
  11784. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11785. _ACEOF
  11786. fi
  11787. done
  11788. ac_sources="$sim_link_files"
  11789. ac_dests="$sim_link_links"
  11790. while test -n "$ac_sources"; do
  11791. set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  11792. set $ac_sources; ac_source=$1; shift; ac_sources=$*
  11793. ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
  11794. done
  11795. ac_config_links="$ac_config_links $ac_config_links_1"
  11796. cgen_breaks=""
  11797. if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
  11798. cgen_breaks="break cgen_rtx_error";
  11799. fi
  11800. ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
  11801. ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
  11802. ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
  11803. ac_config_commands="$ac_config_commands Makefile"
  11804. ac_config_commands="$ac_config_commands stamp-h"
  11805. cat >confcache <<\_ACEOF
  11806. # This file is a shell script that caches the results of configure
  11807. # tests run on this system so they can be shared between configure
  11808. # scripts and configure runs, see configure's option --config-cache.
  11809. # It is not useful on other systems. If it contains results you don't
  11810. # want to keep, you may remove or edit it.
  11811. #
  11812. # config.status only pays attention to the cache file if you give it
  11813. # the --recheck option to rerun configure.
  11814. #
  11815. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11816. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11817. # following values.
  11818. _ACEOF
  11819. # The following way of writing the cache mishandles newlines in values,
  11820. # but we know of no workaround that is simple, portable, and efficient.
  11821. # So, we kill variables containing newlines.
  11822. # Ultrix sh set writes to stderr and can't be redirected directly,
  11823. # and sets the high bit in the cache file unless we assign to the vars.
  11824. (
  11825. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11826. eval ac_val=\$$ac_var
  11827. case $ac_val in #(
  11828. *${as_nl}*)
  11829. case $ac_var in #(
  11830. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11831. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11832. esac
  11833. case $ac_var in #(
  11834. _ | IFS | as_nl) ;; #(
  11835. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11836. *) { eval $ac_var=; unset $ac_var;} ;;
  11837. esac ;;
  11838. esac
  11839. done
  11840. (set) 2>&1 |
  11841. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11842. *${as_nl}ac_space=\ *)
  11843. # `set' does not quote correctly, so add quotes: double-quote
  11844. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11845. sed -n \
  11846. "s/'/'\\\\''/g;
  11847. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11848. ;; #(
  11849. *)
  11850. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11851. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11852. ;;
  11853. esac |
  11854. sort
  11855. ) |
  11856. sed '
  11857. /^ac_cv_env_/b end
  11858. t clear
  11859. :clear
  11860. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11861. t end
  11862. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11863. :end' >>confcache
  11864. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11865. if test -w "$cache_file"; then
  11866. test "x$cache_file" != "x/dev/null" &&
  11867. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11868. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11869. cat confcache >$cache_file
  11870. else
  11871. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11872. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11873. fi
  11874. fi
  11875. rm -f confcache
  11876. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11877. # Let make expand exec_prefix.
  11878. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11879. DEFS=-DHAVE_CONFIG_H
  11880. ac_libobjs=
  11881. ac_ltlibobjs=
  11882. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11883. # 1. Remove the extension, and $U if already installed.
  11884. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11885. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11886. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11887. # will be set to the directory where LIBOBJS objects are built.
  11888. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11889. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11890. done
  11891. LIBOBJS=$ac_libobjs
  11892. LTLIBOBJS=$ac_ltlibobjs
  11893. if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
  11894. as_fn_error "conditional \"GMAKE\" was never defined.
  11895. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11896. fi
  11897. if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
  11898. as_fn_error "conditional \"PLUGINS\" was never defined.
  11899. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11900. fi
  11901. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11902. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  11903. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11904. fi
  11905. : ${CONFIG_STATUS=./config.status}
  11906. ac_write_fail=0
  11907. ac_clean_files_save=$ac_clean_files
  11908. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11909. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11910. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11911. as_write_fail=0
  11912. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11913. #! $SHELL
  11914. # Generated by $as_me.
  11915. # Run this file to recreate the current configuration.
  11916. # Compiler output produced by configure, useful for debugging
  11917. # configure, is in config.log if it exists.
  11918. debug=false
  11919. ac_cs_recheck=false
  11920. ac_cs_silent=false
  11921. SHELL=\${CONFIG_SHELL-$SHELL}
  11922. export SHELL
  11923. _ASEOF
  11924. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11925. ## -------------------- ##
  11926. ## M4sh Initialization. ##
  11927. ## -------------------- ##
  11928. # Be more Bourne compatible
  11929. DUALCASE=1; export DUALCASE # for MKS sh
  11930. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11931. emulate sh
  11932. NULLCMD=:
  11933. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11934. # is contrary to our usage. Disable this feature.
  11935. alias -g '${1+"$@"}'='"$@"'
  11936. setopt NO_GLOB_SUBST
  11937. else
  11938. case `(set -o) 2>/dev/null` in #(
  11939. *posix*) :
  11940. set -o posix ;; #(
  11941. *) :
  11942. ;;
  11943. esac
  11944. fi
  11945. as_nl='
  11946. '
  11947. export as_nl
  11948. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11949. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11950. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11951. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11952. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11953. # but without wasting forks for bash or zsh.
  11954. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11955. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11956. as_echo='print -r --'
  11957. as_echo_n='print -rn --'
  11958. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11959. as_echo='printf %s\n'
  11960. as_echo_n='printf %s'
  11961. else
  11962. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11963. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11964. as_echo_n='/usr/ucb/echo -n'
  11965. else
  11966. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11967. as_echo_n_body='eval
  11968. arg=$1;
  11969. case $arg in #(
  11970. *"$as_nl"*)
  11971. expr "X$arg" : "X\\(.*\\)$as_nl";
  11972. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11973. esac;
  11974. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11975. '
  11976. export as_echo_n_body
  11977. as_echo_n='sh -c $as_echo_n_body as_echo'
  11978. fi
  11979. export as_echo_body
  11980. as_echo='sh -c $as_echo_body as_echo'
  11981. fi
  11982. # The user is always right.
  11983. if test "${PATH_SEPARATOR+set}" != set; then
  11984. PATH_SEPARATOR=:
  11985. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11986. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11987. PATH_SEPARATOR=';'
  11988. }
  11989. fi
  11990. # IFS
  11991. # We need space, tab and new line, in precisely that order. Quoting is
  11992. # there to prevent editors from complaining about space-tab.
  11993. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11994. # splitting by setting IFS to empty value.)
  11995. IFS=" "" $as_nl"
  11996. # Find who we are. Look in the path if we contain no directory separator.
  11997. case $0 in #((
  11998. *[\\/]* ) as_myself=$0 ;;
  11999. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12000. for as_dir in $PATH
  12001. do
  12002. IFS=$as_save_IFS
  12003. test -z "$as_dir" && as_dir=.
  12004. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12005. done
  12006. IFS=$as_save_IFS
  12007. ;;
  12008. esac
  12009. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12010. # in which case we are not to be found in the path.
  12011. if test "x$as_myself" = x; then
  12012. as_myself=$0
  12013. fi
  12014. if test ! -f "$as_myself"; then
  12015. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12016. exit 1
  12017. fi
  12018. # Unset variables that we do not need and which cause bugs (e.g. in
  12019. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12020. # suppresses any "Segmentation fault" message there. '((' could
  12021. # trigger a bug in pdksh 5.2.14.
  12022. for as_var in BASH_ENV ENV MAIL MAILPATH
  12023. do eval test x\${$as_var+set} = xset \
  12024. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12025. done
  12026. PS1='$ '
  12027. PS2='> '
  12028. PS4='+ '
  12029. # NLS nuisances.
  12030. LC_ALL=C
  12031. export LC_ALL
  12032. LANGUAGE=C
  12033. export LANGUAGE
  12034. # CDPATH.
  12035. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12036. # as_fn_error ERROR [LINENO LOG_FD]
  12037. # ---------------------------------
  12038. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12039. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12040. # script with status $?, using 1 if that was 0.
  12041. as_fn_error ()
  12042. {
  12043. as_status=$?; test $as_status -eq 0 && as_status=1
  12044. if test "$3"; then
  12045. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12046. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  12047. fi
  12048. $as_echo "$as_me: error: $1" >&2
  12049. as_fn_exit $as_status
  12050. } # as_fn_error
  12051. # as_fn_set_status STATUS
  12052. # -----------------------
  12053. # Set $? to STATUS, without forking.
  12054. as_fn_set_status ()
  12055. {
  12056. return $1
  12057. } # as_fn_set_status
  12058. # as_fn_exit STATUS
  12059. # -----------------
  12060. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12061. as_fn_exit ()
  12062. {
  12063. set +e
  12064. as_fn_set_status $1
  12065. exit $1
  12066. } # as_fn_exit
  12067. # as_fn_unset VAR
  12068. # ---------------
  12069. # Portably unset VAR.
  12070. as_fn_unset ()
  12071. {
  12072. { eval $1=; unset $1;}
  12073. }
  12074. as_unset=as_fn_unset
  12075. # as_fn_append VAR VALUE
  12076. # ----------------------
  12077. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12078. # advantage of any shell optimizations that allow amortized linear growth over
  12079. # repeated appends, instead of the typical quadratic growth present in naive
  12080. # implementations.
  12081. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12082. eval 'as_fn_append ()
  12083. {
  12084. eval $1+=\$2
  12085. }'
  12086. else
  12087. as_fn_append ()
  12088. {
  12089. eval $1=\$$1\$2
  12090. }
  12091. fi # as_fn_append
  12092. # as_fn_arith ARG...
  12093. # ------------------
  12094. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12095. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12096. # must be portable across $(()) and expr.
  12097. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12098. eval 'as_fn_arith ()
  12099. {
  12100. as_val=$(( $* ))
  12101. }'
  12102. else
  12103. as_fn_arith ()
  12104. {
  12105. as_val=`expr "$@" || test $? -eq 1`
  12106. }
  12107. fi # as_fn_arith
  12108. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12109. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12110. as_expr=expr
  12111. else
  12112. as_expr=false
  12113. fi
  12114. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12115. as_basename=basename
  12116. else
  12117. as_basename=false
  12118. fi
  12119. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12120. as_dirname=dirname
  12121. else
  12122. as_dirname=false
  12123. fi
  12124. as_me=`$as_basename -- "$0" ||
  12125. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12126. X"$0" : 'X\(//\)$' \| \
  12127. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12128. $as_echo X/"$0" |
  12129. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12130. s//\1/
  12131. q
  12132. }
  12133. /^X\/\(\/\/\)$/{
  12134. s//\1/
  12135. q
  12136. }
  12137. /^X\/\(\/\).*/{
  12138. s//\1/
  12139. q
  12140. }
  12141. s/.*/./; q'`
  12142. # Avoid depending upon Character Ranges.
  12143. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12144. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12145. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12146. as_cr_digits='0123456789'
  12147. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12148. ECHO_C= ECHO_N= ECHO_T=
  12149. case `echo -n x` in #(((((
  12150. -n*)
  12151. case `echo 'xy\c'` in
  12152. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12153. xy) ECHO_C='\c';;
  12154. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12155. ECHO_T=' ';;
  12156. esac;;
  12157. *)
  12158. ECHO_N='-n';;
  12159. esac
  12160. rm -f conf$$ conf$$.exe conf$$.file
  12161. if test -d conf$$.dir; then
  12162. rm -f conf$$.dir/conf$$.file
  12163. else
  12164. rm -f conf$$.dir
  12165. mkdir conf$$.dir 2>/dev/null
  12166. fi
  12167. if (echo >conf$$.file) 2>/dev/null; then
  12168. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12169. as_ln_s='ln -s'
  12170. # ... but there are two gotchas:
  12171. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12172. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12173. # In both cases, we have to default to `cp -p'.
  12174. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12175. as_ln_s='cp -p'
  12176. elif ln conf$$.file conf$$ 2>/dev/null; then
  12177. as_ln_s=ln
  12178. else
  12179. as_ln_s='cp -p'
  12180. fi
  12181. else
  12182. as_ln_s='cp -p'
  12183. fi
  12184. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12185. rmdir conf$$.dir 2>/dev/null
  12186. # as_fn_mkdir_p
  12187. # -------------
  12188. # Create "$as_dir" as a directory, including parents if necessary.
  12189. as_fn_mkdir_p ()
  12190. {
  12191. case $as_dir in #(
  12192. -*) as_dir=./$as_dir;;
  12193. esac
  12194. test -d "$as_dir" || eval $as_mkdir_p || {
  12195. as_dirs=
  12196. while :; do
  12197. case $as_dir in #(
  12198. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12199. *) as_qdir=$as_dir;;
  12200. esac
  12201. as_dirs="'$as_qdir' $as_dirs"
  12202. as_dir=`$as_dirname -- "$as_dir" ||
  12203. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12204. X"$as_dir" : 'X\(//\)[^/]' \| \
  12205. X"$as_dir" : 'X\(//\)$' \| \
  12206. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12207. $as_echo X"$as_dir" |
  12208. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12209. s//\1/
  12210. q
  12211. }
  12212. /^X\(\/\/\)[^/].*/{
  12213. s//\1/
  12214. q
  12215. }
  12216. /^X\(\/\/\)$/{
  12217. s//\1/
  12218. q
  12219. }
  12220. /^X\(\/\).*/{
  12221. s//\1/
  12222. q
  12223. }
  12224. s/.*/./; q'`
  12225. test -d "$as_dir" && break
  12226. done
  12227. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12228. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  12229. } # as_fn_mkdir_p
  12230. if mkdir -p . 2>/dev/null; then
  12231. as_mkdir_p='mkdir -p "$as_dir"'
  12232. else
  12233. test -d ./-p && rmdir ./-p
  12234. as_mkdir_p=false
  12235. fi
  12236. if test -x / >/dev/null 2>&1; then
  12237. as_test_x='test -x'
  12238. else
  12239. if ls -dL / >/dev/null 2>&1; then
  12240. as_ls_L_option=L
  12241. else
  12242. as_ls_L_option=
  12243. fi
  12244. as_test_x='
  12245. eval sh -c '\''
  12246. if test -d "$1"; then
  12247. test -d "$1/.";
  12248. else
  12249. case $1 in #(
  12250. -*)set "./$1";;
  12251. esac;
  12252. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  12253. ???[sx]*):;;*)false;;esac;fi
  12254. '\'' sh
  12255. '
  12256. fi
  12257. as_executable_p=$as_test_x
  12258. # Sed expression to map a string onto a valid CPP name.
  12259. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12260. # Sed expression to map a string onto a valid variable name.
  12261. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12262. exec 6>&1
  12263. ## ----------------------------------- ##
  12264. ## Main body of $CONFIG_STATUS script. ##
  12265. ## ----------------------------------- ##
  12266. _ASEOF
  12267. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12268. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12269. # Save the log message, to keep $0 and so on meaningful, and to
  12270. # report actual input values of CONFIG_FILES etc. instead of their
  12271. # values after options handling.
  12272. ac_log="
  12273. This file was extended by $as_me, which was
  12274. generated by GNU Autoconf 2.64. Invocation command line was
  12275. CONFIG_FILES = $CONFIG_FILES
  12276. CONFIG_HEADERS = $CONFIG_HEADERS
  12277. CONFIG_LINKS = $CONFIG_LINKS
  12278. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12279. $ $0 $@
  12280. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12281. "
  12282. _ACEOF
  12283. case $ac_config_files in *"
  12284. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12285. esac
  12286. case $ac_config_headers in *"
  12287. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12288. esac
  12289. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12290. # Files that config.status was made for.
  12291. config_files="$ac_config_files"
  12292. config_headers="$ac_config_headers"
  12293. config_links="$ac_config_links"
  12294. config_commands="$ac_config_commands"
  12295. _ACEOF
  12296. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12297. ac_cs_usage="\
  12298. \`$as_me' instantiates files and other configuration actions
  12299. from templates according to the current configuration. Unless the files
  12300. and actions are specified as TAGs, all are instantiated by default.
  12301. Usage: $0 [OPTION]... [TAG]...
  12302. -h, --help print this help, then exit
  12303. -V, --version print version number and configuration settings, then exit
  12304. -q, --quiet, --silent
  12305. do not print progress messages
  12306. -d, --debug don't remove temporary files
  12307. --recheck update $as_me by reconfiguring in the same conditions
  12308. --file=FILE[:TEMPLATE]
  12309. instantiate the configuration file FILE
  12310. --header=FILE[:TEMPLATE]
  12311. instantiate the configuration header FILE
  12312. Configuration files:
  12313. $config_files
  12314. Configuration headers:
  12315. $config_headers
  12316. Configuration links:
  12317. $config_links
  12318. Configuration commands:
  12319. $config_commands
  12320. Report bugs to the package provider."
  12321. _ACEOF
  12322. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12323. ac_cs_version="\\
  12324. config.status
  12325. configured by $0, generated by GNU Autoconf 2.64,
  12326. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12327. Copyright (C) 2009 Free Software Foundation, Inc.
  12328. This config.status script is free software; the Free Software Foundation
  12329. gives unlimited permission to copy, distribute and modify it."
  12330. ac_pwd='$ac_pwd'
  12331. srcdir='$srcdir'
  12332. INSTALL='$INSTALL'
  12333. AWK='$AWK'
  12334. test -n "\$AWK" || AWK=awk
  12335. _ACEOF
  12336. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12337. # The default lists apply if the user does not specify any file.
  12338. ac_need_defaults=:
  12339. while test $# != 0
  12340. do
  12341. case $1 in
  12342. --*=*)
  12343. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12344. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12345. ac_shift=:
  12346. ;;
  12347. *)
  12348. ac_option=$1
  12349. ac_optarg=$2
  12350. ac_shift=shift
  12351. ;;
  12352. esac
  12353. case $ac_option in
  12354. # Handling of the options.
  12355. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12356. ac_cs_recheck=: ;;
  12357. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12358. $as_echo "$ac_cs_version"; exit ;;
  12359. --debug | --debu | --deb | --de | --d | -d )
  12360. debug=: ;;
  12361. --file | --fil | --fi | --f )
  12362. $ac_shift
  12363. case $ac_optarg in
  12364. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12365. esac
  12366. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12367. ac_need_defaults=false;;
  12368. --header | --heade | --head | --hea )
  12369. $ac_shift
  12370. case $ac_optarg in
  12371. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12372. esac
  12373. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12374. ac_need_defaults=false;;
  12375. --he | --h)
  12376. # Conflict between --help and --header
  12377. as_fn_error "ambiguous option: \`$1'
  12378. Try \`$0 --help' for more information.";;
  12379. --help | --hel | -h )
  12380. $as_echo "$ac_cs_usage"; exit ;;
  12381. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12382. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12383. ac_cs_silent=: ;;
  12384. # This is an error.
  12385. -*) as_fn_error "unrecognized option: \`$1'
  12386. Try \`$0 --help' for more information." ;;
  12387. *) as_fn_append ac_config_targets " $1"
  12388. ac_need_defaults=false ;;
  12389. esac
  12390. shift
  12391. done
  12392. ac_configure_extra_args=
  12393. if $ac_cs_silent; then
  12394. exec 6>/dev/null
  12395. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12396. fi
  12397. _ACEOF
  12398. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12399. if \$ac_cs_recheck; then
  12400. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12401. shift
  12402. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12403. CONFIG_SHELL='$SHELL'
  12404. export CONFIG_SHELL
  12405. exec "\$@"
  12406. fi
  12407. _ACEOF
  12408. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12409. exec 5>>config.log
  12410. {
  12411. echo
  12412. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12413. ## Running $as_me. ##
  12414. _ASBOX
  12415. $as_echo "$ac_log"
  12416. } >&5
  12417. _ACEOF
  12418. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12419. #
  12420. # INIT-COMMANDS
  12421. #
  12422. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  12423. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12424. # if CDPATH is set.
  12425. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12426. sed_quote_subst='$sed_quote_subst'
  12427. double_quote_subst='$double_quote_subst'
  12428. delay_variable_subst='$delay_variable_subst'
  12429. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12430. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12431. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12432. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12433. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12434. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12435. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12436. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12437. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12438. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12439. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12440. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12441. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12442. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12443. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12444. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12445. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12446. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12447. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12448. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12449. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12450. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12451. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12452. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12453. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12454. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12455. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12456. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12457. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12458. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12459. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12460. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12461. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12462. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12463. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12464. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12465. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12466. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12467. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12468. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12469. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12470. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12471. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12472. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12473. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12474. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12475. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12476. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12477. 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"`'
  12478. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12479. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12480. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12481. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12482. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12483. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12484. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12485. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12486. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12487. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12488. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12489. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12490. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12491. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12492. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12493. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12494. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12495. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12496. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12497. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12498. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12499. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12500. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12501. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12502. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12503. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12504. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12505. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12506. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12507. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12508. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12509. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  12510. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12511. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12512. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12513. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12514. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12515. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12516. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12517. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12518. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  12519. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12520. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12521. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12522. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12523. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12524. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12525. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12526. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12527. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12528. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12529. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12530. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12531. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12532. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12533. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12534. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12535. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12536. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12537. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12538. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12539. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12540. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12541. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12542. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  12543. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12544. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12545. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12546. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12547. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12548. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12549. LTCC='$LTCC'
  12550. LTCFLAGS='$LTCFLAGS'
  12551. compiler='$compiler_DEFAULT'
  12552. # A function that is used when there is no print builtin or printf.
  12553. func_fallback_echo ()
  12554. {
  12555. eval 'cat <<_LTECHO_EOF
  12556. \$1
  12557. _LTECHO_EOF'
  12558. }
  12559. # Quote evaled strings.
  12560. for var in SHELL \
  12561. ECHO \
  12562. SED \
  12563. GREP \
  12564. EGREP \
  12565. FGREP \
  12566. LD \
  12567. NM \
  12568. LN_S \
  12569. lt_SP2NL \
  12570. lt_NL2SP \
  12571. reload_flag \
  12572. OBJDUMP \
  12573. deplibs_check_method \
  12574. file_magic_cmd \
  12575. AR \
  12576. AR_FLAGS \
  12577. STRIP \
  12578. RANLIB \
  12579. CC \
  12580. CFLAGS \
  12581. compiler \
  12582. lt_cv_sys_global_symbol_pipe \
  12583. lt_cv_sys_global_symbol_to_cdecl \
  12584. lt_cv_sys_global_symbol_to_c_name_address \
  12585. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  12586. lt_prog_compiler_no_builtin_flag \
  12587. lt_prog_compiler_wl \
  12588. lt_prog_compiler_pic \
  12589. lt_prog_compiler_static \
  12590. lt_cv_prog_compiler_c_o \
  12591. need_locks \
  12592. DSYMUTIL \
  12593. NMEDIT \
  12594. LIPO \
  12595. OTOOL \
  12596. OTOOL64 \
  12597. shrext_cmds \
  12598. export_dynamic_flag_spec \
  12599. whole_archive_flag_spec \
  12600. compiler_needs_object \
  12601. with_gnu_ld \
  12602. allow_undefined_flag \
  12603. no_undefined_flag \
  12604. hardcode_libdir_flag_spec \
  12605. hardcode_libdir_flag_spec_ld \
  12606. hardcode_libdir_separator \
  12607. fix_srcfile_path \
  12608. exclude_expsyms \
  12609. include_expsyms \
  12610. file_list_spec \
  12611. variables_saved_for_relink \
  12612. libname_spec \
  12613. library_names_spec \
  12614. soname_spec \
  12615. install_override_mode \
  12616. finish_eval \
  12617. old_striplib \
  12618. striplib; do
  12619. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12620. *[\\\\\\\`\\"\\\$]*)
  12621. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  12622. ;;
  12623. *)
  12624. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12625. ;;
  12626. esac
  12627. done
  12628. # Double-quote double-evaled strings.
  12629. for var in reload_cmds \
  12630. old_postinstall_cmds \
  12631. old_postuninstall_cmds \
  12632. old_archive_cmds \
  12633. extract_expsyms_cmds \
  12634. old_archive_from_new_cmds \
  12635. old_archive_from_expsyms_cmds \
  12636. archive_cmds \
  12637. archive_expsym_cmds \
  12638. module_cmds \
  12639. module_expsym_cmds \
  12640. export_symbols_cmds \
  12641. prelink_cmds \
  12642. postinstall_cmds \
  12643. postuninstall_cmds \
  12644. finish_cmds \
  12645. sys_lib_search_path_spec \
  12646. sys_lib_dlsearch_path_spec; do
  12647. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12648. *[\\\\\\\`\\"\\\$]*)
  12649. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12650. ;;
  12651. *)
  12652. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12653. ;;
  12654. esac
  12655. done
  12656. ac_aux_dir='$ac_aux_dir'
  12657. xsi_shell='$xsi_shell'
  12658. lt_shell_append='$lt_shell_append'
  12659. # See if we are running on zsh, and set the options which allow our
  12660. # commands through without removal of \ escapes INIT.
  12661. if test -n "\${ZSH_VERSION+set}" ; then
  12662. setopt NO_GLOB_SUBST
  12663. fi
  12664. PACKAGE='$PACKAGE'
  12665. VERSION='$VERSION'
  12666. TIMESTAMP='$TIMESTAMP'
  12667. RM='$RM'
  12668. ofile='$ofile'
  12669. _ACEOF
  12670. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12671. # Handling of arguments.
  12672. for ac_config_target in $ac_config_targets
  12673. do
  12674. case $ac_config_target in
  12675. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  12676. "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  12677. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12678. "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
  12679. "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
  12680. "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
  12681. ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
  12682. "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
  12683. "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
  12684. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12685. esac
  12686. done
  12687. # If the user did not use the arguments to specify the items to instantiate,
  12688. # then the envvar interface is used. Set only those that are not.
  12689. # We use the long form for the default assignment because of an extremely
  12690. # bizarre bug on SunOS 4.1.3.
  12691. if $ac_need_defaults; then
  12692. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12693. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12694. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  12695. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12696. fi
  12697. # Have a temporary directory for convenience. Make it in the build tree
  12698. # simply because there is no reason against having it here, and in addition,
  12699. # creating and moving files from /tmp can sometimes cause problems.
  12700. # Hook for its removal unless debugging.
  12701. # Note that there is a small window in which the directory will not be cleaned:
  12702. # after its creation but before its name has been assigned to `$tmp'.
  12703. $debug ||
  12704. {
  12705. tmp=
  12706. trap 'exit_status=$?
  12707. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12708. ' 0
  12709. trap 'as_fn_exit 1' 1 2 13 15
  12710. }
  12711. # Create a (secure) tmp directory for tmp files.
  12712. {
  12713. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12714. test -n "$tmp" && test -d "$tmp"
  12715. } ||
  12716. {
  12717. tmp=./conf$$-$RANDOM
  12718. (umask 077 && mkdir "$tmp")
  12719. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  12720. # Set up the scripts for CONFIG_FILES section.
  12721. # No need to generate them if there are no CONFIG_FILES.
  12722. # This happens for instance with `./config.status config.h'.
  12723. if test -n "$CONFIG_FILES"; then
  12724. ac_cr=`echo X | tr X '\015'`
  12725. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12726. # But we know of no other shell where ac_cr would be empty at this
  12727. # point, so we can use a bashism as a fallback.
  12728. if test "x$ac_cr" = x; then
  12729. eval ac_cr=\$\'\\r\'
  12730. fi
  12731. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12732. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12733. ac_cs_awk_cr='\r'
  12734. else
  12735. ac_cs_awk_cr=$ac_cr
  12736. fi
  12737. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12738. _ACEOF
  12739. {
  12740. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12741. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12742. echo "_ACEOF"
  12743. } >conf$$subs.sh ||
  12744. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  12745. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12746. ac_delim='%!_!# '
  12747. for ac_last_try in false false false false false :; do
  12748. . ./conf$$subs.sh ||
  12749. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  12750. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12751. if test $ac_delim_n = $ac_delim_num; then
  12752. break
  12753. elif $ac_last_try; then
  12754. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  12755. else
  12756. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12757. fi
  12758. done
  12759. rm -f conf$$subs.sh
  12760. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12761. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  12762. _ACEOF
  12763. sed -n '
  12764. h
  12765. s/^/S["/; s/!.*/"]=/
  12766. p
  12767. g
  12768. s/^[^!]*!//
  12769. :repl
  12770. t repl
  12771. s/'"$ac_delim"'$//
  12772. t delim
  12773. :nl
  12774. h
  12775. s/\(.\{148\}\).*/\1/
  12776. t more1
  12777. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12778. p
  12779. n
  12780. b repl
  12781. :more1
  12782. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12783. p
  12784. g
  12785. s/.\{148\}//
  12786. t nl
  12787. :delim
  12788. h
  12789. s/\(.\{148\}\).*/\1/
  12790. t more2
  12791. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12792. p
  12793. b
  12794. :more2
  12795. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12796. p
  12797. g
  12798. s/.\{148\}//
  12799. t delim
  12800. ' <conf$$subs.awk | sed '
  12801. /^[^""]/{
  12802. N
  12803. s/\n//
  12804. }
  12805. ' >>$CONFIG_STATUS || ac_write_fail=1
  12806. rm -f conf$$subs.awk
  12807. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12808. _ACAWK
  12809. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  12810. for (key in S) S_is_set[key] = 1
  12811. FS = ""
  12812. }
  12813. {
  12814. line = $ 0
  12815. nfields = split(line, field, "@")
  12816. substed = 0
  12817. len = length(field[1])
  12818. for (i = 2; i < nfields; i++) {
  12819. key = field[i]
  12820. keylen = length(key)
  12821. if (S_is_set[key]) {
  12822. value = S[key]
  12823. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12824. len += length(value) + length(field[++i])
  12825. substed = 1
  12826. } else
  12827. len += 1 + keylen
  12828. }
  12829. print line
  12830. }
  12831. _ACAWK
  12832. _ACEOF
  12833. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12834. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12835. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12836. else
  12837. cat
  12838. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12839. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  12840. _ACEOF
  12841. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12842. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12843. # trailing colons and then remove the whole line if VPATH becomes empty
  12844. # (actually we leave an empty line to preserve line numbers).
  12845. if test "x$srcdir" = x.; then
  12846. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12847. s/:*\$(srcdir):*/:/
  12848. s/:*\${srcdir}:*/:/
  12849. s/:*@srcdir@:*/:/
  12850. s/^\([^=]*=[ ]*\):*/\1/
  12851. s/:*$//
  12852. s/^[^=]*=[ ]*$//
  12853. }'
  12854. fi
  12855. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12856. fi # test -n "$CONFIG_FILES"
  12857. # Set up the scripts for CONFIG_HEADERS section.
  12858. # No need to generate them if there are no CONFIG_HEADERS.
  12859. # This happens for instance with `./config.status Makefile'.
  12860. if test -n "$CONFIG_HEADERS"; then
  12861. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12862. BEGIN {
  12863. _ACEOF
  12864. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12865. # here-document in config.status, that substitutes the proper values into
  12866. # config.h.in to produce config.h.
  12867. # Create a delimiter string that does not exist in confdefs.h, to ease
  12868. # handling of long lines.
  12869. ac_delim='%!_!# '
  12870. for ac_last_try in false false :; do
  12871. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12872. if test -z "$ac_t"; then
  12873. break
  12874. elif $ac_last_try; then
  12875. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  12876. else
  12877. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12878. fi
  12879. done
  12880. # For the awk script, D is an array of macro values keyed by name,
  12881. # likewise P contains macro parameters if any. Preserve backslash
  12882. # newline sequences.
  12883. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12884. sed -n '
  12885. s/.\{148\}/&'"$ac_delim"'/g
  12886. t rset
  12887. :rset
  12888. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12889. t def
  12890. d
  12891. :def
  12892. s/\\$//
  12893. t bsnl
  12894. s/["\\]/\\&/g
  12895. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12896. D["\1"]=" \3"/p
  12897. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12898. d
  12899. :bsnl
  12900. s/["\\]/\\&/g
  12901. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12902. D["\1"]=" \3\\\\\\n"\\/p
  12903. t cont
  12904. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12905. t cont
  12906. d
  12907. :cont
  12908. n
  12909. s/.\{148\}/&'"$ac_delim"'/g
  12910. t clear
  12911. :clear
  12912. s/\\$//
  12913. t bsnlc
  12914. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12915. d
  12916. :bsnlc
  12917. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12918. b cont
  12919. ' <confdefs.h | sed '
  12920. s/'"$ac_delim"'/"\\\
  12921. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12922. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12923. for (key in D) D_is_set[key] = 1
  12924. FS = ""
  12925. }
  12926. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12927. line = \$ 0
  12928. split(line, arg, " ")
  12929. if (arg[1] == "#") {
  12930. defundef = arg[2]
  12931. mac1 = arg[3]
  12932. } else {
  12933. defundef = substr(arg[1], 2)
  12934. mac1 = arg[2]
  12935. }
  12936. split(mac1, mac2, "(") #)
  12937. macro = mac2[1]
  12938. prefix = substr(line, 1, index(line, defundef) - 1)
  12939. if (D_is_set[macro]) {
  12940. # Preserve the white space surrounding the "#".
  12941. print prefix "define", macro P[macro] D[macro]
  12942. next
  12943. } else {
  12944. # Replace #undef with comments. This is necessary, for example,
  12945. # in the case of _POSIX_SOURCE, which is predefined and required
  12946. # on some systems where configure will not decide to define it.
  12947. if (defundef == "undef") {
  12948. print "/*", prefix defundef, macro, "*/"
  12949. next
  12950. }
  12951. }
  12952. }
  12953. { print }
  12954. _ACAWK
  12955. _ACEOF
  12956. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12957. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  12958. fi # test -n "$CONFIG_HEADERS"
  12959. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  12960. shift
  12961. for ac_tag
  12962. do
  12963. case $ac_tag in
  12964. :[FHLC]) ac_mode=$ac_tag; continue;;
  12965. esac
  12966. case $ac_mode$ac_tag in
  12967. :[FHL]*:*);;
  12968. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12969. :[FH]-) ac_tag=-:-;;
  12970. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12971. esac
  12972. ac_save_IFS=$IFS
  12973. IFS=:
  12974. set x $ac_tag
  12975. IFS=$ac_save_IFS
  12976. shift
  12977. ac_file=$1
  12978. shift
  12979. case $ac_mode in
  12980. :L) ac_source=$1;;
  12981. :[FH])
  12982. ac_file_inputs=
  12983. for ac_f
  12984. do
  12985. case $ac_f in
  12986. -) ac_f="$tmp/stdin";;
  12987. *) # Look for the file first in the build tree, then in the source tree
  12988. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12989. # because $ac_f cannot contain `:'.
  12990. test -f "$ac_f" ||
  12991. case $ac_f in
  12992. [\\/$]*) false;;
  12993. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12994. esac ||
  12995. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12996. esac
  12997. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12998. as_fn_append ac_file_inputs " '$ac_f'"
  12999. done
  13000. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13001. # use $as_me), people would be surprised to read:
  13002. # /* config.h. Generated by config.status. */
  13003. configure_input='Generated from '`
  13004. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13005. `' by configure.'
  13006. if test x"$ac_file" != x-; then
  13007. configure_input="$ac_file. $configure_input"
  13008. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13009. $as_echo "$as_me: creating $ac_file" >&6;}
  13010. fi
  13011. # Neutralize special characters interpreted by sed in replacement strings.
  13012. case $configure_input in #(
  13013. *\&* | *\|* | *\\* )
  13014. ac_sed_conf_input=`$as_echo "$configure_input" |
  13015. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13016. *) ac_sed_conf_input=$configure_input;;
  13017. esac
  13018. case $ac_tag in
  13019. *:-:* | *:-) cat >"$tmp/stdin" \
  13020. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  13021. esac
  13022. ;;
  13023. esac
  13024. ac_dir=`$as_dirname -- "$ac_file" ||
  13025. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13026. X"$ac_file" : 'X\(//\)[^/]' \| \
  13027. X"$ac_file" : 'X\(//\)$' \| \
  13028. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13029. $as_echo X"$ac_file" |
  13030. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13031. s//\1/
  13032. q
  13033. }
  13034. /^X\(\/\/\)[^/].*/{
  13035. s//\1/
  13036. q
  13037. }
  13038. /^X\(\/\/\)$/{
  13039. s//\1/
  13040. q
  13041. }
  13042. /^X\(\/\).*/{
  13043. s//\1/
  13044. q
  13045. }
  13046. s/.*/./; q'`
  13047. as_dir="$ac_dir"; as_fn_mkdir_p
  13048. ac_builddir=.
  13049. case "$ac_dir" in
  13050. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13051. *)
  13052. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13053. # A ".." for each directory in $ac_dir_suffix.
  13054. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13055. case $ac_top_builddir_sub in
  13056. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13057. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13058. esac ;;
  13059. esac
  13060. ac_abs_top_builddir=$ac_pwd
  13061. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13062. # for backward compatibility:
  13063. ac_top_builddir=$ac_top_build_prefix
  13064. case $srcdir in
  13065. .) # We are building in place.
  13066. ac_srcdir=.
  13067. ac_top_srcdir=$ac_top_builddir_sub
  13068. ac_abs_top_srcdir=$ac_pwd ;;
  13069. [\\/]* | ?:[\\/]* ) # Absolute name.
  13070. ac_srcdir=$srcdir$ac_dir_suffix;
  13071. ac_top_srcdir=$srcdir
  13072. ac_abs_top_srcdir=$srcdir ;;
  13073. *) # Relative name.
  13074. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13075. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13076. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13077. esac
  13078. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13079. case $ac_mode in
  13080. :F)
  13081. #
  13082. # CONFIG_FILE
  13083. #
  13084. case $INSTALL in
  13085. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13086. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13087. esac
  13088. _ACEOF
  13089. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13090. # If the template does not know about datarootdir, expand it.
  13091. # FIXME: This hack should be removed a few years after 2.60.
  13092. ac_datarootdir_hack=; ac_datarootdir_seen=
  13093. ac_sed_dataroot='
  13094. /datarootdir/ {
  13095. p
  13096. q
  13097. }
  13098. /@datadir@/p
  13099. /@docdir@/p
  13100. /@infodir@/p
  13101. /@localedir@/p
  13102. /@mandir@/p'
  13103. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13104. *datarootdir*) ac_datarootdir_seen=yes;;
  13105. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13106. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13107. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13108. _ACEOF
  13109. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13110. ac_datarootdir_hack='
  13111. s&@datadir@&$datadir&g
  13112. s&@docdir@&$docdir&g
  13113. s&@infodir@&$infodir&g
  13114. s&@localedir@&$localedir&g
  13115. s&@mandir@&$mandir&g
  13116. s&\\\${datarootdir}&$datarootdir&g' ;;
  13117. esac
  13118. _ACEOF
  13119. # Neutralize VPATH when `$srcdir' = `.'.
  13120. # Shell code in configure.ac might set extrasub.
  13121. # FIXME: do we really want to maintain this feature?
  13122. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13123. ac_sed_extra="$ac_vpsub
  13124. $extrasub
  13125. _ACEOF
  13126. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13127. :t
  13128. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13129. s|@configure_input@|$ac_sed_conf_input|;t t
  13130. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13131. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13132. s&@srcdir@&$ac_srcdir&;t t
  13133. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13134. s&@top_srcdir@&$ac_top_srcdir&;t t
  13135. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13136. s&@builddir@&$ac_builddir&;t t
  13137. s&@abs_builddir@&$ac_abs_builddir&;t t
  13138. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13139. s&@INSTALL@&$ac_INSTALL&;t t
  13140. $ac_datarootdir_hack
  13141. "
  13142. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  13143. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13144. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13145. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13146. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13147. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13148. which seems to be undefined. Please make sure it is defined." >&5
  13149. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13150. which seems to be undefined. Please make sure it is defined." >&2;}
  13151. rm -f "$tmp/stdin"
  13152. case $ac_file in
  13153. -) cat "$tmp/out" && rm -f "$tmp/out";;
  13154. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  13155. esac \
  13156. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13157. ;;
  13158. :H)
  13159. #
  13160. # CONFIG_HEADER
  13161. #
  13162. if test x"$ac_file" != x-; then
  13163. {
  13164. $as_echo "/* $configure_input */" \
  13165. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  13166. } >"$tmp/config.h" \
  13167. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13168. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  13169. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13170. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13171. else
  13172. rm -f "$ac_file"
  13173. mv "$tmp/config.h" "$ac_file" \
  13174. || as_fn_error "could not create $ac_file" "$LINENO" 5
  13175. fi
  13176. else
  13177. $as_echo "/* $configure_input */" \
  13178. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  13179. || as_fn_error "could not create -" "$LINENO" 5
  13180. fi
  13181. ;;
  13182. :L)
  13183. #
  13184. # CONFIG_LINK
  13185. #
  13186. if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  13187. :
  13188. else
  13189. # Prefer the file from the source tree if names are identical.
  13190. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  13191. ac_source=$srcdir/$ac_source
  13192. fi
  13193. { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  13194. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  13195. if test ! -r "$ac_source"; then
  13196. as_fn_error "$ac_source: file not found" "$LINENO" 5
  13197. fi
  13198. rm -f "$ac_file"
  13199. # Try a relative symlink, then a hard link, then a copy.
  13200. case $srcdir in
  13201. [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  13202. *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  13203. esac
  13204. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  13205. ln "$ac_source" "$ac_file" 2>/dev/null ||
  13206. cp -p "$ac_source" "$ac_file" ||
  13207. as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  13208. fi
  13209. ;;
  13210. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13211. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13212. ;;
  13213. esac
  13214. case $ac_file$ac_mode in
  13215. "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  13216. "libtool":C)
  13217. # See if we are running on zsh, and set the options which allow our
  13218. # commands through without removal of \ escapes.
  13219. if test -n "${ZSH_VERSION+set}" ; then
  13220. setopt NO_GLOB_SUBST
  13221. fi
  13222. cfgfile="${ofile}T"
  13223. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13224. $RM "$cfgfile"
  13225. cat <<_LT_EOF >> "$cfgfile"
  13226. #! $SHELL
  13227. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13228. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13229. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13230. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13231. #
  13232. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13233. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  13234. # Written by Gordon Matzigkeit, 1996
  13235. #
  13236. # This file is part of GNU Libtool.
  13237. #
  13238. # GNU Libtool is free software; you can redistribute it and/or
  13239. # modify it under the terms of the GNU General Public License as
  13240. # published by the Free Software Foundation; either version 2 of
  13241. # the License, or (at your option) any later version.
  13242. #
  13243. # As a special exception to the GNU General Public License,
  13244. # if you distribute this file as part of a program or library that
  13245. # is built using GNU Libtool, you may include this file under the
  13246. # same distribution terms that you use for the rest of that program.
  13247. #
  13248. # GNU Libtool is distributed in the hope that it will be useful,
  13249. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13250. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13251. # GNU General Public License for more details.
  13252. #
  13253. # You should have received a copy of the GNU General Public License
  13254. # along with GNU Libtool; see the file COPYING. If not, a copy
  13255. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13256. # obtained by writing to the Free Software Foundation, Inc.,
  13257. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13258. # The names of the tagged configurations supported by this script.
  13259. available_tags=""
  13260. # ### BEGIN LIBTOOL CONFIG
  13261. # Which release of libtool.m4 was used?
  13262. macro_version=$macro_version
  13263. macro_revision=$macro_revision
  13264. # Whether or not to build shared libraries.
  13265. build_libtool_libs=$enable_shared
  13266. # Whether or not to build static libraries.
  13267. build_old_libs=$enable_static
  13268. # What type of objects to build.
  13269. pic_mode=$pic_mode
  13270. # Whether or not to optimize for fast installation.
  13271. fast_install=$enable_fast_install
  13272. # Shell to use when invoking shell scripts.
  13273. SHELL=$lt_SHELL
  13274. # An echo program that protects backslashes.
  13275. ECHO=$lt_ECHO
  13276. # The host system.
  13277. host_alias=$host_alias
  13278. host=$host
  13279. host_os=$host_os
  13280. # The build system.
  13281. build_alias=$build_alias
  13282. build=$build
  13283. build_os=$build_os
  13284. # A sed program that does not truncate output.
  13285. SED=$lt_SED
  13286. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13287. Xsed="\$SED -e 1s/^X//"
  13288. # A grep program that handles long lines.
  13289. GREP=$lt_GREP
  13290. # An ERE matcher.
  13291. EGREP=$lt_EGREP
  13292. # A literal string matcher.
  13293. FGREP=$lt_FGREP
  13294. # A BSD- or MS-compatible name lister.
  13295. NM=$lt_NM
  13296. # Whether we need soft or hard links.
  13297. LN_S=$lt_LN_S
  13298. # What is the maximum length of a command?
  13299. max_cmd_len=$max_cmd_len
  13300. # Object file suffix (normally "o").
  13301. objext=$ac_objext
  13302. # Executable file suffix (normally "").
  13303. exeext=$exeext
  13304. # whether the shell understands "unset".
  13305. lt_unset=$lt_unset
  13306. # turn spaces into newlines.
  13307. SP2NL=$lt_lt_SP2NL
  13308. # turn newlines into spaces.
  13309. NL2SP=$lt_lt_NL2SP
  13310. # An object symbol dumper.
  13311. OBJDUMP=$lt_OBJDUMP
  13312. # Method to check whether dependent libraries are shared objects.
  13313. deplibs_check_method=$lt_deplibs_check_method
  13314. # Command to use when deplibs_check_method == "file_magic".
  13315. file_magic_cmd=$lt_file_magic_cmd
  13316. # The archiver.
  13317. AR=$lt_AR
  13318. AR_FLAGS=$lt_AR_FLAGS
  13319. # A symbol stripping program.
  13320. STRIP=$lt_STRIP
  13321. # Commands used to install an old-style archive.
  13322. RANLIB=$lt_RANLIB
  13323. old_postinstall_cmds=$lt_old_postinstall_cmds
  13324. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13325. # Whether to use a lock for old archive extraction.
  13326. lock_old_archive_extraction=$lock_old_archive_extraction
  13327. # A C compiler.
  13328. LTCC=$lt_CC
  13329. # LTCC compiler flags.
  13330. LTCFLAGS=$lt_CFLAGS
  13331. # Take the output of nm and produce a listing of raw symbols and C names.
  13332. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13333. # Transform the output of nm in a proper C declaration.
  13334. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13335. # Transform the output of nm in a C name address pair.
  13336. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13337. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13338. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13339. # The name of the directory that contains temporary libtool files.
  13340. objdir=$objdir
  13341. # Used to examine libraries when file_magic_cmd begins with "file".
  13342. MAGIC_CMD=$MAGIC_CMD
  13343. # Must we lock files when doing compilation?
  13344. need_locks=$lt_need_locks
  13345. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13346. DSYMUTIL=$lt_DSYMUTIL
  13347. # Tool to change global to local symbols on Mac OS X.
  13348. NMEDIT=$lt_NMEDIT
  13349. # Tool to manipulate fat objects and archives on Mac OS X.
  13350. LIPO=$lt_LIPO
  13351. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13352. OTOOL=$lt_OTOOL
  13353. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13354. OTOOL64=$lt_OTOOL64
  13355. # Old archive suffix (normally "a").
  13356. libext=$libext
  13357. # Shared library suffix (normally ".so").
  13358. shrext_cmds=$lt_shrext_cmds
  13359. # The commands to extract the exported symbol list from a shared archive.
  13360. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13361. # Variables whose values should be saved in libtool wrapper scripts and
  13362. # restored at link time.
  13363. variables_saved_for_relink=$lt_variables_saved_for_relink
  13364. # Do we need the "lib" prefix for modules?
  13365. need_lib_prefix=$need_lib_prefix
  13366. # Do we need a version for libraries?
  13367. need_version=$need_version
  13368. # Library versioning type.
  13369. version_type=$version_type
  13370. # Shared library runtime path variable.
  13371. runpath_var=$runpath_var
  13372. # Shared library path variable.
  13373. shlibpath_var=$shlibpath_var
  13374. # Is shlibpath searched before the hard-coded library search path?
  13375. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13376. # Format of library name prefix.
  13377. libname_spec=$lt_libname_spec
  13378. # List of archive names. First name is the real one, the rest are links.
  13379. # The last name is the one that the linker finds with -lNAME
  13380. library_names_spec=$lt_library_names_spec
  13381. # The coded name of the library, if different from the real name.
  13382. soname_spec=$lt_soname_spec
  13383. # Permission mode override for installation of shared libraries.
  13384. install_override_mode=$lt_install_override_mode
  13385. # Command to use after installation of a shared archive.
  13386. postinstall_cmds=$lt_postinstall_cmds
  13387. # Command to use after uninstallation of a shared archive.
  13388. postuninstall_cmds=$lt_postuninstall_cmds
  13389. # Commands used to finish a libtool library installation in a directory.
  13390. finish_cmds=$lt_finish_cmds
  13391. # As "finish_cmds", except a single script fragment to be evaled but
  13392. # not shown.
  13393. finish_eval=$lt_finish_eval
  13394. # Whether we should hardcode library paths into libraries.
  13395. hardcode_into_libs=$hardcode_into_libs
  13396. # Compile-time system search path for libraries.
  13397. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13398. # Run-time system search path for libraries.
  13399. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13400. # Whether dlopen is supported.
  13401. dlopen_support=$enable_dlopen
  13402. # Whether dlopen of programs is supported.
  13403. dlopen_self=$enable_dlopen_self
  13404. # Whether dlopen of statically linked programs is supported.
  13405. dlopen_self_static=$enable_dlopen_self_static
  13406. # Commands to strip libraries.
  13407. old_striplib=$lt_old_striplib
  13408. striplib=$lt_striplib
  13409. # The linker used to build libraries.
  13410. LD=$lt_LD
  13411. # How to create reloadable object files.
  13412. reload_flag=$lt_reload_flag
  13413. reload_cmds=$lt_reload_cmds
  13414. # Commands used to build an old-style archive.
  13415. old_archive_cmds=$lt_old_archive_cmds
  13416. # A language specific compiler.
  13417. CC=$lt_compiler
  13418. # Is the compiler the GNU compiler?
  13419. with_gcc=$GCC
  13420. # Compiler flag to turn off builtin functions.
  13421. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13422. # How to pass a linker flag through the compiler.
  13423. wl=$lt_lt_prog_compiler_wl
  13424. # Additional compiler flags for building library objects.
  13425. pic_flag=$lt_lt_prog_compiler_pic
  13426. # Compiler flag to prevent dynamic linking.
  13427. link_static_flag=$lt_lt_prog_compiler_static
  13428. # Does compiler simultaneously support -c and -o options?
  13429. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13430. # Whether or not to add -lc for building shared libraries.
  13431. build_libtool_need_lc=$archive_cmds_need_lc
  13432. # Whether or not to disallow shared libs when runtime libs are static.
  13433. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13434. # Compiler flag to allow reflexive dlopens.
  13435. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13436. # Compiler flag to generate shared objects directly from archives.
  13437. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13438. # Whether the compiler copes with passing no objects directly.
  13439. compiler_needs_object=$lt_compiler_needs_object
  13440. # Create an old-style archive from a shared archive.
  13441. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13442. # Create a temporary old-style archive to link instead of a shared archive.
  13443. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13444. # Commands used to build a shared archive.
  13445. archive_cmds=$lt_archive_cmds
  13446. archive_expsym_cmds=$lt_archive_expsym_cmds
  13447. # Commands used to build a loadable module if different from building
  13448. # a shared archive.
  13449. module_cmds=$lt_module_cmds
  13450. module_expsym_cmds=$lt_module_expsym_cmds
  13451. # Whether we are building with GNU ld or not.
  13452. with_gnu_ld=$lt_with_gnu_ld
  13453. # Flag that allows shared libraries with undefined symbols to be built.
  13454. allow_undefined_flag=$lt_allow_undefined_flag
  13455. # Flag that enforces no undefined symbols.
  13456. no_undefined_flag=$lt_no_undefined_flag
  13457. # Flag to hardcode \$libdir into a binary during linking.
  13458. # This must work even if \$libdir does not exist
  13459. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13460. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13461. # during linking. This must work even if \$libdir does not exist.
  13462. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13463. # Whether we need a single "-rpath" flag with a separated argument.
  13464. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13465. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13466. # DIR into the resulting binary.
  13467. hardcode_direct=$hardcode_direct
  13468. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13469. # DIR into the resulting binary and the resulting library dependency is
  13470. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13471. # library is relocated.
  13472. hardcode_direct_absolute=$hardcode_direct_absolute
  13473. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13474. # into the resulting binary.
  13475. hardcode_minus_L=$hardcode_minus_L
  13476. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13477. # into the resulting binary.
  13478. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13479. # Set to "yes" if building a shared library automatically hardcodes DIR
  13480. # into the library and all subsequent libraries and executables linked
  13481. # against it.
  13482. hardcode_automatic=$hardcode_automatic
  13483. # Set to yes if linker adds runtime paths of dependent libraries
  13484. # to runtime path list.
  13485. inherit_rpath=$inherit_rpath
  13486. # Whether libtool must link a program against all its dependency libraries.
  13487. link_all_deplibs=$link_all_deplibs
  13488. # Fix the shell variable \$srcfile for the compiler.
  13489. fix_srcfile_path=$lt_fix_srcfile_path
  13490. # Set to "yes" if exported symbols are required.
  13491. always_export_symbols=$always_export_symbols
  13492. # The commands to list exported symbols.
  13493. export_symbols_cmds=$lt_export_symbols_cmds
  13494. # Symbols that should not be listed in the preloaded symbols.
  13495. exclude_expsyms=$lt_exclude_expsyms
  13496. # Symbols that must always be exported.
  13497. include_expsyms=$lt_include_expsyms
  13498. # Commands necessary for linking programs (against libraries) with templates.
  13499. prelink_cmds=$lt_prelink_cmds
  13500. # Specify filename containing input files.
  13501. file_list_spec=$lt_file_list_spec
  13502. # How to hardcode a shared library path into an executable.
  13503. hardcode_action=$hardcode_action
  13504. # ### END LIBTOOL CONFIG
  13505. _LT_EOF
  13506. case $host_os in
  13507. aix3*)
  13508. cat <<\_LT_EOF >> "$cfgfile"
  13509. # AIX sometimes has problems with the GCC collect2 program. For some
  13510. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13511. # vanish in a puff of smoke.
  13512. if test "X${COLLECT_NAMES+set}" != Xset; then
  13513. COLLECT_NAMES=
  13514. export COLLECT_NAMES
  13515. fi
  13516. _LT_EOF
  13517. ;;
  13518. esac
  13519. ltmain="$ac_aux_dir/ltmain.sh"
  13520. # We use sed instead of cat because bash on DJGPP gets confused if
  13521. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13522. # text mode, it properly converts lines to CR/LF. This bash problem
  13523. # is reportedly fixed, but why not run on old versions too?
  13524. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13525. || (rm -f "$cfgfile"; exit 1)
  13526. case $xsi_shell in
  13527. yes)
  13528. cat << \_LT_EOF >> "$cfgfile"
  13529. # func_dirname file append nondir_replacement
  13530. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13531. # otherwise set result to NONDIR_REPLACEMENT.
  13532. func_dirname ()
  13533. {
  13534. case ${1} in
  13535. */*) func_dirname_result="${1%/*}${2}" ;;
  13536. * ) func_dirname_result="${3}" ;;
  13537. esac
  13538. }
  13539. # func_basename file
  13540. func_basename ()
  13541. {
  13542. func_basename_result="${1##*/}"
  13543. }
  13544. # func_dirname_and_basename file append nondir_replacement
  13545. # perform func_basename and func_dirname in a single function
  13546. # call:
  13547. # dirname: Compute the dirname of FILE. If nonempty,
  13548. # add APPEND to the result, otherwise set result
  13549. # to NONDIR_REPLACEMENT.
  13550. # value returned in "$func_dirname_result"
  13551. # basename: Compute filename of FILE.
  13552. # value retuned in "$func_basename_result"
  13553. # Implementation must be kept synchronized with func_dirname
  13554. # and func_basename. For efficiency, we do not delegate to
  13555. # those functions but instead duplicate the functionality here.
  13556. func_dirname_and_basename ()
  13557. {
  13558. case ${1} in
  13559. */*) func_dirname_result="${1%/*}${2}" ;;
  13560. * ) func_dirname_result="${3}" ;;
  13561. esac
  13562. func_basename_result="${1##*/}"
  13563. }
  13564. # func_stripname prefix suffix name
  13565. # strip PREFIX and SUFFIX off of NAME.
  13566. # PREFIX and SUFFIX must not contain globbing or regex special
  13567. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13568. # dot (in which case that matches only a dot).
  13569. func_stripname ()
  13570. {
  13571. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  13572. # positional parameters, so assign one to ordinary parameter first.
  13573. func_stripname_result=${3}
  13574. func_stripname_result=${func_stripname_result#"${1}"}
  13575. func_stripname_result=${func_stripname_result%"${2}"}
  13576. }
  13577. # func_opt_split
  13578. func_opt_split ()
  13579. {
  13580. func_opt_split_opt=${1%%=*}
  13581. func_opt_split_arg=${1#*=}
  13582. }
  13583. # func_lo2o object
  13584. func_lo2o ()
  13585. {
  13586. case ${1} in
  13587. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  13588. *) func_lo2o_result=${1} ;;
  13589. esac
  13590. }
  13591. # func_xform libobj-or-source
  13592. func_xform ()
  13593. {
  13594. func_xform_result=${1%.*}.lo
  13595. }
  13596. # func_arith arithmetic-term...
  13597. func_arith ()
  13598. {
  13599. func_arith_result=$(( $* ))
  13600. }
  13601. # func_len string
  13602. # STRING may not start with a hyphen.
  13603. func_len ()
  13604. {
  13605. func_len_result=${#1}
  13606. }
  13607. _LT_EOF
  13608. ;;
  13609. *) # Bourne compatible functions.
  13610. cat << \_LT_EOF >> "$cfgfile"
  13611. # func_dirname file append nondir_replacement
  13612. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  13613. # otherwise set result to NONDIR_REPLACEMENT.
  13614. func_dirname ()
  13615. {
  13616. # Extract subdirectory from the argument.
  13617. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  13618. if test "X$func_dirname_result" = "X${1}"; then
  13619. func_dirname_result="${3}"
  13620. else
  13621. func_dirname_result="$func_dirname_result${2}"
  13622. fi
  13623. }
  13624. # func_basename file
  13625. func_basename ()
  13626. {
  13627. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  13628. }
  13629. # func_stripname prefix suffix name
  13630. # strip PREFIX and SUFFIX off of NAME.
  13631. # PREFIX and SUFFIX must not contain globbing or regex special
  13632. # characters, hashes, percent signs, but SUFFIX may contain a leading
  13633. # dot (in which case that matches only a dot).
  13634. # func_strip_suffix prefix name
  13635. func_stripname ()
  13636. {
  13637. case ${2} in
  13638. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  13639. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  13640. esac
  13641. }
  13642. # sed scripts:
  13643. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  13644. my_sed_long_arg='1s/^-[^=]*=//'
  13645. # func_opt_split
  13646. func_opt_split ()
  13647. {
  13648. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  13649. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  13650. }
  13651. # func_lo2o object
  13652. func_lo2o ()
  13653. {
  13654. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  13655. }
  13656. # func_xform libobj-or-source
  13657. func_xform ()
  13658. {
  13659. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  13660. }
  13661. # func_arith arithmetic-term...
  13662. func_arith ()
  13663. {
  13664. func_arith_result=`expr "$@"`
  13665. }
  13666. # func_len string
  13667. # STRING may not start with a hyphen.
  13668. func_len ()
  13669. {
  13670. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  13671. }
  13672. _LT_EOF
  13673. esac
  13674. case $lt_shell_append in
  13675. yes)
  13676. cat << \_LT_EOF >> "$cfgfile"
  13677. # func_append var value
  13678. # Append VALUE to the end of shell variable VAR.
  13679. func_append ()
  13680. {
  13681. eval "$1+=\$2"
  13682. }
  13683. _LT_EOF
  13684. ;;
  13685. *)
  13686. cat << \_LT_EOF >> "$cfgfile"
  13687. # func_append var value
  13688. # Append VALUE to the end of shell variable VAR.
  13689. func_append ()
  13690. {
  13691. eval "$1=\$$1\$2"
  13692. }
  13693. _LT_EOF
  13694. ;;
  13695. esac
  13696. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  13697. || (rm -f "$cfgfile"; exit 1)
  13698. mv -f "$cfgfile" "$ofile" ||
  13699. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13700. chmod +x "$ofile"
  13701. ;;
  13702. "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
  13703. rm -f Makesim1.tmp Makesim2.tmp Makefile
  13704. sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
  13705. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
  13706. sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
  13707. -e '/^## COMMON_POST_/ r Makesim2.tmp' \
  13708. <Makefile.sim >Makefile
  13709. rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
  13710. ;;
  13711. "stamp-h":C) echo > stamp-h ;;
  13712. esac
  13713. done # for ac_tag
  13714. as_fn_exit 0
  13715. _ACEOF
  13716. ac_clean_files=$ac_clean_files_save
  13717. test $ac_write_fail = 0 ||
  13718. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13719. # configure is writing to config.log, and then calls config.status.
  13720. # config.status does its own redirection, appending to config.log.
  13721. # Unfortunately, on DOS this fails, as config.log is still kept open
  13722. # by configure, so config.status won't be able to write to it; its
  13723. # output is simply discarded. So we exec the FD to /dev/null,
  13724. # effectively closing config.log, so it can be properly (re)opened and
  13725. # appended to by config.status. When coming back to configure, we
  13726. # need to make the FD available again.
  13727. if test "$no_create" != yes; then
  13728. ac_cs_success=:
  13729. ac_config_status_args=
  13730. test "$silent" = yes &&
  13731. ac_config_status_args="$ac_config_status_args --quiet"
  13732. exec 5>/dev/null
  13733. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13734. exec 5>>config.log
  13735. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13736. # would make configure fail if this is the last instruction.
  13737. $ac_cs_success || as_fn_exit $?
  13738. fi
  13739. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13741. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13742. fi