configure 447 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712
  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. cgen
  554. cgendir
  555. CGEN_MAINT
  556. REPORT_BUGS_TEXI
  557. REPORT_BUGS_TO
  558. PKGVERSION
  559. sim_profile
  560. sim_trace
  561. sim_stdio
  562. sim_debug
  563. sim_cflags
  564. sim_bswap
  565. MAINT
  566. MAINTAINER_MODE_FALSE
  567. MAINTAINER_MODE_TRUE
  568. lt_cv_dlopen_libs
  569. OTOOL64
  570. OTOOL
  571. LIPO
  572. NMEDIT
  573. DSYMUTIL
  574. AWK
  575. STRIP
  576. OBJDUMP
  577. LN_S
  578. NM
  579. ac_ct_DUMPBIN
  580. DUMPBIN
  581. LD
  582. FGREP
  583. SED
  584. LIBTOOL
  585. PLUGINS_FALSE
  586. PLUGINS_TRUE
  587. zlibinc
  588. zlibdir
  589. CATOBJEXT
  590. GENCAT
  591. INSTOBJEXT
  592. DATADIRNAME
  593. CATALOGS
  594. POSUB
  595. GMSGFMT
  596. XGETTEXT
  597. INCINTL
  598. LIBINTL_DEP
  599. LIBINTL
  600. USE_NLS
  601. GMAKE_FALSE
  602. GMAKE_TRUE
  603. MAKE
  604. CCDEPMODE
  605. DEPDIR
  606. am__leading_dot
  607. PACKAGE
  608. RANLIB
  609. AR
  610. HDEFINES
  611. CC_FOR_BUILD
  612. INSTALL_DATA
  613. INSTALL_SCRIPT
  614. INSTALL_PROGRAM
  615. EGREP
  616. GREP
  617. CPP
  618. target_os
  619. target_vendor
  620. target_cpu
  621. target
  622. host_os
  623. host_vendor
  624. host_cpu
  625. host
  626. build_os
  627. build_vendor
  628. build_cpu
  629. build
  630. OBJEXT
  631. EXEEXT
  632. ac_ct_CC
  633. CPPFLAGS
  634. LDFLAGS
  635. CFLAGS
  636. CC
  637. WERROR_CFLAGS
  638. WARN_CFLAGS
  639. sim_xor_endian
  640. sim_stdcall
  641. sim_smp
  642. sim_reserved_bits
  643. sim_regparm
  644. sim_packages
  645. sim_inline
  646. sim_hw
  647. sim_hw_objs
  648. sim_hw_cflags
  649. sim_default_model
  650. sim_scache
  651. sim_float
  652. sim_hostendian
  653. sim_endian
  654. sim_bitsize
  655. sim_assert
  656. sim_alignment
  657. sim_environment
  658. target_alias
  659. host_alias
  660. build_alias
  661. LIBS
  662. ECHO_T
  663. ECHO_N
  664. ECHO_C
  665. DEFS
  666. mandir
  667. localedir
  668. libdir
  669. psdir
  670. pdfdir
  671. dvidir
  672. htmldir
  673. infodir
  674. docdir
  675. oldincludedir
  676. includedir
  677. localstatedir
  678. sharedstatedir
  679. sysconfdir
  680. datadir
  681. datarootdir
  682. libexecdir
  683. sbindir
  684. bindir
  685. program_transform_name
  686. prefix
  687. exec_prefix
  688. PACKAGE_URL
  689. PACKAGE_BUGREPORT
  690. PACKAGE_STRING
  691. PACKAGE_VERSION
  692. PACKAGE_TARNAME
  693. PACKAGE_NAME
  694. PATH_SEPARATOR
  695. SHELL'
  696. ac_subst_files=''
  697. ac_user_opts='
  698. enable_option_checking
  699. with_system_zlib
  700. enable_plugins
  701. enable_shared
  702. enable_static
  703. with_pic
  704. enable_fast_install
  705. with_gnu_ld
  706. enable_libtool_lock
  707. enable_maintainer_mode
  708. enable_sim_bswap
  709. enable_sim_cflags
  710. enable_sim_debug
  711. enable_sim_stdio
  712. enable_sim_trace
  713. enable_sim_profile
  714. with_pkgversion
  715. with_bugurl
  716. enable_sim_endian
  717. enable_sim_alignment
  718. enable_sim_hostendian
  719. enable_sim_scache
  720. enable_sim_default_model
  721. enable_sim_environment
  722. enable_cgen_maint
  723. enable_sim_hardware
  724. '
  725. ac_precious_vars='build_alias
  726. host_alias
  727. target_alias
  728. CC
  729. CFLAGS
  730. LDFLAGS
  731. LIBS
  732. CPPFLAGS
  733. CPP'
  734. # Initialize some variables set by options.
  735. ac_init_help=
  736. ac_init_version=false
  737. ac_unrecognized_opts=
  738. ac_unrecognized_sep=
  739. # The variables have the same names as the options, with
  740. # dashes changed to underlines.
  741. cache_file=/dev/null
  742. exec_prefix=NONE
  743. no_create=
  744. no_recursion=
  745. prefix=NONE
  746. program_prefix=NONE
  747. program_suffix=NONE
  748. program_transform_name=s,x,x,
  749. silent=
  750. site=
  751. srcdir=
  752. verbose=
  753. x_includes=NONE
  754. x_libraries=NONE
  755. # Installation directory options.
  756. # These are left unexpanded so users can "make install exec_prefix=/foo"
  757. # and all the variables that are supposed to be based on exec_prefix
  758. # by default will actually change.
  759. # Use braces instead of parens because sh, perl, etc. also accept them.
  760. # (The list follows the same order as the GNU Coding Standards.)
  761. bindir='${exec_prefix}/bin'
  762. sbindir='${exec_prefix}/sbin'
  763. libexecdir='${exec_prefix}/libexec'
  764. datarootdir='${prefix}/share'
  765. datadir='${datarootdir}'
  766. sysconfdir='${prefix}/etc'
  767. sharedstatedir='${prefix}/com'
  768. localstatedir='${prefix}/var'
  769. includedir='${prefix}/include'
  770. oldincludedir='/usr/include'
  771. docdir='${datarootdir}/doc/${PACKAGE}'
  772. infodir='${datarootdir}/info'
  773. htmldir='${docdir}'
  774. dvidir='${docdir}'
  775. pdfdir='${docdir}'
  776. psdir='${docdir}'
  777. libdir='${exec_prefix}/lib'
  778. localedir='${datarootdir}/locale'
  779. mandir='${datarootdir}/man'
  780. ac_prev=
  781. ac_dashdash=
  782. for ac_option
  783. do
  784. # If the previous option needs an argument, assign it.
  785. if test -n "$ac_prev"; then
  786. eval $ac_prev=\$ac_option
  787. ac_prev=
  788. continue
  789. fi
  790. case $ac_option in
  791. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  792. *) ac_optarg=yes ;;
  793. esac
  794. # Accept the important Cygnus configure options, so we can diagnose typos.
  795. case $ac_dashdash$ac_option in
  796. --)
  797. ac_dashdash=yes ;;
  798. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  799. ac_prev=bindir ;;
  800. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  801. bindir=$ac_optarg ;;
  802. -build | --build | --buil | --bui | --bu)
  803. ac_prev=build_alias ;;
  804. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  805. build_alias=$ac_optarg ;;
  806. -cache-file | --cache-file | --cache-fil | --cache-fi \
  807. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  808. ac_prev=cache_file ;;
  809. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  810. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  811. cache_file=$ac_optarg ;;
  812. --config-cache | -C)
  813. cache_file=config.cache ;;
  814. -datadir | --datadir | --datadi | --datad)
  815. ac_prev=datadir ;;
  816. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  817. datadir=$ac_optarg ;;
  818. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  819. | --dataroo | --dataro | --datar)
  820. ac_prev=datarootdir ;;
  821. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  822. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  823. datarootdir=$ac_optarg ;;
  824. -disable-* | --disable-*)
  825. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  826. # Reject names that are not valid shell variable names.
  827. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  828. as_fn_error "invalid feature name: $ac_useropt"
  829. ac_useropt_orig=$ac_useropt
  830. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  831. case $ac_user_opts in
  832. *"
  833. "enable_$ac_useropt"
  834. "*) ;;
  835. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  836. ac_unrecognized_sep=', ';;
  837. esac
  838. eval enable_$ac_useropt=no ;;
  839. -docdir | --docdir | --docdi | --doc | --do)
  840. ac_prev=docdir ;;
  841. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  842. docdir=$ac_optarg ;;
  843. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  844. ac_prev=dvidir ;;
  845. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  846. dvidir=$ac_optarg ;;
  847. -enable-* | --enable-*)
  848. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  849. # Reject names that are not valid shell variable names.
  850. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  851. as_fn_error "invalid feature name: $ac_useropt"
  852. ac_useropt_orig=$ac_useropt
  853. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  854. case $ac_user_opts in
  855. *"
  856. "enable_$ac_useropt"
  857. "*) ;;
  858. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  859. ac_unrecognized_sep=', ';;
  860. esac
  861. eval enable_$ac_useropt=\$ac_optarg ;;
  862. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  863. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  864. | --exec | --exe | --ex)
  865. ac_prev=exec_prefix ;;
  866. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  867. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  868. | --exec=* | --exe=* | --ex=*)
  869. exec_prefix=$ac_optarg ;;
  870. -gas | --gas | --ga | --g)
  871. # Obsolete; use --with-gas.
  872. with_gas=yes ;;
  873. -help | --help | --hel | --he | -h)
  874. ac_init_help=long ;;
  875. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  876. ac_init_help=recursive ;;
  877. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  878. ac_init_help=short ;;
  879. -host | --host | --hos | --ho)
  880. ac_prev=host_alias ;;
  881. -host=* | --host=* | --hos=* | --ho=*)
  882. host_alias=$ac_optarg ;;
  883. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  884. ac_prev=htmldir ;;
  885. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  886. | --ht=*)
  887. htmldir=$ac_optarg ;;
  888. -includedir | --includedir | --includedi | --included | --include \
  889. | --includ | --inclu | --incl | --inc)
  890. ac_prev=includedir ;;
  891. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  892. | --includ=* | --inclu=* | --incl=* | --inc=*)
  893. includedir=$ac_optarg ;;
  894. -infodir | --infodir | --infodi | --infod | --info | --inf)
  895. ac_prev=infodir ;;
  896. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  897. infodir=$ac_optarg ;;
  898. -libdir | --libdir | --libdi | --libd)
  899. ac_prev=libdir ;;
  900. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  901. libdir=$ac_optarg ;;
  902. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  903. | --libexe | --libex | --libe)
  904. ac_prev=libexecdir ;;
  905. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  906. | --libexe=* | --libex=* | --libe=*)
  907. libexecdir=$ac_optarg ;;
  908. -localedir | --localedir | --localedi | --localed | --locale)
  909. ac_prev=localedir ;;
  910. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  911. localedir=$ac_optarg ;;
  912. -localstatedir | --localstatedir | --localstatedi | --localstated \
  913. | --localstate | --localstat | --localsta | --localst | --locals)
  914. ac_prev=localstatedir ;;
  915. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  916. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  917. localstatedir=$ac_optarg ;;
  918. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  919. ac_prev=mandir ;;
  920. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  921. mandir=$ac_optarg ;;
  922. -nfp | --nfp | --nf)
  923. # Obsolete; use --without-fp.
  924. with_fp=no ;;
  925. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  926. | --no-cr | --no-c | -n)
  927. no_create=yes ;;
  928. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  929. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  930. no_recursion=yes ;;
  931. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  932. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  933. | --oldin | --oldi | --old | --ol | --o)
  934. ac_prev=oldincludedir ;;
  935. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  936. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  937. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  938. oldincludedir=$ac_optarg ;;
  939. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  940. ac_prev=prefix ;;
  941. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  942. prefix=$ac_optarg ;;
  943. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  944. | --program-pre | --program-pr | --program-p)
  945. ac_prev=program_prefix ;;
  946. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  947. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  948. program_prefix=$ac_optarg ;;
  949. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  950. | --program-suf | --program-su | --program-s)
  951. ac_prev=program_suffix ;;
  952. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  953. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  954. program_suffix=$ac_optarg ;;
  955. -program-transform-name | --program-transform-name \
  956. | --program-transform-nam | --program-transform-na \
  957. | --program-transform-n | --program-transform- \
  958. | --program-transform | --program-transfor \
  959. | --program-transfo | --program-transf \
  960. | --program-trans | --program-tran \
  961. | --progr-tra | --program-tr | --program-t)
  962. ac_prev=program_transform_name ;;
  963. -program-transform-name=* | --program-transform-name=* \
  964. | --program-transform-nam=* | --program-transform-na=* \
  965. | --program-transform-n=* | --program-transform-=* \
  966. | --program-transform=* | --program-transfor=* \
  967. | --program-transfo=* | --program-transf=* \
  968. | --program-trans=* | --program-tran=* \
  969. | --progr-tra=* | --program-tr=* | --program-t=*)
  970. program_transform_name=$ac_optarg ;;
  971. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  972. ac_prev=pdfdir ;;
  973. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  974. pdfdir=$ac_optarg ;;
  975. -psdir | --psdir | --psdi | --psd | --ps)
  976. ac_prev=psdir ;;
  977. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  978. psdir=$ac_optarg ;;
  979. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  980. | -silent | --silent | --silen | --sile | --sil)
  981. silent=yes ;;
  982. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  983. ac_prev=sbindir ;;
  984. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  985. | --sbi=* | --sb=*)
  986. sbindir=$ac_optarg ;;
  987. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  988. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  989. | --sharedst | --shareds | --shared | --share | --shar \
  990. | --sha | --sh)
  991. ac_prev=sharedstatedir ;;
  992. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  993. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  994. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  995. | --sha=* | --sh=*)
  996. sharedstatedir=$ac_optarg ;;
  997. -site | --site | --sit)
  998. ac_prev=site ;;
  999. -site=* | --site=* | --sit=*)
  1000. site=$ac_optarg ;;
  1001. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1002. ac_prev=srcdir ;;
  1003. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1004. srcdir=$ac_optarg ;;
  1005. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1006. | --syscon | --sysco | --sysc | --sys | --sy)
  1007. ac_prev=sysconfdir ;;
  1008. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1009. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1010. sysconfdir=$ac_optarg ;;
  1011. -target | --target | --targe | --targ | --tar | --ta | --t)
  1012. ac_prev=target_alias ;;
  1013. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1014. target_alias=$ac_optarg ;;
  1015. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1016. verbose=yes ;;
  1017. -version | --version | --versio | --versi | --vers | -V)
  1018. ac_init_version=: ;;
  1019. -with-* | --with-*)
  1020. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1023. as_fn_error "invalid package name: $ac_useropt"
  1024. ac_useropt_orig=$ac_useropt
  1025. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1026. case $ac_user_opts in
  1027. *"
  1028. "with_$ac_useropt"
  1029. "*) ;;
  1030. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1031. ac_unrecognized_sep=', ';;
  1032. esac
  1033. eval with_$ac_useropt=\$ac_optarg ;;
  1034. -without-* | --without-*)
  1035. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1036. # Reject names that are not valid shell variable names.
  1037. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1038. as_fn_error "invalid package name: $ac_useropt"
  1039. ac_useropt_orig=$ac_useropt
  1040. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1041. case $ac_user_opts in
  1042. *"
  1043. "with_$ac_useropt"
  1044. "*) ;;
  1045. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1046. ac_unrecognized_sep=', ';;
  1047. esac
  1048. eval with_$ac_useropt=no ;;
  1049. --x)
  1050. # Obsolete; use --with-x.
  1051. with_x=yes ;;
  1052. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1053. | --x-incl | --x-inc | --x-in | --x-i)
  1054. ac_prev=x_includes ;;
  1055. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1056. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1057. x_includes=$ac_optarg ;;
  1058. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1059. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1060. ac_prev=x_libraries ;;
  1061. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1062. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1063. x_libraries=$ac_optarg ;;
  1064. -*) as_fn_error "unrecognized option: \`$ac_option'
  1065. Try \`$0 --help' for more information."
  1066. ;;
  1067. *=*)
  1068. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1069. # Reject names that are not valid shell variable names.
  1070. case $ac_envvar in #(
  1071. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1072. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1073. esac
  1074. eval $ac_envvar=\$ac_optarg
  1075. export $ac_envvar ;;
  1076. *)
  1077. # FIXME: should be removed in autoconf 3.0.
  1078. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1079. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1080. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1081. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1082. ;;
  1083. esac
  1084. done
  1085. if test -n "$ac_prev"; then
  1086. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1087. as_fn_error "missing argument to $ac_option"
  1088. fi
  1089. if test -n "$ac_unrecognized_opts"; then
  1090. case $enable_option_checking in
  1091. no) ;;
  1092. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1093. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1094. esac
  1095. fi
  1096. # Check all directory arguments for consistency.
  1097. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1098. datadir sysconfdir sharedstatedir localstatedir includedir \
  1099. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1100. libdir localedir mandir
  1101. do
  1102. eval ac_val=\$$ac_var
  1103. # Remove trailing slashes.
  1104. case $ac_val in
  1105. */ )
  1106. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1107. eval $ac_var=\$ac_val;;
  1108. esac
  1109. # Be sure to have absolute directory names.
  1110. case $ac_val in
  1111. [\\/$]* | ?:[\\/]* ) continue;;
  1112. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1113. esac
  1114. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1115. done
  1116. # There might be people who depend on the old broken behavior: `$host'
  1117. # used to hold the argument of --host etc.
  1118. # FIXME: To remove some day.
  1119. build=$build_alias
  1120. host=$host_alias
  1121. target=$target_alias
  1122. # FIXME: To remove some day.
  1123. if test "x$host_alias" != x; then
  1124. if test "x$build_alias" = x; then
  1125. cross_compiling=maybe
  1126. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1127. If a cross compiler is detected then cross compile mode will be used." >&2
  1128. elif test "x$build_alias" != "x$host_alias"; then
  1129. cross_compiling=yes
  1130. fi
  1131. fi
  1132. ac_tool_prefix=
  1133. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1134. test "$silent" = yes && exec 6>/dev/null
  1135. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1136. ac_ls_di=`ls -di .` &&
  1137. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1138. as_fn_error "working directory cannot be determined"
  1139. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1140. as_fn_error "pwd does not report name of working directory"
  1141. # Find the source files, if location was not specified.
  1142. if test -z "$srcdir"; then
  1143. ac_srcdir_defaulted=yes
  1144. # Try the directory containing this script, then the parent directory.
  1145. ac_confdir=`$as_dirname -- "$as_myself" ||
  1146. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1147. X"$as_myself" : 'X\(//\)[^/]' \| \
  1148. X"$as_myself" : 'X\(//\)$' \| \
  1149. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1150. $as_echo X"$as_myself" |
  1151. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1152. s//\1/
  1153. q
  1154. }
  1155. /^X\(\/\/\)[^/].*/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\/\)$/{
  1160. s//\1/
  1161. q
  1162. }
  1163. /^X\(\/\).*/{
  1164. s//\1/
  1165. q
  1166. }
  1167. s/.*/./; q'`
  1168. srcdir=$ac_confdir
  1169. if test ! -r "$srcdir/$ac_unique_file"; then
  1170. srcdir=..
  1171. fi
  1172. else
  1173. ac_srcdir_defaulted=no
  1174. fi
  1175. if test ! -r "$srcdir/$ac_unique_file"; then
  1176. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1177. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1178. fi
  1179. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1180. ac_abs_confdir=`(
  1181. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1182. pwd)`
  1183. # When building in place, set srcdir=.
  1184. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1185. srcdir=.
  1186. fi
  1187. # Remove unnecessary trailing slashes from srcdir.
  1188. # Double slashes in file names in object file debugging info
  1189. # mess up M-x gdb in Emacs.
  1190. case $srcdir in
  1191. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1192. esac
  1193. for ac_var in $ac_precious_vars; do
  1194. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1195. eval ac_env_${ac_var}_value=\$${ac_var}
  1196. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1197. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1198. done
  1199. #
  1200. # Report the --help message.
  1201. #
  1202. if test "$ac_init_help" = "long"; then
  1203. # Omit some internal or obsolete options to make the list less imposing.
  1204. # This message is too long to be a string in the A/UX 3.1 sh.
  1205. cat <<_ACEOF
  1206. \`configure' configures this package to adapt to many kinds of systems.
  1207. Usage: $0 [OPTION]... [VAR=VALUE]...
  1208. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1209. VAR=VALUE. See below for descriptions of some of the useful variables.
  1210. Defaults for the options are specified in brackets.
  1211. Configuration:
  1212. -h, --help display this help and exit
  1213. --help=short display options specific to this package
  1214. --help=recursive display the short help of all the included packages
  1215. -V, --version display version information and exit
  1216. -q, --quiet, --silent do not print \`checking...' messages
  1217. --cache-file=FILE cache test results in FILE [disabled]
  1218. -C, --config-cache alias for \`--cache-file=config.cache'
  1219. -n, --no-create do not create output files
  1220. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1221. Installation directories:
  1222. --prefix=PREFIX install architecture-independent files in PREFIX
  1223. [$ac_default_prefix]
  1224. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1225. [PREFIX]
  1226. By default, \`make install' will install all the files in
  1227. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1228. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1229. for instance \`--prefix=\$HOME'.
  1230. For better control, use the options below.
  1231. Fine tuning of the installation directories:
  1232. --bindir=DIR user executables [EPREFIX/bin]
  1233. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1234. --libexecdir=DIR program executables [EPREFIX/libexec]
  1235. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1236. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1237. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1238. --libdir=DIR object code libraries [EPREFIX/lib]
  1239. --includedir=DIR C header files [PREFIX/include]
  1240. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1241. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1242. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1243. --infodir=DIR info documentation [DATAROOTDIR/info]
  1244. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1245. --mandir=DIR man documentation [DATAROOTDIR/man]
  1246. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1247. --htmldir=DIR html documentation [DOCDIR]
  1248. --dvidir=DIR dvi documentation [DOCDIR]
  1249. --pdfdir=DIR pdf documentation [DOCDIR]
  1250. --psdir=DIR ps documentation [DOCDIR]
  1251. _ACEOF
  1252. cat <<\_ACEOF
  1253. Program names:
  1254. --program-prefix=PREFIX prepend PREFIX to installed program names
  1255. --program-suffix=SUFFIX append SUFFIX to installed program names
  1256. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1257. System types:
  1258. --build=BUILD configure for building on BUILD [guessed]
  1259. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1260. --target=TARGET configure for building compilers for TARGET [HOST]
  1261. _ACEOF
  1262. fi
  1263. if test -n "$ac_init_help"; then
  1264. cat <<\_ACEOF
  1265. Optional Features:
  1266. --disable-option-checking ignore unrecognized --enable/--with options
  1267. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1268. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1269. --enable-plugins Enable support for plugins
  1270. --enable-shared[=PKGS] build shared libraries [default=yes]
  1271. --enable-static[=PKGS] build static libraries [default=yes]
  1272. --enable-fast-install[=PKGS]
  1273. optimize for fast installation [default=yes]
  1274. --disable-libtool-lock avoid locking (might break parallel builds)
  1275. --enable-maintainer-mode enable make rules and dependencies not useful
  1276. (and sometimes confusing) to the casual installer
  1277. --enable-sim-bswap Use Host specific BSWAP instruction
  1278. --enable-sim-cflags=opts
  1279. Extra CFLAGS for use in building simulator
  1280. --enable-sim-debug=opts Enable debugging flags (for developers of the sim
  1281. itself)
  1282. --enable-sim-stdio Specify whether to use stdio for console
  1283. input/output
  1284. --enable-sim-trace=opts Enable tracing of simulated programs
  1285. --enable-sim-profile=opts
  1286. Enable profiling flags
  1287. --enable-sim-endian=endian
  1288. Specify target byte endian orientation
  1289. --enable-sim-alignment=align
  1290. Specify strict, nonstrict or forced alignment of
  1291. memory accesses
  1292. --enable-sim-hostendian=end
  1293. Specify host byte endian orientation
  1294. --enable-sim-scache=size
  1295. Specify simulator execution cache size
  1296. --enable-sim-default-model=model
  1297. Specify default model to simulate
  1298. --enable-sim-environment=environment
  1299. Specify mixed, user, virtual or operating
  1300. environment
  1301. --enable-cgen-maint=DIR build cgen generated files
  1302. --enable-sim-hardware=LIST
  1303. Specify the hardware to be included in the build.
  1304. Optional Packages:
  1305. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1306. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1307. --with-system-zlib use installed libz
  1308. --with-pic try to use only PIC/non-PIC objects [default=use
  1309. both]
  1310. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1311. --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
  1312. --with-bugurl=URL Direct users to URL to report a bug
  1313. Some influential environment variables:
  1314. CC C compiler command
  1315. CFLAGS C compiler flags
  1316. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1317. nonstandard directory <lib dir>
  1318. LIBS libraries to pass to the linker, e.g. -l<library>
  1319. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1320. you have headers in a nonstandard directory <include dir>
  1321. CPP C preprocessor
  1322. Use these variables to override the choices made by `configure' or to help
  1323. it to find libraries and programs with nonstandard names/locations.
  1324. Report bugs to the package provider.
  1325. _ACEOF
  1326. ac_status=$?
  1327. fi
  1328. if test "$ac_init_help" = "recursive"; then
  1329. # If there are subdirs, report their specific --help.
  1330. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1331. test -d "$ac_dir" ||
  1332. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1333. continue
  1334. ac_builddir=.
  1335. case "$ac_dir" in
  1336. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1337. *)
  1338. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1339. # A ".." for each directory in $ac_dir_suffix.
  1340. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1341. case $ac_top_builddir_sub in
  1342. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1343. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1344. esac ;;
  1345. esac
  1346. ac_abs_top_builddir=$ac_pwd
  1347. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1348. # for backward compatibility:
  1349. ac_top_builddir=$ac_top_build_prefix
  1350. case $srcdir in
  1351. .) # We are building in place.
  1352. ac_srcdir=.
  1353. ac_top_srcdir=$ac_top_builddir_sub
  1354. ac_abs_top_srcdir=$ac_pwd ;;
  1355. [\\/]* | ?:[\\/]* ) # Absolute name.
  1356. ac_srcdir=$srcdir$ac_dir_suffix;
  1357. ac_top_srcdir=$srcdir
  1358. ac_abs_top_srcdir=$srcdir ;;
  1359. *) # Relative name.
  1360. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1361. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1362. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1363. esac
  1364. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1365. cd "$ac_dir" || { ac_status=$?; continue; }
  1366. # Check for guested configure.
  1367. if test -f "$ac_srcdir/configure.gnu"; then
  1368. echo &&
  1369. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1370. elif test -f "$ac_srcdir/configure"; then
  1371. echo &&
  1372. $SHELL "$ac_srcdir/configure" --help=recursive
  1373. else
  1374. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1375. fi || ac_status=$?
  1376. cd "$ac_pwd" || { ac_status=$?; break; }
  1377. done
  1378. fi
  1379. test -n "$ac_init_help" && exit $ac_status
  1380. if $ac_init_version; then
  1381. cat <<\_ACEOF
  1382. configure
  1383. generated by GNU Autoconf 2.64
  1384. Copyright (C) 2009 Free Software Foundation, Inc.
  1385. This configure script is free software; the Free Software Foundation
  1386. gives unlimited permission to copy, distribute and modify it.
  1387. _ACEOF
  1388. exit
  1389. fi
  1390. ## ------------------------ ##
  1391. ## Autoconf initialization. ##
  1392. ## ------------------------ ##
  1393. # ac_fn_c_try_compile LINENO
  1394. # --------------------------
  1395. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1396. ac_fn_c_try_compile ()
  1397. {
  1398. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1399. rm -f conftest.$ac_objext
  1400. if { { ac_try="$ac_compile"
  1401. case "(($ac_try" in
  1402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1403. *) ac_try_echo=$ac_try;;
  1404. esac
  1405. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1406. $as_echo "$ac_try_echo"; } >&5
  1407. (eval "$ac_compile") 2>conftest.err
  1408. ac_status=$?
  1409. if test -s conftest.err; then
  1410. grep -v '^ *+' conftest.err >conftest.er1
  1411. cat conftest.er1 >&5
  1412. mv -f conftest.er1 conftest.err
  1413. fi
  1414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1415. test $ac_status = 0; } && {
  1416. test -z "$ac_c_werror_flag" ||
  1417. test ! -s conftest.err
  1418. } && test -s conftest.$ac_objext; then :
  1419. ac_retval=0
  1420. else
  1421. $as_echo "$as_me: failed program was:" >&5
  1422. sed 's/^/| /' conftest.$ac_ext >&5
  1423. ac_retval=1
  1424. fi
  1425. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1426. return $ac_retval
  1427. } # ac_fn_c_try_compile
  1428. # ac_fn_c_try_cpp LINENO
  1429. # ----------------------
  1430. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1431. ac_fn_c_try_cpp ()
  1432. {
  1433. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1434. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1435. case "(($ac_try" in
  1436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1437. *) ac_try_echo=$ac_try;;
  1438. esac
  1439. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1440. $as_echo "$ac_try_echo"; } >&5
  1441. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1442. ac_status=$?
  1443. if test -s conftest.err; then
  1444. grep -v '^ *+' conftest.err >conftest.er1
  1445. cat conftest.er1 >&5
  1446. mv -f conftest.er1 conftest.err
  1447. fi
  1448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1449. test $ac_status = 0; } >/dev/null && {
  1450. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1451. test ! -s conftest.err
  1452. }; then :
  1453. ac_retval=0
  1454. else
  1455. $as_echo "$as_me: failed program was:" >&5
  1456. sed 's/^/| /' conftest.$ac_ext >&5
  1457. ac_retval=1
  1458. fi
  1459. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1460. return $ac_retval
  1461. } # ac_fn_c_try_cpp
  1462. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1463. # -------------------------------------------------------
  1464. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1465. # the include files in INCLUDES and setting the cache variable VAR
  1466. # accordingly.
  1467. ac_fn_c_check_header_mongrel ()
  1468. {
  1469. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1470. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1472. $as_echo_n "checking for $2... " >&6; }
  1473. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1474. $as_echo_n "(cached) " >&6
  1475. fi
  1476. eval ac_res=\$$3
  1477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1478. $as_echo "$ac_res" >&6; }
  1479. else
  1480. # Is the header compilable?
  1481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1482. $as_echo_n "checking $2 usability... " >&6; }
  1483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1484. /* end confdefs.h. */
  1485. $4
  1486. #include <$2>
  1487. _ACEOF
  1488. if ac_fn_c_try_compile "$LINENO"; then :
  1489. ac_header_compiler=yes
  1490. else
  1491. ac_header_compiler=no
  1492. fi
  1493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1495. $as_echo "$ac_header_compiler" >&6; }
  1496. # Is the header present?
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1498. $as_echo_n "checking $2 presence... " >&6; }
  1499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1500. /* end confdefs.h. */
  1501. #include <$2>
  1502. _ACEOF
  1503. if ac_fn_c_try_cpp "$LINENO"; then :
  1504. ac_header_preproc=yes
  1505. else
  1506. ac_header_preproc=no
  1507. fi
  1508. rm -f conftest.err conftest.$ac_ext
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1510. $as_echo "$ac_header_preproc" >&6; }
  1511. # So? What about this header?
  1512. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1513. yes:no: )
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1515. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1517. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1518. ;;
  1519. no:yes:* )
  1520. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1521. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1523. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1525. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1527. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1529. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1530. ;;
  1531. esac
  1532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1533. $as_echo_n "checking for $2... " >&6; }
  1534. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1535. $as_echo_n "(cached) " >&6
  1536. else
  1537. eval "$3=\$ac_header_compiler"
  1538. fi
  1539. eval ac_res=\$$3
  1540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1541. $as_echo "$ac_res" >&6; }
  1542. fi
  1543. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1544. } # ac_fn_c_check_header_mongrel
  1545. # ac_fn_c_try_run LINENO
  1546. # ----------------------
  1547. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1548. # that executables *can* be run.
  1549. ac_fn_c_try_run ()
  1550. {
  1551. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1552. if { { ac_try="$ac_link"
  1553. case "(($ac_try" in
  1554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1555. *) ac_try_echo=$ac_try;;
  1556. esac
  1557. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1558. $as_echo "$ac_try_echo"; } >&5
  1559. (eval "$ac_link") 2>&5
  1560. ac_status=$?
  1561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1562. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1563. { { case "(($ac_try" in
  1564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1565. *) ac_try_echo=$ac_try;;
  1566. esac
  1567. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1568. $as_echo "$ac_try_echo"; } >&5
  1569. (eval "$ac_try") 2>&5
  1570. ac_status=$?
  1571. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1572. test $ac_status = 0; }; }; then :
  1573. ac_retval=0
  1574. else
  1575. $as_echo "$as_me: program exited with status $ac_status" >&5
  1576. $as_echo "$as_me: failed program was:" >&5
  1577. sed 's/^/| /' conftest.$ac_ext >&5
  1578. ac_retval=$ac_status
  1579. fi
  1580. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1581. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1582. return $ac_retval
  1583. } # ac_fn_c_try_run
  1584. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1585. # -------------------------------------------------------
  1586. # Tests whether HEADER exists and can be compiled using the include files in
  1587. # INCLUDES, setting the cache variable VAR accordingly.
  1588. ac_fn_c_check_header_compile ()
  1589. {
  1590. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1592. $as_echo_n "checking for $2... " >&6; }
  1593. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1594. $as_echo_n "(cached) " >&6
  1595. else
  1596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1597. /* end confdefs.h. */
  1598. $4
  1599. #include <$2>
  1600. _ACEOF
  1601. if ac_fn_c_try_compile "$LINENO"; then :
  1602. eval "$3=yes"
  1603. else
  1604. eval "$3=no"
  1605. fi
  1606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1607. fi
  1608. eval ac_res=\$$3
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1610. $as_echo "$ac_res" >&6; }
  1611. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1612. } # ac_fn_c_check_header_compile
  1613. # ac_fn_c_try_link LINENO
  1614. # -----------------------
  1615. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1616. ac_fn_c_try_link ()
  1617. {
  1618. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1619. rm -f conftest.$ac_objext conftest$ac_exeext
  1620. if { { ac_try="$ac_link"
  1621. case "(($ac_try" in
  1622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1623. *) ac_try_echo=$ac_try;;
  1624. esac
  1625. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1626. $as_echo "$ac_try_echo"; } >&5
  1627. (eval "$ac_link") 2>conftest.err
  1628. ac_status=$?
  1629. if test -s conftest.err; then
  1630. grep -v '^ *+' conftest.err >conftest.er1
  1631. cat conftest.er1 >&5
  1632. mv -f conftest.er1 conftest.err
  1633. fi
  1634. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1635. test $ac_status = 0; } && {
  1636. test -z "$ac_c_werror_flag" ||
  1637. test ! -s conftest.err
  1638. } && test -s conftest$ac_exeext && {
  1639. test "$cross_compiling" = yes ||
  1640. $as_test_x conftest$ac_exeext
  1641. }; then :
  1642. ac_retval=0
  1643. else
  1644. $as_echo "$as_me: failed program was:" >&5
  1645. sed 's/^/| /' conftest.$ac_ext >&5
  1646. ac_retval=1
  1647. fi
  1648. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1649. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1650. # interfere with the next link command; also delete a directory that is
  1651. # left behind by Apple's compiler. We do this before executing the actions.
  1652. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1653. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1654. return $ac_retval
  1655. } # ac_fn_c_try_link
  1656. # ac_fn_c_check_func LINENO FUNC VAR
  1657. # ----------------------------------
  1658. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1659. ac_fn_c_check_func ()
  1660. {
  1661. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1663. $as_echo_n "checking for $2... " >&6; }
  1664. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1665. $as_echo_n "(cached) " >&6
  1666. else
  1667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1668. /* end confdefs.h. */
  1669. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1670. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1671. #define $2 innocuous_$2
  1672. /* System header to define __stub macros and hopefully few prototypes,
  1673. which can conflict with char $2 (); below.
  1674. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1675. <limits.h> exists even on freestanding compilers. */
  1676. #ifdef __STDC__
  1677. # include <limits.h>
  1678. #else
  1679. # include <assert.h>
  1680. #endif
  1681. #undef $2
  1682. /* Override any GCC internal prototype to avoid an error.
  1683. Use char because int might match the return type of a GCC
  1684. builtin and then its argument prototype would still apply. */
  1685. #ifdef __cplusplus
  1686. extern "C"
  1687. #endif
  1688. char $2 ();
  1689. /* The GNU C library defines this for functions which it implements
  1690. to always fail with ENOSYS. Some functions are actually named
  1691. something starting with __ and the normal name is an alias. */
  1692. #if defined __stub_$2 || defined __stub___$2
  1693. choke me
  1694. #endif
  1695. int
  1696. main ()
  1697. {
  1698. return $2 ();
  1699. ;
  1700. return 0;
  1701. }
  1702. _ACEOF
  1703. if ac_fn_c_try_link "$LINENO"; then :
  1704. eval "$3=yes"
  1705. else
  1706. eval "$3=no"
  1707. fi
  1708. rm -f core conftest.err conftest.$ac_objext \
  1709. conftest$ac_exeext conftest.$ac_ext
  1710. fi
  1711. eval ac_res=\$$3
  1712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1713. $as_echo "$ac_res" >&6; }
  1714. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1715. } # ac_fn_c_check_func
  1716. cat >config.log <<_ACEOF
  1717. This file contains any messages produced by compilers while
  1718. running configure, to aid debugging if configure makes a mistake.
  1719. It was created by $as_me, which was
  1720. generated by GNU Autoconf 2.64. Invocation command line was
  1721. $ $0 $@
  1722. _ACEOF
  1723. exec 5>>config.log
  1724. {
  1725. cat <<_ASUNAME
  1726. ## --------- ##
  1727. ## Platform. ##
  1728. ## --------- ##
  1729. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1730. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1731. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1732. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1733. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1734. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1735. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1736. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1737. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1738. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1739. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1740. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1741. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1742. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1743. _ASUNAME
  1744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1745. for as_dir in $PATH
  1746. do
  1747. IFS=$as_save_IFS
  1748. test -z "$as_dir" && as_dir=.
  1749. $as_echo "PATH: $as_dir"
  1750. done
  1751. IFS=$as_save_IFS
  1752. } >&5
  1753. cat >&5 <<_ACEOF
  1754. ## ----------- ##
  1755. ## Core tests. ##
  1756. ## ----------- ##
  1757. _ACEOF
  1758. # Keep a trace of the command line.
  1759. # Strip out --no-create and --no-recursion so they do not pile up.
  1760. # Strip out --silent because we don't want to record it for future runs.
  1761. # Also quote any args containing shell meta-characters.
  1762. # Make two passes to allow for proper duplicate-argument suppression.
  1763. ac_configure_args=
  1764. ac_configure_args0=
  1765. ac_configure_args1=
  1766. ac_must_keep_next=false
  1767. for ac_pass in 1 2
  1768. do
  1769. for ac_arg
  1770. do
  1771. case $ac_arg in
  1772. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1773. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1774. | -silent | --silent | --silen | --sile | --sil)
  1775. continue ;;
  1776. *\'*)
  1777. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1778. esac
  1779. case $ac_pass in
  1780. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1781. 2)
  1782. as_fn_append ac_configure_args1 " '$ac_arg'"
  1783. if test $ac_must_keep_next = true; then
  1784. ac_must_keep_next=false # Got value, back to normal.
  1785. else
  1786. case $ac_arg in
  1787. *=* | --config-cache | -C | -disable-* | --disable-* \
  1788. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1789. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1790. | -with-* | --with-* | -without-* | --without-* | --x)
  1791. case "$ac_configure_args0 " in
  1792. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1793. esac
  1794. ;;
  1795. -* ) ac_must_keep_next=true ;;
  1796. esac
  1797. fi
  1798. as_fn_append ac_configure_args " '$ac_arg'"
  1799. ;;
  1800. esac
  1801. done
  1802. done
  1803. { ac_configure_args0=; unset ac_configure_args0;}
  1804. { ac_configure_args1=; unset ac_configure_args1;}
  1805. # When interrupted or exit'd, cleanup temporary files, and complete
  1806. # config.log. We remove comments because anyway the quotes in there
  1807. # would cause problems or look ugly.
  1808. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1809. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1810. trap 'exit_status=$?
  1811. # Save into config.log some information that might help in debugging.
  1812. {
  1813. echo
  1814. cat <<\_ASBOX
  1815. ## ---------------- ##
  1816. ## Cache variables. ##
  1817. ## ---------------- ##
  1818. _ASBOX
  1819. echo
  1820. # The following way of writing the cache mishandles newlines in values,
  1821. (
  1822. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1823. eval ac_val=\$$ac_var
  1824. case $ac_val in #(
  1825. *${as_nl}*)
  1826. case $ac_var in #(
  1827. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1828. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1829. esac
  1830. case $ac_var in #(
  1831. _ | IFS | as_nl) ;; #(
  1832. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1833. *) { eval $ac_var=; unset $ac_var;} ;;
  1834. esac ;;
  1835. esac
  1836. done
  1837. (set) 2>&1 |
  1838. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1839. *${as_nl}ac_space=\ *)
  1840. sed -n \
  1841. "s/'\''/'\''\\\\'\'''\''/g;
  1842. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1843. ;; #(
  1844. *)
  1845. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1846. ;;
  1847. esac |
  1848. sort
  1849. )
  1850. echo
  1851. cat <<\_ASBOX
  1852. ## ----------------- ##
  1853. ## Output variables. ##
  1854. ## ----------------- ##
  1855. _ASBOX
  1856. echo
  1857. for ac_var in $ac_subst_vars
  1858. do
  1859. eval ac_val=\$$ac_var
  1860. case $ac_val in
  1861. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1862. esac
  1863. $as_echo "$ac_var='\''$ac_val'\''"
  1864. done | sort
  1865. echo
  1866. if test -n "$ac_subst_files"; then
  1867. cat <<\_ASBOX
  1868. ## ------------------- ##
  1869. ## File substitutions. ##
  1870. ## ------------------- ##
  1871. _ASBOX
  1872. echo
  1873. for ac_var in $ac_subst_files
  1874. do
  1875. eval ac_val=\$$ac_var
  1876. case $ac_val in
  1877. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1878. esac
  1879. $as_echo "$ac_var='\''$ac_val'\''"
  1880. done | sort
  1881. echo
  1882. fi
  1883. if test -s confdefs.h; then
  1884. cat <<\_ASBOX
  1885. ## ----------- ##
  1886. ## confdefs.h. ##
  1887. ## ----------- ##
  1888. _ASBOX
  1889. echo
  1890. cat confdefs.h
  1891. echo
  1892. fi
  1893. test "$ac_signal" != 0 &&
  1894. $as_echo "$as_me: caught signal $ac_signal"
  1895. $as_echo "$as_me: exit $exit_status"
  1896. } >&5
  1897. rm -f core *.core core.conftest.* &&
  1898. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1899. exit $exit_status
  1900. ' 0
  1901. for ac_signal in 1 2 13 15; do
  1902. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1903. done
  1904. ac_signal=0
  1905. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1906. rm -f -r conftest* confdefs.h
  1907. $as_echo "/* confdefs.h */" > confdefs.h
  1908. # Predefined preprocessor variables.
  1909. cat >>confdefs.h <<_ACEOF
  1910. #define PACKAGE_NAME "$PACKAGE_NAME"
  1911. _ACEOF
  1912. cat >>confdefs.h <<_ACEOF
  1913. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1914. _ACEOF
  1915. cat >>confdefs.h <<_ACEOF
  1916. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1917. _ACEOF
  1918. cat >>confdefs.h <<_ACEOF
  1919. #define PACKAGE_STRING "$PACKAGE_STRING"
  1920. _ACEOF
  1921. cat >>confdefs.h <<_ACEOF
  1922. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1923. _ACEOF
  1924. cat >>confdefs.h <<_ACEOF
  1925. #define PACKAGE_URL "$PACKAGE_URL"
  1926. _ACEOF
  1927. # Let the site file select an alternate cache file if it wants to.
  1928. # Prefer an explicitly selected file to automatically selected ones.
  1929. ac_site_file1=NONE
  1930. ac_site_file2=NONE
  1931. if test -n "$CONFIG_SITE"; then
  1932. ac_site_file1=$CONFIG_SITE
  1933. elif test "x$prefix" != xNONE; then
  1934. ac_site_file1=$prefix/share/config.site
  1935. ac_site_file2=$prefix/etc/config.site
  1936. else
  1937. ac_site_file1=$ac_default_prefix/share/config.site
  1938. ac_site_file2=$ac_default_prefix/etc/config.site
  1939. fi
  1940. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1941. do
  1942. test "x$ac_site_file" = xNONE && continue
  1943. if test -r "$ac_site_file"; then
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1945. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1946. sed 's/^/| /' "$ac_site_file" >&5
  1947. . "$ac_site_file"
  1948. fi
  1949. done
  1950. if test -r "$cache_file"; then
  1951. # Some versions of bash will fail to source /dev/null (special
  1952. # files actually), so we avoid doing that.
  1953. if test -f "$cache_file"; then
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1955. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1956. case $cache_file in
  1957. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1958. *) . "./$cache_file";;
  1959. esac
  1960. fi
  1961. else
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1963. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1964. >$cache_file
  1965. fi
  1966. # Check that the precious variables saved in the cache have kept the same
  1967. # value.
  1968. ac_cache_corrupted=false
  1969. for ac_var in $ac_precious_vars; do
  1970. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1971. eval ac_new_set=\$ac_env_${ac_var}_set
  1972. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1973. eval ac_new_val=\$ac_env_${ac_var}_value
  1974. case $ac_old_set,$ac_new_set in
  1975. set,)
  1976. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1977. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1978. ac_cache_corrupted=: ;;
  1979. ,set)
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1981. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1982. ac_cache_corrupted=: ;;
  1983. ,);;
  1984. *)
  1985. if test "x$ac_old_val" != "x$ac_new_val"; then
  1986. # differences in whitespace do not lead to failure.
  1987. ac_old_val_w=`echo x $ac_old_val`
  1988. ac_new_val_w=`echo x $ac_new_val`
  1989. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1991. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1992. ac_cache_corrupted=:
  1993. else
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1995. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1996. eval $ac_var=\$ac_old_val
  1997. fi
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1999. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2001. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2002. fi;;
  2003. esac
  2004. # Pass precious variables to config.status.
  2005. if test "$ac_new_set" = set; then
  2006. case $ac_new_val in
  2007. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2008. *) ac_arg=$ac_var=$ac_new_val ;;
  2009. esac
  2010. case " $ac_configure_args " in
  2011. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2012. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2013. esac
  2014. fi
  2015. done
  2016. if $ac_cache_corrupted; then
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2018. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2019. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2020. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2021. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2022. fi
  2023. ## -------------------- ##
  2024. ## Main body of script. ##
  2025. ## -------------------- ##
  2026. ac_ext=c
  2027. ac_cpp='$CPP $CPPFLAGS'
  2028. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2029. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2030. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2031. # This file contains common code used by all simulators.
  2032. #
  2033. # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
  2034. # directory. It is intended to be invoked before any target specific stuff.
  2035. # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
  2036. # It is intended to be invoked last.
  2037. #
  2038. # The simulator's configure.ac should look like:
  2039. #
  2040. # dnl Process this file with autoconf to produce a configure script.
  2041. # AC_PREREQ(2.64)dnl
  2042. # AC_INIT(Makefile.in)
  2043. # sinclude(../common/aclocal.m4)
  2044. #
  2045. # SIM_AC_COMMON
  2046. #
  2047. # ... target specific stuff ...
  2048. #
  2049. # SIM_AC_OUTPUT
  2050. # Include global overrides and fixes for Autoconf.
  2051. # _AC_CHECK_DECL_BODY
  2052. # -------------------
  2053. # Shell function body for AC_CHECK_DECL.
  2054. # _AC_CHECK_DECL_BODY
  2055. # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
  2056. # INCLUDES)
  2057. # -------------------------------------------------------------
  2058. # Helper to AC_CHECK_DECLS, which generates the check for a single
  2059. # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
  2060. # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
  2061. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  2062. #
  2063. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  2064. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  2065. # Written by Gordon Matzigkeit, 1996
  2066. #
  2067. # This file is free software; the Free Software Foundation gives
  2068. # unlimited permission to copy and/or distribute it, with or without
  2069. # modifications, as long as this notice is preserved.
  2070. # serial 56 LT_INIT
  2071. # LT_PREREQ(VERSION)
  2072. # ------------------
  2073. # Complain and exit if this libtool version is less that VERSION.
  2074. # _LT_CHECK_BUILDDIR
  2075. # ------------------
  2076. # Complain if the absolute build directory name contains unusual characters
  2077. # LT_INIT([OPTIONS])
  2078. # ------------------
  2079. # LT_INIT
  2080. # Old names:
  2081. # This is what autoupdate's m4 run will expand. It fires
  2082. # the warning (with _au_warn_XXX), outputs it into the
  2083. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2084. # the replacement expansion.
  2085. # This is an auxiliary macro that is also run when
  2086. # autoupdate runs m4. It simply calls m4_warning, but
  2087. # we need a wrapper so that each warning is emitted only
  2088. # once. We break the quoting in m4_warning's argument in
  2089. # order to expand this macro's arguments, not AU_DEFUN's.
  2090. # Finally, this is the expansion that is picked up by
  2091. # autoconf. It tells the user to run autoupdate, and
  2092. # then outputs the replacement expansion. We do not care
  2093. # about autoupdate's warning because that contains
  2094. # information on what to do *after* running autoupdate.
  2095. # This is what autoupdate's m4 run will expand. It fires
  2096. # the warning (with _au_warn_XXX), outputs it into the
  2097. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2098. # the replacement expansion.
  2099. # This is an auxiliary macro that is also run when
  2100. # autoupdate runs m4. It simply calls m4_warning, but
  2101. # we need a wrapper so that each warning is emitted only
  2102. # once. We break the quoting in m4_warning's argument in
  2103. # order to expand this macro's arguments, not AU_DEFUN's.
  2104. # Finally, this is the expansion that is picked up by
  2105. # autoconf. It tells the user to run autoupdate, and
  2106. # then outputs the replacement expansion. We do not care
  2107. # about autoupdate's warning because that contains
  2108. # information on what to do *after* running autoupdate.
  2109. # _LT_CC_BASENAME(CC)
  2110. # -------------------
  2111. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  2112. # _LT_FILEUTILS_DEFAULTS
  2113. # ----------------------
  2114. # It is okay to use these file commands and assume they have been set
  2115. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  2116. # _LT_FILEUTILS_DEFAULTS
  2117. # _LT_SETUP
  2118. # ---------
  2119. # _LT_SETUP
  2120. # _LT_PREPARE_SED_QUOTE_VARS
  2121. # --------------------------
  2122. # Define a few sed substitution that help us do robust quoting.
  2123. # _LT_PROG_LTMAIN
  2124. # ---------------
  2125. # Note that this code is called both from `configure', and `config.status'
  2126. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  2127. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  2128. # so we pass a copy along to make sure it has a sensible value anyway.
  2129. # _LT_PROG_LTMAIN
  2130. ## ------------------------------------- ##
  2131. ## Accumulate code for creating libtool. ##
  2132. ## ------------------------------------- ##
  2133. # So that we can recreate a full libtool script including additional
  2134. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  2135. # in macros and then make a single call at the end using the `libtool'
  2136. # label.
  2137. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  2138. # ----------------------------------------
  2139. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2140. # Initialize.
  2141. # _LT_CONFIG_LIBTOOL([COMMANDS])
  2142. # ------------------------------
  2143. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2144. # Initialize.
  2145. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  2146. # -----------------------------------------------------
  2147. # _LT_FORMAT_COMMENT([COMMENT])
  2148. # -----------------------------
  2149. # Add leading comment marks to the start of each line, and a trailing
  2150. # full-stop to the whole comment if one is not present already.
  2151. ## ------------------------ ##
  2152. ## FIXME: Eliminate VARNAME ##
  2153. ## ------------------------ ##
  2154. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  2155. # -------------------------------------------------------------------
  2156. # CONFIGNAME is the name given to the value in the libtool script.
  2157. # VARNAME is the (base) name used in the configure script.
  2158. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  2159. # VARNAME. Any other value will be used directly.
  2160. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  2161. # --------------------------------------------------------
  2162. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  2163. # ------------------------------------------------
  2164. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  2165. # ---------------------------------------------------------
  2166. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  2167. # --------------------------------------------------
  2168. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  2169. # ---------------------------------------------------
  2170. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  2171. # ---------------------------------------------------
  2172. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  2173. # ------------------------------------------------
  2174. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  2175. # ------------------------------------
  2176. # Quote a variable value, and forward it to `config.status' so that its
  2177. # declaration there will have the same value as in `configure'. VARNAME
  2178. # must have a single quote delimited value for this to work.
  2179. # _LT_CONFIG_STATUS_DECLARATIONS
  2180. # ------------------------------
  2181. # We delimit libtool config variables with single quotes, so when
  2182. # we write them to config.status, we have to be sure to quote all
  2183. # embedded single quotes properly. In configure, this macro expands
  2184. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  2185. #
  2186. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  2187. # _LT_LIBTOOL_TAGS
  2188. # ----------------
  2189. # Output comment and list of tags supported by the script
  2190. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  2191. # -----------------------------------
  2192. # Extract the dictionary values for VARNAME (optionally with TAG) and
  2193. # expand to a commented shell variable setting:
  2194. #
  2195. # # Some comment about what VAR is for.
  2196. # visible_name=$lt_internal_name
  2197. # _LT_LIBTOOL_CONFIG_VARS
  2198. # -----------------------
  2199. # Produce commented declarations of non-tagged libtool config variables
  2200. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  2201. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  2202. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  2203. # _LT_LIBTOOL_TAG_VARS(TAG)
  2204. # -------------------------
  2205. # _LT_TAGVAR(VARNAME, [TAGNAME])
  2206. # ------------------------------
  2207. # _LT_CONFIG_COMMANDS
  2208. # -------------------
  2209. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  2210. # variables for single and double quote escaping we saved from calls
  2211. # to _LT_DECL, we can put quote escaped variables declarations
  2212. # into `config.status', and then the shell code to quote escape them in
  2213. # for loops in `config.status'. Finally, any additional code accumulated
  2214. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  2215. #_LT_CONFIG_COMMANDS
  2216. # Initialize.
  2217. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  2218. # ------------------------------------
  2219. # Generate a child script FILE with all initialization necessary to
  2220. # reuse the environment learned by the parent script, and make the
  2221. # file executable. If COMMENT is supplied, it is inserted after the
  2222. # `#!' sequence but before initialization text begins. After this
  2223. # macro, additional text can be appended to FILE to form the body of
  2224. # the child script. The macro ends with non-zero status if the
  2225. # file could not be fully written (such as if the disk is full).
  2226. # _LT_GENERATED_FILE_INIT
  2227. # LT_OUTPUT
  2228. # ---------
  2229. # This macro allows early generation of the libtool script (before
  2230. # AC_OUTPUT is called), incase it is used in configure for compilation
  2231. # tests.
  2232. # LT_OUTPUT
  2233. # _LT_CONFIG(TAG)
  2234. # ---------------
  2235. # If TAG is the built-in tag, create an initial libtool script with a
  2236. # default configuration from the untagged config vars. Otherwise add code
  2237. # to config.status for appending the configuration named by TAG from the
  2238. # matching tagged config vars.
  2239. # _LT_CONFIG
  2240. # LT_SUPPORTED_TAG(TAG)
  2241. # ---------------------
  2242. # Trace this macro to discover what tags are supported by the libtool
  2243. # --tag option, using:
  2244. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  2245. # C support is built-in for now
  2246. # LT_LANG(LANG)
  2247. # -------------
  2248. # Enable libtool support for the given language if not already enabled.
  2249. # LT_LANG
  2250. # _LT_LANG(LANGNAME)
  2251. # ------------------
  2252. # _LT_LANG
  2253. # _LT_LANG_DEFAULT_CONFIG
  2254. # -----------------------
  2255. # _LT_LANG_DEFAULT_CONFIG
  2256. # Obsolete macros:
  2257. # This is what autoupdate's m4 run will expand. It fires
  2258. # the warning (with _au_warn_XXX), outputs it into the
  2259. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2260. # the replacement expansion.
  2261. # This is an auxiliary macro that is also run when
  2262. # autoupdate runs m4. It simply calls m4_warning, but
  2263. # we need a wrapper so that each warning is emitted only
  2264. # once. We break the quoting in m4_warning's argument in
  2265. # order to expand this macro's arguments, not AU_DEFUN's.
  2266. # Finally, this is the expansion that is picked up by
  2267. # autoconf. It tells the user to run autoupdate, and
  2268. # then outputs the replacement expansion. We do not care
  2269. # about autoupdate's warning because that contains
  2270. # information on what to do *after* running autoupdate.
  2271. # This is what autoupdate's m4 run will expand. It fires
  2272. # the warning (with _au_warn_XXX), outputs it into the
  2273. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2274. # the replacement expansion.
  2275. # This is an auxiliary macro that is also run when
  2276. # autoupdate runs m4. It simply calls m4_warning, but
  2277. # we need a wrapper so that each warning is emitted only
  2278. # once. We break the quoting in m4_warning's argument in
  2279. # order to expand this macro's arguments, not AU_DEFUN's.
  2280. # Finally, this is the expansion that is picked up by
  2281. # autoconf. It tells the user to run autoupdate, and
  2282. # then outputs the replacement expansion. We do not care
  2283. # about autoupdate's warning because that contains
  2284. # information on what to do *after* running autoupdate.
  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. # _LT_TAG_COMPILER
  2328. # ----------------
  2329. # _LT_TAG_COMPILER
  2330. # _LT_COMPILER_BOILERPLATE
  2331. # ------------------------
  2332. # Check for compiler boilerplate output or warnings with
  2333. # the simple compiler test code.
  2334. # _LT_COMPILER_BOILERPLATE
  2335. # _LT_LINKER_BOILERPLATE
  2336. # ----------------------
  2337. # Check for linker boilerplate output or warnings with
  2338. # the simple link test code.
  2339. # _LT_LINKER_BOILERPLATE
  2340. # _LT_REQUIRED_DARWIN_CHECKS
  2341. # -------------------------
  2342. # _LT_DARWIN_LINKER_FEATURES
  2343. # --------------------------
  2344. # Checks for linker and compiler features on darwin
  2345. # _LT_SYS_MODULE_PATH_AIX
  2346. # -----------------------
  2347. # Links a minimal program and checks the executable
  2348. # for the system default hardcoded library path. In most cases,
  2349. # this is /usr/lib:/lib, but when the MPI compilers are used
  2350. # the location of the communication and MPI libs are included too.
  2351. # If we don't find anything, use the default library path according
  2352. # to the aix ld manual.
  2353. # _LT_SYS_MODULE_PATH_AIX
  2354. # _LT_SHELL_INIT(ARG)
  2355. # -------------------
  2356. # _LT_SHELL_INIT
  2357. # _LT_PROG_ECHO_BACKSLASH
  2358. # -----------------------
  2359. # Find how we can fake an echo command that does not interpret backslash.
  2360. # In particular, with Autoconf 2.60 or later we add some code to the start
  2361. # of the generated configure script which will find a shell with a builtin
  2362. # printf (which we can use as an echo command).
  2363. # _LT_PROG_ECHO_BACKSLASH
  2364. # _LT_ENABLE_LOCK
  2365. # ---------------
  2366. # _LT_ENABLE_LOCK
  2367. # _LT_CMD_OLD_ARCHIVE
  2368. # -------------------
  2369. # _LT_CMD_OLD_ARCHIVE
  2370. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2371. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2372. # ----------------------------------------------------------------
  2373. # Check whether the given compiler option works
  2374. # _LT_COMPILER_OPTION
  2375. # Old name:
  2376. # This is what autoupdate's m4 run will expand. It fires
  2377. # the warning (with _au_warn_XXX), outputs it into the
  2378. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2379. # the replacement expansion.
  2380. # This is an auxiliary macro that is also run when
  2381. # autoupdate runs m4. It simply calls m4_warning, but
  2382. # we need a wrapper so that each warning is emitted only
  2383. # once. We break the quoting in m4_warning's argument in
  2384. # order to expand this macro's arguments, not AU_DEFUN's.
  2385. # Finally, this is the expansion that is picked up by
  2386. # autoconf. It tells the user to run autoupdate, and
  2387. # then outputs the replacement expansion. We do not care
  2388. # about autoupdate's warning because that contains
  2389. # information on what to do *after* running autoupdate.
  2390. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2391. # [ACTION-SUCCESS], [ACTION-FAILURE])
  2392. # ----------------------------------------------------
  2393. # Check whether the given linker option works
  2394. # _LT_LINKER_OPTION
  2395. # Old name:
  2396. # This is what autoupdate's m4 run will expand. It fires
  2397. # the warning (with _au_warn_XXX), outputs it into the
  2398. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2399. # the replacement expansion.
  2400. # This is an auxiliary macro that is also run when
  2401. # autoupdate runs m4. It simply calls m4_warning, but
  2402. # we need a wrapper so that each warning is emitted only
  2403. # once. We break the quoting in m4_warning's argument in
  2404. # order to expand this macro's arguments, not AU_DEFUN's.
  2405. # Finally, this is the expansion that is picked up by
  2406. # autoconf. It tells the user to run autoupdate, and
  2407. # then outputs the replacement expansion. We do not care
  2408. # about autoupdate's warning because that contains
  2409. # information on what to do *after* running autoupdate.
  2410. # LT_CMD_MAX_LEN
  2411. #---------------
  2412. # LT_CMD_MAX_LEN
  2413. # Old name:
  2414. # This is what autoupdate's m4 run will expand. It fires
  2415. # the warning (with _au_warn_XXX), outputs it into the
  2416. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2417. # the replacement expansion.
  2418. # This is an auxiliary macro that is also run when
  2419. # autoupdate runs m4. It simply calls m4_warning, but
  2420. # we need a wrapper so that each warning is emitted only
  2421. # once. We break the quoting in m4_warning's argument in
  2422. # order to expand this macro's arguments, not AU_DEFUN's.
  2423. # Finally, this is the expansion that is picked up by
  2424. # autoconf. It tells the user to run autoupdate, and
  2425. # then outputs the replacement expansion. We do not care
  2426. # about autoupdate's warning because that contains
  2427. # information on what to do *after* running autoupdate.
  2428. # _LT_HEADER_DLFCN
  2429. # ----------------
  2430. # _LT_HEADER_DLFCN
  2431. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2432. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2433. # ----------------------------------------------------------------
  2434. # _LT_TRY_DLOPEN_SELF
  2435. # LT_SYS_DLOPEN_SELF
  2436. # ------------------
  2437. # LT_SYS_DLOPEN_SELF
  2438. # Old name:
  2439. # This is what autoupdate's m4 run will expand. It fires
  2440. # the warning (with _au_warn_XXX), outputs it into the
  2441. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2442. # the replacement expansion.
  2443. # This is an auxiliary macro that is also run when
  2444. # autoupdate runs m4. It simply calls m4_warning, but
  2445. # we need a wrapper so that each warning is emitted only
  2446. # once. We break the quoting in m4_warning's argument in
  2447. # order to expand this macro's arguments, not AU_DEFUN's.
  2448. # Finally, this is the expansion that is picked up by
  2449. # autoconf. It tells the user to run autoupdate, and
  2450. # then outputs the replacement expansion. We do not care
  2451. # about autoupdate's warning because that contains
  2452. # information on what to do *after* running autoupdate.
  2453. # _LT_COMPILER_C_O([TAGNAME])
  2454. # ---------------------------
  2455. # Check to see if options -c and -o are simultaneously supported by compiler.
  2456. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2457. # _LT_COMPILER_C_O
  2458. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2459. # ----------------------------------
  2460. # Check to see if we can do hard links to lock some files if needed
  2461. # _LT_COMPILER_FILE_LOCKS
  2462. # _LT_CHECK_OBJDIR
  2463. # ----------------
  2464. # _LT_CHECK_OBJDIR
  2465. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2466. # --------------------------------------
  2467. # Check hardcoding attributes.
  2468. # _LT_LINKER_HARDCODE_LIBPATH
  2469. # _LT_CMD_STRIPLIB
  2470. # ----------------
  2471. # _LT_CMD_STRIPLIB
  2472. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2473. # -----------------------------
  2474. # PORTME Fill in your ld.so characteristics
  2475. # _LT_SYS_DYNAMIC_LINKER
  2476. # _LT_PATH_TOOL_PREFIX(TOOL)
  2477. # --------------------------
  2478. # find a file program which can recognize shared library
  2479. # _LT_PATH_TOOL_PREFIX
  2480. # Old name:
  2481. # This is what autoupdate's m4 run will expand. It fires
  2482. # the warning (with _au_warn_XXX), outputs it into the
  2483. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2484. # the replacement expansion.
  2485. # This is an auxiliary macro that is also run when
  2486. # autoupdate runs m4. It simply calls m4_warning, but
  2487. # we need a wrapper so that each warning is emitted only
  2488. # once. We break the quoting in m4_warning's argument in
  2489. # order to expand this macro's arguments, not AU_DEFUN's.
  2490. # Finally, this is the expansion that is picked up by
  2491. # autoconf. It tells the user to run autoupdate, and
  2492. # then outputs the replacement expansion. We do not care
  2493. # about autoupdate's warning because that contains
  2494. # information on what to do *after* running autoupdate.
  2495. # _LT_PATH_MAGIC
  2496. # --------------
  2497. # find a file program which can recognize a shared library
  2498. # _LT_PATH_MAGIC
  2499. # LT_PATH_LD
  2500. # ----------
  2501. # find the pathname to the GNU or non-GNU linker
  2502. # LT_PATH_LD
  2503. # Old names:
  2504. # This is what autoupdate's m4 run will expand. It fires
  2505. # the warning (with _au_warn_XXX), outputs it into the
  2506. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2507. # the replacement expansion.
  2508. # This is an auxiliary macro that is also run when
  2509. # autoupdate runs m4. It simply calls m4_warning, but
  2510. # we need a wrapper so that each warning is emitted only
  2511. # once. We break the quoting in m4_warning's argument in
  2512. # order to expand this macro's arguments, not AU_DEFUN's.
  2513. # Finally, this is the expansion that is picked up by
  2514. # autoconf. It tells the user to run autoupdate, and
  2515. # then outputs the replacement expansion. We do not care
  2516. # about autoupdate's warning because that contains
  2517. # information on what to do *after* running autoupdate.
  2518. # This is what autoupdate's m4 run will expand. It fires
  2519. # the warning (with _au_warn_XXX), outputs it into the
  2520. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2521. # the replacement expansion.
  2522. # This is an auxiliary macro that is also run when
  2523. # autoupdate runs m4. It simply calls m4_warning, but
  2524. # we need a wrapper so that each warning is emitted only
  2525. # once. We break the quoting in m4_warning's argument in
  2526. # order to expand this macro's arguments, not AU_DEFUN's.
  2527. # Finally, this is the expansion that is picked up by
  2528. # autoconf. It tells the user to run autoupdate, and
  2529. # then outputs the replacement expansion. We do not care
  2530. # about autoupdate's warning because that contains
  2531. # information on what to do *after* running autoupdate.
  2532. # _LT_PATH_LD_GNU
  2533. #- --------------
  2534. # _LT_PATH_LD_GNU
  2535. # _LT_CMD_RELOAD
  2536. # --------------
  2537. # find reload flag for linker
  2538. # -- PORTME Some linkers may need a different reload flag.
  2539. # _LT_CMD_RELOAD
  2540. # _LT_CHECK_MAGIC_METHOD
  2541. # ----------------------
  2542. # how to check for library dependencies
  2543. # -- PORTME fill in with the dynamic library characteristics
  2544. # _LT_CHECK_MAGIC_METHOD
  2545. # LT_PATH_NM
  2546. # ----------
  2547. # find the pathname to a BSD- or MS-compatible name lister
  2548. # LT_PATH_NM
  2549. # Old names:
  2550. # This is what autoupdate's m4 run will expand. It fires
  2551. # the warning (with _au_warn_XXX), outputs it into the
  2552. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2553. # the replacement expansion.
  2554. # This is an auxiliary macro that is also run when
  2555. # autoupdate runs m4. It simply calls m4_warning, but
  2556. # we need a wrapper so that each warning is emitted only
  2557. # once. We break the quoting in m4_warning's argument in
  2558. # order to expand this macro's arguments, not AU_DEFUN's.
  2559. # Finally, this is the expansion that is picked up by
  2560. # autoconf. It tells the user to run autoupdate, and
  2561. # then outputs the replacement expansion. We do not care
  2562. # about autoupdate's warning because that contains
  2563. # information on what to do *after* running autoupdate.
  2564. # This is what autoupdate's m4 run will expand. It fires
  2565. # the warning (with _au_warn_XXX), outputs it into the
  2566. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2567. # the replacement expansion.
  2568. # This is an auxiliary macro that is also run when
  2569. # autoupdate runs m4. It simply calls m4_warning, but
  2570. # we need a wrapper so that each warning is emitted only
  2571. # once. We break the quoting in m4_warning's argument in
  2572. # order to expand this macro's arguments, not AU_DEFUN's.
  2573. # Finally, this is the expansion that is picked up by
  2574. # autoconf. It tells the user to run autoupdate, and
  2575. # then outputs the replacement expansion. We do not care
  2576. # about autoupdate's warning because that contains
  2577. # information on what to do *after* running autoupdate.
  2578. # LT_LIB_M
  2579. # --------
  2580. # check for math library
  2581. # LT_LIB_M
  2582. # Old name:
  2583. # This is what autoupdate's m4 run will expand. It fires
  2584. # the warning (with _au_warn_XXX), outputs it into the
  2585. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2586. # the replacement expansion.
  2587. # This is an auxiliary macro that is also run when
  2588. # autoupdate runs m4. It simply calls m4_warning, but
  2589. # we need a wrapper so that each warning is emitted only
  2590. # once. We break the quoting in m4_warning's argument in
  2591. # order to expand this macro's arguments, not AU_DEFUN's.
  2592. # Finally, this is the expansion that is picked up by
  2593. # autoconf. It tells the user to run autoupdate, and
  2594. # then outputs the replacement expansion. We do not care
  2595. # about autoupdate's warning because that contains
  2596. # information on what to do *after* running autoupdate.
  2597. # _LT_COMPILER_NO_RTTI([TAGNAME])
  2598. # -------------------------------
  2599. # _LT_COMPILER_NO_RTTI
  2600. # _LT_CMD_GLOBAL_SYMBOLS
  2601. # ----------------------
  2602. # _LT_CMD_GLOBAL_SYMBOLS
  2603. # _LT_COMPILER_PIC([TAGNAME])
  2604. # ---------------------------
  2605. # _LT_COMPILER_PIC
  2606. # _LT_LINKER_SHLIBS([TAGNAME])
  2607. # ----------------------------
  2608. # See if the linker supports building shared libraries.
  2609. # _LT_LINKER_SHLIBS
  2610. # _LT_LANG_C_CONFIG([TAG])
  2611. # ------------------------
  2612. # Ensure that the configuration variables for a C compiler are suitably
  2613. # defined. These variables are subsequently used by _LT_CONFIG to write
  2614. # the compiler configuration to `libtool'.
  2615. # _LT_LANG_C_CONFIG
  2616. # _LT_LANG_CXX_CONFIG([TAG])
  2617. # --------------------------
  2618. # Ensure that the configuration variables for a C++ compiler are suitably
  2619. # defined. These variables are subsequently used by _LT_CONFIG to write
  2620. # the compiler configuration to `libtool'.
  2621. # _LT_LANG_CXX_CONFIG
  2622. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  2623. # ---------------------------------
  2624. # Figure out "hidden" library dependencies from verbose
  2625. # compiler output when linking a shared library.
  2626. # Parse the compiler output and extract the necessary
  2627. # objects, libraries and library flags.
  2628. # _LT_SYS_HIDDEN_LIBDEPS
  2629. # _LT_LANG_F77_CONFIG([TAG])
  2630. # --------------------------
  2631. # Ensure that the configuration variables for a Fortran 77 compiler are
  2632. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2633. # to write the compiler configuration to `libtool'.
  2634. # _LT_LANG_F77_CONFIG
  2635. # _LT_LANG_FC_CONFIG([TAG])
  2636. # -------------------------
  2637. # Ensure that the configuration variables for a Fortran compiler are
  2638. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2639. # to write the compiler configuration to `libtool'.
  2640. # _LT_LANG_FC_CONFIG
  2641. # _LT_LANG_GCJ_CONFIG([TAG])
  2642. # --------------------------
  2643. # Ensure that the configuration variables for the GNU Java Compiler compiler
  2644. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2645. # to write the compiler configuration to `libtool'.
  2646. # _LT_LANG_GCJ_CONFIG
  2647. # _LT_LANG_RC_CONFIG([TAG])
  2648. # -------------------------
  2649. # Ensure that the configuration variables for the Windows resource compiler
  2650. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2651. # to write the compiler configuration to `libtool'.
  2652. # _LT_LANG_RC_CONFIG
  2653. # LT_PROG_GCJ
  2654. # -----------
  2655. # Old name:
  2656. # This is what autoupdate's m4 run will expand. It fires
  2657. # the warning (with _au_warn_XXX), outputs it into the
  2658. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2659. # the replacement expansion.
  2660. # This is an auxiliary macro that is also run when
  2661. # autoupdate runs m4. It simply calls m4_warning, but
  2662. # we need a wrapper so that each warning is emitted only
  2663. # once. We break the quoting in m4_warning's argument in
  2664. # order to expand this macro's arguments, not AU_DEFUN's.
  2665. # Finally, this is the expansion that is picked up by
  2666. # autoconf. It tells the user to run autoupdate, and
  2667. # then outputs the replacement expansion. We do not care
  2668. # about autoupdate's warning because that contains
  2669. # information on what to do *after* running autoupdate.
  2670. # LT_PROG_RC
  2671. # ----------
  2672. # Old name:
  2673. # This is what autoupdate's m4 run will expand. It fires
  2674. # the warning (with _au_warn_XXX), outputs it into the
  2675. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2676. # the replacement expansion.
  2677. # This is an auxiliary macro that is also run when
  2678. # autoupdate runs m4. It simply calls m4_warning, but
  2679. # we need a wrapper so that each warning is emitted only
  2680. # once. We break the quoting in m4_warning's argument in
  2681. # order to expand this macro's arguments, not AU_DEFUN's.
  2682. # Finally, this is the expansion that is picked up by
  2683. # autoconf. It tells the user to run autoupdate, and
  2684. # then outputs the replacement expansion. We do not care
  2685. # about autoupdate's warning because that contains
  2686. # information on what to do *after* running autoupdate.
  2687. # _LT_DECL_EGREP
  2688. # --------------
  2689. # If we don't have a new enough Autoconf to choose the best grep
  2690. # available, choose the one first in the user's PATH.
  2691. # _LT_DECL_OBJDUMP
  2692. # --------------
  2693. # If we don't have a new enough Autoconf to choose the best objdump
  2694. # available, choose the one first in the user's PATH.
  2695. # _LT_DECL_SED
  2696. # ------------
  2697. # Check for a fully-functional sed program, that truncates
  2698. # as few characters as possible. Prefer GNU sed if found.
  2699. # _LT_DECL_SED
  2700. #m4_ifndef
  2701. # Old name:
  2702. # This is what autoupdate's m4 run will expand. It fires
  2703. # the warning (with _au_warn_XXX), outputs it into the
  2704. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2705. # the replacement expansion.
  2706. # This is an auxiliary macro that is also run when
  2707. # autoupdate runs m4. It simply calls m4_warning, but
  2708. # we need a wrapper so that each warning is emitted only
  2709. # once. We break the quoting in m4_warning's argument in
  2710. # order to expand this macro's arguments, not AU_DEFUN's.
  2711. # Finally, this is the expansion that is picked up by
  2712. # autoconf. It tells the user to run autoupdate, and
  2713. # then outputs the replacement expansion. We do not care
  2714. # about autoupdate's warning because that contains
  2715. # information on what to do *after* running autoupdate.
  2716. # _LT_CHECK_SHELL_FEATURES
  2717. # ------------------------
  2718. # Find out whether the shell is Bourne or XSI compatible,
  2719. # or has some other useful features.
  2720. # _LT_CHECK_SHELL_FEATURES
  2721. # _LT_PROG_XSI_SHELLFNS
  2722. # ---------------------
  2723. # Bourne and XSI compatible variants of some useful shell functions.
  2724. # Helper functions for option handling. -*- Autoconf -*-
  2725. #
  2726. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  2727. # Inc.
  2728. # Written by Gary V. Vaughan, 2004
  2729. #
  2730. # This file is free software; the Free Software Foundation gives
  2731. # unlimited permission to copy and/or distribute it, with or without
  2732. # modifications, as long as this notice is preserved.
  2733. # serial 6 ltoptions.m4
  2734. # This is to help aclocal find these macros, as it can't see m4_define.
  2735. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  2736. # ------------------------------------------
  2737. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  2738. # ---------------------------------------
  2739. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  2740. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  2741. # saved as a flag.
  2742. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  2743. # ------------------------------------------------------------
  2744. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  2745. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  2746. # -------------------------------------------------------
  2747. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  2748. # are set.
  2749. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  2750. # ----------------------------------------
  2751. # OPTION-LIST is a space-separated list of Libtool options associated
  2752. # with MACRO-NAME. If any OPTION has a matching handler declared with
  2753. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  2754. # the unknown option and exit.
  2755. # _LT_SET_OPTIONS
  2756. ## --------------------------------- ##
  2757. ## Macros to handle LT_INIT options. ##
  2758. ## --------------------------------- ##
  2759. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  2760. # -----------------------------------------
  2761. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  2762. # -----------------------------------------------
  2763. # LT_OPTION_DEFINE
  2764. # dlopen
  2765. # ------
  2766. # This is what autoupdate's m4 run will expand. It fires
  2767. # the warning (with _au_warn_XXX), outputs it into the
  2768. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2769. # the replacement expansion.
  2770. # This is an auxiliary macro that is also run when
  2771. # autoupdate runs m4. It simply calls m4_warning, but
  2772. # we need a wrapper so that each warning is emitted only
  2773. # once. We break the quoting in m4_warning's argument in
  2774. # order to expand this macro's arguments, not AU_DEFUN's.
  2775. # Finally, this is the expansion that is picked up by
  2776. # autoconf. It tells the user to run autoupdate, and
  2777. # then outputs the replacement expansion. We do not care
  2778. # about autoupdate's warning because that contains
  2779. # information on what to do *after* running autoupdate.
  2780. # win32-dll
  2781. # ---------
  2782. # Declare package support for building win32 dll's.
  2783. # win32-dll
  2784. # This is what autoupdate's m4 run will expand. It fires
  2785. # the warning (with _au_warn_XXX), outputs it into the
  2786. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2787. # the replacement expansion.
  2788. # This is an auxiliary macro that is also run when
  2789. # autoupdate runs m4. It simply calls m4_warning, but
  2790. # we need a wrapper so that each warning is emitted only
  2791. # once. We break the quoting in m4_warning's argument in
  2792. # order to expand this macro's arguments, not AU_DEFUN's.
  2793. # Finally, this is the expansion that is picked up by
  2794. # autoconf. It tells the user to run autoupdate, and
  2795. # then outputs the replacement expansion. We do not care
  2796. # about autoupdate's warning because that contains
  2797. # information on what to do *after* running autoupdate.
  2798. # _LT_ENABLE_SHARED([DEFAULT])
  2799. # ----------------------------
  2800. # implement the --enable-shared flag, and supports the `shared' and
  2801. # `disable-shared' LT_INIT options.
  2802. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2803. # _LT_ENABLE_SHARED
  2804. # Old names:
  2805. # This is what autoupdate's m4 run will expand. It fires
  2806. # the warning (with _au_warn_XXX), outputs it into the
  2807. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2808. # the replacement expansion.
  2809. # This is an auxiliary macro that is also run when
  2810. # autoupdate runs m4. It simply calls m4_warning, but
  2811. # we need a wrapper so that each warning is emitted only
  2812. # once. We break the quoting in m4_warning's argument in
  2813. # order to expand this macro's arguments, not AU_DEFUN's.
  2814. # Finally, this is the expansion that is picked up by
  2815. # autoconf. It tells the user to run autoupdate, and
  2816. # then outputs the replacement expansion. We do not care
  2817. # about autoupdate's warning because that contains
  2818. # information on what to do *after* running autoupdate.
  2819. # This is what autoupdate's m4 run will expand. It fires
  2820. # the warning (with _au_warn_XXX), outputs it into the
  2821. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2822. # the replacement expansion.
  2823. # This is an auxiliary macro that is also run when
  2824. # autoupdate runs m4. It simply calls m4_warning, but
  2825. # we need a wrapper so that each warning is emitted only
  2826. # once. We break the quoting in m4_warning's argument in
  2827. # order to expand this macro's arguments, not AU_DEFUN's.
  2828. # Finally, this is the expansion that is picked up by
  2829. # autoconf. It tells the user to run autoupdate, and
  2830. # then outputs the replacement expansion. We do not care
  2831. # about autoupdate's warning because that contains
  2832. # information on what to do *after* running autoupdate.
  2833. # _LT_ENABLE_STATIC([DEFAULT])
  2834. # ----------------------------
  2835. # implement the --enable-static flag, and support the `static' and
  2836. # `disable-static' LT_INIT options.
  2837. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2838. # _LT_ENABLE_STATIC
  2839. # Old names:
  2840. # This is what autoupdate's m4 run will expand. It fires
  2841. # the warning (with _au_warn_XXX), outputs it into the
  2842. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2843. # the replacement expansion.
  2844. # This is an auxiliary macro that is also run when
  2845. # autoupdate runs m4. It simply calls m4_warning, but
  2846. # we need a wrapper so that each warning is emitted only
  2847. # once. We break the quoting in m4_warning's argument in
  2848. # order to expand this macro's arguments, not AU_DEFUN's.
  2849. # Finally, this is the expansion that is picked up by
  2850. # autoconf. It tells the user to run autoupdate, and
  2851. # then outputs the replacement expansion. We do not care
  2852. # about autoupdate's warning because that contains
  2853. # information on what to do *after* running autoupdate.
  2854. # This is what autoupdate's m4 run will expand. It fires
  2855. # the warning (with _au_warn_XXX), outputs it into the
  2856. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2857. # the replacement expansion.
  2858. # This is an auxiliary macro that is also run when
  2859. # autoupdate runs m4. It simply calls m4_warning, but
  2860. # we need a wrapper so that each warning is emitted only
  2861. # once. We break the quoting in m4_warning's argument in
  2862. # order to expand this macro's arguments, not AU_DEFUN's.
  2863. # Finally, this is the expansion that is picked up by
  2864. # autoconf. It tells the user to run autoupdate, and
  2865. # then outputs the replacement expansion. We do not care
  2866. # about autoupdate's warning because that contains
  2867. # information on what to do *after* running autoupdate.
  2868. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  2869. # ----------------------------------
  2870. # implement the --enable-fast-install flag, and support the `fast-install'
  2871. # and `disable-fast-install' LT_INIT options.
  2872. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2873. # _LT_ENABLE_FAST_INSTALL
  2874. # Old names:
  2875. # This is what autoupdate's m4 run will expand. It fires
  2876. # the warning (with _au_warn_XXX), outputs it into the
  2877. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2878. # the replacement expansion.
  2879. # This is an auxiliary macro that is also run when
  2880. # autoupdate runs m4. It simply calls m4_warning, but
  2881. # we need a wrapper so that each warning is emitted only
  2882. # once. We break the quoting in m4_warning's argument in
  2883. # order to expand this macro's arguments, not AU_DEFUN's.
  2884. # Finally, this is the expansion that is picked up by
  2885. # autoconf. It tells the user to run autoupdate, and
  2886. # then outputs the replacement expansion. We do not care
  2887. # about autoupdate's warning because that contains
  2888. # information on what to do *after* running autoupdate.
  2889. # This is what autoupdate's m4 run will expand. It fires
  2890. # the warning (with _au_warn_XXX), outputs it into the
  2891. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2892. # the replacement expansion.
  2893. # This is an auxiliary macro that is also run when
  2894. # autoupdate runs m4. It simply calls m4_warning, but
  2895. # we need a wrapper so that each warning is emitted only
  2896. # once. We break the quoting in m4_warning's argument in
  2897. # order to expand this macro's arguments, not AU_DEFUN's.
  2898. # Finally, this is the expansion that is picked up by
  2899. # autoconf. It tells the user to run autoupdate, and
  2900. # then outputs the replacement expansion. We do not care
  2901. # about autoupdate's warning because that contains
  2902. # information on what to do *after* running autoupdate.
  2903. # _LT_WITH_PIC([MODE])
  2904. # --------------------
  2905. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  2906. # LT_INIT options.
  2907. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2908. # _LT_WITH_PIC
  2909. # Old name:
  2910. # This is what autoupdate's m4 run will expand. It fires
  2911. # the warning (with _au_warn_XXX), outputs it into the
  2912. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2913. # the replacement expansion.
  2914. # This is an auxiliary macro that is also run when
  2915. # autoupdate runs m4. It simply calls m4_warning, but
  2916. # we need a wrapper so that each warning is emitted only
  2917. # once. We break the quoting in m4_warning's argument in
  2918. # order to expand this macro's arguments, not AU_DEFUN's.
  2919. # Finally, this is the expansion that is picked up by
  2920. # autoconf. It tells the user to run autoupdate, and
  2921. # then outputs the replacement expansion. We do not care
  2922. # about autoupdate's warning because that contains
  2923. # information on what to do *after* running autoupdate.
  2924. ## ----------------- ##
  2925. ## LTDL_INIT Options ##
  2926. ## ----------------- ##
  2927. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  2928. #
  2929. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  2930. # Written by Gary V. Vaughan, 2004
  2931. #
  2932. # This file is free software; the Free Software Foundation gives
  2933. # unlimited permission to copy and/or distribute it, with or without
  2934. # modifications, as long as this notice is preserved.
  2935. # serial 6 ltsugar.m4
  2936. # This is to help aclocal find these macros, as it can't see m4_define.
  2937. # lt_join(SEP, ARG1, [ARG2...])
  2938. # -----------------------------
  2939. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  2940. # associated separator.
  2941. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  2942. # versions in m4sugar had bugs.
  2943. # lt_car(LIST)
  2944. # lt_cdr(LIST)
  2945. # ------------
  2946. # Manipulate m4 lists.
  2947. # These macros are necessary as long as will still need to support
  2948. # Autoconf-2.59 which quotes differently.
  2949. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  2950. # ------------------------------------------
  2951. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  2952. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  2953. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  2954. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  2955. # than defined and empty).
  2956. #
  2957. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  2958. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  2959. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  2960. # ----------------------------------------------------------
  2961. # Produce a SEP delimited list of all paired combinations of elements of
  2962. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  2963. # has the form PREFIXmINFIXSUFFIXn.
  2964. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  2965. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  2966. # -----------------------------------------------------------------------
  2967. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  2968. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  2969. # lt_dict_add(DICT, KEY, VALUE)
  2970. # -----------------------------
  2971. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  2972. # --------------------------------------------
  2973. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  2974. # ----------------------------------
  2975. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  2976. # -----------------------------------------------------------------
  2977. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  2978. # --------------------------------------------------------------
  2979. # ltversion.m4 -- version numbers -*- Autoconf -*-
  2980. #
  2981. # Copyright (C) 2004 Free Software Foundation, Inc.
  2982. # Written by Scott James Remnant, 2004
  2983. #
  2984. # This file is free software; the Free Software Foundation gives
  2985. # unlimited permission to copy and/or distribute it, with or without
  2986. # modifications, as long as this notice is preserved.
  2987. # Generated from ltversion.in.
  2988. # serial 3134 ltversion.m4
  2989. # This file is part of GNU Libtool
  2990. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  2991. #
  2992. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  2993. # Written by Scott James Remnant, 2004.
  2994. #
  2995. # This file is free software; the Free Software Foundation gives
  2996. # unlimited permission to copy and/or distribute it, with or without
  2997. # modifications, as long as this notice is preserved.
  2998. # serial 4 lt~obsolete.m4
  2999. # These exist entirely to fool aclocal when bootstrapping libtool.
  3000. #
  3001. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  3002. # which have later been changed to m4_define as they aren't part of the
  3003. # exported API, or moved to Autoconf or Automake where they belong.
  3004. #
  3005. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  3006. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  3007. # using a macro with the same name in our local m4/libtool.m4 it'll
  3008. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  3009. # and doesn't know about Autoconf macros at all.)
  3010. #
  3011. # So we provide this file, which has a silly filename so it's always
  3012. # included after everything else. This provides aclocal with the
  3013. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  3014. # because those macros already exist, or will be overwritten later.
  3015. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  3016. #
  3017. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  3018. # Yes, that means every name once taken will need to remain here until
  3019. # we give up compatibility with versions before 1.7, at which point
  3020. # we need to keep only those names which we still refer to.
  3021. # This is to help aclocal find these macros, as it can't see m4_define.
  3022. ## -*- Autoconf -*-
  3023. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
  3024. # Free Software Foundation, Inc.
  3025. #
  3026. # This file is free software; the Free Software Foundation
  3027. # gives unlimited permission to copy and/or distribute it,
  3028. # with or without modifications, as long as this notice is preserved.
  3029. # serial 8
  3030. # Based on depend.m4 from automake 1.9, modified for standalone use in
  3031. # an environment where GNU make is required.
  3032. # ZW_PROG_COMPILER_DEPENDENCIES
  3033. # -----------------------------
  3034. # Variant of _AM_DEPENDENCIES which just does the dependency probe and
  3035. # sets fooDEPMODE accordingly. Cache-variable compatible with
  3036. # original; not side-effect compatible. As the users of this macro
  3037. # may require accurate dependencies for correct builds, it does *not*
  3038. # honor --disable-dependency-checking, and failure to detect a usable
  3039. # method is an error. depcomp is assumed to be located in
  3040. # $ac_aux_dir.
  3041. #
  3042. # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
  3043. # AM_SET_DEPDIR
  3044. # -------------
  3045. # Choose a directory name for dependency files.
  3046. # ZW_CREATE_DEPDIR
  3047. # ----------------
  3048. # As AM_SET_DEPDIR, but also create the directory at config.status time.
  3049. sim_inline="-DDEFAULT_INLINE=0"
  3050. # intl sister-directory configuration rules.
  3051. #
  3052. # The idea behind this macro is that there's no need to repeat all the
  3053. # autoconf probes done by the intl directory - it's already done them
  3054. # for us. In fact, there's no need even to look at the cache for the
  3055. # answers. All we need to do is nab a few pieces of information.
  3056. # The intl directory is set up to make this easy, by generating a
  3057. # small file which can be sourced as a shell script; then we produce
  3058. # the necessary substitutions and definitions for this directory.
  3059. # Autoconf M4 include file defining utility macros for complex Canadian
  3060. # cross builds.
  3061. ####
  3062. # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
  3063. # or AC_INIT.
  3064. # These demand that AC_CANONICAL_SYSTEM be called beforehand.
  3065. ####
  3066. # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3067. # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
  3068. ####
  3069. # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3070. # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
  3071. # Backported from Autoconf 2.5x; can go away when and if
  3072. # we switch. Put the OS path separator in $PATH_SEPARATOR.
  3073. # ACX_HAVE_GCC_FOR_TARGET
  3074. # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
  3075. # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
  3076. # Searching for installed target binutils. We need to take extra care,
  3077. # else we may find the wrong assembler, linker, etc., and lose.
  3078. #
  3079. # First try --with-build-time-tools, if specified.
  3080. #
  3081. # For build != host, we ask the installed GCC for the name of the tool it
  3082. # uses, and accept it if it is an absolute path. This is because the
  3083. # only good choice for a compiler is the same GCC version that is being
  3084. # installed (or we couldn't make target libraries), and we assume that
  3085. # on the host system we'll have not only the same GCC version, but also
  3086. # the same binutils version.
  3087. #
  3088. # For build == host, search the same directories that the installed
  3089. # compiler will search. We used to do this for the assembler, linker,
  3090. # and nm only; for simplicity of configuration, however, we extend this
  3091. # criterion to tools (such as ar and ranlib) that are never invoked by
  3092. # the compiler, to avoid mismatches.
  3093. #
  3094. # Also note we have to check MD_EXEC_PREFIX before checking the user's path
  3095. # if build == target. This makes the most sense only when bootstrapping,
  3096. # but we also do so when build != host. In this case, we hope that the
  3097. # build and host systems will have similar contents of MD_EXEC_PREFIX.
  3098. #
  3099. # If we do not find a suitable binary, then try the user's path.
  3100. ###
  3101. # AC_PROG_CPP_WERROR
  3102. # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
  3103. # triggers warnings from the preprocessor. Will be in autoconf 2.58.
  3104. # For now, using this also overrides header checks to use only the
  3105. # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
  3106. # bit harder from here).
  3107. # Eventually autoconf will default to checking headers with the compiler
  3108. # instead, and we'll have to do this differently.
  3109. # AC_PROG_CPP_WERROR
  3110. # Test for GNAT.
  3111. # We require the gnatbind & gnatmake programs, as well as a compiler driver
  3112. # that understands Ada. We use the user's CC setting, already found, and
  3113. # possibly add $1 to the command-line parameters.
  3114. #
  3115. # Sets the shell variable have_gnat to yes or no as appropriate, and
  3116. # substitutes GNATBIND and GNATMAKE.
  3117. ac_ext=c
  3118. ac_cpp='$CPP $CPPFLAGS'
  3119. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3120. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3121. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3122. if test -n "$ac_tool_prefix"; then
  3123. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3124. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3126. $as_echo_n "checking for $ac_word... " >&6; }
  3127. if test "${ac_cv_prog_CC+set}" = set; then :
  3128. $as_echo_n "(cached) " >&6
  3129. else
  3130. if test -n "$CC"; then
  3131. ac_cv_prog_CC="$CC" # Let the user override the test.
  3132. else
  3133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3134. for as_dir in $PATH
  3135. do
  3136. IFS=$as_save_IFS
  3137. test -z "$as_dir" && as_dir=.
  3138. for ac_exec_ext in '' $ac_executable_extensions; do
  3139. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3140. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3142. break 2
  3143. fi
  3144. done
  3145. done
  3146. IFS=$as_save_IFS
  3147. fi
  3148. fi
  3149. CC=$ac_cv_prog_CC
  3150. if test -n "$CC"; then
  3151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3152. $as_echo "$CC" >&6; }
  3153. else
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3155. $as_echo "no" >&6; }
  3156. fi
  3157. fi
  3158. if test -z "$ac_cv_prog_CC"; then
  3159. ac_ct_CC=$CC
  3160. # Extract the first word of "gcc", so it can be a program name with args.
  3161. set dummy gcc; ac_word=$2
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3163. $as_echo_n "checking for $ac_word... " >&6; }
  3164. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3165. $as_echo_n "(cached) " >&6
  3166. else
  3167. if test -n "$ac_ct_CC"; then
  3168. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3169. else
  3170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3171. for as_dir in $PATH
  3172. do
  3173. IFS=$as_save_IFS
  3174. test -z "$as_dir" && as_dir=.
  3175. for ac_exec_ext in '' $ac_executable_extensions; do
  3176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3177. ac_cv_prog_ac_ct_CC="gcc"
  3178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3179. break 2
  3180. fi
  3181. done
  3182. done
  3183. IFS=$as_save_IFS
  3184. fi
  3185. fi
  3186. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3187. if test -n "$ac_ct_CC"; then
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3189. $as_echo "$ac_ct_CC" >&6; }
  3190. else
  3191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3192. $as_echo "no" >&6; }
  3193. fi
  3194. if test "x$ac_ct_CC" = x; then
  3195. CC=""
  3196. else
  3197. case $cross_compiling:$ac_tool_warned in
  3198. yes:)
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3200. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3201. ac_tool_warned=yes ;;
  3202. esac
  3203. CC=$ac_ct_CC
  3204. fi
  3205. else
  3206. CC="$ac_cv_prog_CC"
  3207. fi
  3208. if test -z "$CC"; then
  3209. if test -n "$ac_tool_prefix"; then
  3210. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3211. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3213. $as_echo_n "checking for $ac_word... " >&6; }
  3214. if test "${ac_cv_prog_CC+set}" = set; then :
  3215. $as_echo_n "(cached) " >&6
  3216. else
  3217. if test -n "$CC"; then
  3218. ac_cv_prog_CC="$CC" # Let the user override the test.
  3219. else
  3220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3221. for as_dir in $PATH
  3222. do
  3223. IFS=$as_save_IFS
  3224. test -z "$as_dir" && as_dir=.
  3225. for ac_exec_ext in '' $ac_executable_extensions; do
  3226. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3227. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3229. break 2
  3230. fi
  3231. done
  3232. done
  3233. IFS=$as_save_IFS
  3234. fi
  3235. fi
  3236. CC=$ac_cv_prog_CC
  3237. if test -n "$CC"; then
  3238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3239. $as_echo "$CC" >&6; }
  3240. else
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3242. $as_echo "no" >&6; }
  3243. fi
  3244. fi
  3245. fi
  3246. if test -z "$CC"; then
  3247. # Extract the first word of "cc", so it can be a program name with args.
  3248. set dummy cc; ac_word=$2
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3250. $as_echo_n "checking for $ac_word... " >&6; }
  3251. if test "${ac_cv_prog_CC+set}" = set; then :
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. if test -n "$CC"; then
  3255. ac_cv_prog_CC="$CC" # Let the user override the test.
  3256. else
  3257. ac_prog_rejected=no
  3258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3259. for as_dir in $PATH
  3260. do
  3261. IFS=$as_save_IFS
  3262. test -z "$as_dir" && as_dir=.
  3263. for ac_exec_ext in '' $ac_executable_extensions; do
  3264. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3265. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3266. ac_prog_rejected=yes
  3267. continue
  3268. fi
  3269. ac_cv_prog_CC="cc"
  3270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3271. break 2
  3272. fi
  3273. done
  3274. done
  3275. IFS=$as_save_IFS
  3276. if test $ac_prog_rejected = yes; then
  3277. # We found a bogon in the path, so make sure we never use it.
  3278. set dummy $ac_cv_prog_CC
  3279. shift
  3280. if test $# != 0; then
  3281. # We chose a different compiler from the bogus one.
  3282. # However, it has the same basename, so the bogon will be chosen
  3283. # first if we set CC to just the basename; use the full file name.
  3284. shift
  3285. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3286. fi
  3287. fi
  3288. fi
  3289. fi
  3290. CC=$ac_cv_prog_CC
  3291. if test -n "$CC"; then
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3293. $as_echo "$CC" >&6; }
  3294. else
  3295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3296. $as_echo "no" >&6; }
  3297. fi
  3298. fi
  3299. if test -z "$CC"; then
  3300. if test -n "$ac_tool_prefix"; then
  3301. for ac_prog in cl.exe
  3302. do
  3303. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3304. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3306. $as_echo_n "checking for $ac_word... " >&6; }
  3307. if test "${ac_cv_prog_CC+set}" = set; then :
  3308. $as_echo_n "(cached) " >&6
  3309. else
  3310. if test -n "$CC"; then
  3311. ac_cv_prog_CC="$CC" # Let the user override the test.
  3312. else
  3313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3314. for as_dir in $PATH
  3315. do
  3316. IFS=$as_save_IFS
  3317. test -z "$as_dir" && as_dir=.
  3318. for ac_exec_ext in '' $ac_executable_extensions; do
  3319. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3320. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3322. break 2
  3323. fi
  3324. done
  3325. done
  3326. IFS=$as_save_IFS
  3327. fi
  3328. fi
  3329. CC=$ac_cv_prog_CC
  3330. if test -n "$CC"; then
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3332. $as_echo "$CC" >&6; }
  3333. else
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3335. $as_echo "no" >&6; }
  3336. fi
  3337. test -n "$CC" && break
  3338. done
  3339. fi
  3340. if test -z "$CC"; then
  3341. ac_ct_CC=$CC
  3342. for ac_prog in cl.exe
  3343. do
  3344. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3345. set dummy $ac_prog; ac_word=$2
  3346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3347. $as_echo_n "checking for $ac_word... " >&6; }
  3348. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3349. $as_echo_n "(cached) " >&6
  3350. else
  3351. if test -n "$ac_ct_CC"; then
  3352. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3353. else
  3354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3355. for as_dir in $PATH
  3356. do
  3357. IFS=$as_save_IFS
  3358. test -z "$as_dir" && as_dir=.
  3359. for ac_exec_ext in '' $ac_executable_extensions; do
  3360. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3361. ac_cv_prog_ac_ct_CC="$ac_prog"
  3362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3363. break 2
  3364. fi
  3365. done
  3366. done
  3367. IFS=$as_save_IFS
  3368. fi
  3369. fi
  3370. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3371. if test -n "$ac_ct_CC"; then
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3373. $as_echo "$ac_ct_CC" >&6; }
  3374. else
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3376. $as_echo "no" >&6; }
  3377. fi
  3378. test -n "$ac_ct_CC" && break
  3379. done
  3380. if test "x$ac_ct_CC" = x; then
  3381. CC=""
  3382. else
  3383. case $cross_compiling:$ac_tool_warned in
  3384. yes:)
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3386. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3387. ac_tool_warned=yes ;;
  3388. esac
  3389. CC=$ac_ct_CC
  3390. fi
  3391. fi
  3392. fi
  3393. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3394. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3395. as_fn_error "no acceptable C compiler found in \$PATH
  3396. See \`config.log' for more details." "$LINENO" 5; }
  3397. # Provide some information about the compiler.
  3398. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3399. set X $ac_compile
  3400. ac_compiler=$2
  3401. for ac_option in --version -v -V -qversion; do
  3402. { { ac_try="$ac_compiler $ac_option >&5"
  3403. case "(($ac_try" in
  3404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3405. *) ac_try_echo=$ac_try;;
  3406. esac
  3407. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3408. $as_echo "$ac_try_echo"; } >&5
  3409. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3410. ac_status=$?
  3411. if test -s conftest.err; then
  3412. sed '10a\
  3413. ... rest of stderr output deleted ...
  3414. 10q' conftest.err >conftest.er1
  3415. cat conftest.er1 >&5
  3416. rm -f conftest.er1 conftest.err
  3417. fi
  3418. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3419. test $ac_status = 0; }
  3420. done
  3421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3422. /* end confdefs.h. */
  3423. int
  3424. main ()
  3425. {
  3426. ;
  3427. return 0;
  3428. }
  3429. _ACEOF
  3430. ac_clean_files_save=$ac_clean_files
  3431. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3432. # Try to create an executable without -o first, disregard a.out.
  3433. # It will help us diagnose broken compilers, and finding out an intuition
  3434. # of exeext.
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3436. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3437. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3438. # The possible output files:
  3439. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3440. ac_rmfiles=
  3441. for ac_file in $ac_files
  3442. do
  3443. case $ac_file in
  3444. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3445. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3446. esac
  3447. done
  3448. rm -f $ac_rmfiles
  3449. if { { ac_try="$ac_link_default"
  3450. case "(($ac_try" in
  3451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3452. *) ac_try_echo=$ac_try;;
  3453. esac
  3454. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3455. $as_echo "$ac_try_echo"; } >&5
  3456. (eval "$ac_link_default") 2>&5
  3457. ac_status=$?
  3458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3459. test $ac_status = 0; }; then :
  3460. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3461. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3462. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3463. # so that the user can short-circuit this test for compilers unknown to
  3464. # Autoconf.
  3465. for ac_file in $ac_files ''
  3466. do
  3467. test -f "$ac_file" || continue
  3468. case $ac_file in
  3469. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3470. ;;
  3471. [ab].out )
  3472. # We found the default executable, but exeext='' is most
  3473. # certainly right.
  3474. break;;
  3475. *.* )
  3476. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3477. then :; else
  3478. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3479. fi
  3480. # We set ac_cv_exeext here because the later test for it is not
  3481. # safe: cross compilers may not add the suffix if given an `-o'
  3482. # argument, so we may need to know it at that point already.
  3483. # Even if this section looks crufty: it has the advantage of
  3484. # actually working.
  3485. break;;
  3486. * )
  3487. break;;
  3488. esac
  3489. done
  3490. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3491. else
  3492. ac_file=''
  3493. fi
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3495. $as_echo "$ac_file" >&6; }
  3496. if test -z "$ac_file"; then :
  3497. $as_echo "$as_me: failed program was:" >&5
  3498. sed 's/^/| /' conftest.$ac_ext >&5
  3499. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3500. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3501. { as_fn_set_status 77
  3502. as_fn_error "C compiler cannot create executables
  3503. See \`config.log' for more details." "$LINENO" 5; }; }
  3504. fi
  3505. ac_exeext=$ac_cv_exeext
  3506. # Check that the compiler produces executables we can run. If not, either
  3507. # the compiler is broken, or we cross compile.
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3509. $as_echo_n "checking whether the C compiler works... " >&6; }
  3510. # If not cross compiling, check that we can run a simple program.
  3511. if test "$cross_compiling" != yes; then
  3512. if { ac_try='./$ac_file'
  3513. { { case "(($ac_try" in
  3514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3515. *) ac_try_echo=$ac_try;;
  3516. esac
  3517. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3518. $as_echo "$ac_try_echo"; } >&5
  3519. (eval "$ac_try") 2>&5
  3520. ac_status=$?
  3521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3522. test $ac_status = 0; }; }; then
  3523. cross_compiling=no
  3524. else
  3525. if test "$cross_compiling" = maybe; then
  3526. cross_compiling=yes
  3527. else
  3528. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3529. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3530. as_fn_error "cannot run C compiled programs.
  3531. If you meant to cross compile, use \`--host'.
  3532. See \`config.log' for more details." "$LINENO" 5; }
  3533. fi
  3534. fi
  3535. fi
  3536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3537. $as_echo "yes" >&6; }
  3538. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3539. ac_clean_files=$ac_clean_files_save
  3540. # Check that the compiler produces executables we can run. If not, either
  3541. # the compiler is broken, or we cross compile.
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3543. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3545. $as_echo "$cross_compiling" >&6; }
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3547. $as_echo_n "checking for suffix of executables... " >&6; }
  3548. if { { ac_try="$ac_link"
  3549. case "(($ac_try" in
  3550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3551. *) ac_try_echo=$ac_try;;
  3552. esac
  3553. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3554. $as_echo "$ac_try_echo"; } >&5
  3555. (eval "$ac_link") 2>&5
  3556. ac_status=$?
  3557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3558. test $ac_status = 0; }; then :
  3559. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3560. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3561. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3562. # `rm'.
  3563. for ac_file in conftest.exe conftest conftest.*; do
  3564. test -f "$ac_file" || continue
  3565. case $ac_file in
  3566. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3567. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3568. break;;
  3569. * ) break;;
  3570. esac
  3571. done
  3572. else
  3573. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3574. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3575. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3576. See \`config.log' for more details." "$LINENO" 5; }
  3577. fi
  3578. rm -f conftest$ac_cv_exeext
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3580. $as_echo "$ac_cv_exeext" >&6; }
  3581. rm -f conftest.$ac_ext
  3582. EXEEXT=$ac_cv_exeext
  3583. ac_exeext=$EXEEXT
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3585. $as_echo_n "checking for suffix of object files... " >&6; }
  3586. if test "${ac_cv_objext+set}" = set; then :
  3587. $as_echo_n "(cached) " >&6
  3588. else
  3589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3590. /* end confdefs.h. */
  3591. int
  3592. main ()
  3593. {
  3594. ;
  3595. return 0;
  3596. }
  3597. _ACEOF
  3598. rm -f conftest.o conftest.obj
  3599. if { { ac_try="$ac_compile"
  3600. case "(($ac_try" in
  3601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3602. *) ac_try_echo=$ac_try;;
  3603. esac
  3604. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3605. $as_echo "$ac_try_echo"; } >&5
  3606. (eval "$ac_compile") 2>&5
  3607. ac_status=$?
  3608. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3609. test $ac_status = 0; }; then :
  3610. for ac_file in conftest.o conftest.obj conftest.*; do
  3611. test -f "$ac_file" || continue;
  3612. case $ac_file in
  3613. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3614. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3615. break;;
  3616. esac
  3617. done
  3618. else
  3619. $as_echo "$as_me: failed program was:" >&5
  3620. sed 's/^/| /' conftest.$ac_ext >&5
  3621. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3622. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3623. as_fn_error "cannot compute suffix of object files: cannot compile
  3624. See \`config.log' for more details." "$LINENO" 5; }
  3625. fi
  3626. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3627. fi
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3629. $as_echo "$ac_cv_objext" >&6; }
  3630. OBJEXT=$ac_cv_objext
  3631. ac_objext=$OBJEXT
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3633. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3634. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3635. $as_echo_n "(cached) " >&6
  3636. else
  3637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3638. /* end confdefs.h. */
  3639. int
  3640. main ()
  3641. {
  3642. #ifndef __GNUC__
  3643. choke me
  3644. #endif
  3645. ;
  3646. return 0;
  3647. }
  3648. _ACEOF
  3649. if ac_fn_c_try_compile "$LINENO"; then :
  3650. ac_compiler_gnu=yes
  3651. else
  3652. ac_compiler_gnu=no
  3653. fi
  3654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3655. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3656. fi
  3657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3658. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3659. if test $ac_compiler_gnu = yes; then
  3660. GCC=yes
  3661. else
  3662. GCC=
  3663. fi
  3664. ac_test_CFLAGS=${CFLAGS+set}
  3665. ac_save_CFLAGS=$CFLAGS
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3667. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3668. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3669. $as_echo_n "(cached) " >&6
  3670. else
  3671. ac_save_c_werror_flag=$ac_c_werror_flag
  3672. ac_c_werror_flag=yes
  3673. ac_cv_prog_cc_g=no
  3674. CFLAGS="-g"
  3675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3676. /* end confdefs.h. */
  3677. int
  3678. main ()
  3679. {
  3680. ;
  3681. return 0;
  3682. }
  3683. _ACEOF
  3684. if ac_fn_c_try_compile "$LINENO"; then :
  3685. ac_cv_prog_cc_g=yes
  3686. else
  3687. CFLAGS=""
  3688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3689. /* end confdefs.h. */
  3690. int
  3691. main ()
  3692. {
  3693. ;
  3694. return 0;
  3695. }
  3696. _ACEOF
  3697. if ac_fn_c_try_compile "$LINENO"; then :
  3698. else
  3699. ac_c_werror_flag=$ac_save_c_werror_flag
  3700. CFLAGS="-g"
  3701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3702. /* end confdefs.h. */
  3703. int
  3704. main ()
  3705. {
  3706. ;
  3707. return 0;
  3708. }
  3709. _ACEOF
  3710. if ac_fn_c_try_compile "$LINENO"; then :
  3711. ac_cv_prog_cc_g=yes
  3712. fi
  3713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3714. fi
  3715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3716. fi
  3717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3718. ac_c_werror_flag=$ac_save_c_werror_flag
  3719. fi
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3721. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3722. if test "$ac_test_CFLAGS" = set; then
  3723. CFLAGS=$ac_save_CFLAGS
  3724. elif test $ac_cv_prog_cc_g = yes; then
  3725. if test "$GCC" = yes; then
  3726. CFLAGS="-g -O2"
  3727. else
  3728. CFLAGS="-g"
  3729. fi
  3730. else
  3731. if test "$GCC" = yes; then
  3732. CFLAGS="-O2"
  3733. else
  3734. CFLAGS=
  3735. fi
  3736. fi
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3738. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3739. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3740. $as_echo_n "(cached) " >&6
  3741. else
  3742. ac_cv_prog_cc_c89=no
  3743. ac_save_CC=$CC
  3744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3745. /* end confdefs.h. */
  3746. #include <stdarg.h>
  3747. #include <stdio.h>
  3748. #include <sys/types.h>
  3749. #include <sys/stat.h>
  3750. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3751. struct buf { int x; };
  3752. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3753. static char *e (p, i)
  3754. char **p;
  3755. int i;
  3756. {
  3757. return p[i];
  3758. }
  3759. static char *f (char * (*g) (char **, int), char **p, ...)
  3760. {
  3761. char *s;
  3762. va_list v;
  3763. va_start (v,p);
  3764. s = g (p, va_arg (v,int));
  3765. va_end (v);
  3766. return s;
  3767. }
  3768. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3769. function prototypes and stuff, but not '\xHH' hex character constants.
  3770. These don't provoke an error unfortunately, instead are silently treated
  3771. as 'x'. The following induces an error, until -std is added to get
  3772. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3773. array size at least. It's necessary to write '\x00'==0 to get something
  3774. that's true only with -std. */
  3775. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3776. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3777. inside strings and character constants. */
  3778. #define FOO(x) 'x'
  3779. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3780. int test (int i, double x);
  3781. struct s1 {int (*f) (int a);};
  3782. struct s2 {int (*f) (double a);};
  3783. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3784. int argc;
  3785. char **argv;
  3786. int
  3787. main ()
  3788. {
  3789. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3790. ;
  3791. return 0;
  3792. }
  3793. _ACEOF
  3794. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3795. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3796. do
  3797. CC="$ac_save_CC $ac_arg"
  3798. if ac_fn_c_try_compile "$LINENO"; then :
  3799. ac_cv_prog_cc_c89=$ac_arg
  3800. fi
  3801. rm -f core conftest.err conftest.$ac_objext
  3802. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3803. done
  3804. rm -f conftest.$ac_ext
  3805. CC=$ac_save_CC
  3806. fi
  3807. # AC_CACHE_VAL
  3808. case "x$ac_cv_prog_cc_c89" in
  3809. x)
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3811. $as_echo "none needed" >&6; } ;;
  3812. xno)
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3814. $as_echo "unsupported" >&6; } ;;
  3815. *)
  3816. CC="$CC $ac_cv_prog_cc_c89"
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3818. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3819. esac
  3820. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3821. fi
  3822. ac_ext=c
  3823. ac_cpp='$CPP $CPPFLAGS'
  3824. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3825. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3826. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3827. ac_aux_dir=
  3828. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3829. for ac_t in install-sh install.sh shtool; do
  3830. if test -f "$ac_dir/$ac_t"; then
  3831. ac_aux_dir=$ac_dir
  3832. ac_install_sh="$ac_aux_dir/$ac_t -c"
  3833. break 2
  3834. fi
  3835. done
  3836. done
  3837. if test -z "$ac_aux_dir"; then
  3838. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3839. fi
  3840. # These three variables are undocumented and unsupported,
  3841. # and are intended to be withdrawn in a future Autoconf release.
  3842. # They can cause serious problems if a builder's source tree is in a directory
  3843. # whose full name contains unusual characters.
  3844. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3845. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3846. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3847. # Make sure we can run config.sub.
  3848. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3849. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3851. $as_echo_n "checking build system type... " >&6; }
  3852. if test "${ac_cv_build+set}" = set; then :
  3853. $as_echo_n "(cached) " >&6
  3854. else
  3855. ac_build_alias=$build_alias
  3856. test "x$ac_build_alias" = x &&
  3857. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3858. test "x$ac_build_alias" = x &&
  3859. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3860. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3861. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3862. fi
  3863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3864. $as_echo "$ac_cv_build" >&6; }
  3865. case $ac_cv_build in
  3866. *-*-*) ;;
  3867. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3868. esac
  3869. build=$ac_cv_build
  3870. ac_save_IFS=$IFS; IFS='-'
  3871. set x $ac_cv_build
  3872. shift
  3873. build_cpu=$1
  3874. build_vendor=$2
  3875. shift; shift
  3876. # Remember, the first character of IFS is used to create $*,
  3877. # except with old shells:
  3878. build_os=$*
  3879. IFS=$ac_save_IFS
  3880. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3882. $as_echo_n "checking host system type... " >&6; }
  3883. if test "${ac_cv_host+set}" = set; then :
  3884. $as_echo_n "(cached) " >&6
  3885. else
  3886. if test "x$host_alias" = x; then
  3887. ac_cv_host=$ac_cv_build
  3888. else
  3889. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3890. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3891. fi
  3892. fi
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3894. $as_echo "$ac_cv_host" >&6; }
  3895. case $ac_cv_host in
  3896. *-*-*) ;;
  3897. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3898. esac
  3899. host=$ac_cv_host
  3900. ac_save_IFS=$IFS; IFS='-'
  3901. set x $ac_cv_host
  3902. shift
  3903. host_cpu=$1
  3904. host_vendor=$2
  3905. shift; shift
  3906. # Remember, the first character of IFS is used to create $*,
  3907. # except with old shells:
  3908. host_os=$*
  3909. IFS=$ac_save_IFS
  3910. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3912. $as_echo_n "checking target system type... " >&6; }
  3913. if test "${ac_cv_target+set}" = set; then :
  3914. $as_echo_n "(cached) " >&6
  3915. else
  3916. if test "x$target_alias" = x; then
  3917. ac_cv_target=$ac_cv_host
  3918. else
  3919. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3920. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3921. fi
  3922. fi
  3923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3924. $as_echo "$ac_cv_target" >&6; }
  3925. case $ac_cv_target in
  3926. *-*-*) ;;
  3927. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  3928. esac
  3929. target=$ac_cv_target
  3930. ac_save_IFS=$IFS; IFS='-'
  3931. set x $ac_cv_target
  3932. shift
  3933. target_cpu=$1
  3934. target_vendor=$2
  3935. shift; shift
  3936. # Remember, the first character of IFS is used to create $*,
  3937. # except with old shells:
  3938. target_os=$*
  3939. IFS=$ac_save_IFS
  3940. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3941. # The aliases save the names the user supplied, while $host etc.
  3942. # will get canonicalized.
  3943. test -n "$target_alias" &&
  3944. test "$program_prefix$program_suffix$program_transform_name" = \
  3945. NONENONEs,x,x, &&
  3946. program_prefix=${target_alias}-
  3947. ac_ext=c
  3948. ac_cpp='$CPP $CPPFLAGS'
  3949. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3950. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3951. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3953. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3954. # On Suns, sometimes $CPP names a directory.
  3955. if test -n "$CPP" && test -d "$CPP"; then
  3956. CPP=
  3957. fi
  3958. if test -z "$CPP"; then
  3959. if test "${ac_cv_prog_CPP+set}" = set; then :
  3960. $as_echo_n "(cached) " >&6
  3961. else
  3962. # Double quotes because CPP needs to be expanded
  3963. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3964. do
  3965. ac_preproc_ok=false
  3966. for ac_c_preproc_warn_flag in '' yes
  3967. do
  3968. # Use a header file that comes with gcc, so configuring glibc
  3969. # with a fresh cross-compiler works.
  3970. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3971. # <limits.h> exists even on freestanding compilers.
  3972. # On the NeXT, cc -E runs the code through the compiler's parser,
  3973. # not just through cpp. "Syntax error" is here to catch this case.
  3974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3975. /* end confdefs.h. */
  3976. #ifdef __STDC__
  3977. # include <limits.h>
  3978. #else
  3979. # include <assert.h>
  3980. #endif
  3981. Syntax error
  3982. _ACEOF
  3983. if ac_fn_c_try_cpp "$LINENO"; then :
  3984. else
  3985. # Broken: fails on valid input.
  3986. continue
  3987. fi
  3988. rm -f conftest.err conftest.$ac_ext
  3989. # OK, works on sane cases. Now check whether nonexistent headers
  3990. # can be detected and how.
  3991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3992. /* end confdefs.h. */
  3993. #include <ac_nonexistent.h>
  3994. _ACEOF
  3995. if ac_fn_c_try_cpp "$LINENO"; then :
  3996. # Broken: success on invalid input.
  3997. continue
  3998. else
  3999. # Passes both tests.
  4000. ac_preproc_ok=:
  4001. break
  4002. fi
  4003. rm -f conftest.err conftest.$ac_ext
  4004. done
  4005. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4006. rm -f conftest.err conftest.$ac_ext
  4007. if $ac_preproc_ok; then :
  4008. break
  4009. fi
  4010. done
  4011. ac_cv_prog_CPP=$CPP
  4012. fi
  4013. CPP=$ac_cv_prog_CPP
  4014. else
  4015. ac_cv_prog_CPP=$CPP
  4016. fi
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4018. $as_echo "$CPP" >&6; }
  4019. ac_preproc_ok=false
  4020. for ac_c_preproc_warn_flag in '' yes
  4021. do
  4022. # Use a header file that comes with gcc, so configuring glibc
  4023. # with a fresh cross-compiler works.
  4024. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4025. # <limits.h> exists even on freestanding compilers.
  4026. # On the NeXT, cc -E runs the code through the compiler's parser,
  4027. # not just through cpp. "Syntax error" is here to catch this case.
  4028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4029. /* end confdefs.h. */
  4030. #ifdef __STDC__
  4031. # include <limits.h>
  4032. #else
  4033. # include <assert.h>
  4034. #endif
  4035. Syntax error
  4036. _ACEOF
  4037. if ac_fn_c_try_cpp "$LINENO"; then :
  4038. else
  4039. # Broken: fails on valid input.
  4040. continue
  4041. fi
  4042. rm -f conftest.err conftest.$ac_ext
  4043. # OK, works on sane cases. Now check whether nonexistent headers
  4044. # can be detected and how.
  4045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4046. /* end confdefs.h. */
  4047. #include <ac_nonexistent.h>
  4048. _ACEOF
  4049. if ac_fn_c_try_cpp "$LINENO"; then :
  4050. # Broken: success on invalid input.
  4051. continue
  4052. else
  4053. # Passes both tests.
  4054. ac_preproc_ok=:
  4055. break
  4056. fi
  4057. rm -f conftest.err conftest.$ac_ext
  4058. done
  4059. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4060. rm -f conftest.err conftest.$ac_ext
  4061. if $ac_preproc_ok; then :
  4062. else
  4063. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4064. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4065. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4066. See \`config.log' for more details." "$LINENO" 5; }
  4067. fi
  4068. ac_ext=c
  4069. ac_cpp='$CPP $CPPFLAGS'
  4070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4074. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4075. if test "${ac_cv_path_GREP+set}" = set; then :
  4076. $as_echo_n "(cached) " >&6
  4077. else
  4078. if test -z "$GREP"; then
  4079. ac_path_GREP_found=false
  4080. # Loop through the user's path and test for each of PROGNAME-LIST
  4081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4082. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4083. do
  4084. IFS=$as_save_IFS
  4085. test -z "$as_dir" && as_dir=.
  4086. for ac_prog in grep ggrep; do
  4087. for ac_exec_ext in '' $ac_executable_extensions; do
  4088. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4089. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4090. # Check for GNU ac_path_GREP and select it if it is found.
  4091. # Check for GNU $ac_path_GREP
  4092. case `"$ac_path_GREP" --version 2>&1` in
  4093. *GNU*)
  4094. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4095. *)
  4096. ac_count=0
  4097. $as_echo_n 0123456789 >"conftest.in"
  4098. while :
  4099. do
  4100. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4101. mv "conftest.tmp" "conftest.in"
  4102. cp "conftest.in" "conftest.nl"
  4103. $as_echo 'GREP' >> "conftest.nl"
  4104. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4105. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4106. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4107. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4108. # Best one so far, save it but keep looking for a better one
  4109. ac_cv_path_GREP="$ac_path_GREP"
  4110. ac_path_GREP_max=$ac_count
  4111. fi
  4112. # 10*(2^10) chars as input seems more than enough
  4113. test $ac_count -gt 10 && break
  4114. done
  4115. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4116. esac
  4117. $ac_path_GREP_found && break 3
  4118. done
  4119. done
  4120. done
  4121. IFS=$as_save_IFS
  4122. if test -z "$ac_cv_path_GREP"; then
  4123. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4124. fi
  4125. else
  4126. ac_cv_path_GREP=$GREP
  4127. fi
  4128. fi
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4130. $as_echo "$ac_cv_path_GREP" >&6; }
  4131. GREP="$ac_cv_path_GREP"
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4133. $as_echo_n "checking for egrep... " >&6; }
  4134. if test "${ac_cv_path_EGREP+set}" = set; then :
  4135. $as_echo_n "(cached) " >&6
  4136. else
  4137. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4138. then ac_cv_path_EGREP="$GREP -E"
  4139. else
  4140. if test -z "$EGREP"; then
  4141. ac_path_EGREP_found=false
  4142. # Loop through the user's path and test for each of PROGNAME-LIST
  4143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4144. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4145. do
  4146. IFS=$as_save_IFS
  4147. test -z "$as_dir" && as_dir=.
  4148. for ac_prog in egrep; do
  4149. for ac_exec_ext in '' $ac_executable_extensions; do
  4150. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4151. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4152. # Check for GNU ac_path_EGREP and select it if it is found.
  4153. # Check for GNU $ac_path_EGREP
  4154. case `"$ac_path_EGREP" --version 2>&1` in
  4155. *GNU*)
  4156. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4157. *)
  4158. ac_count=0
  4159. $as_echo_n 0123456789 >"conftest.in"
  4160. while :
  4161. do
  4162. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4163. mv "conftest.tmp" "conftest.in"
  4164. cp "conftest.in" "conftest.nl"
  4165. $as_echo 'EGREP' >> "conftest.nl"
  4166. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4167. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4168. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4169. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4170. # Best one so far, save it but keep looking for a better one
  4171. ac_cv_path_EGREP="$ac_path_EGREP"
  4172. ac_path_EGREP_max=$ac_count
  4173. fi
  4174. # 10*(2^10) chars as input seems more than enough
  4175. test $ac_count -gt 10 && break
  4176. done
  4177. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4178. esac
  4179. $ac_path_EGREP_found && break 3
  4180. done
  4181. done
  4182. done
  4183. IFS=$as_save_IFS
  4184. if test -z "$ac_cv_path_EGREP"; then
  4185. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4186. fi
  4187. else
  4188. ac_cv_path_EGREP=$EGREP
  4189. fi
  4190. fi
  4191. fi
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4193. $as_echo "$ac_cv_path_EGREP" >&6; }
  4194. EGREP="$ac_cv_path_EGREP"
  4195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4196. $as_echo_n "checking for ANSI C header files... " >&6; }
  4197. if test "${ac_cv_header_stdc+set}" = set; then :
  4198. $as_echo_n "(cached) " >&6
  4199. else
  4200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4201. /* end confdefs.h. */
  4202. #include <stdlib.h>
  4203. #include <stdarg.h>
  4204. #include <string.h>
  4205. #include <float.h>
  4206. int
  4207. main ()
  4208. {
  4209. ;
  4210. return 0;
  4211. }
  4212. _ACEOF
  4213. if ac_fn_c_try_compile "$LINENO"; then :
  4214. ac_cv_header_stdc=yes
  4215. else
  4216. ac_cv_header_stdc=no
  4217. fi
  4218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4219. if test $ac_cv_header_stdc = yes; then
  4220. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4222. /* end confdefs.h. */
  4223. #include <string.h>
  4224. _ACEOF
  4225. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4226. $EGREP "memchr" >/dev/null 2>&1; then :
  4227. else
  4228. ac_cv_header_stdc=no
  4229. fi
  4230. rm -f conftest*
  4231. fi
  4232. if test $ac_cv_header_stdc = yes; then
  4233. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4235. /* end confdefs.h. */
  4236. #include <stdlib.h>
  4237. _ACEOF
  4238. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4239. $EGREP "free" >/dev/null 2>&1; then :
  4240. else
  4241. ac_cv_header_stdc=no
  4242. fi
  4243. rm -f conftest*
  4244. fi
  4245. if test $ac_cv_header_stdc = yes; then
  4246. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4247. if test "$cross_compiling" = yes; then :
  4248. :
  4249. else
  4250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4251. /* end confdefs.h. */
  4252. #include <ctype.h>
  4253. #include <stdlib.h>
  4254. #if ((' ' & 0x0FF) == 0x020)
  4255. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4256. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4257. #else
  4258. # define ISLOWER(c) \
  4259. (('a' <= (c) && (c) <= 'i') \
  4260. || ('j' <= (c) && (c) <= 'r') \
  4261. || ('s' <= (c) && (c) <= 'z'))
  4262. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4263. #endif
  4264. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4265. int
  4266. main ()
  4267. {
  4268. int i;
  4269. for (i = 0; i < 256; i++)
  4270. if (XOR (islower (i), ISLOWER (i))
  4271. || toupper (i) != TOUPPER (i))
  4272. return 2;
  4273. return 0;
  4274. }
  4275. _ACEOF
  4276. if ac_fn_c_try_run "$LINENO"; then :
  4277. else
  4278. ac_cv_header_stdc=no
  4279. fi
  4280. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4281. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4282. fi
  4283. fi
  4284. fi
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4286. $as_echo "$ac_cv_header_stdc" >&6; }
  4287. if test $ac_cv_header_stdc = yes; then
  4288. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4289. fi
  4290. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4291. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4292. inttypes.h stdint.h unistd.h
  4293. do :
  4294. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4295. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4296. "
  4297. eval as_val=\$$as_ac_Header
  4298. if test "x$as_val" = x""yes; then :
  4299. cat >>confdefs.h <<_ACEOF
  4300. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4301. _ACEOF
  4302. fi
  4303. done
  4304. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4305. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4306. MINIX=yes
  4307. else
  4308. MINIX=
  4309. fi
  4310. if test "$MINIX" = yes; then
  4311. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4312. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4313. $as_echo "#define _MINIX 1" >>confdefs.h
  4314. fi
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4316. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4317. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4318. $as_echo_n "(cached) " >&6
  4319. else
  4320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4321. /* end confdefs.h. */
  4322. # define __EXTENSIONS__ 1
  4323. $ac_includes_default
  4324. int
  4325. main ()
  4326. {
  4327. ;
  4328. return 0;
  4329. }
  4330. _ACEOF
  4331. if ac_fn_c_try_compile "$LINENO"; then :
  4332. ac_cv_safe_to_define___extensions__=yes
  4333. else
  4334. ac_cv_safe_to_define___extensions__=no
  4335. fi
  4336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4337. fi
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4339. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4340. test $ac_cv_safe_to_define___extensions__ = yes &&
  4341. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4342. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4343. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4344. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4345. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4346. test "$program_prefix" != NONE &&
  4347. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4348. # Use a double $ so make ignores it.
  4349. test "$program_suffix" != NONE &&
  4350. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4351. # Double any \ or $.
  4352. # By default was `s,x,x', remove it if useless.
  4353. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4354. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4355. # Find a good install program. We prefer a C program (faster),
  4356. # so one script is as good as another. But avoid the broken or
  4357. # incompatible versions:
  4358. # SysV /etc/install, /usr/sbin/install
  4359. # SunOS /usr/etc/install
  4360. # IRIX /sbin/install
  4361. # AIX /bin/install
  4362. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4363. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4364. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4365. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4366. # OS/2's system install, which has a completely different semantic
  4367. # ./install, which can be erroneously created by make from ./install.sh.
  4368. # Reject install programs that cannot install multiple files.
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4370. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4371. if test -z "$INSTALL"; then
  4372. if test "${ac_cv_path_install+set}" = set; then :
  4373. $as_echo_n "(cached) " >&6
  4374. else
  4375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4376. for as_dir in $PATH
  4377. do
  4378. IFS=$as_save_IFS
  4379. test -z "$as_dir" && as_dir=.
  4380. # Account for people who put trailing slashes in PATH elements.
  4381. case $as_dir/ in #((
  4382. ./ | .// | /[cC]/* | \
  4383. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4384. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4385. /usr/ucb/* ) ;;
  4386. *)
  4387. # OSF1 and SCO ODT 3.0 have their own names for install.
  4388. # Don't use installbsd from OSF since it installs stuff as root
  4389. # by default.
  4390. for ac_prog in ginstall scoinst install; do
  4391. for ac_exec_ext in '' $ac_executable_extensions; do
  4392. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4393. if test $ac_prog = install &&
  4394. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4395. # AIX install. It has an incompatible calling convention.
  4396. :
  4397. elif test $ac_prog = install &&
  4398. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4399. # program-specific install script used by HP pwplus--don't use.
  4400. :
  4401. else
  4402. rm -rf conftest.one conftest.two conftest.dir
  4403. echo one > conftest.one
  4404. echo two > conftest.two
  4405. mkdir conftest.dir
  4406. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4407. test -s conftest.one && test -s conftest.two &&
  4408. test -s conftest.dir/conftest.one &&
  4409. test -s conftest.dir/conftest.two
  4410. then
  4411. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4412. break 3
  4413. fi
  4414. fi
  4415. fi
  4416. done
  4417. done
  4418. ;;
  4419. esac
  4420. done
  4421. IFS=$as_save_IFS
  4422. rm -rf conftest.one conftest.two conftest.dir
  4423. fi
  4424. if test "${ac_cv_path_install+set}" = set; then
  4425. INSTALL=$ac_cv_path_install
  4426. else
  4427. # As a last resort, use the slow shell script. Don't cache a
  4428. # value for INSTALL within a source directory, because that will
  4429. # break other packages using the cache if that directory is
  4430. # removed, or if the value is a relative name.
  4431. INSTALL=$ac_install_sh
  4432. fi
  4433. fi
  4434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4435. $as_echo "$INSTALL" >&6; }
  4436. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4437. # It thinks the first close brace ends the variable substitution.
  4438. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4439. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4440. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4441. rm -rf .tst 2>/dev/null
  4442. mkdir .tst 2>/dev/null
  4443. if test -d .tst; then
  4444. am__leading_dot=.
  4445. else
  4446. am__leading_dot=_
  4447. fi
  4448. rmdir .tst 2>/dev/null
  4449. DEPDIR="${am__leading_dot}deps"
  4450. case `pwd` in
  4451. *\ * | *\ *)
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4453. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4454. esac
  4455. macro_version='2.2.7a'
  4456. macro_revision='1.3134'
  4457. ltmain="$ac_aux_dir/ltmain.sh"
  4458. # Backslashify metacharacters that are still active within
  4459. # double-quoted strings.
  4460. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4461. # Same as above, but do not quote variable references.
  4462. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4463. # Sed substitution to delay expansion of an escaped shell variable in a
  4464. # double_quote_subst'ed string.
  4465. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4466. # Sed substitution to delay expansion of an escaped single quote.
  4467. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4468. # Sed substitution to avoid accidental globbing in evaled expressions
  4469. no_glob_subst='s/\*/\\\*/g'
  4470. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4471. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4472. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4474. $as_echo_n "checking how to print strings... " >&6; }
  4475. # Test print first, because it will be a builtin if present.
  4476. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4477. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4478. ECHO='print -r --'
  4479. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4480. ECHO='printf %s\n'
  4481. else
  4482. # Use this function as a fallback that always works.
  4483. func_fallback_echo ()
  4484. {
  4485. eval 'cat <<_LTECHO_EOF
  4486. $1
  4487. _LTECHO_EOF'
  4488. }
  4489. ECHO='func_fallback_echo'
  4490. fi
  4491. # func_echo_all arg...
  4492. # Invoke $ECHO with all args, space-separated.
  4493. func_echo_all ()
  4494. {
  4495. $ECHO ""
  4496. }
  4497. case "$ECHO" in
  4498. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4499. $as_echo "printf" >&6; } ;;
  4500. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4501. $as_echo "print -r" >&6; } ;;
  4502. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4503. $as_echo "cat" >&6; } ;;
  4504. esac
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4506. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4507. if test "${ac_cv_path_SED+set}" = set; then :
  4508. $as_echo_n "(cached) " >&6
  4509. else
  4510. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4511. for ac_i in 1 2 3 4 5 6 7; do
  4512. ac_script="$ac_script$as_nl$ac_script"
  4513. done
  4514. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4515. { ac_script=; unset ac_script;}
  4516. if test -z "$SED"; then
  4517. ac_path_SED_found=false
  4518. # Loop through the user's path and test for each of PROGNAME-LIST
  4519. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4520. for as_dir in $PATH
  4521. do
  4522. IFS=$as_save_IFS
  4523. test -z "$as_dir" && as_dir=.
  4524. for ac_prog in sed gsed; do
  4525. for ac_exec_ext in '' $ac_executable_extensions; do
  4526. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4527. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4528. # Check for GNU ac_path_SED and select it if it is found.
  4529. # Check for GNU $ac_path_SED
  4530. case `"$ac_path_SED" --version 2>&1` in
  4531. *GNU*)
  4532. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4533. *)
  4534. ac_count=0
  4535. $as_echo_n 0123456789 >"conftest.in"
  4536. while :
  4537. do
  4538. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4539. mv "conftest.tmp" "conftest.in"
  4540. cp "conftest.in" "conftest.nl"
  4541. $as_echo '' >> "conftest.nl"
  4542. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4543. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4544. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4545. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4546. # Best one so far, save it but keep looking for a better one
  4547. ac_cv_path_SED="$ac_path_SED"
  4548. ac_path_SED_max=$ac_count
  4549. fi
  4550. # 10*(2^10) chars as input seems more than enough
  4551. test $ac_count -gt 10 && break
  4552. done
  4553. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4554. esac
  4555. $ac_path_SED_found && break 3
  4556. done
  4557. done
  4558. done
  4559. IFS=$as_save_IFS
  4560. if test -z "$ac_cv_path_SED"; then
  4561. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4562. fi
  4563. else
  4564. ac_cv_path_SED=$SED
  4565. fi
  4566. fi
  4567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4568. $as_echo "$ac_cv_path_SED" >&6; }
  4569. SED="$ac_cv_path_SED"
  4570. rm -f conftest.sed
  4571. test -z "$SED" && SED=sed
  4572. Xsed="$SED -e 1s/^X//"
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4574. $as_echo_n "checking for fgrep... " >&6; }
  4575. if test "${ac_cv_path_FGREP+set}" = set; then :
  4576. $as_echo_n "(cached) " >&6
  4577. else
  4578. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4579. then ac_cv_path_FGREP="$GREP -F"
  4580. else
  4581. if test -z "$FGREP"; then
  4582. ac_path_FGREP_found=false
  4583. # Loop through the user's path and test for each of PROGNAME-LIST
  4584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4585. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4586. do
  4587. IFS=$as_save_IFS
  4588. test -z "$as_dir" && as_dir=.
  4589. for ac_prog in fgrep; do
  4590. for ac_exec_ext in '' $ac_executable_extensions; do
  4591. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4592. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4593. # Check for GNU ac_path_FGREP and select it if it is found.
  4594. # Check for GNU $ac_path_FGREP
  4595. case `"$ac_path_FGREP" --version 2>&1` in
  4596. *GNU*)
  4597. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4598. *)
  4599. ac_count=0
  4600. $as_echo_n 0123456789 >"conftest.in"
  4601. while :
  4602. do
  4603. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4604. mv "conftest.tmp" "conftest.in"
  4605. cp "conftest.in" "conftest.nl"
  4606. $as_echo 'FGREP' >> "conftest.nl"
  4607. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4608. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4609. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4610. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4611. # Best one so far, save it but keep looking for a better one
  4612. ac_cv_path_FGREP="$ac_path_FGREP"
  4613. ac_path_FGREP_max=$ac_count
  4614. fi
  4615. # 10*(2^10) chars as input seems more than enough
  4616. test $ac_count -gt 10 && break
  4617. done
  4618. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4619. esac
  4620. $ac_path_FGREP_found && break 3
  4621. done
  4622. done
  4623. done
  4624. IFS=$as_save_IFS
  4625. if test -z "$ac_cv_path_FGREP"; then
  4626. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4627. fi
  4628. else
  4629. ac_cv_path_FGREP=$FGREP
  4630. fi
  4631. fi
  4632. fi
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4634. $as_echo "$ac_cv_path_FGREP" >&6; }
  4635. FGREP="$ac_cv_path_FGREP"
  4636. test -z "$GREP" && GREP=grep
  4637. # Check whether --with-gnu-ld was given.
  4638. if test "${with_gnu_ld+set}" = set; then :
  4639. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4640. else
  4641. with_gnu_ld=no
  4642. fi
  4643. ac_prog=ld
  4644. if test "$GCC" = yes; then
  4645. # Check if gcc -print-prog-name=ld gives a path.
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4647. $as_echo_n "checking for ld used by $CC... " >&6; }
  4648. case $host in
  4649. *-*-mingw*)
  4650. # gcc leaves a trailing carriage return which upsets mingw
  4651. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4652. *)
  4653. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4654. esac
  4655. case $ac_prog in
  4656. # Accept absolute paths.
  4657. [\\/]* | ?:[\\/]*)
  4658. re_direlt='/[^/][^/]*/\.\./'
  4659. # Canonicalize the pathname of ld
  4660. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4661. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4662. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4663. done
  4664. test -z "$LD" && LD="$ac_prog"
  4665. ;;
  4666. "")
  4667. # If it fails, then pretend we aren't using GCC.
  4668. ac_prog=ld
  4669. ;;
  4670. *)
  4671. # If it is relative, then search for the first ld in PATH.
  4672. with_gnu_ld=unknown
  4673. ;;
  4674. esac
  4675. elif test "$with_gnu_ld" = yes; then
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4677. $as_echo_n "checking for GNU ld... " >&6; }
  4678. else
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4680. $as_echo_n "checking for non-GNU ld... " >&6; }
  4681. fi
  4682. if test "${lt_cv_path_LD+set}" = set; then :
  4683. $as_echo_n "(cached) " >&6
  4684. else
  4685. if test -z "$LD"; then
  4686. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4687. for ac_dir in $PATH; do
  4688. IFS="$lt_save_ifs"
  4689. test -z "$ac_dir" && ac_dir=.
  4690. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4691. lt_cv_path_LD="$ac_dir/$ac_prog"
  4692. # Check to see if the program is GNU ld. I'd rather use --version,
  4693. # but apparently some variants of GNU ld only accept -v.
  4694. # Break only if it was the GNU/non-GNU ld that we prefer.
  4695. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4696. *GNU* | *'with BFD'*)
  4697. test "$with_gnu_ld" != no && break
  4698. ;;
  4699. *)
  4700. test "$with_gnu_ld" != yes && break
  4701. ;;
  4702. esac
  4703. fi
  4704. done
  4705. IFS="$lt_save_ifs"
  4706. else
  4707. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4708. fi
  4709. fi
  4710. LD="$lt_cv_path_LD"
  4711. if test -n "$LD"; then
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4713. $as_echo "$LD" >&6; }
  4714. else
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4716. $as_echo "no" >&6; }
  4717. fi
  4718. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4720. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4721. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4722. $as_echo_n "(cached) " >&6
  4723. else
  4724. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4725. case `$LD -v 2>&1 </dev/null` in
  4726. *GNU* | *'with BFD'*)
  4727. lt_cv_prog_gnu_ld=yes
  4728. ;;
  4729. *)
  4730. lt_cv_prog_gnu_ld=no
  4731. ;;
  4732. esac
  4733. fi
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4735. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4736. with_gnu_ld=$lt_cv_prog_gnu_ld
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4738. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4739. if test "${lt_cv_path_NM+set}" = set; then :
  4740. $as_echo_n "(cached) " >&6
  4741. else
  4742. if test -n "$NM"; then
  4743. # Let the user override the test.
  4744. lt_cv_path_NM="$NM"
  4745. else
  4746. lt_nm_to_check="${ac_tool_prefix}nm"
  4747. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4748. lt_nm_to_check="$lt_nm_to_check nm"
  4749. fi
  4750. for lt_tmp_nm in $lt_nm_to_check; do
  4751. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4752. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4753. IFS="$lt_save_ifs"
  4754. test -z "$ac_dir" && ac_dir=.
  4755. tmp_nm="$ac_dir/$lt_tmp_nm"
  4756. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4757. # Check to see if the nm accepts a BSD-compat flag.
  4758. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4759. # nm: unknown option "B" ignored
  4760. # Tru64's nm complains that /dev/null is an invalid object file
  4761. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4762. */dev/null* | *'Invalid file or object type'*)
  4763. lt_cv_path_NM="$tmp_nm -B"
  4764. break
  4765. ;;
  4766. *)
  4767. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4768. */dev/null*)
  4769. lt_cv_path_NM="$tmp_nm -p"
  4770. break
  4771. ;;
  4772. *)
  4773. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4774. continue # so that we can try to find one that supports BSD flags
  4775. ;;
  4776. esac
  4777. ;;
  4778. esac
  4779. fi
  4780. done
  4781. IFS="$lt_save_ifs"
  4782. done
  4783. : ${lt_cv_path_NM=no}
  4784. fi
  4785. fi
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4787. $as_echo "$lt_cv_path_NM" >&6; }
  4788. if test "$lt_cv_path_NM" != "no"; then
  4789. NM="$lt_cv_path_NM"
  4790. else
  4791. # Didn't find any BSD compatible name lister, look for dumpbin.
  4792. if test -n "$DUMPBIN"; then :
  4793. # Let the user override the test.
  4794. else
  4795. if test -n "$ac_tool_prefix"; then
  4796. for ac_prog in dumpbin "link -dump"
  4797. do
  4798. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4799. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4801. $as_echo_n "checking for $ac_word... " >&6; }
  4802. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4803. $as_echo_n "(cached) " >&6
  4804. else
  4805. if test -n "$DUMPBIN"; then
  4806. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4807. else
  4808. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4809. for as_dir in $PATH
  4810. do
  4811. IFS=$as_save_IFS
  4812. test -z "$as_dir" && as_dir=.
  4813. for ac_exec_ext in '' $ac_executable_extensions; do
  4814. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4815. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4816. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4817. break 2
  4818. fi
  4819. done
  4820. done
  4821. IFS=$as_save_IFS
  4822. fi
  4823. fi
  4824. DUMPBIN=$ac_cv_prog_DUMPBIN
  4825. if test -n "$DUMPBIN"; then
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4827. $as_echo "$DUMPBIN" >&6; }
  4828. else
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4830. $as_echo "no" >&6; }
  4831. fi
  4832. test -n "$DUMPBIN" && break
  4833. done
  4834. fi
  4835. if test -z "$DUMPBIN"; then
  4836. ac_ct_DUMPBIN=$DUMPBIN
  4837. for ac_prog in dumpbin "link -dump"
  4838. do
  4839. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4840. set dummy $ac_prog; ac_word=$2
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4842. $as_echo_n "checking for $ac_word... " >&6; }
  4843. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4844. $as_echo_n "(cached) " >&6
  4845. else
  4846. if test -n "$ac_ct_DUMPBIN"; then
  4847. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4848. else
  4849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4850. for as_dir in $PATH
  4851. do
  4852. IFS=$as_save_IFS
  4853. test -z "$as_dir" && as_dir=.
  4854. for ac_exec_ext in '' $ac_executable_extensions; do
  4855. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4856. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4857. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4858. break 2
  4859. fi
  4860. done
  4861. done
  4862. IFS=$as_save_IFS
  4863. fi
  4864. fi
  4865. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4866. if test -n "$ac_ct_DUMPBIN"; then
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4868. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4869. else
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4871. $as_echo "no" >&6; }
  4872. fi
  4873. test -n "$ac_ct_DUMPBIN" && break
  4874. done
  4875. if test "x$ac_ct_DUMPBIN" = x; then
  4876. DUMPBIN=":"
  4877. else
  4878. case $cross_compiling:$ac_tool_warned in
  4879. yes:)
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4881. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4882. ac_tool_warned=yes ;;
  4883. esac
  4884. DUMPBIN=$ac_ct_DUMPBIN
  4885. fi
  4886. fi
  4887. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4888. *COFF*)
  4889. DUMPBIN="$DUMPBIN -symbols"
  4890. ;;
  4891. *)
  4892. DUMPBIN=:
  4893. ;;
  4894. esac
  4895. fi
  4896. if test "$DUMPBIN" != ":"; then
  4897. NM="$DUMPBIN"
  4898. fi
  4899. fi
  4900. test -z "$NM" && NM=nm
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4902. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4903. if test "${lt_cv_nm_interface+set}" = set; then :
  4904. $as_echo_n "(cached) " >&6
  4905. else
  4906. lt_cv_nm_interface="BSD nm"
  4907. echo "int some_variable = 0;" > conftest.$ac_ext
  4908. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4909. (eval "$ac_compile" 2>conftest.err)
  4910. cat conftest.err >&5
  4911. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4912. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4913. cat conftest.err >&5
  4914. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4915. cat conftest.out >&5
  4916. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4917. lt_cv_nm_interface="MS dumpbin"
  4918. fi
  4919. rm -f conftest*
  4920. fi
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4922. $as_echo "$lt_cv_nm_interface" >&6; }
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4924. $as_echo_n "checking whether ln -s works... " >&6; }
  4925. LN_S=$as_ln_s
  4926. if test "$LN_S" = "ln -s"; then
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4928. $as_echo "yes" >&6; }
  4929. else
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4931. $as_echo "no, using $LN_S" >&6; }
  4932. fi
  4933. # find the maximum length of command line arguments
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4935. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4936. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4937. $as_echo_n "(cached) " >&6
  4938. else
  4939. i=0
  4940. teststring="ABCD"
  4941. case $build_os in
  4942. msdosdjgpp*)
  4943. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4944. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4945. # during glob expansion). Even if it were fixed, the result of this
  4946. # check would be larger than it should be.
  4947. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4948. ;;
  4949. gnu*)
  4950. # Under GNU Hurd, this test is not required because there is
  4951. # no limit to the length of command line arguments.
  4952. # Libtool will interpret -1 as no limit whatsoever
  4953. lt_cv_sys_max_cmd_len=-1;
  4954. ;;
  4955. cygwin* | mingw* | cegcc*)
  4956. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4957. # about 5 minutes as the teststring grows exponentially.
  4958. # Worse, since 9x/ME are not pre-emptively multitasking,
  4959. # you end up with a "frozen" computer, even though with patience
  4960. # the test eventually succeeds (with a max line length of 256k).
  4961. # Instead, let's just punt: use the minimum linelength reported by
  4962. # all of the supported platforms: 8192 (on NT/2K/XP).
  4963. lt_cv_sys_max_cmd_len=8192;
  4964. ;;
  4965. mint*)
  4966. # On MiNT this can take a long time and run out of memory.
  4967. lt_cv_sys_max_cmd_len=8192;
  4968. ;;
  4969. amigaos*)
  4970. # On AmigaOS with pdksh, this test takes hours, literally.
  4971. # So we just punt and use a minimum line length of 8192.
  4972. lt_cv_sys_max_cmd_len=8192;
  4973. ;;
  4974. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4975. # This has been around since 386BSD, at least. Likely further.
  4976. if test -x /sbin/sysctl; then
  4977. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4978. elif test -x /usr/sbin/sysctl; then
  4979. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4980. else
  4981. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4982. fi
  4983. # And add a safety zone
  4984. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4985. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4986. ;;
  4987. interix*)
  4988. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4989. lt_cv_sys_max_cmd_len=196608
  4990. ;;
  4991. osf*)
  4992. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4993. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4994. # nice to cause kernel panics so lets avoid the loop below.
  4995. # First set a reasonable default.
  4996. lt_cv_sys_max_cmd_len=16384
  4997. #
  4998. if test -x /sbin/sysconfig; then
  4999. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5000. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5001. esac
  5002. fi
  5003. ;;
  5004. sco3.2v5*)
  5005. lt_cv_sys_max_cmd_len=102400
  5006. ;;
  5007. sysv5* | sco5v6* | sysv4.2uw2*)
  5008. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5009. if test -n "$kargmax"; then
  5010. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5011. else
  5012. lt_cv_sys_max_cmd_len=32768
  5013. fi
  5014. ;;
  5015. *)
  5016. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5017. if test -n "$lt_cv_sys_max_cmd_len"; then
  5018. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5019. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5020. else
  5021. # Make teststring a little bigger before we do anything with it.
  5022. # a 1K string should be a reasonable start.
  5023. for i in 1 2 3 4 5 6 7 8 ; do
  5024. teststring=$teststring$teststring
  5025. done
  5026. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5027. # If test is not a shell built-in, we'll probably end up computing a
  5028. # maximum length that is only half of the actual maximum length, but
  5029. # we can't tell.
  5030. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5031. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5032. test $i != 17 # 1/2 MB should be enough
  5033. do
  5034. i=`expr $i + 1`
  5035. teststring=$teststring$teststring
  5036. done
  5037. # Only check the string length outside the loop.
  5038. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5039. teststring=
  5040. # Add a significant safety factor because C++ compilers can tack on
  5041. # massive amounts of additional arguments before passing them to the
  5042. # linker. It appears as though 1/2 is a usable value.
  5043. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5044. fi
  5045. ;;
  5046. esac
  5047. fi
  5048. if test -n $lt_cv_sys_max_cmd_len ; then
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5050. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5051. else
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5053. $as_echo "none" >&6; }
  5054. fi
  5055. max_cmd_len=$lt_cv_sys_max_cmd_len
  5056. : ${CP="cp -f"}
  5057. : ${MV="mv -f"}
  5058. : ${RM="rm -f"}
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5060. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5061. # Try some XSI features
  5062. xsi_shell=no
  5063. ( _lt_dummy="a/b/c"
  5064. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5065. = c,a/b,, \
  5066. && eval 'test $(( 1 + 1 )) -eq 2 \
  5067. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5068. && xsi_shell=yes
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5070. $as_echo "$xsi_shell" >&6; }
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5072. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5073. lt_shell_append=no
  5074. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5075. >/dev/null 2>&1 \
  5076. && lt_shell_append=yes
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5078. $as_echo "$lt_shell_append" >&6; }
  5079. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5080. lt_unset=unset
  5081. else
  5082. lt_unset=false
  5083. fi
  5084. # test EBCDIC or ASCII
  5085. case `echo X|tr X '\101'` in
  5086. A) # ASCII based system
  5087. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5088. lt_SP2NL='tr \040 \012'
  5089. lt_NL2SP='tr \015\012 \040\040'
  5090. ;;
  5091. *) # EBCDIC based system
  5092. lt_SP2NL='tr \100 \n'
  5093. lt_NL2SP='tr \r\n \100\100'
  5094. ;;
  5095. esac
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5097. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5098. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5099. $as_echo_n "(cached) " >&6
  5100. else
  5101. lt_cv_ld_reload_flag='-r'
  5102. fi
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5104. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5105. reload_flag=$lt_cv_ld_reload_flag
  5106. case $reload_flag in
  5107. "" | " "*) ;;
  5108. *) reload_flag=" $reload_flag" ;;
  5109. esac
  5110. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5111. case $host_os in
  5112. darwin*)
  5113. if test "$GCC" = yes; then
  5114. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5115. else
  5116. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5117. fi
  5118. ;;
  5119. esac
  5120. if test -n "$ac_tool_prefix"; then
  5121. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5122. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5124. $as_echo_n "checking for $ac_word... " >&6; }
  5125. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5126. $as_echo_n "(cached) " >&6
  5127. else
  5128. if test -n "$OBJDUMP"; then
  5129. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5130. else
  5131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5132. for as_dir in $PATH
  5133. do
  5134. IFS=$as_save_IFS
  5135. test -z "$as_dir" && as_dir=.
  5136. for ac_exec_ext in '' $ac_executable_extensions; do
  5137. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5138. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5140. break 2
  5141. fi
  5142. done
  5143. done
  5144. IFS=$as_save_IFS
  5145. fi
  5146. fi
  5147. OBJDUMP=$ac_cv_prog_OBJDUMP
  5148. if test -n "$OBJDUMP"; then
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5150. $as_echo "$OBJDUMP" >&6; }
  5151. else
  5152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5153. $as_echo "no" >&6; }
  5154. fi
  5155. fi
  5156. if test -z "$ac_cv_prog_OBJDUMP"; then
  5157. ac_ct_OBJDUMP=$OBJDUMP
  5158. # Extract the first word of "objdump", so it can be a program name with args.
  5159. set dummy objdump; ac_word=$2
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5161. $as_echo_n "checking for $ac_word... " >&6; }
  5162. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5163. $as_echo_n "(cached) " >&6
  5164. else
  5165. if test -n "$ac_ct_OBJDUMP"; then
  5166. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5167. else
  5168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5169. for as_dir in $PATH
  5170. do
  5171. IFS=$as_save_IFS
  5172. test -z "$as_dir" && as_dir=.
  5173. for ac_exec_ext in '' $ac_executable_extensions; do
  5174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5175. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5177. break 2
  5178. fi
  5179. done
  5180. done
  5181. IFS=$as_save_IFS
  5182. fi
  5183. fi
  5184. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5185. if test -n "$ac_ct_OBJDUMP"; then
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5187. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5188. else
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5190. $as_echo "no" >&6; }
  5191. fi
  5192. if test "x$ac_ct_OBJDUMP" = x; then
  5193. OBJDUMP="false"
  5194. else
  5195. case $cross_compiling:$ac_tool_warned in
  5196. yes:)
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5198. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5199. ac_tool_warned=yes ;;
  5200. esac
  5201. OBJDUMP=$ac_ct_OBJDUMP
  5202. fi
  5203. else
  5204. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5205. fi
  5206. test -z "$OBJDUMP" && OBJDUMP=objdump
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5208. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5209. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5210. $as_echo_n "(cached) " >&6
  5211. else
  5212. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5213. lt_cv_file_magic_test_file=
  5214. lt_cv_deplibs_check_method='unknown'
  5215. # Need to set the preceding variable on all platforms that support
  5216. # interlibrary dependencies.
  5217. # 'none' -- dependencies not supported.
  5218. # `unknown' -- same as none, but documents that we really don't know.
  5219. # 'pass_all' -- all dependencies passed with no checks.
  5220. # 'test_compile' -- check by making test program.
  5221. # 'file_magic [[regex]]' -- check by looking for files in library path
  5222. # which responds to the $file_magic_cmd with a given extended regex.
  5223. # If you have `file' or equivalent on your system and you're not sure
  5224. # whether `pass_all' will *always* work, you probably want this one.
  5225. case $host_os in
  5226. aix[4-9]*)
  5227. lt_cv_deplibs_check_method=pass_all
  5228. ;;
  5229. beos*)
  5230. lt_cv_deplibs_check_method=pass_all
  5231. ;;
  5232. bsdi[45]*)
  5233. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5234. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5235. lt_cv_file_magic_test_file=/shlib/libc.so
  5236. ;;
  5237. cygwin*)
  5238. # func_win32_libid is a shell function defined in ltmain.sh
  5239. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5240. lt_cv_file_magic_cmd='func_win32_libid'
  5241. ;;
  5242. mingw* | pw32*)
  5243. # Base MSYS/MinGW do not provide the 'file' command needed by
  5244. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5245. # unless we find 'file', for example because we are cross-compiling.
  5246. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5247. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5248. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5249. lt_cv_file_magic_cmd='func_win32_libid'
  5250. else
  5251. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5252. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5253. fi
  5254. ;;
  5255. cegcc*)
  5256. # use the weaker test based on 'objdump'. See mingw*.
  5257. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5258. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5259. ;;
  5260. darwin* | rhapsody*)
  5261. lt_cv_deplibs_check_method=pass_all
  5262. ;;
  5263. freebsd* | dragonfly*)
  5264. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5265. case $host_cpu in
  5266. i*86 )
  5267. # Not sure whether the presence of OpenBSD here was a mistake.
  5268. # Let's accept both of them until this is cleared up.
  5269. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5270. lt_cv_file_magic_cmd=/usr/bin/file
  5271. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5272. ;;
  5273. esac
  5274. else
  5275. lt_cv_deplibs_check_method=pass_all
  5276. fi
  5277. ;;
  5278. gnu*)
  5279. lt_cv_deplibs_check_method=pass_all
  5280. ;;
  5281. haiku*)
  5282. lt_cv_deplibs_check_method=pass_all
  5283. ;;
  5284. hpux10.20* | hpux11*)
  5285. lt_cv_file_magic_cmd=/usr/bin/file
  5286. case $host_cpu in
  5287. ia64*)
  5288. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5289. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5290. ;;
  5291. hppa*64*)
  5292. 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]'
  5293. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5294. ;;
  5295. *)
  5296. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5297. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5298. ;;
  5299. esac
  5300. ;;
  5301. interix[3-9]*)
  5302. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5303. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5304. ;;
  5305. irix5* | irix6* | nonstopux*)
  5306. case $LD in
  5307. *-32|*"-32 ") libmagic=32-bit;;
  5308. *-n32|*"-n32 ") libmagic=N32;;
  5309. *-64|*"-64 ") libmagic=64-bit;;
  5310. *) libmagic=never-match;;
  5311. esac
  5312. lt_cv_deplibs_check_method=pass_all
  5313. ;;
  5314. # This must be Linux ELF.
  5315. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5316. lt_cv_deplibs_check_method=pass_all
  5317. ;;
  5318. netbsd*)
  5319. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5320. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5321. else
  5322. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5323. fi
  5324. ;;
  5325. newos6*)
  5326. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5327. lt_cv_file_magic_cmd=/usr/bin/file
  5328. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5329. ;;
  5330. *nto* | *qnx*)
  5331. lt_cv_deplibs_check_method=pass_all
  5332. ;;
  5333. openbsd*)
  5334. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5335. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5336. else
  5337. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5338. fi
  5339. ;;
  5340. osf3* | osf4* | osf5*)
  5341. lt_cv_deplibs_check_method=pass_all
  5342. ;;
  5343. rdos*)
  5344. lt_cv_deplibs_check_method=pass_all
  5345. ;;
  5346. solaris*)
  5347. lt_cv_deplibs_check_method=pass_all
  5348. ;;
  5349. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5350. lt_cv_deplibs_check_method=pass_all
  5351. ;;
  5352. sysv4 | sysv4.3*)
  5353. case $host_vendor in
  5354. motorola)
  5355. 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]'
  5356. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5357. ;;
  5358. ncr)
  5359. lt_cv_deplibs_check_method=pass_all
  5360. ;;
  5361. sequent)
  5362. lt_cv_file_magic_cmd='/bin/file'
  5363. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5364. ;;
  5365. sni)
  5366. lt_cv_file_magic_cmd='/bin/file'
  5367. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5368. lt_cv_file_magic_test_file=/lib/libc.so
  5369. ;;
  5370. siemens)
  5371. lt_cv_deplibs_check_method=pass_all
  5372. ;;
  5373. pc)
  5374. lt_cv_deplibs_check_method=pass_all
  5375. ;;
  5376. esac
  5377. ;;
  5378. tpf*)
  5379. lt_cv_deplibs_check_method=pass_all
  5380. ;;
  5381. esac
  5382. fi
  5383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5384. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5385. file_magic_cmd=$lt_cv_file_magic_cmd
  5386. deplibs_check_method=$lt_cv_deplibs_check_method
  5387. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5388. if test -n "$ac_tool_prefix"; then
  5389. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5390. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5392. $as_echo_n "checking for $ac_word... " >&6; }
  5393. if test "${ac_cv_prog_AR+set}" = set; then :
  5394. $as_echo_n "(cached) " >&6
  5395. else
  5396. if test -n "$AR"; then
  5397. ac_cv_prog_AR="$AR" # Let the user override the test.
  5398. else
  5399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5400. for as_dir in $PATH
  5401. do
  5402. IFS=$as_save_IFS
  5403. test -z "$as_dir" && as_dir=.
  5404. for ac_exec_ext in '' $ac_executable_extensions; do
  5405. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5406. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5408. break 2
  5409. fi
  5410. done
  5411. done
  5412. IFS=$as_save_IFS
  5413. fi
  5414. fi
  5415. AR=$ac_cv_prog_AR
  5416. if test -n "$AR"; then
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5418. $as_echo "$AR" >&6; }
  5419. else
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5421. $as_echo "no" >&6; }
  5422. fi
  5423. fi
  5424. if test -z "$ac_cv_prog_AR"; then
  5425. ac_ct_AR=$AR
  5426. # Extract the first word of "ar", so it can be a program name with args.
  5427. set dummy ar; ac_word=$2
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5429. $as_echo_n "checking for $ac_word... " >&6; }
  5430. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5431. $as_echo_n "(cached) " >&6
  5432. else
  5433. if test -n "$ac_ct_AR"; then
  5434. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5435. else
  5436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5437. for as_dir in $PATH
  5438. do
  5439. IFS=$as_save_IFS
  5440. test -z "$as_dir" && as_dir=.
  5441. for ac_exec_ext in '' $ac_executable_extensions; do
  5442. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5443. ac_cv_prog_ac_ct_AR="ar"
  5444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5445. break 2
  5446. fi
  5447. done
  5448. done
  5449. IFS=$as_save_IFS
  5450. fi
  5451. fi
  5452. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5453. if test -n "$ac_ct_AR"; then
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5455. $as_echo "$ac_ct_AR" >&6; }
  5456. else
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5458. $as_echo "no" >&6; }
  5459. fi
  5460. if test "x$ac_ct_AR" = x; then
  5461. AR="false"
  5462. else
  5463. case $cross_compiling:$ac_tool_warned in
  5464. yes:)
  5465. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5466. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5467. ac_tool_warned=yes ;;
  5468. esac
  5469. AR=$ac_ct_AR
  5470. fi
  5471. else
  5472. AR="$ac_cv_prog_AR"
  5473. fi
  5474. test -z "$AR" && AR=ar
  5475. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5476. if test -n "$ac_tool_prefix"; then
  5477. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5478. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5480. $as_echo_n "checking for $ac_word... " >&6; }
  5481. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5482. $as_echo_n "(cached) " >&6
  5483. else
  5484. if test -n "$STRIP"; then
  5485. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5486. else
  5487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5488. for as_dir in $PATH
  5489. do
  5490. IFS=$as_save_IFS
  5491. test -z "$as_dir" && as_dir=.
  5492. for ac_exec_ext in '' $ac_executable_extensions; do
  5493. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5494. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5496. break 2
  5497. fi
  5498. done
  5499. done
  5500. IFS=$as_save_IFS
  5501. fi
  5502. fi
  5503. STRIP=$ac_cv_prog_STRIP
  5504. if test -n "$STRIP"; then
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5506. $as_echo "$STRIP" >&6; }
  5507. else
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5509. $as_echo "no" >&6; }
  5510. fi
  5511. fi
  5512. if test -z "$ac_cv_prog_STRIP"; then
  5513. ac_ct_STRIP=$STRIP
  5514. # Extract the first word of "strip", so it can be a program name with args.
  5515. set dummy strip; ac_word=$2
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5517. $as_echo_n "checking for $ac_word... " >&6; }
  5518. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5519. $as_echo_n "(cached) " >&6
  5520. else
  5521. if test -n "$ac_ct_STRIP"; then
  5522. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5523. else
  5524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5525. for as_dir in $PATH
  5526. do
  5527. IFS=$as_save_IFS
  5528. test -z "$as_dir" && as_dir=.
  5529. for ac_exec_ext in '' $ac_executable_extensions; do
  5530. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5531. ac_cv_prog_ac_ct_STRIP="strip"
  5532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5533. break 2
  5534. fi
  5535. done
  5536. done
  5537. IFS=$as_save_IFS
  5538. fi
  5539. fi
  5540. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5541. if test -n "$ac_ct_STRIP"; then
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5543. $as_echo "$ac_ct_STRIP" >&6; }
  5544. else
  5545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5546. $as_echo "no" >&6; }
  5547. fi
  5548. if test "x$ac_ct_STRIP" = x; then
  5549. STRIP=":"
  5550. else
  5551. case $cross_compiling:$ac_tool_warned in
  5552. yes:)
  5553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5554. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5555. ac_tool_warned=yes ;;
  5556. esac
  5557. STRIP=$ac_ct_STRIP
  5558. fi
  5559. else
  5560. STRIP="$ac_cv_prog_STRIP"
  5561. fi
  5562. test -z "$STRIP" && STRIP=:
  5563. if test -n "$ac_tool_prefix"; then
  5564. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5565. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5567. $as_echo_n "checking for $ac_word... " >&6; }
  5568. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5569. $as_echo_n "(cached) " >&6
  5570. else
  5571. if test -n "$RANLIB"; then
  5572. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5573. else
  5574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5575. for as_dir in $PATH
  5576. do
  5577. IFS=$as_save_IFS
  5578. test -z "$as_dir" && as_dir=.
  5579. for ac_exec_ext in '' $ac_executable_extensions; do
  5580. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5581. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5583. break 2
  5584. fi
  5585. done
  5586. done
  5587. IFS=$as_save_IFS
  5588. fi
  5589. fi
  5590. RANLIB=$ac_cv_prog_RANLIB
  5591. if test -n "$RANLIB"; then
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5593. $as_echo "$RANLIB" >&6; }
  5594. else
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5596. $as_echo "no" >&6; }
  5597. fi
  5598. fi
  5599. if test -z "$ac_cv_prog_RANLIB"; then
  5600. ac_ct_RANLIB=$RANLIB
  5601. # Extract the first word of "ranlib", so it can be a program name with args.
  5602. set dummy ranlib; ac_word=$2
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5604. $as_echo_n "checking for $ac_word... " >&6; }
  5605. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5606. $as_echo_n "(cached) " >&6
  5607. else
  5608. if test -n "$ac_ct_RANLIB"; then
  5609. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5610. else
  5611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5612. for as_dir in $PATH
  5613. do
  5614. IFS=$as_save_IFS
  5615. test -z "$as_dir" && as_dir=.
  5616. for ac_exec_ext in '' $ac_executable_extensions; do
  5617. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5618. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5620. break 2
  5621. fi
  5622. done
  5623. done
  5624. IFS=$as_save_IFS
  5625. fi
  5626. fi
  5627. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5628. if test -n "$ac_ct_RANLIB"; then
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5630. $as_echo "$ac_ct_RANLIB" >&6; }
  5631. else
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5633. $as_echo "no" >&6; }
  5634. fi
  5635. if test "x$ac_ct_RANLIB" = x; then
  5636. RANLIB=":"
  5637. else
  5638. case $cross_compiling:$ac_tool_warned in
  5639. yes:)
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5641. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5642. ac_tool_warned=yes ;;
  5643. esac
  5644. RANLIB=$ac_ct_RANLIB
  5645. fi
  5646. else
  5647. RANLIB="$ac_cv_prog_RANLIB"
  5648. fi
  5649. test -z "$RANLIB" && RANLIB=:
  5650. # Determine commands to create old-style static archives.
  5651. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5652. old_postinstall_cmds='chmod 644 $oldlib'
  5653. old_postuninstall_cmds=
  5654. if test -n "$RANLIB"; then
  5655. case $host_os in
  5656. openbsd*)
  5657. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5658. ;;
  5659. *)
  5660. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5661. ;;
  5662. esac
  5663. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5664. fi
  5665. case $host_os in
  5666. darwin*)
  5667. lock_old_archive_extraction=yes ;;
  5668. *)
  5669. lock_old_archive_extraction=no ;;
  5670. esac
  5671. for ac_prog in gawk mawk nawk awk
  5672. do
  5673. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5674. set dummy $ac_prog; ac_word=$2
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5676. $as_echo_n "checking for $ac_word... " >&6; }
  5677. if test "${ac_cv_prog_AWK+set}" = set; then :
  5678. $as_echo_n "(cached) " >&6
  5679. else
  5680. if test -n "$AWK"; then
  5681. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5682. else
  5683. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5684. for as_dir in $PATH
  5685. do
  5686. IFS=$as_save_IFS
  5687. test -z "$as_dir" && as_dir=.
  5688. for ac_exec_ext in '' $ac_executable_extensions; do
  5689. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5690. ac_cv_prog_AWK="$ac_prog"
  5691. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5692. break 2
  5693. fi
  5694. done
  5695. done
  5696. IFS=$as_save_IFS
  5697. fi
  5698. fi
  5699. AWK=$ac_cv_prog_AWK
  5700. if test -n "$AWK"; then
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5702. $as_echo "$AWK" >&6; }
  5703. else
  5704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5705. $as_echo "no" >&6; }
  5706. fi
  5707. test -n "$AWK" && break
  5708. done
  5709. # If no C compiler was specified, use CC.
  5710. LTCC=${LTCC-"$CC"}
  5711. # If no C compiler flags were specified, use CFLAGS.
  5712. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5713. # Allow CC to be a program name with arguments.
  5714. compiler=$CC
  5715. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5717. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5718. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5719. $as_echo_n "(cached) " >&6
  5720. else
  5721. # These are sane defaults that work on at least a few old systems.
  5722. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5723. # Character class describing NM global symbol codes.
  5724. symcode='[BCDEGRST]'
  5725. # Regexp to match symbols that can be accessed directly from C.
  5726. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5727. # Define system-specific variables.
  5728. case $host_os in
  5729. aix*)
  5730. symcode='[BCDT]'
  5731. ;;
  5732. cygwin* | mingw* | pw32* | cegcc*)
  5733. symcode='[ABCDGISTW]'
  5734. ;;
  5735. hpux*)
  5736. if test "$host_cpu" = ia64; then
  5737. symcode='[ABCDEGRST]'
  5738. fi
  5739. ;;
  5740. irix* | nonstopux*)
  5741. symcode='[BCDEGRST]'
  5742. ;;
  5743. osf*)
  5744. symcode='[BCDEGQRST]'
  5745. ;;
  5746. solaris*)
  5747. symcode='[BDRT]'
  5748. ;;
  5749. sco3.2v5*)
  5750. symcode='[DT]'
  5751. ;;
  5752. sysv4.2uw2*)
  5753. symcode='[DT]'
  5754. ;;
  5755. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5756. symcode='[ABDT]'
  5757. ;;
  5758. sysv4)
  5759. symcode='[DFNSTU]'
  5760. ;;
  5761. esac
  5762. # If we're using GNU nm, then use its standard symbol codes.
  5763. case `$NM -V 2>&1` in
  5764. *GNU* | *'with BFD'*)
  5765. symcode='[ABCDGIRSTW]' ;;
  5766. esac
  5767. # Transform an extracted symbol line into a proper C declaration.
  5768. # Some systems (esp. on ia64) link data and code symbols differently,
  5769. # so use this general approach.
  5770. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5771. # Transform an extracted symbol line into symbol name and symbol address
  5772. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5773. 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'"
  5774. # Handle CRLF in mingw tool chain
  5775. opt_cr=
  5776. case $build_os in
  5777. mingw*)
  5778. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5779. ;;
  5780. esac
  5781. # Try without a prefix underscore, then with it.
  5782. for ac_symprfx in "" "_"; do
  5783. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5784. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5785. # Write the raw and C identifiers.
  5786. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5787. # Fake it for dumpbin and say T for any non-static function
  5788. # and D for any global variable.
  5789. # Also find C++ and __fastcall symbols from MSVC++,
  5790. # which start with @ or ?.
  5791. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5792. " {last_section=section; section=\$ 3};"\
  5793. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5794. " \$ 0!~/External *\|/{next};"\
  5795. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5796. " {if(hide[section]) next};"\
  5797. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5798. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5799. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5800. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5801. " ' prfx=^$ac_symprfx"
  5802. else
  5803. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5804. fi
  5805. # Check to see that the pipe works correctly.
  5806. pipe_works=no
  5807. rm -f conftest*
  5808. cat > conftest.$ac_ext <<_LT_EOF
  5809. #ifdef __cplusplus
  5810. extern "C" {
  5811. #endif
  5812. char nm_test_var;
  5813. void nm_test_func(void);
  5814. void nm_test_func(void){}
  5815. #ifdef __cplusplus
  5816. }
  5817. #endif
  5818. int main(){nm_test_var='a';nm_test_func();return(0);}
  5819. _LT_EOF
  5820. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5821. (eval $ac_compile) 2>&5
  5822. ac_status=$?
  5823. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5824. test $ac_status = 0; }; then
  5825. # Now try to grab the symbols.
  5826. nlist=conftest.nm
  5827. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5828. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5829. ac_status=$?
  5830. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5831. test $ac_status = 0; } && test -s "$nlist"; then
  5832. # Try sorting and uniquifying the output.
  5833. if sort "$nlist" | uniq > "$nlist"T; then
  5834. mv -f "$nlist"T "$nlist"
  5835. else
  5836. rm -f "$nlist"T
  5837. fi
  5838. # Make sure that we snagged all the symbols we need.
  5839. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5840. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5841. cat <<_LT_EOF > conftest.$ac_ext
  5842. #ifdef __cplusplus
  5843. extern "C" {
  5844. #endif
  5845. _LT_EOF
  5846. # Now generate the symbol file.
  5847. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5848. cat <<_LT_EOF >> conftest.$ac_ext
  5849. /* The mapping between symbol names and symbols. */
  5850. const struct {
  5851. const char *name;
  5852. void *address;
  5853. }
  5854. lt__PROGRAM__LTX_preloaded_symbols[] =
  5855. {
  5856. { "@PROGRAM@", (void *) 0 },
  5857. _LT_EOF
  5858. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5859. cat <<\_LT_EOF >> conftest.$ac_ext
  5860. {0, (void *) 0}
  5861. };
  5862. /* This works around a problem in FreeBSD linker */
  5863. #ifdef FREEBSD_WORKAROUND
  5864. static const void *lt_preloaded_setup() {
  5865. return lt__PROGRAM__LTX_preloaded_symbols;
  5866. }
  5867. #endif
  5868. #ifdef __cplusplus
  5869. }
  5870. #endif
  5871. _LT_EOF
  5872. # Now try linking the two files.
  5873. mv conftest.$ac_objext conftstm.$ac_objext
  5874. lt_save_LIBS="$LIBS"
  5875. lt_save_CFLAGS="$CFLAGS"
  5876. LIBS="conftstm.$ac_objext"
  5877. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5878. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5879. (eval $ac_link) 2>&5
  5880. ac_status=$?
  5881. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5882. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5883. pipe_works=yes
  5884. fi
  5885. LIBS="$lt_save_LIBS"
  5886. CFLAGS="$lt_save_CFLAGS"
  5887. else
  5888. echo "cannot find nm_test_func in $nlist" >&5
  5889. fi
  5890. else
  5891. echo "cannot find nm_test_var in $nlist" >&5
  5892. fi
  5893. else
  5894. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5895. fi
  5896. else
  5897. echo "$progname: failed program was:" >&5
  5898. cat conftest.$ac_ext >&5
  5899. fi
  5900. rm -rf conftest* conftst*
  5901. # Do not use the global_symbol_pipe unless it works.
  5902. if test "$pipe_works" = yes; then
  5903. break
  5904. else
  5905. lt_cv_sys_global_symbol_pipe=
  5906. fi
  5907. done
  5908. fi
  5909. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5910. lt_cv_sys_global_symbol_to_cdecl=
  5911. fi
  5912. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5914. $as_echo "failed" >&6; }
  5915. else
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5917. $as_echo "ok" >&6; }
  5918. fi
  5919. # Check whether --enable-libtool-lock was given.
  5920. if test "${enable_libtool_lock+set}" = set; then :
  5921. enableval=$enable_libtool_lock;
  5922. fi
  5923. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5924. # Some flags need to be propagated to the compiler or linker for good
  5925. # libtool support.
  5926. case $host in
  5927. ia64-*-hpux*)
  5928. # Find out which ABI we are using.
  5929. echo 'int i;' > conftest.$ac_ext
  5930. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5931. (eval $ac_compile) 2>&5
  5932. ac_status=$?
  5933. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5934. test $ac_status = 0; }; then
  5935. case `/usr/bin/file conftest.$ac_objext` in
  5936. *ELF-32*)
  5937. HPUX_IA64_MODE="32"
  5938. ;;
  5939. *ELF-64*)
  5940. HPUX_IA64_MODE="64"
  5941. ;;
  5942. esac
  5943. fi
  5944. rm -rf conftest*
  5945. ;;
  5946. *-*-irix6*)
  5947. # Find out which ABI we are using.
  5948. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5949. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5950. (eval $ac_compile) 2>&5
  5951. ac_status=$?
  5952. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5953. test $ac_status = 0; }; then
  5954. if test "$lt_cv_prog_gnu_ld" = yes; then
  5955. case `/usr/bin/file conftest.$ac_objext` in
  5956. *32-bit*)
  5957. LD="${LD-ld} -melf32bsmip"
  5958. ;;
  5959. *N32*)
  5960. LD="${LD-ld} -melf32bmipn32"
  5961. ;;
  5962. *64-bit*)
  5963. LD="${LD-ld} -melf64bmip"
  5964. ;;
  5965. esac
  5966. else
  5967. case `/usr/bin/file conftest.$ac_objext` in
  5968. *32-bit*)
  5969. LD="${LD-ld} -32"
  5970. ;;
  5971. *N32*)
  5972. LD="${LD-ld} -n32"
  5973. ;;
  5974. *64-bit*)
  5975. LD="${LD-ld} -64"
  5976. ;;
  5977. esac
  5978. fi
  5979. fi
  5980. rm -rf conftest*
  5981. ;;
  5982. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5983. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5984. # Find out which ABI we are using.
  5985. echo 'int i;' > conftest.$ac_ext
  5986. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5987. (eval $ac_compile) 2>&5
  5988. ac_status=$?
  5989. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5990. test $ac_status = 0; }; then
  5991. case `/usr/bin/file conftest.o` in
  5992. *32-bit*)
  5993. case $host in
  5994. x86_64-*kfreebsd*-gnu)
  5995. LD="${LD-ld} -m elf_i386_fbsd"
  5996. ;;
  5997. x86_64-*linux*)
  5998. case `/usr/bin/file conftest.o` in
  5999. *x86-64*)
  6000. LD="${LD-ld} -m elf32_x86_64"
  6001. ;;
  6002. *)
  6003. LD="${LD-ld} -m elf_i386"
  6004. ;;
  6005. esac
  6006. ;;
  6007. powerpc64le-*linux*)
  6008. LD="${LD-ld} -m elf32lppclinux"
  6009. ;;
  6010. powerpc64-*linux*)
  6011. LD="${LD-ld} -m elf32ppclinux"
  6012. ;;
  6013. s390x-*linux*)
  6014. LD="${LD-ld} -m elf_s390"
  6015. ;;
  6016. sparc64-*linux*)
  6017. LD="${LD-ld} -m elf32_sparc"
  6018. ;;
  6019. esac
  6020. ;;
  6021. *64-bit*)
  6022. case $host in
  6023. x86_64-*kfreebsd*-gnu)
  6024. LD="${LD-ld} -m elf_x86_64_fbsd"
  6025. ;;
  6026. x86_64-*linux*)
  6027. LD="${LD-ld} -m elf_x86_64"
  6028. ;;
  6029. powerpcle-*linux*)
  6030. LD="${LD-ld} -m elf64lppc"
  6031. ;;
  6032. powerpc-*linux*)
  6033. LD="${LD-ld} -m elf64ppc"
  6034. ;;
  6035. s390*-*linux*|s390*-*tpf*)
  6036. LD="${LD-ld} -m elf64_s390"
  6037. ;;
  6038. sparc*-*linux*)
  6039. LD="${LD-ld} -m elf64_sparc"
  6040. ;;
  6041. esac
  6042. ;;
  6043. esac
  6044. fi
  6045. rm -rf conftest*
  6046. ;;
  6047. *-*-sco3.2v5*)
  6048. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6049. SAVE_CFLAGS="$CFLAGS"
  6050. CFLAGS="$CFLAGS -belf"
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6052. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6053. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6054. $as_echo_n "(cached) " >&6
  6055. else
  6056. ac_ext=c
  6057. ac_cpp='$CPP $CPPFLAGS'
  6058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6062. /* end confdefs.h. */
  6063. int
  6064. main ()
  6065. {
  6066. ;
  6067. return 0;
  6068. }
  6069. _ACEOF
  6070. if ac_fn_c_try_link "$LINENO"; then :
  6071. lt_cv_cc_needs_belf=yes
  6072. else
  6073. lt_cv_cc_needs_belf=no
  6074. fi
  6075. rm -f core conftest.err conftest.$ac_objext \
  6076. conftest$ac_exeext conftest.$ac_ext
  6077. ac_ext=c
  6078. ac_cpp='$CPP $CPPFLAGS'
  6079. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6080. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6081. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6082. fi
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6084. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6085. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6086. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6087. CFLAGS="$SAVE_CFLAGS"
  6088. fi
  6089. ;;
  6090. sparc*-*solaris*)
  6091. # Find out which ABI we are using.
  6092. echo 'int i;' > conftest.$ac_ext
  6093. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6094. (eval $ac_compile) 2>&5
  6095. ac_status=$?
  6096. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6097. test $ac_status = 0; }; then
  6098. case `/usr/bin/file conftest.o` in
  6099. *64-bit*)
  6100. case $lt_cv_prog_gnu_ld in
  6101. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6102. *)
  6103. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6104. LD="${LD-ld} -64"
  6105. fi
  6106. ;;
  6107. esac
  6108. ;;
  6109. esac
  6110. fi
  6111. rm -rf conftest*
  6112. ;;
  6113. esac
  6114. need_locks="$enable_libtool_lock"
  6115. case $host_os in
  6116. rhapsody* | darwin*)
  6117. if test -n "$ac_tool_prefix"; then
  6118. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6119. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6121. $as_echo_n "checking for $ac_word... " >&6; }
  6122. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6123. $as_echo_n "(cached) " >&6
  6124. else
  6125. if test -n "$DSYMUTIL"; then
  6126. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6127. else
  6128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6129. for as_dir in $PATH
  6130. do
  6131. IFS=$as_save_IFS
  6132. test -z "$as_dir" && as_dir=.
  6133. for ac_exec_ext in '' $ac_executable_extensions; do
  6134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6135. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6137. break 2
  6138. fi
  6139. done
  6140. done
  6141. IFS=$as_save_IFS
  6142. fi
  6143. fi
  6144. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6145. if test -n "$DSYMUTIL"; then
  6146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6147. $as_echo "$DSYMUTIL" >&6; }
  6148. else
  6149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6150. $as_echo "no" >&6; }
  6151. fi
  6152. fi
  6153. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6154. ac_ct_DSYMUTIL=$DSYMUTIL
  6155. # Extract the first word of "dsymutil", so it can be a program name with args.
  6156. set dummy dsymutil; ac_word=$2
  6157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6158. $as_echo_n "checking for $ac_word... " >&6; }
  6159. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6160. $as_echo_n "(cached) " >&6
  6161. else
  6162. if test -n "$ac_ct_DSYMUTIL"; then
  6163. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6164. else
  6165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6166. for as_dir in $PATH
  6167. do
  6168. IFS=$as_save_IFS
  6169. test -z "$as_dir" && as_dir=.
  6170. for ac_exec_ext in '' $ac_executable_extensions; do
  6171. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6172. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6174. break 2
  6175. fi
  6176. done
  6177. done
  6178. IFS=$as_save_IFS
  6179. fi
  6180. fi
  6181. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6182. if test -n "$ac_ct_DSYMUTIL"; then
  6183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6184. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6185. else
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6187. $as_echo "no" >&6; }
  6188. fi
  6189. if test "x$ac_ct_DSYMUTIL" = x; then
  6190. DSYMUTIL=":"
  6191. else
  6192. case $cross_compiling:$ac_tool_warned in
  6193. yes:)
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6195. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6196. ac_tool_warned=yes ;;
  6197. esac
  6198. DSYMUTIL=$ac_ct_DSYMUTIL
  6199. fi
  6200. else
  6201. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6202. fi
  6203. if test -n "$ac_tool_prefix"; then
  6204. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6205. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6207. $as_echo_n "checking for $ac_word... " >&6; }
  6208. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6209. $as_echo_n "(cached) " >&6
  6210. else
  6211. if test -n "$NMEDIT"; then
  6212. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6213. else
  6214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6215. for as_dir in $PATH
  6216. do
  6217. IFS=$as_save_IFS
  6218. test -z "$as_dir" && as_dir=.
  6219. for ac_exec_ext in '' $ac_executable_extensions; do
  6220. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6221. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6223. break 2
  6224. fi
  6225. done
  6226. done
  6227. IFS=$as_save_IFS
  6228. fi
  6229. fi
  6230. NMEDIT=$ac_cv_prog_NMEDIT
  6231. if test -n "$NMEDIT"; then
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6233. $as_echo "$NMEDIT" >&6; }
  6234. else
  6235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6236. $as_echo "no" >&6; }
  6237. fi
  6238. fi
  6239. if test -z "$ac_cv_prog_NMEDIT"; then
  6240. ac_ct_NMEDIT=$NMEDIT
  6241. # Extract the first word of "nmedit", so it can be a program name with args.
  6242. set dummy nmedit; ac_word=$2
  6243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6244. $as_echo_n "checking for $ac_word... " >&6; }
  6245. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6246. $as_echo_n "(cached) " >&6
  6247. else
  6248. if test -n "$ac_ct_NMEDIT"; then
  6249. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6250. else
  6251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6252. for as_dir in $PATH
  6253. do
  6254. IFS=$as_save_IFS
  6255. test -z "$as_dir" && as_dir=.
  6256. for ac_exec_ext in '' $ac_executable_extensions; do
  6257. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6258. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6259. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6260. break 2
  6261. fi
  6262. done
  6263. done
  6264. IFS=$as_save_IFS
  6265. fi
  6266. fi
  6267. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6268. if test -n "$ac_ct_NMEDIT"; then
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6270. $as_echo "$ac_ct_NMEDIT" >&6; }
  6271. else
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6273. $as_echo "no" >&6; }
  6274. fi
  6275. if test "x$ac_ct_NMEDIT" = x; then
  6276. NMEDIT=":"
  6277. else
  6278. case $cross_compiling:$ac_tool_warned in
  6279. yes:)
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6281. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6282. ac_tool_warned=yes ;;
  6283. esac
  6284. NMEDIT=$ac_ct_NMEDIT
  6285. fi
  6286. else
  6287. NMEDIT="$ac_cv_prog_NMEDIT"
  6288. fi
  6289. if test -n "$ac_tool_prefix"; then
  6290. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6291. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6293. $as_echo_n "checking for $ac_word... " >&6; }
  6294. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6295. $as_echo_n "(cached) " >&6
  6296. else
  6297. if test -n "$LIPO"; then
  6298. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6299. else
  6300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6301. for as_dir in $PATH
  6302. do
  6303. IFS=$as_save_IFS
  6304. test -z "$as_dir" && as_dir=.
  6305. for ac_exec_ext in '' $ac_executable_extensions; do
  6306. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6307. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6309. break 2
  6310. fi
  6311. done
  6312. done
  6313. IFS=$as_save_IFS
  6314. fi
  6315. fi
  6316. LIPO=$ac_cv_prog_LIPO
  6317. if test -n "$LIPO"; then
  6318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6319. $as_echo "$LIPO" >&6; }
  6320. else
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6322. $as_echo "no" >&6; }
  6323. fi
  6324. fi
  6325. if test -z "$ac_cv_prog_LIPO"; then
  6326. ac_ct_LIPO=$LIPO
  6327. # Extract the first word of "lipo", so it can be a program name with args.
  6328. set dummy lipo; ac_word=$2
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6330. $as_echo_n "checking for $ac_word... " >&6; }
  6331. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6332. $as_echo_n "(cached) " >&6
  6333. else
  6334. if test -n "$ac_ct_LIPO"; then
  6335. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6336. else
  6337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6338. for as_dir in $PATH
  6339. do
  6340. IFS=$as_save_IFS
  6341. test -z "$as_dir" && as_dir=.
  6342. for ac_exec_ext in '' $ac_executable_extensions; do
  6343. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6344. ac_cv_prog_ac_ct_LIPO="lipo"
  6345. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6346. break 2
  6347. fi
  6348. done
  6349. done
  6350. IFS=$as_save_IFS
  6351. fi
  6352. fi
  6353. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6354. if test -n "$ac_ct_LIPO"; then
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6356. $as_echo "$ac_ct_LIPO" >&6; }
  6357. else
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6359. $as_echo "no" >&6; }
  6360. fi
  6361. if test "x$ac_ct_LIPO" = x; then
  6362. LIPO=":"
  6363. else
  6364. case $cross_compiling:$ac_tool_warned in
  6365. yes:)
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6367. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6368. ac_tool_warned=yes ;;
  6369. esac
  6370. LIPO=$ac_ct_LIPO
  6371. fi
  6372. else
  6373. LIPO="$ac_cv_prog_LIPO"
  6374. fi
  6375. if test -n "$ac_tool_prefix"; then
  6376. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6377. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6379. $as_echo_n "checking for $ac_word... " >&6; }
  6380. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6381. $as_echo_n "(cached) " >&6
  6382. else
  6383. if test -n "$OTOOL"; then
  6384. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6385. else
  6386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6387. for as_dir in $PATH
  6388. do
  6389. IFS=$as_save_IFS
  6390. test -z "$as_dir" && as_dir=.
  6391. for ac_exec_ext in '' $ac_executable_extensions; do
  6392. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6393. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6394. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6395. break 2
  6396. fi
  6397. done
  6398. done
  6399. IFS=$as_save_IFS
  6400. fi
  6401. fi
  6402. OTOOL=$ac_cv_prog_OTOOL
  6403. if test -n "$OTOOL"; then
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6405. $as_echo "$OTOOL" >&6; }
  6406. else
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6408. $as_echo "no" >&6; }
  6409. fi
  6410. fi
  6411. if test -z "$ac_cv_prog_OTOOL"; then
  6412. ac_ct_OTOOL=$OTOOL
  6413. # Extract the first word of "otool", so it can be a program name with args.
  6414. set dummy otool; ac_word=$2
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6416. $as_echo_n "checking for $ac_word... " >&6; }
  6417. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6418. $as_echo_n "(cached) " >&6
  6419. else
  6420. if test -n "$ac_ct_OTOOL"; then
  6421. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6422. else
  6423. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6424. for as_dir in $PATH
  6425. do
  6426. IFS=$as_save_IFS
  6427. test -z "$as_dir" && as_dir=.
  6428. for ac_exec_ext in '' $ac_executable_extensions; do
  6429. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6430. ac_cv_prog_ac_ct_OTOOL="otool"
  6431. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6432. break 2
  6433. fi
  6434. done
  6435. done
  6436. IFS=$as_save_IFS
  6437. fi
  6438. fi
  6439. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6440. if test -n "$ac_ct_OTOOL"; then
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6442. $as_echo "$ac_ct_OTOOL" >&6; }
  6443. else
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6445. $as_echo "no" >&6; }
  6446. fi
  6447. if test "x$ac_ct_OTOOL" = x; then
  6448. OTOOL=":"
  6449. else
  6450. case $cross_compiling:$ac_tool_warned in
  6451. yes:)
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6453. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6454. ac_tool_warned=yes ;;
  6455. esac
  6456. OTOOL=$ac_ct_OTOOL
  6457. fi
  6458. else
  6459. OTOOL="$ac_cv_prog_OTOOL"
  6460. fi
  6461. if test -n "$ac_tool_prefix"; then
  6462. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6463. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6465. $as_echo_n "checking for $ac_word... " >&6; }
  6466. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6467. $as_echo_n "(cached) " >&6
  6468. else
  6469. if test -n "$OTOOL64"; then
  6470. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6471. else
  6472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6473. for as_dir in $PATH
  6474. do
  6475. IFS=$as_save_IFS
  6476. test -z "$as_dir" && as_dir=.
  6477. for ac_exec_ext in '' $ac_executable_extensions; do
  6478. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6479. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6480. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6481. break 2
  6482. fi
  6483. done
  6484. done
  6485. IFS=$as_save_IFS
  6486. fi
  6487. fi
  6488. OTOOL64=$ac_cv_prog_OTOOL64
  6489. if test -n "$OTOOL64"; then
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6491. $as_echo "$OTOOL64" >&6; }
  6492. else
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6494. $as_echo "no" >&6; }
  6495. fi
  6496. fi
  6497. if test -z "$ac_cv_prog_OTOOL64"; then
  6498. ac_ct_OTOOL64=$OTOOL64
  6499. # Extract the first word of "otool64", so it can be a program name with args.
  6500. set dummy otool64; ac_word=$2
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6502. $as_echo_n "checking for $ac_word... " >&6; }
  6503. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6504. $as_echo_n "(cached) " >&6
  6505. else
  6506. if test -n "$ac_ct_OTOOL64"; then
  6507. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6508. else
  6509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6510. for as_dir in $PATH
  6511. do
  6512. IFS=$as_save_IFS
  6513. test -z "$as_dir" && as_dir=.
  6514. for ac_exec_ext in '' $ac_executable_extensions; do
  6515. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6516. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6517. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6518. break 2
  6519. fi
  6520. done
  6521. done
  6522. IFS=$as_save_IFS
  6523. fi
  6524. fi
  6525. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6526. if test -n "$ac_ct_OTOOL64"; then
  6527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6528. $as_echo "$ac_ct_OTOOL64" >&6; }
  6529. else
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6531. $as_echo "no" >&6; }
  6532. fi
  6533. if test "x$ac_ct_OTOOL64" = x; then
  6534. OTOOL64=":"
  6535. else
  6536. case $cross_compiling:$ac_tool_warned in
  6537. yes:)
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6539. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6540. ac_tool_warned=yes ;;
  6541. esac
  6542. OTOOL64=$ac_ct_OTOOL64
  6543. fi
  6544. else
  6545. OTOOL64="$ac_cv_prog_OTOOL64"
  6546. fi
  6547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6548. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6549. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6550. $as_echo_n "(cached) " >&6
  6551. else
  6552. lt_cv_apple_cc_single_mod=no
  6553. if test -z "${LT_MULTI_MODULE}"; then
  6554. # By default we will add the -single_module flag. You can override
  6555. # by either setting the environment variable LT_MULTI_MODULE
  6556. # non-empty at configure time, or by adding -multi_module to the
  6557. # link flags.
  6558. rm -rf libconftest.dylib*
  6559. echo "int foo(void){return 1;}" > conftest.c
  6560. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6561. -dynamiclib -Wl,-single_module conftest.c" >&5
  6562. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6563. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6564. _lt_result=$?
  6565. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6566. lt_cv_apple_cc_single_mod=yes
  6567. else
  6568. cat conftest.err >&5
  6569. fi
  6570. rm -rf libconftest.dylib*
  6571. rm -f conftest.*
  6572. fi
  6573. fi
  6574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6575. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6577. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6578. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6579. $as_echo_n "(cached) " >&6
  6580. else
  6581. lt_cv_ld_exported_symbols_list=no
  6582. save_LDFLAGS=$LDFLAGS
  6583. echo "_main" > conftest.sym
  6584. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6586. /* end confdefs.h. */
  6587. int
  6588. main ()
  6589. {
  6590. ;
  6591. return 0;
  6592. }
  6593. _ACEOF
  6594. if ac_fn_c_try_link "$LINENO"; then :
  6595. lt_cv_ld_exported_symbols_list=yes
  6596. else
  6597. lt_cv_ld_exported_symbols_list=no
  6598. fi
  6599. rm -f core conftest.err conftest.$ac_objext \
  6600. conftest$ac_exeext conftest.$ac_ext
  6601. LDFLAGS="$save_LDFLAGS"
  6602. fi
  6603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6604. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6606. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6607. if test "${lt_cv_ld_force_load+set}" = set; then :
  6608. $as_echo_n "(cached) " >&6
  6609. else
  6610. lt_cv_ld_force_load=no
  6611. cat > conftest.c << _LT_EOF
  6612. int forced_loaded() { return 2;}
  6613. _LT_EOF
  6614. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6615. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6616. echo "$AR cru libconftest.a conftest.o" >&5
  6617. $AR cru libconftest.a conftest.o 2>&5
  6618. cat > conftest.c << _LT_EOF
  6619. int main() { return 0;}
  6620. _LT_EOF
  6621. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6622. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6623. _lt_result=$?
  6624. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6625. lt_cv_ld_force_load=yes
  6626. else
  6627. cat conftest.err >&5
  6628. fi
  6629. rm -f conftest.err libconftest.a conftest conftest.c
  6630. rm -rf conftest.dSYM
  6631. fi
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6633. $as_echo "$lt_cv_ld_force_load" >&6; }
  6634. case $host_os in
  6635. rhapsody* | darwin1.[012])
  6636. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6637. darwin1.*)
  6638. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6639. darwin*) # darwin 5.x on
  6640. # if running on 10.5 or later, the deployment target defaults
  6641. # to the OS version, if on x86, and 10.4, the deployment
  6642. # target defaults to 10.4. Don't you love it?
  6643. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6644. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6645. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6646. 10.[012][,.]*)
  6647. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6648. 10.*)
  6649. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6650. esac
  6651. ;;
  6652. esac
  6653. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6654. _lt_dar_single_mod='$single_module'
  6655. fi
  6656. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6657. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6658. else
  6659. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6660. fi
  6661. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6662. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6663. else
  6664. _lt_dsymutil=
  6665. fi
  6666. ;;
  6667. esac
  6668. for ac_header in dlfcn.h
  6669. do :
  6670. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6671. "
  6672. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6673. cat >>confdefs.h <<_ACEOF
  6674. #define HAVE_DLFCN_H 1
  6675. _ACEOF
  6676. fi
  6677. done
  6678. # autoconf.info says this should be called right after AC_INIT.
  6679. ac_config_headers="$ac_config_headers config.h:config.in"
  6680. # Put a plausible default for CC_FOR_BUILD in Makefile.
  6681. if test "x$cross_compiling" = "xno"; then
  6682. CC_FOR_BUILD='$(CC)'
  6683. else
  6684. CC_FOR_BUILD=gcc
  6685. fi
  6686. AR=${AR-ar}
  6687. if test -n "$ac_tool_prefix"; then
  6688. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6689. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6691. $as_echo_n "checking for $ac_word... " >&6; }
  6692. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6693. $as_echo_n "(cached) " >&6
  6694. else
  6695. if test -n "$RANLIB"; then
  6696. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6697. else
  6698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6699. for as_dir in $PATH
  6700. do
  6701. IFS=$as_save_IFS
  6702. test -z "$as_dir" && as_dir=.
  6703. for ac_exec_ext in '' $ac_executable_extensions; do
  6704. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6705. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6707. break 2
  6708. fi
  6709. done
  6710. done
  6711. IFS=$as_save_IFS
  6712. fi
  6713. fi
  6714. RANLIB=$ac_cv_prog_RANLIB
  6715. if test -n "$RANLIB"; then
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6717. $as_echo "$RANLIB" >&6; }
  6718. else
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6720. $as_echo "no" >&6; }
  6721. fi
  6722. fi
  6723. if test -z "$ac_cv_prog_RANLIB"; then
  6724. ac_ct_RANLIB=$RANLIB
  6725. # Extract the first word of "ranlib", so it can be a program name with args.
  6726. set dummy ranlib; ac_word=$2
  6727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6728. $as_echo_n "checking for $ac_word... " >&6; }
  6729. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6730. $as_echo_n "(cached) " >&6
  6731. else
  6732. if test -n "$ac_ct_RANLIB"; then
  6733. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6734. else
  6735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6736. for as_dir in $PATH
  6737. do
  6738. IFS=$as_save_IFS
  6739. test -z "$as_dir" && as_dir=.
  6740. for ac_exec_ext in '' $ac_executable_extensions; do
  6741. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6742. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6744. break 2
  6745. fi
  6746. done
  6747. done
  6748. IFS=$as_save_IFS
  6749. fi
  6750. fi
  6751. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6752. if test -n "$ac_ct_RANLIB"; then
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6754. $as_echo "$ac_ct_RANLIB" >&6; }
  6755. else
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6757. $as_echo "no" >&6; }
  6758. fi
  6759. if test "x$ac_ct_RANLIB" = x; then
  6760. RANLIB=":"
  6761. else
  6762. case $cross_compiling:$ac_tool_warned in
  6763. yes:)
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6765. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6766. ac_tool_warned=yes ;;
  6767. esac
  6768. RANLIB=$ac_ct_RANLIB
  6769. fi
  6770. else
  6771. RANLIB="$ac_cv_prog_RANLIB"
  6772. fi
  6773. # Some of the common include files depend on bfd.h, and bfd.h checks
  6774. # that config.h is included first by testing that the PACKAGE macro
  6775. # is defined.
  6776. PACKAGE=sim
  6777. cat >>confdefs.h <<_ACEOF
  6778. #define PACKAGE "$PACKAGE"
  6779. _ACEOF
  6780. # Dependency checking.
  6781. ac_config_commands="$ac_config_commands depdir"
  6782. depcc="$CC" am_compiler_list=
  6783. am_depcomp=$ac_aux_dir/depcomp
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6785. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6786. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  6787. $as_echo_n "(cached) " >&6
  6788. else
  6789. if test -f "$am_depcomp"; then
  6790. # We make a subdir and do the tests there. Otherwise we can end up
  6791. # making bogus files that we don't know about and never remove. For
  6792. # instance it was reported that on HP-UX the gcc test will end up
  6793. # making a dummy file named `D' -- because `-MD' means `put the output
  6794. # in D'.
  6795. mkdir conftest.dir
  6796. # Copy depcomp to subdir because otherwise we won't find it if we're
  6797. # using a relative directory.
  6798. cp "$am_depcomp" conftest.dir
  6799. cd conftest.dir
  6800. # We will build objects and dependencies in a subdirectory because
  6801. # it helps to detect inapplicable dependency modes. For instance
  6802. # both Tru64's cc and ICC support -MD to output dependencies as a
  6803. # side effect of compilation, but ICC will put the dependencies in
  6804. # the current directory while Tru64 will put them in the object
  6805. # directory.
  6806. mkdir sub
  6807. am_cv_CC_dependencies_compiler_type=none
  6808. if test "$am_compiler_list" = ""; then
  6809. am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6810. fi
  6811. for depmode in $am_compiler_list; do
  6812. if test $depmode = none; then break; fi
  6813. $as_echo "$as_me:$LINENO: trying $depmode" >&5
  6814. # Setup a source with many dependencies, because some compilers
  6815. # like to wrap large dependency lists on column 80 (with \), and
  6816. # we should not choose a depcomp mode which is confused by this.
  6817. #
  6818. # We need to recreate these files for each test, as the compiler may
  6819. # overwrite some of them when testing with obscure command lines.
  6820. # This happens at least with the AIX C compiler.
  6821. : > sub/conftest.c
  6822. for i in 1 2 3 4 5 6; do
  6823. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6824. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6825. # Solaris 8's {/usr,}/bin/sh.
  6826. touch sub/conftst$i.h
  6827. done
  6828. echo "include sub/conftest.Po" > confmf
  6829. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6830. # mode. It turns out that the SunPro C++ compiler does not properly
  6831. # handle `-M -o', and we need to detect this.
  6832. depcmd="depmode=$depmode \
  6833. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6834. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6835. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
  6836. echo "| $depcmd" | sed -e 's/ */ /g' >&5
  6837. if env $depcmd > conftest.err 2>&1 &&
  6838. grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
  6839. grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
  6840. ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
  6841. # icc doesn't choke on unknown options, it will just issue warnings
  6842. # or remarks (even with -Werror). So we grep stderr for any message
  6843. # that says an option was ignored or not supported.
  6844. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6845. # icc: Command line warning: ignoring option '-M'; no argument required
  6846. # The diagnosis changed in icc 8.0:
  6847. # icc: Command line remark: option '-MP' not supported
  6848. if (grep 'ignoring option' conftest.err ||
  6849. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6850. am_cv_CC_dependencies_compiler_type=$depmode
  6851. $as_echo "$as_me:$LINENO: success" >&5
  6852. break
  6853. fi
  6854. fi
  6855. $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
  6856. sed -e 's/^/| /' < conftest.err >&5
  6857. done
  6858. cd ..
  6859. rm -rf conftest.dir
  6860. else
  6861. am_cv_CC_dependencies_compiler_type=none
  6862. fi
  6863. fi
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  6865. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  6866. if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
  6867. then as_fn_error "no usable dependency style found" "$LINENO" 5
  6868. else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  6869. fi
  6870. # Check for the 'make' the user wants to use.
  6871. for ac_prog in make
  6872. do
  6873. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6874. set dummy $ac_prog; ac_word=$2
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6876. $as_echo_n "checking for $ac_word... " >&6; }
  6877. if test "${ac_cv_prog_MAKE+set}" = set; then :
  6878. $as_echo_n "(cached) " >&6
  6879. else
  6880. if test -n "$MAKE"; then
  6881. ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
  6882. else
  6883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6884. for as_dir in $PATH
  6885. do
  6886. IFS=$as_save_IFS
  6887. test -z "$as_dir" && as_dir=.
  6888. for ac_exec_ext in '' $ac_executable_extensions; do
  6889. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6890. ac_cv_prog_MAKE="$ac_prog"
  6891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6892. break 2
  6893. fi
  6894. done
  6895. done
  6896. IFS=$as_save_IFS
  6897. fi
  6898. fi
  6899. MAKE=$ac_cv_prog_MAKE
  6900. if test -n "$MAKE"; then
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
  6902. $as_echo "$MAKE" >&6; }
  6903. else
  6904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6905. $as_echo "no" >&6; }
  6906. fi
  6907. test -n "$MAKE" && break
  6908. done
  6909. MAKE_IS_GNU=
  6910. case "`$MAKE --version 2>&1 | sed 1q`" in
  6911. *GNU*)
  6912. MAKE_IS_GNU=yes
  6913. ;;
  6914. esac
  6915. if test "$MAKE_IS_GNU" = yes; then
  6916. GMAKE_TRUE=
  6917. GMAKE_FALSE='#'
  6918. else
  6919. GMAKE_TRUE='#'
  6920. GMAKE_FALSE=
  6921. fi
  6922. ALL_LINGUAS=
  6923. # If we haven't got the data from the intl directory,
  6924. # assume NLS is disabled.
  6925. USE_NLS=no
  6926. LIBINTL=
  6927. LIBINTL_DEP=
  6928. INCINTL=
  6929. XGETTEXT=
  6930. GMSGFMT=
  6931. POSUB=
  6932. if test -f ../../intl/config.intl; then
  6933. . ../../intl/config.intl
  6934. fi
  6935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  6936. $as_echo_n "checking whether NLS is requested... " >&6; }
  6937. if test x"$USE_NLS" != xyes; then
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6939. $as_echo "no" >&6; }
  6940. else
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6942. $as_echo "yes" >&6; }
  6943. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  6944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  6945. $as_echo_n "checking for catalogs to be installed... " >&6; }
  6946. # Look for .po and .gmo files in the source directory.
  6947. CATALOGS=
  6948. XLINGUAS=
  6949. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  6950. # If there aren't any .gmo files the shell will give us the
  6951. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  6952. # weeded out.
  6953. case "$cat" in *\**)
  6954. continue;;
  6955. esac
  6956. # The quadruple backslash is collapsed to a double backslash
  6957. # by the backticks, then collapsed again by the double quotes,
  6958. # leaving us with one backslash in the sed expression (right
  6959. # before the dot that mustn't act as a wildcard).
  6960. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  6961. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  6962. # The user is allowed to set LINGUAS to a list of languages to
  6963. # install catalogs for. If it's empty that means "all of them."
  6964. if test "x$LINGUAS" = x; then
  6965. CATALOGS="$CATALOGS $cat"
  6966. XLINGUAS="$XLINGUAS $lang"
  6967. else
  6968. case "$LINGUAS" in *$lang*)
  6969. CATALOGS="$CATALOGS $cat"
  6970. XLINGUAS="$XLINGUAS $lang"
  6971. ;;
  6972. esac
  6973. fi
  6974. done
  6975. LINGUAS="$XLINGUAS"
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  6977. $as_echo "$LINGUAS" >&6; }
  6978. DATADIRNAME=share
  6979. INSTOBJEXT=.mo
  6980. GENCAT=gencat
  6981. CATOBJEXT=.gmo
  6982. fi
  6983. # Check for common headers.
  6984. # FIXME: Seems to me this can cause problems for i386-windows hosts.
  6985. # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
  6986. for ac_header in stdlib.h string.h strings.h unistd.h time.h
  6987. do :
  6988. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6989. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6990. eval as_val=\$$as_ac_Header
  6991. if test "x$as_val" = x""yes; then :
  6992. cat >>confdefs.h <<_ACEOF
  6993. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6994. _ACEOF
  6995. fi
  6996. done
  6997. for ac_header in sys/time.h sys/resource.h
  6998. do :
  6999. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7000. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7001. eval as_val=\$$as_ac_Header
  7002. if test "x$as_val" = x""yes; then :
  7003. cat >>confdefs.h <<_ACEOF
  7004. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7005. _ACEOF
  7006. fi
  7007. done
  7008. for ac_header in fcntl.h fpu_control.h
  7009. do :
  7010. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7011. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7012. eval as_val=\$$as_ac_Header
  7013. if test "x$as_val" = x""yes; then :
  7014. cat >>confdefs.h <<_ACEOF
  7015. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7016. _ACEOF
  7017. fi
  7018. done
  7019. for ac_header in dlfcn.h errno.h sys/stat.h
  7020. do :
  7021. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7022. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7023. eval as_val=\$$as_ac_Header
  7024. if test "x$as_val" = x""yes; then :
  7025. cat >>confdefs.h <<_ACEOF
  7026. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7027. _ACEOF
  7028. fi
  7029. done
  7030. for ac_func in getrusage time sigaction __setfpucw
  7031. do :
  7032. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7033. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7034. eval as_val=\$$as_ac_var
  7035. if test "x$as_val" = x""yes; then :
  7036. cat >>confdefs.h <<_ACEOF
  7037. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7038. _ACEOF
  7039. fi
  7040. done
  7041. # Check for socket libraries
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
  7043. $as_echo_n "checking for bind in -lsocket... " >&6; }
  7044. if test "${ac_cv_lib_socket_bind+set}" = set; then :
  7045. $as_echo_n "(cached) " >&6
  7046. else
  7047. ac_check_lib_save_LIBS=$LIBS
  7048. LIBS="-lsocket $LIBS"
  7049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7050. /* end confdefs.h. */
  7051. /* Override any GCC internal prototype to avoid an error.
  7052. Use char because int might match the return type of a GCC
  7053. builtin and then its argument prototype would still apply. */
  7054. #ifdef __cplusplus
  7055. extern "C"
  7056. #endif
  7057. char bind ();
  7058. int
  7059. main ()
  7060. {
  7061. return bind ();
  7062. ;
  7063. return 0;
  7064. }
  7065. _ACEOF
  7066. if ac_fn_c_try_link "$LINENO"; then :
  7067. ac_cv_lib_socket_bind=yes
  7068. else
  7069. ac_cv_lib_socket_bind=no
  7070. fi
  7071. rm -f core conftest.err conftest.$ac_objext \
  7072. conftest$ac_exeext conftest.$ac_ext
  7073. LIBS=$ac_check_lib_save_LIBS
  7074. fi
  7075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
  7076. $as_echo "$ac_cv_lib_socket_bind" >&6; }
  7077. if test "x$ac_cv_lib_socket_bind" = x""yes; then :
  7078. cat >>confdefs.h <<_ACEOF
  7079. #define HAVE_LIBSOCKET 1
  7080. _ACEOF
  7081. LIBS="-lsocket $LIBS"
  7082. fi
  7083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  7084. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  7085. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  7086. $as_echo_n "(cached) " >&6
  7087. else
  7088. ac_check_lib_save_LIBS=$LIBS
  7089. LIBS="-lnsl $LIBS"
  7090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7091. /* end confdefs.h. */
  7092. /* Override any GCC internal prototype to avoid an error.
  7093. Use char because int might match the return type of a GCC
  7094. builtin and then its argument prototype would still apply. */
  7095. #ifdef __cplusplus
  7096. extern "C"
  7097. #endif
  7098. char gethostbyname ();
  7099. int
  7100. main ()
  7101. {
  7102. return gethostbyname ();
  7103. ;
  7104. return 0;
  7105. }
  7106. _ACEOF
  7107. if ac_fn_c_try_link "$LINENO"; then :
  7108. ac_cv_lib_nsl_gethostbyname=yes
  7109. else
  7110. ac_cv_lib_nsl_gethostbyname=no
  7111. fi
  7112. rm -f core conftest.err conftest.$ac_objext \
  7113. conftest$ac_exeext conftest.$ac_ext
  7114. LIBS=$ac_check_lib_save_LIBS
  7115. fi
  7116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  7117. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  7118. if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  7119. cat >>confdefs.h <<_ACEOF
  7120. #define HAVE_LIBNSL 1
  7121. _ACEOF
  7122. LIBS="-lnsl $LIBS"
  7123. fi
  7124. # BFD conditionally uses zlib, so we must link it in if libbfd does, by
  7125. # using the same condition.
  7126. # Use the system's zlib library.
  7127. zlibdir="-L\$(top_builddir)/../zlib"
  7128. zlibinc="-I\$(top_srcdir)/../zlib"
  7129. # Check whether --with-system-zlib was given.
  7130. if test "${with_system_zlib+set}" = set; then :
  7131. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  7132. zlibdir=
  7133. zlibinc=
  7134. fi
  7135. fi
  7136. # BFD uses libdl when when plugins enabled.
  7137. maybe_plugins=no
  7138. for ac_header in dlfcn.h
  7139. do :
  7140. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7141. "
  7142. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7143. cat >>confdefs.h <<_ACEOF
  7144. #define HAVE_DLFCN_H 1
  7145. _ACEOF
  7146. maybe_plugins=yes
  7147. fi
  7148. done
  7149. for ac_header in windows.h
  7150. do :
  7151. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  7152. "
  7153. if test "x$ac_cv_header_windows_h" = x""yes; then :
  7154. cat >>confdefs.h <<_ACEOF
  7155. #define HAVE_WINDOWS_H 1
  7156. _ACEOF
  7157. maybe_plugins=yes
  7158. fi
  7159. done
  7160. # Check whether --enable-plugins was given.
  7161. if test "${enable_plugins+set}" = set; then :
  7162. enableval=$enable_plugins; case "${enableval}" in
  7163. no) plugins=no ;;
  7164. *) plugins=yes
  7165. if test "$maybe_plugins" != "yes" ; then
  7166. as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  7167. fi ;;
  7168. esac
  7169. else
  7170. plugins=$maybe_plugins
  7171. fi
  7172. if test "$plugins" = "yes"; then
  7173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  7174. $as_echo_n "checking for library containing dlopen... " >&6; }
  7175. if test "${ac_cv_search_dlopen+set}" = set; then :
  7176. $as_echo_n "(cached) " >&6
  7177. else
  7178. ac_func_search_save_LIBS=$LIBS
  7179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7180. /* end confdefs.h. */
  7181. /* Override any GCC internal prototype to avoid an error.
  7182. Use char because int might match the return type of a GCC
  7183. builtin and then its argument prototype would still apply. */
  7184. #ifdef __cplusplus
  7185. extern "C"
  7186. #endif
  7187. char dlopen ();
  7188. int
  7189. main ()
  7190. {
  7191. return dlopen ();
  7192. ;
  7193. return 0;
  7194. }
  7195. _ACEOF
  7196. for ac_lib in '' dl; do
  7197. if test -z "$ac_lib"; then
  7198. ac_res="none required"
  7199. else
  7200. ac_res=-l$ac_lib
  7201. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7202. fi
  7203. if ac_fn_c_try_link "$LINENO"; then :
  7204. ac_cv_search_dlopen=$ac_res
  7205. fi
  7206. rm -f core conftest.err conftest.$ac_objext \
  7207. conftest$ac_exeext
  7208. if test "${ac_cv_search_dlopen+set}" = set; then :
  7209. break
  7210. fi
  7211. done
  7212. if test "${ac_cv_search_dlopen+set}" = set; then :
  7213. else
  7214. ac_cv_search_dlopen=no
  7215. fi
  7216. rm conftest.$ac_ext
  7217. LIBS=$ac_func_search_save_LIBS
  7218. fi
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  7220. $as_echo "$ac_cv_search_dlopen" >&6; }
  7221. ac_res=$ac_cv_search_dlopen
  7222. if test "$ac_res" != no; then :
  7223. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7224. fi
  7225. fi
  7226. if test "$plugins" = yes; then
  7227. PLUGINS_TRUE=
  7228. PLUGINS_FALSE='#'
  7229. else
  7230. PLUGINS_TRUE='#'
  7231. PLUGINS_FALSE=
  7232. fi
  7233. # Set options
  7234. enable_dlopen=yes
  7235. enable_win32_dll=no
  7236. # Check whether --enable-shared was given.
  7237. if test "${enable_shared+set}" = set; then :
  7238. enableval=$enable_shared; p=${PACKAGE-default}
  7239. case $enableval in
  7240. yes) enable_shared=yes ;;
  7241. no) enable_shared=no ;;
  7242. *)
  7243. enable_shared=no
  7244. # Look at the argument we got. We use all the common list separators.
  7245. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7246. for pkg in $enableval; do
  7247. IFS="$lt_save_ifs"
  7248. if test "X$pkg" = "X$p"; then
  7249. enable_shared=yes
  7250. fi
  7251. done
  7252. IFS="$lt_save_ifs"
  7253. ;;
  7254. esac
  7255. else
  7256. enable_shared=yes
  7257. fi
  7258. # Check whether --enable-static was given.
  7259. if test "${enable_static+set}" = set; then :
  7260. enableval=$enable_static; p=${PACKAGE-default}
  7261. case $enableval in
  7262. yes) enable_static=yes ;;
  7263. no) enable_static=no ;;
  7264. *)
  7265. enable_static=no
  7266. # Look at the argument we got. We use all the common list separators.
  7267. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7268. for pkg in $enableval; do
  7269. IFS="$lt_save_ifs"
  7270. if test "X$pkg" = "X$p"; then
  7271. enable_static=yes
  7272. fi
  7273. done
  7274. IFS="$lt_save_ifs"
  7275. ;;
  7276. esac
  7277. else
  7278. enable_static=yes
  7279. fi
  7280. # Check whether --with-pic was given.
  7281. if test "${with_pic+set}" = set; then :
  7282. withval=$with_pic; pic_mode="$withval"
  7283. else
  7284. pic_mode=default
  7285. fi
  7286. test -z "$pic_mode" && pic_mode=default
  7287. # Check whether --enable-fast-install was given.
  7288. if test "${enable_fast_install+set}" = set; then :
  7289. enableval=$enable_fast_install; p=${PACKAGE-default}
  7290. case $enableval in
  7291. yes) enable_fast_install=yes ;;
  7292. no) enable_fast_install=no ;;
  7293. *)
  7294. enable_fast_install=no
  7295. # Look at the argument we got. We use all the common list separators.
  7296. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7297. for pkg in $enableval; do
  7298. IFS="$lt_save_ifs"
  7299. if test "X$pkg" = "X$p"; then
  7300. enable_fast_install=yes
  7301. fi
  7302. done
  7303. IFS="$lt_save_ifs"
  7304. ;;
  7305. esac
  7306. else
  7307. enable_fast_install=yes
  7308. fi
  7309. # This can be used to rebuild libtool when needed
  7310. LIBTOOL_DEPS="$ltmain"
  7311. # Always use our own libtool.
  7312. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7313. test -z "$LN_S" && LN_S="ln -s"
  7314. if test -n "${ZSH_VERSION+set}" ; then
  7315. setopt NO_GLOB_SUBST
  7316. fi
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7318. $as_echo_n "checking for objdir... " >&6; }
  7319. if test "${lt_cv_objdir+set}" = set; then :
  7320. $as_echo_n "(cached) " >&6
  7321. else
  7322. rm -f .libs 2>/dev/null
  7323. mkdir .libs 2>/dev/null
  7324. if test -d .libs; then
  7325. lt_cv_objdir=.libs
  7326. else
  7327. # MS-DOS does not allow filenames that begin with a dot.
  7328. lt_cv_objdir=_libs
  7329. fi
  7330. rmdir .libs 2>/dev/null
  7331. fi
  7332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7333. $as_echo "$lt_cv_objdir" >&6; }
  7334. objdir=$lt_cv_objdir
  7335. cat >>confdefs.h <<_ACEOF
  7336. #define LT_OBJDIR "$lt_cv_objdir/"
  7337. _ACEOF
  7338. case $host_os in
  7339. aix3*)
  7340. # AIX sometimes has problems with the GCC collect2 program. For some
  7341. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7342. # vanish in a puff of smoke.
  7343. if test "X${COLLECT_NAMES+set}" != Xset; then
  7344. COLLECT_NAMES=
  7345. export COLLECT_NAMES
  7346. fi
  7347. ;;
  7348. esac
  7349. # Global variables:
  7350. ofile=libtool
  7351. can_build_shared=yes
  7352. # All known linkers require a `.a' archive for static linking (except MSVC,
  7353. # which needs '.lib').
  7354. libext=a
  7355. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7356. old_CC="$CC"
  7357. old_CFLAGS="$CFLAGS"
  7358. # Set sane defaults for various variables
  7359. test -z "$CC" && CC=cc
  7360. test -z "$LTCC" && LTCC=$CC
  7361. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7362. test -z "$LD" && LD=ld
  7363. test -z "$ac_objext" && ac_objext=o
  7364. for cc_temp in $compiler""; do
  7365. case $cc_temp in
  7366. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7367. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7368. \-*) ;;
  7369. *) break;;
  7370. esac
  7371. done
  7372. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7373. # Only perform the check for file, if the check method requires it
  7374. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7375. case $deplibs_check_method in
  7376. file_magic*)
  7377. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7379. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7380. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7381. $as_echo_n "(cached) " >&6
  7382. else
  7383. case $MAGIC_CMD in
  7384. [\\/*] | ?:[\\/]*)
  7385. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7386. ;;
  7387. *)
  7388. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7389. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7390. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7391. for ac_dir in $ac_dummy; do
  7392. IFS="$lt_save_ifs"
  7393. test -z "$ac_dir" && ac_dir=.
  7394. if test -f $ac_dir/${ac_tool_prefix}file; then
  7395. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7396. if test -n "$file_magic_test_file"; then
  7397. case $deplibs_check_method in
  7398. "file_magic "*)
  7399. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7400. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7401. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7402. $EGREP "$file_magic_regex" > /dev/null; then
  7403. :
  7404. else
  7405. cat <<_LT_EOF 1>&2
  7406. *** Warning: the command libtool uses to detect shared libraries,
  7407. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7408. *** The result is that libtool may fail to recognize shared libraries
  7409. *** as such. This will affect the creation of libtool libraries that
  7410. *** depend on shared libraries, but programs linked with such libtool
  7411. *** libraries will work regardless of this problem. Nevertheless, you
  7412. *** may want to report the problem to your system manager and/or to
  7413. *** bug-libtool@gnu.org
  7414. _LT_EOF
  7415. fi ;;
  7416. esac
  7417. fi
  7418. break
  7419. fi
  7420. done
  7421. IFS="$lt_save_ifs"
  7422. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7423. ;;
  7424. esac
  7425. fi
  7426. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7427. if test -n "$MAGIC_CMD"; then
  7428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7429. $as_echo "$MAGIC_CMD" >&6; }
  7430. else
  7431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7432. $as_echo "no" >&6; }
  7433. fi
  7434. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7435. if test -n "$ac_tool_prefix"; then
  7436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7437. $as_echo_n "checking for file... " >&6; }
  7438. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7439. $as_echo_n "(cached) " >&6
  7440. else
  7441. case $MAGIC_CMD in
  7442. [\\/*] | ?:[\\/]*)
  7443. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7444. ;;
  7445. *)
  7446. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7447. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7448. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7449. for ac_dir in $ac_dummy; do
  7450. IFS="$lt_save_ifs"
  7451. test -z "$ac_dir" && ac_dir=.
  7452. if test -f $ac_dir/file; then
  7453. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7454. if test -n "$file_magic_test_file"; then
  7455. case $deplibs_check_method in
  7456. "file_magic "*)
  7457. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7458. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7459. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7460. $EGREP "$file_magic_regex" > /dev/null; then
  7461. :
  7462. else
  7463. cat <<_LT_EOF 1>&2
  7464. *** Warning: the command libtool uses to detect shared libraries,
  7465. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7466. *** The result is that libtool may fail to recognize shared libraries
  7467. *** as such. This will affect the creation of libtool libraries that
  7468. *** depend on shared libraries, but programs linked with such libtool
  7469. *** libraries will work regardless of this problem. Nevertheless, you
  7470. *** may want to report the problem to your system manager and/or to
  7471. *** bug-libtool@gnu.org
  7472. _LT_EOF
  7473. fi ;;
  7474. esac
  7475. fi
  7476. break
  7477. fi
  7478. done
  7479. IFS="$lt_save_ifs"
  7480. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7481. ;;
  7482. esac
  7483. fi
  7484. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7485. if test -n "$MAGIC_CMD"; then
  7486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7487. $as_echo "$MAGIC_CMD" >&6; }
  7488. else
  7489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7490. $as_echo "no" >&6; }
  7491. fi
  7492. else
  7493. MAGIC_CMD=:
  7494. fi
  7495. fi
  7496. fi
  7497. ;;
  7498. esac
  7499. # Use C for the default configuration in the libtool script
  7500. lt_save_CC="$CC"
  7501. ac_ext=c
  7502. ac_cpp='$CPP $CPPFLAGS'
  7503. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7504. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7505. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7506. # Source file extension for C test sources.
  7507. ac_ext=c
  7508. # Object file extension for compiled C test sources.
  7509. objext=o
  7510. objext=$objext
  7511. # Code to be used in simple compile tests
  7512. lt_simple_compile_test_code="int some_variable = 0;"
  7513. # Code to be used in simple link tests
  7514. lt_simple_link_test_code='int main(){return(0);}'
  7515. # If no C compiler was specified, use CC.
  7516. LTCC=${LTCC-"$CC"}
  7517. # If no C compiler flags were specified, use CFLAGS.
  7518. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7519. # Allow CC to be a program name with arguments.
  7520. compiler=$CC
  7521. # Save the default compiler, since it gets overwritten when the other
  7522. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7523. compiler_DEFAULT=$CC
  7524. # save warnings/boilerplate of simple test code
  7525. ac_outfile=conftest.$ac_objext
  7526. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7527. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7528. _lt_compiler_boilerplate=`cat conftest.err`
  7529. $RM conftest*
  7530. ac_outfile=conftest.$ac_objext
  7531. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7532. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7533. _lt_linker_boilerplate=`cat conftest.err`
  7534. $RM -r conftest*
  7535. ## CAVEAT EMPTOR:
  7536. ## There is no encapsulation within the following macros, do not change
  7537. ## the running order or otherwise move them around unless you know exactly
  7538. ## what you are doing...
  7539. if test -n "$compiler"; then
  7540. lt_prog_compiler_no_builtin_flag=
  7541. if test "$GCC" = yes; then
  7542. case $cc_basename in
  7543. nvcc*)
  7544. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7545. *)
  7546. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7547. esac
  7548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7549. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7550. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7551. $as_echo_n "(cached) " >&6
  7552. else
  7553. lt_cv_prog_compiler_rtti_exceptions=no
  7554. ac_outfile=conftest.$ac_objext
  7555. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7556. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7557. # Insert the option either (1) after the last *FLAGS variable, or
  7558. # (2) before a word containing "conftest.", or (3) at the end.
  7559. # Note that $ac_compile itself does not contain backslashes and begins
  7560. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7561. # The option is referenced via a variable to avoid confusing sed.
  7562. lt_compile=`echo "$ac_compile" | $SED \
  7563. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7564. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7565. -e 's:$: $lt_compiler_flag:'`
  7566. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7567. (eval "$lt_compile" 2>conftest.err)
  7568. ac_status=$?
  7569. cat conftest.err >&5
  7570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7571. if (exit $ac_status) && test -s "$ac_outfile"; then
  7572. # The compiler can only warn and ignore the option if not recognized
  7573. # So say no if there are warnings other than the usual output.
  7574. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7575. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7576. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7577. lt_cv_prog_compiler_rtti_exceptions=yes
  7578. fi
  7579. fi
  7580. $RM conftest*
  7581. fi
  7582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7583. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7584. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7585. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7586. else
  7587. :
  7588. fi
  7589. fi
  7590. lt_prog_compiler_wl=
  7591. lt_prog_compiler_pic=
  7592. lt_prog_compiler_static=
  7593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7594. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7595. if test "$GCC" = yes; then
  7596. lt_prog_compiler_wl='-Wl,'
  7597. lt_prog_compiler_static='-static'
  7598. case $host_os in
  7599. aix*)
  7600. # All AIX code is PIC.
  7601. if test "$host_cpu" = ia64; then
  7602. # AIX 5 now supports IA64 processor
  7603. lt_prog_compiler_static='-Bstatic'
  7604. fi
  7605. lt_prog_compiler_pic='-fPIC'
  7606. ;;
  7607. amigaos*)
  7608. case $host_cpu in
  7609. powerpc)
  7610. # see comment about AmigaOS4 .so support
  7611. lt_prog_compiler_pic='-fPIC'
  7612. ;;
  7613. m68k)
  7614. # FIXME: we need at least 68020 code to build shared libraries, but
  7615. # adding the `-m68020' flag to GCC prevents building anything better,
  7616. # like `-m68040'.
  7617. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7618. ;;
  7619. esac
  7620. ;;
  7621. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7622. # PIC is the default for these OSes.
  7623. ;;
  7624. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7625. # This hack is so that the source file can tell whether it is being
  7626. # built for inclusion in a dll (and should export symbols for example).
  7627. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7628. # (--disable-auto-import) libraries
  7629. lt_prog_compiler_pic='-DDLL_EXPORT'
  7630. ;;
  7631. darwin* | rhapsody*)
  7632. # PIC is the default on this platform
  7633. # Common symbols not allowed in MH_DYLIB files
  7634. lt_prog_compiler_pic='-fno-common'
  7635. ;;
  7636. haiku*)
  7637. # PIC is the default for Haiku.
  7638. # The "-static" flag exists, but is broken.
  7639. lt_prog_compiler_static=
  7640. ;;
  7641. hpux*)
  7642. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7643. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7644. # sets the default TLS model and affects inlining.
  7645. case $host_cpu in
  7646. hppa*64*)
  7647. # +Z the default
  7648. ;;
  7649. *)
  7650. lt_prog_compiler_pic='-fPIC'
  7651. ;;
  7652. esac
  7653. ;;
  7654. interix[3-9]*)
  7655. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7656. # Instead, we relocate shared libraries at runtime.
  7657. ;;
  7658. msdosdjgpp*)
  7659. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7660. # on systems that don't support them.
  7661. lt_prog_compiler_can_build_shared=no
  7662. enable_shared=no
  7663. ;;
  7664. *nto* | *qnx*)
  7665. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7666. # it will coredump.
  7667. lt_prog_compiler_pic='-fPIC -shared'
  7668. ;;
  7669. sysv4*MP*)
  7670. if test -d /usr/nec; then
  7671. lt_prog_compiler_pic=-Kconform_pic
  7672. fi
  7673. ;;
  7674. *)
  7675. lt_prog_compiler_pic='-fPIC'
  7676. ;;
  7677. esac
  7678. case $cc_basename in
  7679. nvcc*) # Cuda Compiler Driver 2.2
  7680. lt_prog_compiler_wl='-Xlinker '
  7681. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7682. ;;
  7683. esac
  7684. else
  7685. # PORTME Check for flag to pass linker flags through the system compiler.
  7686. case $host_os in
  7687. aix*)
  7688. lt_prog_compiler_wl='-Wl,'
  7689. if test "$host_cpu" = ia64; then
  7690. # AIX 5 now supports IA64 processor
  7691. lt_prog_compiler_static='-Bstatic'
  7692. else
  7693. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7694. fi
  7695. ;;
  7696. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7697. # This hack is so that the source file can tell whether it is being
  7698. # built for inclusion in a dll (and should export symbols for example).
  7699. lt_prog_compiler_pic='-DDLL_EXPORT'
  7700. ;;
  7701. hpux9* | hpux10* | hpux11*)
  7702. lt_prog_compiler_wl='-Wl,'
  7703. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7704. # not for PA HP-UX.
  7705. case $host_cpu in
  7706. hppa*64*|ia64*)
  7707. # +Z the default
  7708. ;;
  7709. *)
  7710. lt_prog_compiler_pic='+Z'
  7711. ;;
  7712. esac
  7713. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7714. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7715. ;;
  7716. irix5* | irix6* | nonstopux*)
  7717. lt_prog_compiler_wl='-Wl,'
  7718. # PIC (with -KPIC) is the default.
  7719. lt_prog_compiler_static='-non_shared'
  7720. ;;
  7721. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7722. case $cc_basename in
  7723. # old Intel for x86_64 which still supported -KPIC.
  7724. ecc*)
  7725. lt_prog_compiler_wl='-Wl,'
  7726. lt_prog_compiler_pic='-KPIC'
  7727. lt_prog_compiler_static='-static'
  7728. ;;
  7729. # icc used to be incompatible with GCC.
  7730. # ICC 10 doesn't accept -KPIC any more.
  7731. icc* | ifort*)
  7732. lt_prog_compiler_wl='-Wl,'
  7733. lt_prog_compiler_pic='-fPIC'
  7734. lt_prog_compiler_static='-static'
  7735. ;;
  7736. # Lahey Fortran 8.1.
  7737. lf95*)
  7738. lt_prog_compiler_wl='-Wl,'
  7739. lt_prog_compiler_pic='--shared'
  7740. lt_prog_compiler_static='--static'
  7741. ;;
  7742. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7743. # Portland Group compilers (*not* the Pentium gcc compiler,
  7744. # which looks to be a dead project)
  7745. lt_prog_compiler_wl='-Wl,'
  7746. lt_prog_compiler_pic='-fpic'
  7747. lt_prog_compiler_static='-Bstatic'
  7748. ;;
  7749. ccc*)
  7750. lt_prog_compiler_wl='-Wl,'
  7751. # All Alpha code is PIC.
  7752. lt_prog_compiler_static='-non_shared'
  7753. ;;
  7754. xl* | bgxl* | bgf* | mpixl*)
  7755. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7756. lt_prog_compiler_wl='-Wl,'
  7757. lt_prog_compiler_pic='-qpic'
  7758. lt_prog_compiler_static='-qstaticlink'
  7759. ;;
  7760. *)
  7761. case `$CC -V 2>&1 | sed 5q` in
  7762. *Sun\ F* | *Sun*Fortran*)
  7763. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7764. lt_prog_compiler_pic='-KPIC'
  7765. lt_prog_compiler_static='-Bstatic'
  7766. lt_prog_compiler_wl=''
  7767. ;;
  7768. *Sun\ C*)
  7769. # Sun C 5.9
  7770. lt_prog_compiler_pic='-KPIC'
  7771. lt_prog_compiler_static='-Bstatic'
  7772. lt_prog_compiler_wl='-Wl,'
  7773. ;;
  7774. esac
  7775. ;;
  7776. esac
  7777. ;;
  7778. newsos6)
  7779. lt_prog_compiler_pic='-KPIC'
  7780. lt_prog_compiler_static='-Bstatic'
  7781. ;;
  7782. *nto* | *qnx*)
  7783. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7784. # it will coredump.
  7785. lt_prog_compiler_pic='-fPIC -shared'
  7786. ;;
  7787. osf3* | osf4* | osf5*)
  7788. lt_prog_compiler_wl='-Wl,'
  7789. # All OSF/1 code is PIC.
  7790. lt_prog_compiler_static='-non_shared'
  7791. ;;
  7792. rdos*)
  7793. lt_prog_compiler_static='-non_shared'
  7794. ;;
  7795. solaris*)
  7796. lt_prog_compiler_pic='-KPIC'
  7797. lt_prog_compiler_static='-Bstatic'
  7798. case $cc_basename in
  7799. f77* | f90* | f95*)
  7800. lt_prog_compiler_wl='-Qoption ld ';;
  7801. *)
  7802. lt_prog_compiler_wl='-Wl,';;
  7803. esac
  7804. ;;
  7805. sunos4*)
  7806. lt_prog_compiler_wl='-Qoption ld '
  7807. lt_prog_compiler_pic='-PIC'
  7808. lt_prog_compiler_static='-Bstatic'
  7809. ;;
  7810. sysv4 | sysv4.2uw2* | sysv4.3*)
  7811. lt_prog_compiler_wl='-Wl,'
  7812. lt_prog_compiler_pic='-KPIC'
  7813. lt_prog_compiler_static='-Bstatic'
  7814. ;;
  7815. sysv4*MP*)
  7816. if test -d /usr/nec ;then
  7817. lt_prog_compiler_pic='-Kconform_pic'
  7818. lt_prog_compiler_static='-Bstatic'
  7819. fi
  7820. ;;
  7821. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7822. lt_prog_compiler_wl='-Wl,'
  7823. lt_prog_compiler_pic='-KPIC'
  7824. lt_prog_compiler_static='-Bstatic'
  7825. ;;
  7826. unicos*)
  7827. lt_prog_compiler_wl='-Wl,'
  7828. lt_prog_compiler_can_build_shared=no
  7829. ;;
  7830. uts4*)
  7831. lt_prog_compiler_pic='-pic'
  7832. lt_prog_compiler_static='-Bstatic'
  7833. ;;
  7834. *)
  7835. lt_prog_compiler_can_build_shared=no
  7836. ;;
  7837. esac
  7838. fi
  7839. case $host_os in
  7840. # For platforms which do not support PIC, -DPIC is meaningless:
  7841. *djgpp*)
  7842. lt_prog_compiler_pic=
  7843. ;;
  7844. *)
  7845. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7846. ;;
  7847. esac
  7848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7849. $as_echo "$lt_prog_compiler_pic" >&6; }
  7850. #
  7851. # Check to make sure the PIC flag actually works.
  7852. #
  7853. if test -n "$lt_prog_compiler_pic"; then
  7854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7855. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7856. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7857. $as_echo_n "(cached) " >&6
  7858. else
  7859. lt_cv_prog_compiler_pic_works=no
  7860. ac_outfile=conftest.$ac_objext
  7861. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7862. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7863. # Insert the option either (1) after the last *FLAGS variable, or
  7864. # (2) before a word containing "conftest.", or (3) at the end.
  7865. # Note that $ac_compile itself does not contain backslashes and begins
  7866. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7867. # The option is referenced via a variable to avoid confusing sed.
  7868. lt_compile=`echo "$ac_compile" | $SED \
  7869. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7870. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7871. -e 's:$: $lt_compiler_flag:'`
  7872. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7873. (eval "$lt_compile" 2>conftest.err)
  7874. ac_status=$?
  7875. cat conftest.err >&5
  7876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7877. if (exit $ac_status) && test -s "$ac_outfile"; then
  7878. # The compiler can only warn and ignore the option if not recognized
  7879. # So say no if there are warnings other than the usual output.
  7880. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7881. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7882. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7883. lt_cv_prog_compiler_pic_works=yes
  7884. fi
  7885. fi
  7886. $RM conftest*
  7887. fi
  7888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7889. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7890. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7891. case $lt_prog_compiler_pic in
  7892. "" | " "*) ;;
  7893. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7894. esac
  7895. else
  7896. lt_prog_compiler_pic=
  7897. lt_prog_compiler_can_build_shared=no
  7898. fi
  7899. fi
  7900. #
  7901. # Check to make sure the static flag actually works.
  7902. #
  7903. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7905. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7906. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7907. $as_echo_n "(cached) " >&6
  7908. else
  7909. lt_cv_prog_compiler_static_works=no
  7910. save_LDFLAGS="$LDFLAGS"
  7911. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7912. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7913. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7914. # The linker can only warn and ignore the option if not recognized
  7915. # So say no if there are warnings
  7916. if test -s conftest.err; then
  7917. # Append any errors to the config.log.
  7918. cat conftest.err 1>&5
  7919. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7920. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7921. if diff conftest.exp conftest.er2 >/dev/null; then
  7922. lt_cv_prog_compiler_static_works=yes
  7923. fi
  7924. else
  7925. lt_cv_prog_compiler_static_works=yes
  7926. fi
  7927. fi
  7928. $RM -r conftest*
  7929. LDFLAGS="$save_LDFLAGS"
  7930. fi
  7931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7932. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7933. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7934. :
  7935. else
  7936. lt_prog_compiler_static=
  7937. fi
  7938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7939. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7940. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7941. $as_echo_n "(cached) " >&6
  7942. else
  7943. lt_cv_prog_compiler_c_o=no
  7944. $RM -r conftest 2>/dev/null
  7945. mkdir conftest
  7946. cd conftest
  7947. mkdir out
  7948. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7949. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7950. # Insert the option either (1) after the last *FLAGS variable, or
  7951. # (2) before a word containing "conftest.", or (3) at the end.
  7952. # Note that $ac_compile itself does not contain backslashes and begins
  7953. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7954. lt_compile=`echo "$ac_compile" | $SED \
  7955. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7956. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7957. -e 's:$: $lt_compiler_flag:'`
  7958. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7959. (eval "$lt_compile" 2>out/conftest.err)
  7960. ac_status=$?
  7961. cat out/conftest.err >&5
  7962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7963. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7964. then
  7965. # The compiler can only warn and ignore the option if not recognized
  7966. # So say no if there are warnings
  7967. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7968. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7969. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7970. lt_cv_prog_compiler_c_o=yes
  7971. fi
  7972. fi
  7973. chmod u+w . 2>&5
  7974. $RM conftest*
  7975. # SGI C++ compiler will create directory out/ii_files/ for
  7976. # template instantiation
  7977. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7978. $RM out/* && rmdir out
  7979. cd ..
  7980. $RM -r conftest
  7981. $RM conftest*
  7982. fi
  7983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7984. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7986. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7987. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7988. $as_echo_n "(cached) " >&6
  7989. else
  7990. lt_cv_prog_compiler_c_o=no
  7991. $RM -r conftest 2>/dev/null
  7992. mkdir conftest
  7993. cd conftest
  7994. mkdir out
  7995. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7996. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7997. # Insert the option either (1) after the last *FLAGS variable, or
  7998. # (2) before a word containing "conftest.", or (3) at the end.
  7999. # Note that $ac_compile itself does not contain backslashes and begins
  8000. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8001. lt_compile=`echo "$ac_compile" | $SED \
  8002. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8003. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8004. -e 's:$: $lt_compiler_flag:'`
  8005. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8006. (eval "$lt_compile" 2>out/conftest.err)
  8007. ac_status=$?
  8008. cat out/conftest.err >&5
  8009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8010. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8011. then
  8012. # The compiler can only warn and ignore the option if not recognized
  8013. # So say no if there are warnings
  8014. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8015. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8016. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8017. lt_cv_prog_compiler_c_o=yes
  8018. fi
  8019. fi
  8020. chmod u+w . 2>&5
  8021. $RM conftest*
  8022. # SGI C++ compiler will create directory out/ii_files/ for
  8023. # template instantiation
  8024. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8025. $RM out/* && rmdir out
  8026. cd ..
  8027. $RM -r conftest
  8028. $RM conftest*
  8029. fi
  8030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8031. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8032. hard_links="nottested"
  8033. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8034. # do not overwrite the value of need_locks provided by the user
  8035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8036. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8037. hard_links=yes
  8038. $RM conftest*
  8039. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8040. touch conftest.a
  8041. ln conftest.a conftest.b 2>&5 || hard_links=no
  8042. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8044. $as_echo "$hard_links" >&6; }
  8045. if test "$hard_links" = no; then
  8046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8047. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8048. need_locks=warn
  8049. fi
  8050. else
  8051. need_locks=no
  8052. fi
  8053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8054. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8055. runpath_var=
  8056. allow_undefined_flag=
  8057. always_export_symbols=no
  8058. archive_cmds=
  8059. archive_expsym_cmds=
  8060. compiler_needs_object=no
  8061. enable_shared_with_static_runtimes=no
  8062. export_dynamic_flag_spec=
  8063. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8064. hardcode_automatic=no
  8065. hardcode_direct=no
  8066. hardcode_direct_absolute=no
  8067. hardcode_libdir_flag_spec=
  8068. hardcode_libdir_flag_spec_ld=
  8069. hardcode_libdir_separator=
  8070. hardcode_minus_L=no
  8071. hardcode_shlibpath_var=unsupported
  8072. inherit_rpath=no
  8073. link_all_deplibs=unknown
  8074. module_cmds=
  8075. module_expsym_cmds=
  8076. old_archive_from_new_cmds=
  8077. old_archive_from_expsyms_cmds=
  8078. thread_safe_flag_spec=
  8079. whole_archive_flag_spec=
  8080. # include_expsyms should be a list of space-separated symbols to be *always*
  8081. # included in the symbol list
  8082. include_expsyms=
  8083. # exclude_expsyms can be an extended regexp of symbols to exclude
  8084. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8085. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8086. # as well as any symbol that contains `d'.
  8087. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8088. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8089. # platforms (ab)use it in PIC code, but their linkers get confused if
  8090. # the symbol is explicitly referenced. Since portable code cannot
  8091. # rely on this symbol name, it's probably fine to never include it in
  8092. # preloaded symbol tables.
  8093. # Exclude shared library initialization/finalization symbols.
  8094. extract_expsyms_cmds=
  8095. case $host_os in
  8096. cygwin* | mingw* | pw32* | cegcc*)
  8097. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8098. # When not using gcc, we currently assume that we are using
  8099. # Microsoft Visual C++.
  8100. if test "$GCC" != yes; then
  8101. with_gnu_ld=no
  8102. fi
  8103. ;;
  8104. interix*)
  8105. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8106. with_gnu_ld=yes
  8107. ;;
  8108. openbsd*)
  8109. with_gnu_ld=no
  8110. ;;
  8111. esac
  8112. ld_shlibs=yes
  8113. # On some targets, GNU ld is compatible enough with the native linker
  8114. # that we're better off using the native interface for both.
  8115. lt_use_gnu_ld_interface=no
  8116. if test "$with_gnu_ld" = yes; then
  8117. case $host_os in
  8118. aix*)
  8119. # The AIX port of GNU ld has always aspired to compatibility
  8120. # with the native linker. However, as the warning in the GNU ld
  8121. # block says, versions before 2.19.5* couldn't really create working
  8122. # shared libraries, regardless of the interface used.
  8123. case `$LD -v 2>&1` in
  8124. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8125. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8126. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8127. *)
  8128. lt_use_gnu_ld_interface=yes
  8129. ;;
  8130. esac
  8131. ;;
  8132. *)
  8133. lt_use_gnu_ld_interface=yes
  8134. ;;
  8135. esac
  8136. fi
  8137. if test "$lt_use_gnu_ld_interface" = yes; then
  8138. # If archive_cmds runs LD, not CC, wlarc should be empty
  8139. wlarc='${wl}'
  8140. # Set some defaults for GNU ld with shared library support. These
  8141. # are reset later if shared libraries are not supported. Putting them
  8142. # here allows them to be overridden if necessary.
  8143. runpath_var=LD_RUN_PATH
  8144. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8145. export_dynamic_flag_spec='${wl}--export-dynamic'
  8146. # ancient GNU ld didn't support --whole-archive et. al.
  8147. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8148. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8149. else
  8150. whole_archive_flag_spec=
  8151. fi
  8152. supports_anon_versioning=no
  8153. case `$LD -v 2>&1` in
  8154. *GNU\ gold*) supports_anon_versioning=yes ;;
  8155. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8156. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8157. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8158. *\ 2.11.*) ;; # other 2.11 versions
  8159. *) supports_anon_versioning=yes ;;
  8160. esac
  8161. # See if GNU ld supports shared libraries.
  8162. case $host_os in
  8163. aix[3-9]*)
  8164. # On AIX/PPC, the GNU linker is very broken
  8165. if test "$host_cpu" != ia64; then
  8166. ld_shlibs=no
  8167. cat <<_LT_EOF 1>&2
  8168. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8169. *** to be unable to reliably create shared libraries on AIX.
  8170. *** Therefore, libtool is disabling shared libraries support. If you
  8171. *** really care for shared libraries, you may want to install binutils
  8172. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8173. *** You will then need to restart the configuration process.
  8174. _LT_EOF
  8175. fi
  8176. ;;
  8177. amigaos*)
  8178. case $host_cpu in
  8179. powerpc)
  8180. # see comment about AmigaOS4 .so support
  8181. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8182. archive_expsym_cmds=''
  8183. ;;
  8184. m68k)
  8185. 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)'
  8186. hardcode_libdir_flag_spec='-L$libdir'
  8187. hardcode_minus_L=yes
  8188. ;;
  8189. esac
  8190. ;;
  8191. beos*)
  8192. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8193. allow_undefined_flag=unsupported
  8194. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8195. # support --undefined. This deserves some investigation. FIXME
  8196. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8197. else
  8198. ld_shlibs=no
  8199. fi
  8200. ;;
  8201. cygwin* | mingw* | pw32* | cegcc*)
  8202. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8203. # as there is no search path for DLLs.
  8204. hardcode_libdir_flag_spec='-L$libdir'
  8205. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8206. allow_undefined_flag=unsupported
  8207. always_export_symbols=no
  8208. enable_shared_with_static_runtimes=yes
  8209. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8210. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8211. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8212. # If the export-symbols file already is a .def file (1st line
  8213. # is EXPORTS), use it as is; otherwise, prepend...
  8214. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8215. cp $export_symbols $output_objdir/$soname.def;
  8216. else
  8217. echo EXPORTS > $output_objdir/$soname.def;
  8218. cat $export_symbols >> $output_objdir/$soname.def;
  8219. fi~
  8220. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8221. else
  8222. ld_shlibs=no
  8223. fi
  8224. ;;
  8225. haiku*)
  8226. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8227. link_all_deplibs=yes
  8228. ;;
  8229. interix[3-9]*)
  8230. hardcode_direct=no
  8231. hardcode_shlibpath_var=no
  8232. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8233. export_dynamic_flag_spec='${wl}-E'
  8234. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8235. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8236. # default) and relocated if they conflict, which is a slow very memory
  8237. # consuming and fragmenting process. To avoid this, we pick a random,
  8238. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8239. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8240. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8241. 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'
  8242. ;;
  8243. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8244. tmp_diet=no
  8245. if test "$host_os" = linux-dietlibc; then
  8246. case $cc_basename in
  8247. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8248. esac
  8249. fi
  8250. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8251. && test "$tmp_diet" = no
  8252. then
  8253. tmp_addflag=' $pic_flag'
  8254. tmp_sharedflag='-shared'
  8255. case $cc_basename,$host_cpu in
  8256. pgcc*) # Portland Group C compiler
  8257. 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'
  8258. tmp_addflag=' $pic_flag'
  8259. ;;
  8260. pgf77* | pgf90* | pgf95* | pgfortran*)
  8261. # Portland Group f77 and f90 compilers
  8262. 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'
  8263. tmp_addflag=' $pic_flag -Mnomain' ;;
  8264. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8265. tmp_addflag=' -i_dynamic' ;;
  8266. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8267. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8268. ifc* | ifort*) # Intel Fortran compiler
  8269. tmp_addflag=' -nofor_main' ;;
  8270. lf95*) # Lahey Fortran 8.1
  8271. whole_archive_flag_spec=
  8272. tmp_sharedflag='--shared' ;;
  8273. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8274. tmp_sharedflag='-qmkshrobj'
  8275. tmp_addflag= ;;
  8276. nvcc*) # Cuda Compiler Driver 2.2
  8277. 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'
  8278. compiler_needs_object=yes
  8279. ;;
  8280. esac
  8281. case `$CC -V 2>&1 | sed 5q` in
  8282. *Sun\ C*) # Sun C 5.9
  8283. 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'
  8284. compiler_needs_object=yes
  8285. tmp_sharedflag='-G' ;;
  8286. *Sun\ F*) # Sun Fortran 8.3
  8287. tmp_sharedflag='-G' ;;
  8288. esac
  8289. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8290. if test "x$supports_anon_versioning" = xyes; then
  8291. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8292. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8293. echo "local: *; };" >> $output_objdir/$libname.ver~
  8294. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8295. fi
  8296. case $cc_basename in
  8297. xlf* | bgf* | bgxlf* | mpixlf*)
  8298. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8299. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8300. hardcode_libdir_flag_spec=
  8301. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8302. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8303. if test "x$supports_anon_versioning" = xyes; then
  8304. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8305. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8306. echo "local: *; };" >> $output_objdir/$libname.ver~
  8307. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8308. fi
  8309. ;;
  8310. esac
  8311. else
  8312. ld_shlibs=no
  8313. fi
  8314. ;;
  8315. netbsd*)
  8316. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8317. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8318. wlarc=
  8319. else
  8320. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8321. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8322. fi
  8323. ;;
  8324. solaris*)
  8325. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8326. ld_shlibs=no
  8327. cat <<_LT_EOF 1>&2
  8328. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8329. *** create shared libraries on Solaris systems. Therefore, libtool
  8330. *** is disabling shared libraries support. We urge you to upgrade GNU
  8331. *** binutils to release 2.9.1 or newer. Another option is to modify
  8332. *** your PATH or compiler configuration so that the native linker is
  8333. *** used, and then restart.
  8334. _LT_EOF
  8335. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8336. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8337. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8338. else
  8339. ld_shlibs=no
  8340. fi
  8341. ;;
  8342. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8343. case `$LD -v 2>&1` in
  8344. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8345. ld_shlibs=no
  8346. cat <<_LT_EOF 1>&2
  8347. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8348. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8349. *** is disabling shared libraries support. We urge you to upgrade GNU
  8350. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8351. *** your PATH or compiler configuration so that the native linker is
  8352. *** used, and then restart.
  8353. _LT_EOF
  8354. ;;
  8355. *)
  8356. # For security reasons, it is highly recommended that you always
  8357. # use absolute paths for naming shared libraries, and exclude the
  8358. # DT_RUNPATH tag from executables and libraries. But doing so
  8359. # requires that you compile everything twice, which is a pain.
  8360. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8361. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8362. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8363. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8364. else
  8365. ld_shlibs=no
  8366. fi
  8367. ;;
  8368. esac
  8369. ;;
  8370. sunos4*)
  8371. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8372. wlarc=
  8373. hardcode_direct=yes
  8374. hardcode_shlibpath_var=no
  8375. ;;
  8376. *)
  8377. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8378. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8379. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8380. else
  8381. ld_shlibs=no
  8382. fi
  8383. ;;
  8384. esac
  8385. if test "$ld_shlibs" = no; then
  8386. runpath_var=
  8387. hardcode_libdir_flag_spec=
  8388. export_dynamic_flag_spec=
  8389. whole_archive_flag_spec=
  8390. fi
  8391. else
  8392. # PORTME fill in a description of your system's linker (not GNU ld)
  8393. case $host_os in
  8394. aix3*)
  8395. allow_undefined_flag=unsupported
  8396. always_export_symbols=yes
  8397. 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'
  8398. # Note: this linker hardcodes the directories in LIBPATH if there
  8399. # are no directories specified by -L.
  8400. hardcode_minus_L=yes
  8401. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8402. # Neither direct hardcoding nor static linking is supported with a
  8403. # broken collect2.
  8404. hardcode_direct=unsupported
  8405. fi
  8406. ;;
  8407. aix[4-9]*)
  8408. if test "$host_cpu" = ia64; then
  8409. # On IA64, the linker does run time linking by default, so we don't
  8410. # have to do anything special.
  8411. aix_use_runtimelinking=no
  8412. exp_sym_flag='-Bexport'
  8413. no_entry_flag=""
  8414. else
  8415. # If we're using GNU nm, then we don't want the "-C" option.
  8416. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8417. # Also, AIX nm treats weak defined symbols like other global
  8418. # defined symbols, whereas GNU nm marks them as "W".
  8419. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8420. 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'
  8421. else
  8422. 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'
  8423. fi
  8424. aix_use_runtimelinking=no
  8425. # Test if we are trying to use run time linking or normal
  8426. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8427. # need to do runtime linking.
  8428. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8429. for ld_flag in $LDFLAGS; do
  8430. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8431. aix_use_runtimelinking=yes
  8432. break
  8433. fi
  8434. done
  8435. ;;
  8436. esac
  8437. exp_sym_flag='-bexport'
  8438. no_entry_flag='-bnoentry'
  8439. fi
  8440. # When large executables or shared objects are built, AIX ld can
  8441. # have problems creating the table of contents. If linking a library
  8442. # or program results in "error TOC overflow" add -mminimal-toc to
  8443. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8444. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8445. archive_cmds=''
  8446. hardcode_direct=yes
  8447. hardcode_direct_absolute=yes
  8448. hardcode_libdir_separator=':'
  8449. link_all_deplibs=yes
  8450. file_list_spec='${wl}-f,'
  8451. if test "$GCC" = yes; then
  8452. case $host_os in aix4.[012]|aix4.[012].*)
  8453. # We only want to do this on AIX 4.2 and lower, the check
  8454. # below for broken collect2 doesn't work under 4.3+
  8455. collect2name=`${CC} -print-prog-name=collect2`
  8456. if test -f "$collect2name" &&
  8457. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8458. then
  8459. # We have reworked collect2
  8460. :
  8461. else
  8462. # We have old collect2
  8463. hardcode_direct=unsupported
  8464. # It fails to find uninstalled libraries when the uninstalled
  8465. # path is not listed in the libpath. Setting hardcode_minus_L
  8466. # to unsupported forces relinking
  8467. hardcode_minus_L=yes
  8468. hardcode_libdir_flag_spec='-L$libdir'
  8469. hardcode_libdir_separator=
  8470. fi
  8471. ;;
  8472. esac
  8473. shared_flag='-shared'
  8474. if test "$aix_use_runtimelinking" = yes; then
  8475. shared_flag="$shared_flag "'${wl}-G'
  8476. fi
  8477. else
  8478. # not using gcc
  8479. if test "$host_cpu" = ia64; then
  8480. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8481. # chokes on -Wl,-G. The following line is correct:
  8482. shared_flag='-G'
  8483. else
  8484. if test "$aix_use_runtimelinking" = yes; then
  8485. shared_flag='${wl}-G'
  8486. else
  8487. shared_flag='${wl}-bM:SRE'
  8488. fi
  8489. fi
  8490. fi
  8491. export_dynamic_flag_spec='${wl}-bexpall'
  8492. # It seems that -bexpall does not export symbols beginning with
  8493. # underscore (_), so it is better to generate a list of symbols to export.
  8494. always_export_symbols=yes
  8495. if test "$aix_use_runtimelinking" = yes; then
  8496. # Warning - without using the other runtime loading flags (-brtl),
  8497. # -berok will link without error, but may produce a broken library.
  8498. allow_undefined_flag='-berok'
  8499. # Determine the default libpath from the value encoded in an
  8500. # empty executable.
  8501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8502. /* end confdefs.h. */
  8503. int
  8504. main ()
  8505. {
  8506. ;
  8507. return 0;
  8508. }
  8509. _ACEOF
  8510. if ac_fn_c_try_link "$LINENO"; then :
  8511. lt_aix_libpath_sed='
  8512. /Import File Strings/,/^$/ {
  8513. /^0/ {
  8514. s/^0 *\(.*\)$/\1/
  8515. p
  8516. }
  8517. }'
  8518. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8519. # Check for a 64-bit object if we didn't find anything.
  8520. if test -z "$aix_libpath"; then
  8521. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8522. fi
  8523. fi
  8524. rm -f core conftest.err conftest.$ac_objext \
  8525. conftest$ac_exeext conftest.$ac_ext
  8526. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8527. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8528. 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"
  8529. else
  8530. if test "$host_cpu" = ia64; then
  8531. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8532. allow_undefined_flag="-z nodefs"
  8533. 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"
  8534. else
  8535. # Determine the default libpath from the value encoded in an
  8536. # empty executable.
  8537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8538. /* end confdefs.h. */
  8539. int
  8540. main ()
  8541. {
  8542. ;
  8543. return 0;
  8544. }
  8545. _ACEOF
  8546. if ac_fn_c_try_link "$LINENO"; then :
  8547. lt_aix_libpath_sed='
  8548. /Import File Strings/,/^$/ {
  8549. /^0/ {
  8550. s/^0 *\(.*\)$/\1/
  8551. p
  8552. }
  8553. }'
  8554. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8555. # Check for a 64-bit object if we didn't find anything.
  8556. if test -z "$aix_libpath"; then
  8557. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8558. fi
  8559. fi
  8560. rm -f core conftest.err conftest.$ac_objext \
  8561. conftest$ac_exeext conftest.$ac_ext
  8562. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8563. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8564. # Warning - without using the other run time loading flags,
  8565. # -berok will link without error, but may produce a broken library.
  8566. no_undefined_flag=' ${wl}-bernotok'
  8567. allow_undefined_flag=' ${wl}-berok'
  8568. if test "$with_gnu_ld" = yes; then
  8569. # We only use this code for GNU lds that support --whole-archive.
  8570. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8571. else
  8572. # Exported symbols can be pulled into shared objects from archives
  8573. whole_archive_flag_spec='$convenience'
  8574. fi
  8575. archive_cmds_need_lc=yes
  8576. # This is similar to how AIX traditionally builds its shared libraries.
  8577. 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'
  8578. fi
  8579. fi
  8580. ;;
  8581. amigaos*)
  8582. case $host_cpu in
  8583. powerpc)
  8584. # see comment about AmigaOS4 .so support
  8585. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8586. archive_expsym_cmds=''
  8587. ;;
  8588. m68k)
  8589. 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)'
  8590. hardcode_libdir_flag_spec='-L$libdir'
  8591. hardcode_minus_L=yes
  8592. ;;
  8593. esac
  8594. ;;
  8595. bsdi[45]*)
  8596. export_dynamic_flag_spec=-rdynamic
  8597. ;;
  8598. cygwin* | mingw* | pw32* | cegcc*)
  8599. # When not using gcc, we currently assume that we are using
  8600. # Microsoft Visual C++.
  8601. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8602. # no search path for DLLs.
  8603. hardcode_libdir_flag_spec=' '
  8604. allow_undefined_flag=unsupported
  8605. # Tell ltmain to make .lib files, not .a files.
  8606. libext=lib
  8607. # Tell ltmain to make .dll files, not .so files.
  8608. shrext_cmds=".dll"
  8609. # FIXME: Setting linknames here is a bad hack.
  8610. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8611. # The linker will automatically build a .lib file if we build a DLL.
  8612. old_archive_from_new_cmds='true'
  8613. # FIXME: Should let the user specify the lib program.
  8614. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8615. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8616. enable_shared_with_static_runtimes=yes
  8617. ;;
  8618. darwin* | rhapsody*)
  8619. archive_cmds_need_lc=no
  8620. hardcode_direct=no
  8621. hardcode_automatic=yes
  8622. hardcode_shlibpath_var=unsupported
  8623. if test "$lt_cv_ld_force_load" = "yes"; then
  8624. 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\"`'
  8625. else
  8626. whole_archive_flag_spec=''
  8627. fi
  8628. link_all_deplibs=yes
  8629. allow_undefined_flag="$_lt_dar_allow_undefined"
  8630. case $cc_basename in
  8631. ifort*) _lt_dar_can_shared=yes ;;
  8632. *) _lt_dar_can_shared=$GCC ;;
  8633. esac
  8634. if test "$_lt_dar_can_shared" = "yes"; then
  8635. output_verbose_link_cmd=func_echo_all
  8636. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8637. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8638. 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}"
  8639. 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}"
  8640. else
  8641. ld_shlibs=no
  8642. fi
  8643. ;;
  8644. dgux*)
  8645. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8646. hardcode_libdir_flag_spec='-L$libdir'
  8647. hardcode_shlibpath_var=no
  8648. ;;
  8649. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8650. # support. Future versions do this automatically, but an explicit c++rt0.o
  8651. # does not break anything, and helps significantly (at the cost of a little
  8652. # extra space).
  8653. freebsd2.2*)
  8654. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8655. hardcode_libdir_flag_spec='-R$libdir'
  8656. hardcode_direct=yes
  8657. hardcode_shlibpath_var=no
  8658. ;;
  8659. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8660. freebsd2.*)
  8661. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8662. hardcode_direct=yes
  8663. hardcode_minus_L=yes
  8664. hardcode_shlibpath_var=no
  8665. ;;
  8666. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8667. freebsd* | dragonfly*)
  8668. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8669. hardcode_libdir_flag_spec='-R$libdir'
  8670. hardcode_direct=yes
  8671. hardcode_shlibpath_var=no
  8672. ;;
  8673. hpux9*)
  8674. if test "$GCC" = yes; then
  8675. 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'
  8676. else
  8677. 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'
  8678. fi
  8679. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8680. hardcode_libdir_separator=:
  8681. hardcode_direct=yes
  8682. # hardcode_minus_L: Not really in the search PATH,
  8683. # but as the default location of the library.
  8684. hardcode_minus_L=yes
  8685. export_dynamic_flag_spec='${wl}-E'
  8686. ;;
  8687. hpux10*)
  8688. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8689. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8690. else
  8691. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8692. fi
  8693. if test "$with_gnu_ld" = no; then
  8694. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8695. hardcode_libdir_flag_spec_ld='+b $libdir'
  8696. hardcode_libdir_separator=:
  8697. hardcode_direct=yes
  8698. hardcode_direct_absolute=yes
  8699. export_dynamic_flag_spec='${wl}-E'
  8700. # hardcode_minus_L: Not really in the search PATH,
  8701. # but as the default location of the library.
  8702. hardcode_minus_L=yes
  8703. fi
  8704. ;;
  8705. hpux11*)
  8706. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8707. case $host_cpu in
  8708. hppa*64*)
  8709. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8710. ;;
  8711. ia64*)
  8712. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8713. ;;
  8714. *)
  8715. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8716. ;;
  8717. esac
  8718. else
  8719. case $host_cpu in
  8720. hppa*64*)
  8721. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8722. ;;
  8723. ia64*)
  8724. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8725. ;;
  8726. *)
  8727. # Older versions of the 11.00 compiler do not understand -b yet
  8728. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8730. $as_echo_n "checking if $CC understands -b... " >&6; }
  8731. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8732. $as_echo_n "(cached) " >&6
  8733. else
  8734. lt_cv_prog_compiler__b=no
  8735. save_LDFLAGS="$LDFLAGS"
  8736. LDFLAGS="$LDFLAGS -b"
  8737. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8738. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8739. # The linker can only warn and ignore the option if not recognized
  8740. # So say no if there are warnings
  8741. if test -s conftest.err; then
  8742. # Append any errors to the config.log.
  8743. cat conftest.err 1>&5
  8744. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8745. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8746. if diff conftest.exp conftest.er2 >/dev/null; then
  8747. lt_cv_prog_compiler__b=yes
  8748. fi
  8749. else
  8750. lt_cv_prog_compiler__b=yes
  8751. fi
  8752. fi
  8753. $RM -r conftest*
  8754. LDFLAGS="$save_LDFLAGS"
  8755. fi
  8756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8757. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8758. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8759. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8760. else
  8761. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8762. fi
  8763. ;;
  8764. esac
  8765. fi
  8766. if test "$with_gnu_ld" = no; then
  8767. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8768. hardcode_libdir_separator=:
  8769. case $host_cpu in
  8770. hppa*64*|ia64*)
  8771. hardcode_direct=no
  8772. hardcode_shlibpath_var=no
  8773. ;;
  8774. *)
  8775. hardcode_direct=yes
  8776. hardcode_direct_absolute=yes
  8777. export_dynamic_flag_spec='${wl}-E'
  8778. # hardcode_minus_L: Not really in the search PATH,
  8779. # but as the default location of the library.
  8780. hardcode_minus_L=yes
  8781. ;;
  8782. esac
  8783. fi
  8784. ;;
  8785. irix5* | irix6* | nonstopux*)
  8786. if test "$GCC" = yes; then
  8787. 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'
  8788. # Try to use the -exported_symbol ld option, if it does not
  8789. # work, assume that -exports_file does not work either and
  8790. # implicitly export all symbols.
  8791. save_LDFLAGS="$LDFLAGS"
  8792. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8794. /* end confdefs.h. */
  8795. int foo(void) {}
  8796. _ACEOF
  8797. if ac_fn_c_try_link "$LINENO"; then :
  8798. 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'
  8799. fi
  8800. rm -f core conftest.err conftest.$ac_objext \
  8801. conftest$ac_exeext conftest.$ac_ext
  8802. LDFLAGS="$save_LDFLAGS"
  8803. else
  8804. 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'
  8805. 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'
  8806. fi
  8807. archive_cmds_need_lc='no'
  8808. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8809. hardcode_libdir_separator=:
  8810. inherit_rpath=yes
  8811. link_all_deplibs=yes
  8812. ;;
  8813. netbsd*)
  8814. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8815. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8816. else
  8817. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8818. fi
  8819. hardcode_libdir_flag_spec='-R$libdir'
  8820. hardcode_direct=yes
  8821. hardcode_shlibpath_var=no
  8822. ;;
  8823. newsos6)
  8824. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8825. hardcode_direct=yes
  8826. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8827. hardcode_libdir_separator=:
  8828. hardcode_shlibpath_var=no
  8829. ;;
  8830. *nto* | *qnx*)
  8831. ;;
  8832. openbsd*)
  8833. if test -f /usr/libexec/ld.so; then
  8834. hardcode_direct=yes
  8835. hardcode_shlibpath_var=no
  8836. hardcode_direct_absolute=yes
  8837. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8838. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8839. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8840. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8841. export_dynamic_flag_spec='${wl}-E'
  8842. else
  8843. case $host_os in
  8844. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8845. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8846. hardcode_libdir_flag_spec='-R$libdir'
  8847. ;;
  8848. *)
  8849. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8850. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8851. ;;
  8852. esac
  8853. fi
  8854. else
  8855. ld_shlibs=no
  8856. fi
  8857. ;;
  8858. os2*)
  8859. hardcode_libdir_flag_spec='-L$libdir'
  8860. hardcode_minus_L=yes
  8861. allow_undefined_flag=unsupported
  8862. 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'
  8863. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8864. ;;
  8865. osf3*)
  8866. if test "$GCC" = yes; then
  8867. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8868. 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'
  8869. else
  8870. allow_undefined_flag=' -expect_unresolved \*'
  8871. 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'
  8872. fi
  8873. archive_cmds_need_lc='no'
  8874. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8875. hardcode_libdir_separator=:
  8876. ;;
  8877. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8878. if test "$GCC" = yes; then
  8879. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8880. 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'
  8881. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8882. else
  8883. allow_undefined_flag=' -expect_unresolved \*'
  8884. 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'
  8885. 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~
  8886. $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'
  8887. # Both c and cxx compiler support -rpath directly
  8888. hardcode_libdir_flag_spec='-rpath $libdir'
  8889. fi
  8890. archive_cmds_need_lc='no'
  8891. hardcode_libdir_separator=:
  8892. ;;
  8893. solaris*)
  8894. no_undefined_flag=' -z defs'
  8895. if test "$GCC" = yes; then
  8896. wlarc='${wl}'
  8897. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8898. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8899. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8900. else
  8901. case `$CC -V 2>&1` in
  8902. *"Compilers 5.0"*)
  8903. wlarc=''
  8904. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8905. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8906. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8907. ;;
  8908. *)
  8909. wlarc='${wl}'
  8910. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8911. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8912. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8913. ;;
  8914. esac
  8915. fi
  8916. hardcode_libdir_flag_spec='-R$libdir'
  8917. hardcode_shlibpath_var=no
  8918. case $host_os in
  8919. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8920. *)
  8921. # The compiler driver will combine and reorder linker options,
  8922. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8923. # but is careful enough not to reorder.
  8924. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8925. if test "$GCC" = yes; then
  8926. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8927. else
  8928. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8929. fi
  8930. ;;
  8931. esac
  8932. link_all_deplibs=yes
  8933. ;;
  8934. sunos4*)
  8935. if test "x$host_vendor" = xsequent; then
  8936. # Use $CC to link under sequent, because it throws in some extra .o
  8937. # files that make .init and .fini sections work.
  8938. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8939. else
  8940. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8941. fi
  8942. hardcode_libdir_flag_spec='-L$libdir'
  8943. hardcode_direct=yes
  8944. hardcode_minus_L=yes
  8945. hardcode_shlibpath_var=no
  8946. ;;
  8947. sysv4)
  8948. case $host_vendor in
  8949. sni)
  8950. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8951. hardcode_direct=yes # is this really true???
  8952. ;;
  8953. siemens)
  8954. ## LD is ld it makes a PLAMLIB
  8955. ## CC just makes a GrossModule.
  8956. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8957. reload_cmds='$CC -r -o $output$reload_objs'
  8958. hardcode_direct=no
  8959. ;;
  8960. motorola)
  8961. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8962. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8963. ;;
  8964. esac
  8965. runpath_var='LD_RUN_PATH'
  8966. hardcode_shlibpath_var=no
  8967. ;;
  8968. sysv4.3*)
  8969. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8970. hardcode_shlibpath_var=no
  8971. export_dynamic_flag_spec='-Bexport'
  8972. ;;
  8973. sysv4*MP*)
  8974. if test -d /usr/nec; then
  8975. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8976. hardcode_shlibpath_var=no
  8977. runpath_var=LD_RUN_PATH
  8978. hardcode_runpath_var=yes
  8979. ld_shlibs=yes
  8980. fi
  8981. ;;
  8982. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8983. no_undefined_flag='${wl}-z,text'
  8984. archive_cmds_need_lc=no
  8985. hardcode_shlibpath_var=no
  8986. runpath_var='LD_RUN_PATH'
  8987. if test "$GCC" = yes; then
  8988. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8989. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8990. else
  8991. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8992. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8993. fi
  8994. ;;
  8995. sysv5* | sco3.2v5* | sco5v6*)
  8996. # Note: We can NOT use -z defs as we might desire, because we do not
  8997. # link with -lc, and that would cause any symbols used from libc to
  8998. # always be unresolved, which means just about no library would
  8999. # ever link correctly. If we're not using GNU ld we use -z text
  9000. # though, which does catch some bad symbols but isn't as heavy-handed
  9001. # as -z defs.
  9002. no_undefined_flag='${wl}-z,text'
  9003. allow_undefined_flag='${wl}-z,nodefs'
  9004. archive_cmds_need_lc=no
  9005. hardcode_shlibpath_var=no
  9006. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9007. hardcode_libdir_separator=':'
  9008. link_all_deplibs=yes
  9009. export_dynamic_flag_spec='${wl}-Bexport'
  9010. runpath_var='LD_RUN_PATH'
  9011. if test "$GCC" = yes; then
  9012. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9013. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9014. else
  9015. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9016. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9017. fi
  9018. ;;
  9019. uts4*)
  9020. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9021. hardcode_libdir_flag_spec='-L$libdir'
  9022. hardcode_shlibpath_var=no
  9023. ;;
  9024. *)
  9025. ld_shlibs=no
  9026. ;;
  9027. esac
  9028. if test x$host_vendor = xsni; then
  9029. case $host in
  9030. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9031. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9032. ;;
  9033. esac
  9034. fi
  9035. fi
  9036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9037. $as_echo "$ld_shlibs" >&6; }
  9038. test "$ld_shlibs" = no && can_build_shared=no
  9039. with_gnu_ld=$with_gnu_ld
  9040. #
  9041. # Do we need to explicitly link libc?
  9042. #
  9043. case "x$archive_cmds_need_lc" in
  9044. x|xyes)
  9045. # Assume -lc should be added
  9046. archive_cmds_need_lc=yes
  9047. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9048. case $archive_cmds in
  9049. *'~'*)
  9050. # FIXME: we may have to deal with multi-command sequences.
  9051. ;;
  9052. '$CC '*)
  9053. # Test whether the compiler implicitly links with -lc since on some
  9054. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9055. # to ld, don't add -lc before -lgcc.
  9056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9057. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9058. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  9059. $as_echo_n "(cached) " >&6
  9060. else
  9061. $RM conftest*
  9062. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9063. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9064. (eval $ac_compile) 2>&5
  9065. ac_status=$?
  9066. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9067. test $ac_status = 0; } 2>conftest.err; then
  9068. soname=conftest
  9069. lib=conftest
  9070. libobjs=conftest.$ac_objext
  9071. deplibs=
  9072. wl=$lt_prog_compiler_wl
  9073. pic_flag=$lt_prog_compiler_pic
  9074. compiler_flags=-v
  9075. linker_flags=-v
  9076. verstring=
  9077. output_objdir=.
  9078. libname=conftest
  9079. lt_save_allow_undefined_flag=$allow_undefined_flag
  9080. allow_undefined_flag=
  9081. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9082. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9083. ac_status=$?
  9084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9085. test $ac_status = 0; }
  9086. then
  9087. lt_cv_archive_cmds_need_lc=no
  9088. else
  9089. lt_cv_archive_cmds_need_lc=yes
  9090. fi
  9091. allow_undefined_flag=$lt_save_allow_undefined_flag
  9092. else
  9093. cat conftest.err 1>&5
  9094. fi
  9095. $RM conftest*
  9096. fi
  9097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9098. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9099. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9100. ;;
  9101. esac
  9102. fi
  9103. ;;
  9104. esac
  9105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9106. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9107. if test "$GCC" = yes; then
  9108. case $host_os in
  9109. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9110. *) lt_awk_arg="/^libraries:/" ;;
  9111. esac
  9112. case $host_os in
  9113. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9114. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9115. esac
  9116. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9117. case $lt_search_path_spec in
  9118. *\;*)
  9119. # if the path contains ";" then we assume it to be the separator
  9120. # otherwise default to the standard path separator (i.e. ":") - it is
  9121. # assumed that no part of a normal pathname contains ";" but that should
  9122. # okay in the real world where ";" in dirpaths is itself problematic.
  9123. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9124. ;;
  9125. *)
  9126. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9127. ;;
  9128. esac
  9129. # Ok, now we have the path, separated by spaces, we can step through it
  9130. # and add multilib dir if necessary.
  9131. lt_tmp_lt_search_path_spec=
  9132. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9133. for lt_sys_path in $lt_search_path_spec; do
  9134. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9135. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9136. else
  9137. test -d "$lt_sys_path" && \
  9138. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9139. fi
  9140. done
  9141. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9142. BEGIN {RS=" "; FS="/|\n";} {
  9143. lt_foo="";
  9144. lt_count=0;
  9145. for (lt_i = NF; lt_i > 0; lt_i--) {
  9146. if ($lt_i != "" && $lt_i != ".") {
  9147. if ($lt_i == "..") {
  9148. lt_count++;
  9149. } else {
  9150. if (lt_count == 0) {
  9151. lt_foo="/" $lt_i lt_foo;
  9152. } else {
  9153. lt_count--;
  9154. }
  9155. }
  9156. }
  9157. }
  9158. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9159. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9160. }'`
  9161. # AWK program above erroneously prepends '/' to C:/dos/paths
  9162. # for these hosts.
  9163. case $host_os in
  9164. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9165. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9166. esac
  9167. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9168. else
  9169. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9170. fi
  9171. library_names_spec=
  9172. libname_spec='lib$name'
  9173. soname_spec=
  9174. shrext_cmds=".so"
  9175. postinstall_cmds=
  9176. postuninstall_cmds=
  9177. finish_cmds=
  9178. finish_eval=
  9179. shlibpath_var=
  9180. shlibpath_overrides_runpath=unknown
  9181. version_type=none
  9182. dynamic_linker="$host_os ld.so"
  9183. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9184. need_lib_prefix=unknown
  9185. hardcode_into_libs=no
  9186. # when you set need_version to no, make sure it does not cause -set_version
  9187. # flags to be left without arguments
  9188. need_version=unknown
  9189. case $host_os in
  9190. aix3*)
  9191. version_type=linux
  9192. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9193. shlibpath_var=LIBPATH
  9194. # AIX 3 has no versioning support, so we append a major version to the name.
  9195. soname_spec='${libname}${release}${shared_ext}$major'
  9196. ;;
  9197. aix[4-9]*)
  9198. version_type=linux
  9199. need_lib_prefix=no
  9200. need_version=no
  9201. hardcode_into_libs=yes
  9202. if test "$host_cpu" = ia64; then
  9203. # AIX 5 supports IA64
  9204. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9205. shlibpath_var=LD_LIBRARY_PATH
  9206. else
  9207. # With GCC up to 2.95.x, collect2 would create an import file
  9208. # for dependence libraries. The import file would start with
  9209. # the line `#! .'. This would cause the generated library to
  9210. # depend on `.', always an invalid library. This was fixed in
  9211. # development snapshots of GCC prior to 3.0.
  9212. case $host_os in
  9213. aix4 | aix4.[01] | aix4.[01].*)
  9214. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9215. echo ' yes '
  9216. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9217. :
  9218. else
  9219. can_build_shared=no
  9220. fi
  9221. ;;
  9222. esac
  9223. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9224. # soname into executable. Probably we can add versioning support to
  9225. # collect2, so additional links can be useful in future.
  9226. if test "$aix_use_runtimelinking" = yes; then
  9227. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9228. # instead of lib<name>.a to let people know that these are not
  9229. # typical AIX shared libraries.
  9230. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9231. else
  9232. # We preserve .a as extension for shared libraries through AIX4.2
  9233. # and later when we are not doing run time linking.
  9234. library_names_spec='${libname}${release}.a $libname.a'
  9235. soname_spec='${libname}${release}${shared_ext}$major'
  9236. fi
  9237. shlibpath_var=LIBPATH
  9238. fi
  9239. ;;
  9240. amigaos*)
  9241. case $host_cpu in
  9242. powerpc)
  9243. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9244. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9246. ;;
  9247. m68k)
  9248. library_names_spec='$libname.ixlibrary $libname.a'
  9249. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9250. 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'
  9251. ;;
  9252. esac
  9253. ;;
  9254. beos*)
  9255. library_names_spec='${libname}${shared_ext}'
  9256. dynamic_linker="$host_os ld.so"
  9257. shlibpath_var=LIBRARY_PATH
  9258. ;;
  9259. bsdi[45]*)
  9260. version_type=linux
  9261. need_version=no
  9262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9263. soname_spec='${libname}${release}${shared_ext}$major'
  9264. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9265. shlibpath_var=LD_LIBRARY_PATH
  9266. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9267. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9268. # the default ld.so.conf also contains /usr/contrib/lib and
  9269. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9270. # libtool to hard-code these into programs
  9271. ;;
  9272. cygwin* | mingw* | pw32* | cegcc*)
  9273. version_type=windows
  9274. shrext_cmds=".dll"
  9275. need_version=no
  9276. need_lib_prefix=no
  9277. case $GCC,$host_os in
  9278. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9279. library_names_spec='$libname.dll.a'
  9280. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9281. postinstall_cmds='base_file=`basename \${file}`~
  9282. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9283. dldir=$destdir/`dirname \$dlpath`~
  9284. test -d \$dldir || mkdir -p \$dldir~
  9285. $install_prog $dir/$dlname \$dldir/$dlname~
  9286. chmod a+x \$dldir/$dlname~
  9287. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9288. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9289. fi'
  9290. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9291. dlpath=$dir/\$dldll~
  9292. $RM \$dlpath'
  9293. shlibpath_overrides_runpath=yes
  9294. case $host_os in
  9295. cygwin*)
  9296. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9297. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9298. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9299. ;;
  9300. mingw* | cegcc*)
  9301. # MinGW DLLs use traditional 'lib' prefix
  9302. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9303. ;;
  9304. pw32*)
  9305. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9306. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9307. ;;
  9308. esac
  9309. ;;
  9310. *)
  9311. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9312. ;;
  9313. esac
  9314. dynamic_linker='Win32 ld.exe'
  9315. # FIXME: first we should search . and the directory the executable is in
  9316. shlibpath_var=PATH
  9317. ;;
  9318. darwin* | rhapsody*)
  9319. dynamic_linker="$host_os dyld"
  9320. version_type=darwin
  9321. need_lib_prefix=no
  9322. need_version=no
  9323. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9324. soname_spec='${libname}${release}${major}$shared_ext'
  9325. shlibpath_overrides_runpath=yes
  9326. shlibpath_var=DYLD_LIBRARY_PATH
  9327. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9328. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9329. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9330. ;;
  9331. dgux*)
  9332. version_type=linux
  9333. need_lib_prefix=no
  9334. need_version=no
  9335. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9336. soname_spec='${libname}${release}${shared_ext}$major'
  9337. shlibpath_var=LD_LIBRARY_PATH
  9338. ;;
  9339. freebsd* | dragonfly*)
  9340. # DragonFly does not have aout. When/if they implement a new
  9341. # versioning mechanism, adjust this.
  9342. if test -x /usr/bin/objformat; then
  9343. objformat=`/usr/bin/objformat`
  9344. else
  9345. case $host_os in
  9346. freebsd[23].*) objformat=aout ;;
  9347. *) objformat=elf ;;
  9348. esac
  9349. fi
  9350. version_type=freebsd-$objformat
  9351. case $version_type in
  9352. freebsd-elf*)
  9353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9354. need_version=no
  9355. need_lib_prefix=no
  9356. ;;
  9357. freebsd-*)
  9358. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9359. need_version=yes
  9360. ;;
  9361. esac
  9362. shlibpath_var=LD_LIBRARY_PATH
  9363. case $host_os in
  9364. freebsd2.*)
  9365. shlibpath_overrides_runpath=yes
  9366. ;;
  9367. freebsd3.[01]* | freebsdelf3.[01]*)
  9368. shlibpath_overrides_runpath=yes
  9369. hardcode_into_libs=yes
  9370. ;;
  9371. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9372. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9373. shlibpath_overrides_runpath=no
  9374. hardcode_into_libs=yes
  9375. ;;
  9376. *) # from 4.6 on, and DragonFly
  9377. shlibpath_overrides_runpath=yes
  9378. hardcode_into_libs=yes
  9379. ;;
  9380. esac
  9381. ;;
  9382. gnu*)
  9383. version_type=linux
  9384. need_lib_prefix=no
  9385. need_version=no
  9386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9387. soname_spec='${libname}${release}${shared_ext}$major'
  9388. shlibpath_var=LD_LIBRARY_PATH
  9389. hardcode_into_libs=yes
  9390. ;;
  9391. haiku*)
  9392. version_type=linux
  9393. need_lib_prefix=no
  9394. need_version=no
  9395. dynamic_linker="$host_os runtime_loader"
  9396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9397. soname_spec='${libname}${release}${shared_ext}$major'
  9398. shlibpath_var=LIBRARY_PATH
  9399. shlibpath_overrides_runpath=yes
  9400. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9401. hardcode_into_libs=yes
  9402. ;;
  9403. hpux9* | hpux10* | hpux11*)
  9404. # Give a soname corresponding to the major version so that dld.sl refuses to
  9405. # link against other versions.
  9406. version_type=sunos
  9407. need_lib_prefix=no
  9408. need_version=no
  9409. case $host_cpu in
  9410. ia64*)
  9411. shrext_cmds='.so'
  9412. hardcode_into_libs=yes
  9413. dynamic_linker="$host_os dld.so"
  9414. shlibpath_var=LD_LIBRARY_PATH
  9415. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9417. soname_spec='${libname}${release}${shared_ext}$major'
  9418. if test "X$HPUX_IA64_MODE" = X32; then
  9419. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9420. else
  9421. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9422. fi
  9423. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9424. ;;
  9425. hppa*64*)
  9426. shrext_cmds='.sl'
  9427. hardcode_into_libs=yes
  9428. dynamic_linker="$host_os dld.sl"
  9429. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9430. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9431. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9432. soname_spec='${libname}${release}${shared_ext}$major'
  9433. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9434. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9435. ;;
  9436. *)
  9437. shrext_cmds='.sl'
  9438. dynamic_linker="$host_os dld.sl"
  9439. shlibpath_var=SHLIB_PATH
  9440. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9442. soname_spec='${libname}${release}${shared_ext}$major'
  9443. ;;
  9444. esac
  9445. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9446. postinstall_cmds='chmod 555 $lib'
  9447. # or fails outright, so override atomically:
  9448. install_override_mode=555
  9449. ;;
  9450. interix[3-9]*)
  9451. version_type=linux
  9452. need_lib_prefix=no
  9453. need_version=no
  9454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9455. soname_spec='${libname}${release}${shared_ext}$major'
  9456. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9457. shlibpath_var=LD_LIBRARY_PATH
  9458. shlibpath_overrides_runpath=no
  9459. hardcode_into_libs=yes
  9460. ;;
  9461. irix5* | irix6* | nonstopux*)
  9462. case $host_os in
  9463. nonstopux*) version_type=nonstopux ;;
  9464. *)
  9465. if test "$lt_cv_prog_gnu_ld" = yes; then
  9466. version_type=linux
  9467. else
  9468. version_type=irix
  9469. fi ;;
  9470. esac
  9471. need_lib_prefix=no
  9472. need_version=no
  9473. soname_spec='${libname}${release}${shared_ext}$major'
  9474. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9475. case $host_os in
  9476. irix5* | nonstopux*)
  9477. libsuff= shlibsuff=
  9478. ;;
  9479. *)
  9480. case $LD in # libtool.m4 will add one of these switches to LD
  9481. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9482. libsuff= shlibsuff= libmagic=32-bit;;
  9483. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9484. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9485. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9486. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9487. *) libsuff= shlibsuff= libmagic=never-match;;
  9488. esac
  9489. ;;
  9490. esac
  9491. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9492. shlibpath_overrides_runpath=no
  9493. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9494. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9495. hardcode_into_libs=yes
  9496. ;;
  9497. # No shared lib support for Linux oldld, aout, or coff.
  9498. linux*oldld* | linux*aout* | linux*coff*)
  9499. dynamic_linker=no
  9500. ;;
  9501. # This must be Linux ELF.
  9502. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9503. version_type=linux
  9504. need_lib_prefix=no
  9505. need_version=no
  9506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9507. soname_spec='${libname}${release}${shared_ext}$major'
  9508. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9509. shlibpath_var=LD_LIBRARY_PATH
  9510. shlibpath_overrides_runpath=no
  9511. # Some binutils ld are patched to set DT_RUNPATH
  9512. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9513. $as_echo_n "(cached) " >&6
  9514. else
  9515. lt_cv_shlibpath_overrides_runpath=no
  9516. save_LDFLAGS=$LDFLAGS
  9517. save_libdir=$libdir
  9518. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9519. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9521. /* end confdefs.h. */
  9522. int
  9523. main ()
  9524. {
  9525. ;
  9526. return 0;
  9527. }
  9528. _ACEOF
  9529. if ac_fn_c_try_link "$LINENO"; then :
  9530. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9531. lt_cv_shlibpath_overrides_runpath=yes
  9532. fi
  9533. fi
  9534. rm -f core conftest.err conftest.$ac_objext \
  9535. conftest$ac_exeext conftest.$ac_ext
  9536. LDFLAGS=$save_LDFLAGS
  9537. libdir=$save_libdir
  9538. fi
  9539. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9540. # This implies no fast_install, which is unacceptable.
  9541. # Some rework will be needed to allow for fast_install
  9542. # before this can be enabled.
  9543. hardcode_into_libs=yes
  9544. # Append ld.so.conf contents to the search path
  9545. if test -f /etc/ld.so.conf; then
  9546. 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' ' '`
  9547. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9548. fi
  9549. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9550. # powerpc, because MkLinux only supported shared libraries with the
  9551. # GNU dynamic linker. Since this was broken with cross compilers,
  9552. # most powerpc-linux boxes support dynamic linking these days and
  9553. # people can always --disable-shared, the test was removed, and we
  9554. # assume the GNU/Linux dynamic linker is in use.
  9555. dynamic_linker='GNU/Linux ld.so'
  9556. ;;
  9557. netbsd*)
  9558. version_type=sunos
  9559. need_lib_prefix=no
  9560. need_version=no
  9561. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9563. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9564. dynamic_linker='NetBSD (a.out) ld.so'
  9565. else
  9566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9567. soname_spec='${libname}${release}${shared_ext}$major'
  9568. dynamic_linker='NetBSD ld.elf_so'
  9569. fi
  9570. shlibpath_var=LD_LIBRARY_PATH
  9571. shlibpath_overrides_runpath=yes
  9572. hardcode_into_libs=yes
  9573. ;;
  9574. newsos6)
  9575. version_type=linux
  9576. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9577. shlibpath_var=LD_LIBRARY_PATH
  9578. shlibpath_overrides_runpath=yes
  9579. ;;
  9580. *nto* | *qnx*)
  9581. version_type=qnx
  9582. need_lib_prefix=no
  9583. need_version=no
  9584. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9585. soname_spec='${libname}${release}${shared_ext}$major'
  9586. shlibpath_var=LD_LIBRARY_PATH
  9587. shlibpath_overrides_runpath=no
  9588. hardcode_into_libs=yes
  9589. dynamic_linker='ldqnx.so'
  9590. ;;
  9591. openbsd*)
  9592. version_type=sunos
  9593. sys_lib_dlsearch_path_spec="/usr/lib"
  9594. need_lib_prefix=no
  9595. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9596. case $host_os in
  9597. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9598. *) need_version=no ;;
  9599. esac
  9600. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9601. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9602. shlibpath_var=LD_LIBRARY_PATH
  9603. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9604. case $host_os in
  9605. openbsd2.[89] | openbsd2.[89].*)
  9606. shlibpath_overrides_runpath=no
  9607. ;;
  9608. *)
  9609. shlibpath_overrides_runpath=yes
  9610. ;;
  9611. esac
  9612. else
  9613. shlibpath_overrides_runpath=yes
  9614. fi
  9615. ;;
  9616. os2*)
  9617. libname_spec='$name'
  9618. shrext_cmds=".dll"
  9619. need_lib_prefix=no
  9620. library_names_spec='$libname${shared_ext} $libname.a'
  9621. dynamic_linker='OS/2 ld.exe'
  9622. shlibpath_var=LIBPATH
  9623. ;;
  9624. osf3* | osf4* | osf5*)
  9625. version_type=osf
  9626. need_lib_prefix=no
  9627. need_version=no
  9628. soname_spec='${libname}${release}${shared_ext}$major'
  9629. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9630. shlibpath_var=LD_LIBRARY_PATH
  9631. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9632. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9633. ;;
  9634. rdos*)
  9635. dynamic_linker=no
  9636. ;;
  9637. solaris*)
  9638. version_type=linux
  9639. need_lib_prefix=no
  9640. need_version=no
  9641. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9642. soname_spec='${libname}${release}${shared_ext}$major'
  9643. shlibpath_var=LD_LIBRARY_PATH
  9644. shlibpath_overrides_runpath=yes
  9645. hardcode_into_libs=yes
  9646. # ldd complains unless libraries are executable
  9647. postinstall_cmds='chmod +x $lib'
  9648. ;;
  9649. sunos4*)
  9650. version_type=sunos
  9651. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9652. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9653. shlibpath_var=LD_LIBRARY_PATH
  9654. shlibpath_overrides_runpath=yes
  9655. if test "$with_gnu_ld" = yes; then
  9656. need_lib_prefix=no
  9657. fi
  9658. need_version=yes
  9659. ;;
  9660. sysv4 | sysv4.3*)
  9661. version_type=linux
  9662. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9663. soname_spec='${libname}${release}${shared_ext}$major'
  9664. shlibpath_var=LD_LIBRARY_PATH
  9665. case $host_vendor in
  9666. sni)
  9667. shlibpath_overrides_runpath=no
  9668. need_lib_prefix=no
  9669. runpath_var=LD_RUN_PATH
  9670. ;;
  9671. siemens)
  9672. need_lib_prefix=no
  9673. ;;
  9674. motorola)
  9675. need_lib_prefix=no
  9676. need_version=no
  9677. shlibpath_overrides_runpath=no
  9678. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9679. ;;
  9680. esac
  9681. ;;
  9682. sysv4*MP*)
  9683. if test -d /usr/nec ;then
  9684. version_type=linux
  9685. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9686. soname_spec='$libname${shared_ext}.$major'
  9687. shlibpath_var=LD_LIBRARY_PATH
  9688. fi
  9689. ;;
  9690. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9691. version_type=freebsd-elf
  9692. need_lib_prefix=no
  9693. need_version=no
  9694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9695. soname_spec='${libname}${release}${shared_ext}$major'
  9696. shlibpath_var=LD_LIBRARY_PATH
  9697. shlibpath_overrides_runpath=yes
  9698. hardcode_into_libs=yes
  9699. if test "$with_gnu_ld" = yes; then
  9700. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9701. else
  9702. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9703. case $host_os in
  9704. sco3.2v5*)
  9705. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9706. ;;
  9707. esac
  9708. fi
  9709. sys_lib_dlsearch_path_spec='/usr/lib'
  9710. ;;
  9711. tpf*)
  9712. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9713. version_type=linux
  9714. need_lib_prefix=no
  9715. need_version=no
  9716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9717. shlibpath_var=LD_LIBRARY_PATH
  9718. shlibpath_overrides_runpath=no
  9719. hardcode_into_libs=yes
  9720. ;;
  9721. uts4*)
  9722. version_type=linux
  9723. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9724. soname_spec='${libname}${release}${shared_ext}$major'
  9725. shlibpath_var=LD_LIBRARY_PATH
  9726. ;;
  9727. *)
  9728. dynamic_linker=no
  9729. ;;
  9730. esac
  9731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9732. $as_echo "$dynamic_linker" >&6; }
  9733. test "$dynamic_linker" = no && can_build_shared=no
  9734. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9735. if test "$GCC" = yes; then
  9736. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9737. fi
  9738. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9739. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9740. fi
  9741. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9742. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9743. fi
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9745. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9746. hardcode_action=
  9747. if test -n "$hardcode_libdir_flag_spec" ||
  9748. test -n "$runpath_var" ||
  9749. test "X$hardcode_automatic" = "Xyes" ; then
  9750. # We can hardcode non-existent directories.
  9751. if test "$hardcode_direct" != no &&
  9752. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9753. # have to relink, otherwise we might link with an installed library
  9754. # when we should be linking with a yet-to-be-installed one
  9755. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9756. test "$hardcode_minus_L" != no; then
  9757. # Linking always hardcodes the temporary library directory.
  9758. hardcode_action=relink
  9759. else
  9760. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9761. hardcode_action=immediate
  9762. fi
  9763. else
  9764. # We cannot hardcode anything, or else we can only hardcode existing
  9765. # directories.
  9766. hardcode_action=unsupported
  9767. fi
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9769. $as_echo "$hardcode_action" >&6; }
  9770. if test "$hardcode_action" = relink ||
  9771. test "$inherit_rpath" = yes; then
  9772. # Fast installation is not supported
  9773. enable_fast_install=no
  9774. elif test "$shlibpath_overrides_runpath" = yes ||
  9775. test "$enable_shared" = no; then
  9776. # Fast installation is not necessary
  9777. enable_fast_install=needless
  9778. fi
  9779. if test "x$enable_dlopen" != xyes; then
  9780. enable_dlopen=unknown
  9781. enable_dlopen_self=unknown
  9782. enable_dlopen_self_static=unknown
  9783. else
  9784. lt_cv_dlopen=no
  9785. lt_cv_dlopen_libs=
  9786. case $host_os in
  9787. beos*)
  9788. lt_cv_dlopen="load_add_on"
  9789. lt_cv_dlopen_libs=
  9790. lt_cv_dlopen_self=yes
  9791. ;;
  9792. mingw* | pw32* | cegcc*)
  9793. lt_cv_dlopen="LoadLibrary"
  9794. lt_cv_dlopen_libs=
  9795. ;;
  9796. cygwin*)
  9797. lt_cv_dlopen="dlopen"
  9798. lt_cv_dlopen_libs=
  9799. ;;
  9800. darwin*)
  9801. # if libdl is installed we need to link against it
  9802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9803. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9804. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9805. $as_echo_n "(cached) " >&6
  9806. else
  9807. ac_check_lib_save_LIBS=$LIBS
  9808. LIBS="-ldl $LIBS"
  9809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9810. /* end confdefs.h. */
  9811. /* Override any GCC internal prototype to avoid an error.
  9812. Use char because int might match the return type of a GCC
  9813. builtin and then its argument prototype would still apply. */
  9814. #ifdef __cplusplus
  9815. extern "C"
  9816. #endif
  9817. char dlopen ();
  9818. int
  9819. main ()
  9820. {
  9821. return dlopen ();
  9822. ;
  9823. return 0;
  9824. }
  9825. _ACEOF
  9826. if ac_fn_c_try_link "$LINENO"; then :
  9827. ac_cv_lib_dl_dlopen=yes
  9828. else
  9829. ac_cv_lib_dl_dlopen=no
  9830. fi
  9831. rm -f core conftest.err conftest.$ac_objext \
  9832. conftest$ac_exeext conftest.$ac_ext
  9833. LIBS=$ac_check_lib_save_LIBS
  9834. fi
  9835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9836. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9837. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9838. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9839. else
  9840. lt_cv_dlopen="dyld"
  9841. lt_cv_dlopen_libs=
  9842. lt_cv_dlopen_self=yes
  9843. fi
  9844. ;;
  9845. *)
  9846. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9847. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9848. lt_cv_dlopen="shl_load"
  9849. else
  9850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9851. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9852. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9853. $as_echo_n "(cached) " >&6
  9854. else
  9855. ac_check_lib_save_LIBS=$LIBS
  9856. LIBS="-ldld $LIBS"
  9857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9858. /* end confdefs.h. */
  9859. /* Override any GCC internal prototype to avoid an error.
  9860. Use char because int might match the return type of a GCC
  9861. builtin and then its argument prototype would still apply. */
  9862. #ifdef __cplusplus
  9863. extern "C"
  9864. #endif
  9865. char shl_load ();
  9866. int
  9867. main ()
  9868. {
  9869. return shl_load ();
  9870. ;
  9871. return 0;
  9872. }
  9873. _ACEOF
  9874. if ac_fn_c_try_link "$LINENO"; then :
  9875. ac_cv_lib_dld_shl_load=yes
  9876. else
  9877. ac_cv_lib_dld_shl_load=no
  9878. fi
  9879. rm -f core conftest.err conftest.$ac_objext \
  9880. conftest$ac_exeext conftest.$ac_ext
  9881. LIBS=$ac_check_lib_save_LIBS
  9882. fi
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9884. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9885. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9886. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9887. else
  9888. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9889. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9890. lt_cv_dlopen="dlopen"
  9891. else
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9893. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9894. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9895. $as_echo_n "(cached) " >&6
  9896. else
  9897. ac_check_lib_save_LIBS=$LIBS
  9898. LIBS="-ldl $LIBS"
  9899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9900. /* end confdefs.h. */
  9901. /* Override any GCC internal prototype to avoid an error.
  9902. Use char because int might match the return type of a GCC
  9903. builtin and then its argument prototype would still apply. */
  9904. #ifdef __cplusplus
  9905. extern "C"
  9906. #endif
  9907. char dlopen ();
  9908. int
  9909. main ()
  9910. {
  9911. return dlopen ();
  9912. ;
  9913. return 0;
  9914. }
  9915. _ACEOF
  9916. if ac_fn_c_try_link "$LINENO"; then :
  9917. ac_cv_lib_dl_dlopen=yes
  9918. else
  9919. ac_cv_lib_dl_dlopen=no
  9920. fi
  9921. rm -f core conftest.err conftest.$ac_objext \
  9922. conftest$ac_exeext conftest.$ac_ext
  9923. LIBS=$ac_check_lib_save_LIBS
  9924. fi
  9925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9926. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9927. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9928. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9929. else
  9930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9931. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9932. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9933. $as_echo_n "(cached) " >&6
  9934. else
  9935. ac_check_lib_save_LIBS=$LIBS
  9936. LIBS="-lsvld $LIBS"
  9937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9938. /* end confdefs.h. */
  9939. /* Override any GCC internal prototype to avoid an error.
  9940. Use char because int might match the return type of a GCC
  9941. builtin and then its argument prototype would still apply. */
  9942. #ifdef __cplusplus
  9943. extern "C"
  9944. #endif
  9945. char dlopen ();
  9946. int
  9947. main ()
  9948. {
  9949. return dlopen ();
  9950. ;
  9951. return 0;
  9952. }
  9953. _ACEOF
  9954. if ac_fn_c_try_link "$LINENO"; then :
  9955. ac_cv_lib_svld_dlopen=yes
  9956. else
  9957. ac_cv_lib_svld_dlopen=no
  9958. fi
  9959. rm -f core conftest.err conftest.$ac_objext \
  9960. conftest$ac_exeext conftest.$ac_ext
  9961. LIBS=$ac_check_lib_save_LIBS
  9962. fi
  9963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9964. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9965. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9966. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9967. else
  9968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9969. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9970. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9971. $as_echo_n "(cached) " >&6
  9972. else
  9973. ac_check_lib_save_LIBS=$LIBS
  9974. LIBS="-ldld $LIBS"
  9975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9976. /* end confdefs.h. */
  9977. /* Override any GCC internal prototype to avoid an error.
  9978. Use char because int might match the return type of a GCC
  9979. builtin and then its argument prototype would still apply. */
  9980. #ifdef __cplusplus
  9981. extern "C"
  9982. #endif
  9983. char dld_link ();
  9984. int
  9985. main ()
  9986. {
  9987. return dld_link ();
  9988. ;
  9989. return 0;
  9990. }
  9991. _ACEOF
  9992. if ac_fn_c_try_link "$LINENO"; then :
  9993. ac_cv_lib_dld_dld_link=yes
  9994. else
  9995. ac_cv_lib_dld_dld_link=no
  9996. fi
  9997. rm -f core conftest.err conftest.$ac_objext \
  9998. conftest$ac_exeext conftest.$ac_ext
  9999. LIBS=$ac_check_lib_save_LIBS
  10000. fi
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10002. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10003. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10004. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10005. fi
  10006. fi
  10007. fi
  10008. fi
  10009. fi
  10010. fi
  10011. ;;
  10012. esac
  10013. if test "x$lt_cv_dlopen" != xno; then
  10014. enable_dlopen=yes
  10015. else
  10016. enable_dlopen=no
  10017. fi
  10018. case $lt_cv_dlopen in
  10019. dlopen)
  10020. save_CPPFLAGS="$CPPFLAGS"
  10021. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10022. save_LDFLAGS="$LDFLAGS"
  10023. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10024. save_LIBS="$LIBS"
  10025. LIBS="$lt_cv_dlopen_libs $LIBS"
  10026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10027. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10028. if test "${lt_cv_dlopen_self+set}" = set; then :
  10029. $as_echo_n "(cached) " >&6
  10030. else
  10031. if test "$cross_compiling" = yes; then :
  10032. lt_cv_dlopen_self=cross
  10033. else
  10034. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10035. lt_status=$lt_dlunknown
  10036. cat > conftest.$ac_ext <<_LT_EOF
  10037. #line 12323 "configure"
  10038. #include "confdefs.h"
  10039. #if HAVE_DLFCN_H
  10040. #include <dlfcn.h>
  10041. #endif
  10042. #include <stdio.h>
  10043. #ifdef RTLD_GLOBAL
  10044. # define LT_DLGLOBAL RTLD_GLOBAL
  10045. #else
  10046. # ifdef DL_GLOBAL
  10047. # define LT_DLGLOBAL DL_GLOBAL
  10048. # else
  10049. # define LT_DLGLOBAL 0
  10050. # endif
  10051. #endif
  10052. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10053. find out it does not work in some platform. */
  10054. #ifndef LT_DLLAZY_OR_NOW
  10055. # ifdef RTLD_LAZY
  10056. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10057. # else
  10058. # ifdef DL_LAZY
  10059. # define LT_DLLAZY_OR_NOW DL_LAZY
  10060. # else
  10061. # ifdef RTLD_NOW
  10062. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10063. # else
  10064. # ifdef DL_NOW
  10065. # define LT_DLLAZY_OR_NOW DL_NOW
  10066. # else
  10067. # define LT_DLLAZY_OR_NOW 0
  10068. # endif
  10069. # endif
  10070. # endif
  10071. # endif
  10072. #endif
  10073. /* When -fvisbility=hidden is used, assume the code has been annotated
  10074. correspondingly for the symbols needed. */
  10075. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10076. void fnord () __attribute__((visibility("default")));
  10077. #endif
  10078. void fnord () { int i=42; }
  10079. int main ()
  10080. {
  10081. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10082. int status = $lt_dlunknown;
  10083. if (self)
  10084. {
  10085. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10086. else
  10087. {
  10088. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10089. else puts (dlerror ());
  10090. }
  10091. /* dlclose (self); */
  10092. }
  10093. else
  10094. puts (dlerror ());
  10095. return status;
  10096. }
  10097. _LT_EOF
  10098. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10099. (eval $ac_link) 2>&5
  10100. ac_status=$?
  10101. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10102. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10103. (./conftest; exit; ) >&5 2>/dev/null
  10104. lt_status=$?
  10105. case x$lt_status in
  10106. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10107. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10108. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10109. esac
  10110. else :
  10111. # compilation failed
  10112. lt_cv_dlopen_self=no
  10113. fi
  10114. fi
  10115. rm -fr conftest*
  10116. fi
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10118. $as_echo "$lt_cv_dlopen_self" >&6; }
  10119. if test "x$lt_cv_dlopen_self" = xyes; then
  10120. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10122. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10123. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10124. $as_echo_n "(cached) " >&6
  10125. else
  10126. if test "$cross_compiling" = yes; then :
  10127. lt_cv_dlopen_self_static=cross
  10128. else
  10129. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10130. lt_status=$lt_dlunknown
  10131. cat > conftest.$ac_ext <<_LT_EOF
  10132. #line 12429 "configure"
  10133. #include "confdefs.h"
  10134. #if HAVE_DLFCN_H
  10135. #include <dlfcn.h>
  10136. #endif
  10137. #include <stdio.h>
  10138. #ifdef RTLD_GLOBAL
  10139. # define LT_DLGLOBAL RTLD_GLOBAL
  10140. #else
  10141. # ifdef DL_GLOBAL
  10142. # define LT_DLGLOBAL DL_GLOBAL
  10143. # else
  10144. # define LT_DLGLOBAL 0
  10145. # endif
  10146. #endif
  10147. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10148. find out it does not work in some platform. */
  10149. #ifndef LT_DLLAZY_OR_NOW
  10150. # ifdef RTLD_LAZY
  10151. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10152. # else
  10153. # ifdef DL_LAZY
  10154. # define LT_DLLAZY_OR_NOW DL_LAZY
  10155. # else
  10156. # ifdef RTLD_NOW
  10157. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10158. # else
  10159. # ifdef DL_NOW
  10160. # define LT_DLLAZY_OR_NOW DL_NOW
  10161. # else
  10162. # define LT_DLLAZY_OR_NOW 0
  10163. # endif
  10164. # endif
  10165. # endif
  10166. # endif
  10167. #endif
  10168. /* When -fvisbility=hidden is used, assume the code has been annotated
  10169. correspondingly for the symbols needed. */
  10170. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10171. void fnord () __attribute__((visibility("default")));
  10172. #endif
  10173. void fnord () { int i=42; }
  10174. int main ()
  10175. {
  10176. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10177. int status = $lt_dlunknown;
  10178. if (self)
  10179. {
  10180. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10181. else
  10182. {
  10183. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10184. else puts (dlerror ());
  10185. }
  10186. /* dlclose (self); */
  10187. }
  10188. else
  10189. puts (dlerror ());
  10190. return status;
  10191. }
  10192. _LT_EOF
  10193. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10194. (eval $ac_link) 2>&5
  10195. ac_status=$?
  10196. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10197. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10198. (./conftest; exit; ) >&5 2>/dev/null
  10199. lt_status=$?
  10200. case x$lt_status in
  10201. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10202. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10203. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10204. esac
  10205. else :
  10206. # compilation failed
  10207. lt_cv_dlopen_self_static=no
  10208. fi
  10209. fi
  10210. rm -fr conftest*
  10211. fi
  10212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10213. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10214. fi
  10215. CPPFLAGS="$save_CPPFLAGS"
  10216. LDFLAGS="$save_LDFLAGS"
  10217. LIBS="$save_LIBS"
  10218. ;;
  10219. esac
  10220. case $lt_cv_dlopen_self in
  10221. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10222. *) enable_dlopen_self=unknown ;;
  10223. esac
  10224. case $lt_cv_dlopen_self_static in
  10225. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10226. *) enable_dlopen_self_static=unknown ;;
  10227. esac
  10228. fi
  10229. striplib=
  10230. old_striplib=
  10231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10232. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10233. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10234. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10235. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10237. $as_echo "yes" >&6; }
  10238. else
  10239. # FIXME - insert some real tests, host_os isn't really good enough
  10240. case $host_os in
  10241. darwin*)
  10242. if test -n "$STRIP" ; then
  10243. striplib="$STRIP -x"
  10244. old_striplib="$STRIP -S"
  10245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10246. $as_echo "yes" >&6; }
  10247. else
  10248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10249. $as_echo "no" >&6; }
  10250. fi
  10251. ;;
  10252. *)
  10253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10254. $as_echo "no" >&6; }
  10255. ;;
  10256. esac
  10257. fi
  10258. # Report which library types will actually be built
  10259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10260. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10262. $as_echo "$can_build_shared" >&6; }
  10263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10264. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10265. test "$can_build_shared" = "no" && enable_shared=no
  10266. # On AIX, shared libraries and static libraries use the same namespace, and
  10267. # are all built from PIC.
  10268. case $host_os in
  10269. aix3*)
  10270. test "$enable_shared" = yes && enable_static=no
  10271. if test -n "$RANLIB"; then
  10272. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10273. postinstall_cmds='$RANLIB $lib'
  10274. fi
  10275. ;;
  10276. aix[4-9]*)
  10277. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10278. test "$enable_shared" = yes && enable_static=no
  10279. fi
  10280. ;;
  10281. esac
  10282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10283. $as_echo "$enable_shared" >&6; }
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10285. $as_echo_n "checking whether to build static libraries... " >&6; }
  10286. # Make sure either enable_shared or enable_static is yes.
  10287. test "$enable_shared" = yes || enable_static=yes
  10288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10289. $as_echo "$enable_static" >&6; }
  10290. fi
  10291. ac_ext=c
  10292. ac_cpp='$CPP $CPPFLAGS'
  10293. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10294. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10295. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10296. CC="$lt_save_CC"
  10297. ac_config_commands="$ac_config_commands libtool"
  10298. # Only expand once:
  10299. . ${srcdir}/../../bfd/configure.host
  10300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10301. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10302. # Check whether --enable-maintainer-mode was given.
  10303. if test "${enable_maintainer_mode+set}" = set; then :
  10304. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10305. else
  10306. USE_MAINTAINER_MODE=no
  10307. fi
  10308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10309. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10310. if test $USE_MAINTAINER_MODE = yes; then
  10311. MAINTAINER_MODE_TRUE=
  10312. MAINTAINER_MODE_FALSE='#'
  10313. else
  10314. MAINTAINER_MODE_TRUE='#'
  10315. MAINTAINER_MODE_FALSE=
  10316. fi
  10317. MAINT=$MAINTAINER_MODE_TRUE
  10318. # Check whether --enable-sim-bswap was given.
  10319. if test "${enable_sim_bswap+set}" = set; then :
  10320. enableval=$enable_sim_bswap; case "${enableval}" in
  10321. yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
  10322. no) sim_bswap="-DWITH_BSWAP=0";;
  10323. *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
  10324. esac
  10325. if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
  10326. echo "Setting bswap flags = $sim_bswap" 6>&1
  10327. fi
  10328. else
  10329. sim_bswap=""
  10330. fi
  10331. # Check whether --enable-sim-cflags was given.
  10332. if test "${enable_sim_cflags+set}" = set; then :
  10333. enableval=$enable_sim_cflags; case "${enableval}" in
  10334. yes) sim_cflags="-O2 -fomit-frame-pointer";;
  10335. trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
  10336. no) sim_cflags="";;
  10337. *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10338. esac
  10339. if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
  10340. echo "Setting sim cflags = $sim_cflags" 6>&1
  10341. fi
  10342. else
  10343. sim_cflags=""
  10344. fi
  10345. # Check whether --enable-sim-debug was given.
  10346. if test "${enable_sim_debug+set}" = set; then :
  10347. enableval=$enable_sim_debug; case "${enableval}" in
  10348. yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
  10349. no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
  10350. *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
  10351. esac
  10352. if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
  10353. echo "Setting sim debug = $sim_debug" 6>&1
  10354. fi
  10355. else
  10356. sim_debug=""
  10357. fi
  10358. # Check whether --enable-sim-stdio was given.
  10359. if test "${enable_sim_stdio+set}" = set; then :
  10360. enableval=$enable_sim_stdio; case "${enableval}" in
  10361. yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
  10362. no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
  10363. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
  10364. esac
  10365. if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
  10366. echo "Setting stdio flags = $sim_stdio" 6>&1
  10367. fi
  10368. else
  10369. sim_stdio=""
  10370. fi
  10371. # Check whether --enable-sim-trace was given.
  10372. if test "${enable_sim_trace+set}" = set; then :
  10373. enableval=$enable_sim_trace; case "${enableval}" in
  10374. yes) sim_trace="-DWITH_TRACE=-1";;
  10375. no) sim_trace="-DWITH_TRACE=0";;
  10376. [-0-9]*)
  10377. sim_trace="-DWITH_TRACE='(${enableval})'";;
  10378. [[:lower:]]*)
  10379. sim_trace=""
  10380. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10381. if test x"$sim_trace" = x; then
  10382. sim_trace="-DWITH_TRACE='(TRACE_$x"
  10383. else
  10384. sim_trace="${sim_trace}|TRACE_$x"
  10385. fi
  10386. done
  10387. sim_trace="$sim_trace)'" ;;
  10388. esac
  10389. if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
  10390. echo "Setting sim trace = $sim_trace" 6>&1
  10391. fi
  10392. else
  10393. sim_trace=""
  10394. fi
  10395. # Check whether --enable-sim-profile was given.
  10396. if test "${enable_sim_profile+set}" = set; then :
  10397. enableval=$enable_sim_profile; case "${enableval}" in
  10398. yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
  10399. no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
  10400. [-0-9]*)
  10401. sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
  10402. [a-z]*)
  10403. sim_profile=""
  10404. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10405. if test x"$sim_profile" = x; then
  10406. sim_profile="-DWITH_PROFILE='(PROFILE_$x"
  10407. else
  10408. sim_profile="${sim_profile}|PROFILE_$x"
  10409. fi
  10410. done
  10411. sim_profile="$sim_profile)'" ;;
  10412. esac
  10413. if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
  10414. echo "Setting sim profile = $sim_profile" 6>&1
  10415. fi
  10416. else
  10417. sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
  10418. fi
  10419. # Check whether --with-pkgversion was given.
  10420. if test "${with_pkgversion+set}" = set; then :
  10421. withval=$with_pkgversion; case "$withval" in
  10422. yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
  10423. no) PKGVERSION= ;;
  10424. *) PKGVERSION="($withval) " ;;
  10425. esac
  10426. else
  10427. PKGVERSION="(SIM) "
  10428. fi
  10429. # Check whether --with-bugurl was given.
  10430. if test "${with_bugurl+set}" = set; then :
  10431. withval=$with_bugurl; case "$withval" in
  10432. yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
  10433. no) BUGURL=
  10434. ;;
  10435. *) BUGURL="$withval"
  10436. ;;
  10437. esac
  10438. else
  10439. BUGURL="http://www.gnu.org/software/gdb/bugs/"
  10440. fi
  10441. case ${BUGURL} in
  10442. "")
  10443. REPORT_BUGS_TO=
  10444. REPORT_BUGS_TEXI=
  10445. ;;
  10446. *)
  10447. REPORT_BUGS_TO="<$BUGURL>"
  10448. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  10449. ;;
  10450. esac;
  10451. cat >>confdefs.h <<_ACEOF
  10452. #define PKGVERSION "$PKGVERSION"
  10453. _ACEOF
  10454. cat >>confdefs.h <<_ACEOF
  10455. #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
  10456. _ACEOF
  10457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  10458. $as_echo_n "checking return type of signal handlers... " >&6; }
  10459. if test "${ac_cv_type_signal+set}" = set; then :
  10460. $as_echo_n "(cached) " >&6
  10461. else
  10462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10463. /* end confdefs.h. */
  10464. #include <sys/types.h>
  10465. #include <signal.h>
  10466. int
  10467. main ()
  10468. {
  10469. return *(signal (0, 0)) (0) == 1;
  10470. ;
  10471. return 0;
  10472. }
  10473. _ACEOF
  10474. if ac_fn_c_try_compile "$LINENO"; then :
  10475. ac_cv_type_signal=int
  10476. else
  10477. ac_cv_type_signal=void
  10478. fi
  10479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10480. fi
  10481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  10482. $as_echo "$ac_cv_type_signal" >&6; }
  10483. cat >>confdefs.h <<_ACEOF
  10484. #define RETSIGTYPE $ac_cv_type_signal
  10485. _ACEOF
  10486. sim_link_files=
  10487. sim_link_links=
  10488. # targ-vals.def points to the libc macro description file.
  10489. case "${target}" in
  10490. *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
  10491. esac
  10492. sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
  10493. sim_link_links="${sim_link_links} targ-vals.def"
  10494. wire_endian="BIG_ENDIAN"
  10495. default_endian=""
  10496. # Check whether --enable-sim-endian was given.
  10497. if test "${enable_sim_endian+set}" = set; then :
  10498. enableval=$enable_sim_endian; case "${enableval}" in
  10499. b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
  10500. l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
  10501. yes) if test x"$wire_endian" != x; then
  10502. sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
  10503. else
  10504. if test x"$default_endian" != x; then
  10505. sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
  10506. else
  10507. echo "No hard-wired endian for target $target" 1>&6
  10508. sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
  10509. fi
  10510. fi;;
  10511. no) if test x"$default_endian" != x; then
  10512. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
  10513. else
  10514. if test x"$wire_endian" != x; then
  10515. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
  10516. else
  10517. echo "No default endian for target $target" 1>&6
  10518. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
  10519. fi
  10520. fi;;
  10521. *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
  10522. esac
  10523. if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
  10524. echo "Setting endian flags = $sim_endian" 6>&1
  10525. fi
  10526. else
  10527. if test x"$default_endian" != x; then
  10528. sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
  10529. else
  10530. if test x"$wire_endian" != x; then
  10531. sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
  10532. else
  10533. sim_endian=
  10534. fi
  10535. fi
  10536. fi
  10537. wire_alignment="STRICT_ALIGNMENT"
  10538. default_alignment="STRICT_ALIGNMENT"
  10539. # Check whether --enable-sim-alignment was given.
  10540. if test "${enable_sim_alignment+set}" = set; then :
  10541. enableval=$enable_sim_alignment; case "${enableval}" in
  10542. strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
  10543. nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
  10544. forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
  10545. yes) if test x"$wire_alignment" != x; then
  10546. sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
  10547. else
  10548. if test x"$default_alignment" != x; then
  10549. sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
  10550. else
  10551. echo "No hard-wired alignment for target $target" 1>&6
  10552. sim_alignment="-DWITH_ALIGNMENT=0"
  10553. fi
  10554. fi;;
  10555. no) if test x"$default_alignment" != x; then
  10556. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
  10557. else
  10558. if test x"$wire_alignment" != x; then
  10559. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
  10560. else
  10561. echo "No default alignment for target $target" 1>&6
  10562. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
  10563. fi
  10564. fi;;
  10565. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
  10566. esac
  10567. if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
  10568. echo "Setting alignment flags = $sim_alignment" 6>&1
  10569. fi
  10570. else
  10571. if test x"$default_alignment" != x; then
  10572. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
  10573. else
  10574. if test x"$wire_alignment" != x; then
  10575. sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
  10576. else
  10577. sim_alignment=
  10578. fi
  10579. fi
  10580. fi
  10581. # Check whether --enable-sim-hostendian was given.
  10582. if test "${enable_sim_hostendian+set}" = set; then :
  10583. enableval=$enable_sim_hostendian; case "${enableval}" in
  10584. no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
  10585. b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
  10586. l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
  10587. *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
  10588. esac
  10589. if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
  10590. echo "Setting hostendian flags = $sim_hostendian" 6>&1
  10591. fi
  10592. else
  10593. if test "x$cross_compiling" = "xno"; then
  10594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  10595. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  10596. if test "${ac_cv_c_bigendian+set}" = set; then :
  10597. $as_echo_n "(cached) " >&6
  10598. else
  10599. ac_cv_c_bigendian=unknown
  10600. # See if we're dealing with a universal compiler.
  10601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10602. /* end confdefs.h. */
  10603. #ifndef __APPLE_CC__
  10604. not a universal capable compiler
  10605. #endif
  10606. typedef int dummy;
  10607. _ACEOF
  10608. if ac_fn_c_try_compile "$LINENO"; then :
  10609. # Check for potential -arch flags. It is not universal unless
  10610. # there are at least two -arch flags with different values.
  10611. ac_arch=
  10612. ac_prev=
  10613. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  10614. if test -n "$ac_prev"; then
  10615. case $ac_word in
  10616. i?86 | x86_64 | ppc | ppc64)
  10617. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  10618. ac_arch=$ac_word
  10619. else
  10620. ac_cv_c_bigendian=universal
  10621. break
  10622. fi
  10623. ;;
  10624. esac
  10625. ac_prev=
  10626. elif test "x$ac_word" = "x-arch"; then
  10627. ac_prev=arch
  10628. fi
  10629. done
  10630. fi
  10631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10632. if test $ac_cv_c_bigendian = unknown; then
  10633. # See if sys/param.h defines the BYTE_ORDER macro.
  10634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10635. /* end confdefs.h. */
  10636. #include <sys/types.h>
  10637. #include <sys/param.h>
  10638. int
  10639. main ()
  10640. {
  10641. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  10642. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  10643. && LITTLE_ENDIAN)
  10644. bogus endian macros
  10645. #endif
  10646. ;
  10647. return 0;
  10648. }
  10649. _ACEOF
  10650. if ac_fn_c_try_compile "$LINENO"; then :
  10651. # It does; now see whether it defined to BIG_ENDIAN or not.
  10652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10653. /* end confdefs.h. */
  10654. #include <sys/types.h>
  10655. #include <sys/param.h>
  10656. int
  10657. main ()
  10658. {
  10659. #if BYTE_ORDER != BIG_ENDIAN
  10660. not big endian
  10661. #endif
  10662. ;
  10663. return 0;
  10664. }
  10665. _ACEOF
  10666. if ac_fn_c_try_compile "$LINENO"; then :
  10667. ac_cv_c_bigendian=yes
  10668. else
  10669. ac_cv_c_bigendian=no
  10670. fi
  10671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10672. fi
  10673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10674. fi
  10675. if test $ac_cv_c_bigendian = unknown; then
  10676. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  10677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10678. /* end confdefs.h. */
  10679. #include <limits.h>
  10680. int
  10681. main ()
  10682. {
  10683. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  10684. bogus endian macros
  10685. #endif
  10686. ;
  10687. return 0;
  10688. }
  10689. _ACEOF
  10690. if ac_fn_c_try_compile "$LINENO"; then :
  10691. # It does; now see whether it defined to _BIG_ENDIAN or not.
  10692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10693. /* end confdefs.h. */
  10694. #include <limits.h>
  10695. int
  10696. main ()
  10697. {
  10698. #ifndef _BIG_ENDIAN
  10699. not big endian
  10700. #endif
  10701. ;
  10702. return 0;
  10703. }
  10704. _ACEOF
  10705. if ac_fn_c_try_compile "$LINENO"; then :
  10706. ac_cv_c_bigendian=yes
  10707. else
  10708. ac_cv_c_bigendian=no
  10709. fi
  10710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10711. fi
  10712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10713. fi
  10714. if test $ac_cv_c_bigendian = unknown; then
  10715. # Compile a test program.
  10716. if test "$cross_compiling" = yes; then :
  10717. # Try to guess by grepping values from an object file.
  10718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10719. /* end confdefs.h. */
  10720. short int ascii_mm[] =
  10721. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  10722. short int ascii_ii[] =
  10723. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  10724. int use_ascii (int i) {
  10725. return ascii_mm[i] + ascii_ii[i];
  10726. }
  10727. short int ebcdic_ii[] =
  10728. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  10729. short int ebcdic_mm[] =
  10730. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  10731. int use_ebcdic (int i) {
  10732. return ebcdic_mm[i] + ebcdic_ii[i];
  10733. }
  10734. extern int foo;
  10735. int
  10736. main ()
  10737. {
  10738. return use_ascii (foo) == use_ebcdic (foo);
  10739. ;
  10740. return 0;
  10741. }
  10742. _ACEOF
  10743. if ac_fn_c_try_compile "$LINENO"; then :
  10744. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  10745. ac_cv_c_bigendian=yes
  10746. fi
  10747. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  10748. if test "$ac_cv_c_bigendian" = unknown; then
  10749. ac_cv_c_bigendian=no
  10750. else
  10751. # finding both strings is unlikely to happen, but who knows?
  10752. ac_cv_c_bigendian=unknown
  10753. fi
  10754. fi
  10755. fi
  10756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10757. else
  10758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10759. /* end confdefs.h. */
  10760. $ac_includes_default
  10761. int
  10762. main ()
  10763. {
  10764. /* Are we little or big endian? From Harbison&Steele. */
  10765. union
  10766. {
  10767. long int l;
  10768. char c[sizeof (long int)];
  10769. } u;
  10770. u.l = 1;
  10771. return u.c[sizeof (long int) - 1] == 1;
  10772. ;
  10773. return 0;
  10774. }
  10775. _ACEOF
  10776. if ac_fn_c_try_run "$LINENO"; then :
  10777. ac_cv_c_bigendian=no
  10778. else
  10779. ac_cv_c_bigendian=yes
  10780. fi
  10781. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10782. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10783. fi
  10784. fi
  10785. fi
  10786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  10787. $as_echo "$ac_cv_c_bigendian" >&6; }
  10788. case $ac_cv_c_bigendian in #(
  10789. yes)
  10790. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  10791. ;; #(
  10792. no)
  10793. ;; #(
  10794. universal)
  10795. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  10796. ;; #(
  10797. *)
  10798. as_fn_error "unknown endianness
  10799. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  10800. esac
  10801. if test $ac_cv_c_bigendian = yes; then
  10802. sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
  10803. else
  10804. sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
  10805. fi
  10806. else
  10807. sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
  10808. fi
  10809. fi
  10810. default_sim_scache="16384"
  10811. # Check whether --enable-sim-scache was given.
  10812. if test "${enable_sim_scache+set}" = set; then :
  10813. enableval=$enable_sim_scache; case "${enableval}" in
  10814. yes) sim_scache="-DWITH_SCACHE=${default_sim_scache}";;
  10815. no) sim_scache="-DWITH_SCACHE=0" ;;
  10816. [0-9]*) sim_scache="-DWITH_SCACHE=${enableval}";;
  10817. *) as_fn_error "\"Bad value $enableval passed to --enable-sim-scache\"" "$LINENO" 5;
  10818. sim_scache="";;
  10819. esac
  10820. if test x"$silent" != x"yes" && test x"$sim_scache" != x""; then
  10821. echo "Setting scache size = $sim_scache" 6>&1
  10822. fi
  10823. else
  10824. sim_scache="-DWITH_SCACHE=${default_sim_scache}"
  10825. fi
  10826. default_sim_default_model="lm32"
  10827. # Check whether --enable-sim-default-model was given.
  10828. if test "${enable_sim_default_model+set}" = set; then :
  10829. enableval=$enable_sim_default_model; case "${enableval}" in
  10830. yes|no) as_fn_error "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;;
  10831. *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";;
  10832. esac
  10833. if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
  10834. echo "Setting default model = $sim_default_model" 6>&1
  10835. fi
  10836. else
  10837. sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'"
  10838. fi
  10839. # Check whether --enable-sim-environment was given.
  10840. if test "${enable_sim_environment+set}" = set; then :
  10841. enableval=$enable_sim_environment; case "${enableval}" in
  10842. all | ALL) sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT";;
  10843. user | USER) sim_environment="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";;
  10844. virtual | VIRTUAL) sim_environment="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";;
  10845. operating | OPERATING) sim_environment="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";;
  10846. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-environment\"" "$LINENO" 5;
  10847. sim_environment="";;
  10848. esac
  10849. if test x"$silent" != x"yes" && test x"$sim_environment" != x""; then
  10850. echo "Setting sim environment = $sim_environment" 6>&1
  10851. fi
  10852. else
  10853. sim_environment="-DWITH_ENVIRONMENT=ALL_ENVIRONMENT"
  10854. fi
  10855. cgen_maint=no
  10856. cgen=guile
  10857. cgendir='$(srcdir)/../../cgen'
  10858. # Check whether --enable-cgen-maint was given.
  10859. if test "${enable_cgen_maint+set}" = set; then :
  10860. enableval=$enable_cgen_maint; case "${enableval}" in
  10861. yes) cgen_maint=yes ;;
  10862. no) cgen_maint=no ;;
  10863. *)
  10864. # argument is cgen install directory (not implemented yet).
  10865. # Having a `share' directory might be more appropriate for the .scm,
  10866. # .cpu, etc. files.
  10867. cgendir=${cgen_maint}/lib/cgen
  10868. cgen=guile
  10869. ;;
  10870. esac
  10871. fi
  10872. if test x${cgen_maint} != xno ; then
  10873. CGEN_MAINT=''
  10874. else
  10875. CGEN_MAINT='#'
  10876. fi
  10877. if test ""; then
  10878. hardware=""
  10879. else
  10880. hardware="cfi core pal glue"
  10881. fi
  10882. hardware="$hardware lm32cpu lm32timer lm32uart"
  10883. sim_hw_cflags="-DWITH_HW=1"
  10884. sim_hw="$hardware"
  10885. sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
  10886. # Check whether --enable-sim-hardware was given.
  10887. if test "${enable_sim_hardware+set}" = set; then :
  10888. enableval=$enable_sim_hardware;
  10889. else
  10890. enable_sim_hardware="yes"
  10891. fi
  10892. case ${enable_sim_hardware} in
  10893. yes|no) ;;
  10894. ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
  10895. *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
  10896. *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
  10897. esac
  10898. if test "$enable_sim_hardware" = no; then
  10899. sim_hw_objs=
  10900. sim_hw_cflags="-DWITH_HW=0"
  10901. sim_hw=
  10902. else
  10903. sim_hw_cflags="-DWITH_HW=1"
  10904. # remove duplicates
  10905. sim_hw=""
  10906. sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
  10907. for i in $hardware ; do
  10908. case " $sim_hw " in
  10909. *" $i "*) ;;
  10910. *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
  10911. esac
  10912. done
  10913. # mingw does not support sockser
  10914. case ${host} in
  10915. *mingw*) ;;
  10916. *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
  10917. # that you instatiate. Instead, other code will call into it directly.
  10918. # At some point, we should convert it over.
  10919. sim_hw_objs="$sim_hw_objs dv-sockser.o"
  10920. cat >>confdefs.h <<_ACEOF
  10921. #define HAVE_DV_SOCKSER 1
  10922. _ACEOF
  10923. ;;
  10924. esac
  10925. if test x"$silent" != x"yes"; then
  10926. echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
  10927. fi
  10928. case " $hardware " in
  10929. *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
  10930. $as_echo_n "checking for log2 in -lm... " >&6; }
  10931. if test "${ac_cv_lib_m_log2+set}" = set; then :
  10932. $as_echo_n "(cached) " >&6
  10933. else
  10934. ac_check_lib_save_LIBS=$LIBS
  10935. LIBS="-lm $LIBS"
  10936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10937. /* end confdefs.h. */
  10938. /* Override any GCC internal prototype to avoid an error.
  10939. Use char because int might match the return type of a GCC
  10940. builtin and then its argument prototype would still apply. */
  10941. #ifdef __cplusplus
  10942. extern "C"
  10943. #endif
  10944. char log2 ();
  10945. int
  10946. main ()
  10947. {
  10948. return log2 ();
  10949. ;
  10950. return 0;
  10951. }
  10952. _ACEOF
  10953. if ac_fn_c_try_link "$LINENO"; then :
  10954. ac_cv_lib_m_log2=yes
  10955. else
  10956. ac_cv_lib_m_log2=no
  10957. fi
  10958. rm -f core conftest.err conftest.$ac_objext \
  10959. conftest$ac_exeext conftest.$ac_ext
  10960. LIBS=$ac_check_lib_save_LIBS
  10961. fi
  10962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
  10963. $as_echo "$ac_cv_lib_m_log2" >&6; }
  10964. if test "x$ac_cv_lib_m_log2" = x""yes; then :
  10965. cat >>confdefs.h <<_ACEOF
  10966. #define HAVE_LIBM 1
  10967. _ACEOF
  10968. LIBS="-lm $LIBS"
  10969. fi
  10970. ;;
  10971. esac
  10972. fi
  10973. ac_sources="$sim_link_files"
  10974. ac_dests="$sim_link_links"
  10975. while test -n "$ac_sources"; do
  10976. set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  10977. set $ac_sources; ac_source=$1; shift; ac_sources=$*
  10978. ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
  10979. done
  10980. ac_config_links="$ac_config_links $ac_config_links_1"
  10981. cgen_breaks=""
  10982. if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
  10983. cgen_breaks="break cgen_rtx_error";
  10984. fi
  10985. ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
  10986. ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
  10987. ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
  10988. ac_config_commands="$ac_config_commands Makefile"
  10989. ac_config_commands="$ac_config_commands stamp-h"
  10990. cat >confcache <<\_ACEOF
  10991. # This file is a shell script that caches the results of configure
  10992. # tests run on this system so they can be shared between configure
  10993. # scripts and configure runs, see configure's option --config-cache.
  10994. # It is not useful on other systems. If it contains results you don't
  10995. # want to keep, you may remove or edit it.
  10996. #
  10997. # config.status only pays attention to the cache file if you give it
  10998. # the --recheck option to rerun configure.
  10999. #
  11000. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11001. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11002. # following values.
  11003. _ACEOF
  11004. # The following way of writing the cache mishandles newlines in values,
  11005. # but we know of no workaround that is simple, portable, and efficient.
  11006. # So, we kill variables containing newlines.
  11007. # Ultrix sh set writes to stderr and can't be redirected directly,
  11008. # and sets the high bit in the cache file unless we assign to the vars.
  11009. (
  11010. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11011. eval ac_val=\$$ac_var
  11012. case $ac_val in #(
  11013. *${as_nl}*)
  11014. case $ac_var in #(
  11015. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11016. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11017. esac
  11018. case $ac_var in #(
  11019. _ | IFS | as_nl) ;; #(
  11020. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11021. *) { eval $ac_var=; unset $ac_var;} ;;
  11022. esac ;;
  11023. esac
  11024. done
  11025. (set) 2>&1 |
  11026. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11027. *${as_nl}ac_space=\ *)
  11028. # `set' does not quote correctly, so add quotes: double-quote
  11029. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11030. sed -n \
  11031. "s/'/'\\\\''/g;
  11032. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11033. ;; #(
  11034. *)
  11035. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11036. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11037. ;;
  11038. esac |
  11039. sort
  11040. ) |
  11041. sed '
  11042. /^ac_cv_env_/b end
  11043. t clear
  11044. :clear
  11045. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11046. t end
  11047. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11048. :end' >>confcache
  11049. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11050. if test -w "$cache_file"; then
  11051. test "x$cache_file" != "x/dev/null" &&
  11052. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11053. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11054. cat confcache >$cache_file
  11055. else
  11056. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11057. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11058. fi
  11059. fi
  11060. rm -f confcache
  11061. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11062. # Let make expand exec_prefix.
  11063. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11064. DEFS=-DHAVE_CONFIG_H
  11065. ac_libobjs=
  11066. ac_ltlibobjs=
  11067. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11068. # 1. Remove the extension, and $U if already installed.
  11069. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11070. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11071. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11072. # will be set to the directory where LIBOBJS objects are built.
  11073. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11074. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11075. done
  11076. LIBOBJS=$ac_libobjs
  11077. LTLIBOBJS=$ac_ltlibobjs
  11078. if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
  11079. as_fn_error "conditional \"GMAKE\" was never defined.
  11080. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11081. fi
  11082. if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
  11083. as_fn_error "conditional \"PLUGINS\" was never defined.
  11084. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11085. fi
  11086. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11087. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  11088. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11089. fi
  11090. : ${CONFIG_STATUS=./config.status}
  11091. ac_write_fail=0
  11092. ac_clean_files_save=$ac_clean_files
  11093. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11094. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11095. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11096. as_write_fail=0
  11097. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11098. #! $SHELL
  11099. # Generated by $as_me.
  11100. # Run this file to recreate the current configuration.
  11101. # Compiler output produced by configure, useful for debugging
  11102. # configure, is in config.log if it exists.
  11103. debug=false
  11104. ac_cs_recheck=false
  11105. ac_cs_silent=false
  11106. SHELL=\${CONFIG_SHELL-$SHELL}
  11107. export SHELL
  11108. _ASEOF
  11109. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11110. ## -------------------- ##
  11111. ## M4sh Initialization. ##
  11112. ## -------------------- ##
  11113. # Be more Bourne compatible
  11114. DUALCASE=1; export DUALCASE # for MKS sh
  11115. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11116. emulate sh
  11117. NULLCMD=:
  11118. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11119. # is contrary to our usage. Disable this feature.
  11120. alias -g '${1+"$@"}'='"$@"'
  11121. setopt NO_GLOB_SUBST
  11122. else
  11123. case `(set -o) 2>/dev/null` in #(
  11124. *posix*) :
  11125. set -o posix ;; #(
  11126. *) :
  11127. ;;
  11128. esac
  11129. fi
  11130. as_nl='
  11131. '
  11132. export as_nl
  11133. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11134. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11135. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11136. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11137. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11138. # but without wasting forks for bash or zsh.
  11139. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11140. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11141. as_echo='print -r --'
  11142. as_echo_n='print -rn --'
  11143. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11144. as_echo='printf %s\n'
  11145. as_echo_n='printf %s'
  11146. else
  11147. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11148. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11149. as_echo_n='/usr/ucb/echo -n'
  11150. else
  11151. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11152. as_echo_n_body='eval
  11153. arg=$1;
  11154. case $arg in #(
  11155. *"$as_nl"*)
  11156. expr "X$arg" : "X\\(.*\\)$as_nl";
  11157. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11158. esac;
  11159. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11160. '
  11161. export as_echo_n_body
  11162. as_echo_n='sh -c $as_echo_n_body as_echo'
  11163. fi
  11164. export as_echo_body
  11165. as_echo='sh -c $as_echo_body as_echo'
  11166. fi
  11167. # The user is always right.
  11168. if test "${PATH_SEPARATOR+set}" != set; then
  11169. PATH_SEPARATOR=:
  11170. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11171. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11172. PATH_SEPARATOR=';'
  11173. }
  11174. fi
  11175. # IFS
  11176. # We need space, tab and new line, in precisely that order. Quoting is
  11177. # there to prevent editors from complaining about space-tab.
  11178. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11179. # splitting by setting IFS to empty value.)
  11180. IFS=" "" $as_nl"
  11181. # Find who we are. Look in the path if we contain no directory separator.
  11182. case $0 in #((
  11183. *[\\/]* ) as_myself=$0 ;;
  11184. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11185. for as_dir in $PATH
  11186. do
  11187. IFS=$as_save_IFS
  11188. test -z "$as_dir" && as_dir=.
  11189. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11190. done
  11191. IFS=$as_save_IFS
  11192. ;;
  11193. esac
  11194. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11195. # in which case we are not to be found in the path.
  11196. if test "x$as_myself" = x; then
  11197. as_myself=$0
  11198. fi
  11199. if test ! -f "$as_myself"; then
  11200. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11201. exit 1
  11202. fi
  11203. # Unset variables that we do not need and which cause bugs (e.g. in
  11204. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11205. # suppresses any "Segmentation fault" message there. '((' could
  11206. # trigger a bug in pdksh 5.2.14.
  11207. for as_var in BASH_ENV ENV MAIL MAILPATH
  11208. do eval test x\${$as_var+set} = xset \
  11209. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11210. done
  11211. PS1='$ '
  11212. PS2='> '
  11213. PS4='+ '
  11214. # NLS nuisances.
  11215. LC_ALL=C
  11216. export LC_ALL
  11217. LANGUAGE=C
  11218. export LANGUAGE
  11219. # CDPATH.
  11220. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11221. # as_fn_error ERROR [LINENO LOG_FD]
  11222. # ---------------------------------
  11223. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11224. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11225. # script with status $?, using 1 if that was 0.
  11226. as_fn_error ()
  11227. {
  11228. as_status=$?; test $as_status -eq 0 && as_status=1
  11229. if test "$3"; then
  11230. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11231. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  11232. fi
  11233. $as_echo "$as_me: error: $1" >&2
  11234. as_fn_exit $as_status
  11235. } # as_fn_error
  11236. # as_fn_set_status STATUS
  11237. # -----------------------
  11238. # Set $? to STATUS, without forking.
  11239. as_fn_set_status ()
  11240. {
  11241. return $1
  11242. } # as_fn_set_status
  11243. # as_fn_exit STATUS
  11244. # -----------------
  11245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11246. as_fn_exit ()
  11247. {
  11248. set +e
  11249. as_fn_set_status $1
  11250. exit $1
  11251. } # as_fn_exit
  11252. # as_fn_unset VAR
  11253. # ---------------
  11254. # Portably unset VAR.
  11255. as_fn_unset ()
  11256. {
  11257. { eval $1=; unset $1;}
  11258. }
  11259. as_unset=as_fn_unset
  11260. # as_fn_append VAR VALUE
  11261. # ----------------------
  11262. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11263. # advantage of any shell optimizations that allow amortized linear growth over
  11264. # repeated appends, instead of the typical quadratic growth present in naive
  11265. # implementations.
  11266. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11267. eval 'as_fn_append ()
  11268. {
  11269. eval $1+=\$2
  11270. }'
  11271. else
  11272. as_fn_append ()
  11273. {
  11274. eval $1=\$$1\$2
  11275. }
  11276. fi # as_fn_append
  11277. # as_fn_arith ARG...
  11278. # ------------------
  11279. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11280. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11281. # must be portable across $(()) and expr.
  11282. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11283. eval 'as_fn_arith ()
  11284. {
  11285. as_val=$(( $* ))
  11286. }'
  11287. else
  11288. as_fn_arith ()
  11289. {
  11290. as_val=`expr "$@" || test $? -eq 1`
  11291. }
  11292. fi # as_fn_arith
  11293. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11294. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11295. as_expr=expr
  11296. else
  11297. as_expr=false
  11298. fi
  11299. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11300. as_basename=basename
  11301. else
  11302. as_basename=false
  11303. fi
  11304. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11305. as_dirname=dirname
  11306. else
  11307. as_dirname=false
  11308. fi
  11309. as_me=`$as_basename -- "$0" ||
  11310. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11311. X"$0" : 'X\(//\)$' \| \
  11312. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11313. $as_echo X/"$0" |
  11314. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11315. s//\1/
  11316. q
  11317. }
  11318. /^X\/\(\/\/\)$/{
  11319. s//\1/
  11320. q
  11321. }
  11322. /^X\/\(\/\).*/{
  11323. s//\1/
  11324. q
  11325. }
  11326. s/.*/./; q'`
  11327. # Avoid depending upon Character Ranges.
  11328. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11329. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11330. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11331. as_cr_digits='0123456789'
  11332. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11333. ECHO_C= ECHO_N= ECHO_T=
  11334. case `echo -n x` in #(((((
  11335. -n*)
  11336. case `echo 'xy\c'` in
  11337. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11338. xy) ECHO_C='\c';;
  11339. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11340. ECHO_T=' ';;
  11341. esac;;
  11342. *)
  11343. ECHO_N='-n';;
  11344. esac
  11345. rm -f conf$$ conf$$.exe conf$$.file
  11346. if test -d conf$$.dir; then
  11347. rm -f conf$$.dir/conf$$.file
  11348. else
  11349. rm -f conf$$.dir
  11350. mkdir conf$$.dir 2>/dev/null
  11351. fi
  11352. if (echo >conf$$.file) 2>/dev/null; then
  11353. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11354. as_ln_s='ln -s'
  11355. # ... but there are two gotchas:
  11356. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11357. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11358. # In both cases, we have to default to `cp -p'.
  11359. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11360. as_ln_s='cp -p'
  11361. elif ln conf$$.file conf$$ 2>/dev/null; then
  11362. as_ln_s=ln
  11363. else
  11364. as_ln_s='cp -p'
  11365. fi
  11366. else
  11367. as_ln_s='cp -p'
  11368. fi
  11369. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11370. rmdir conf$$.dir 2>/dev/null
  11371. # as_fn_mkdir_p
  11372. # -------------
  11373. # Create "$as_dir" as a directory, including parents if necessary.
  11374. as_fn_mkdir_p ()
  11375. {
  11376. case $as_dir in #(
  11377. -*) as_dir=./$as_dir;;
  11378. esac
  11379. test -d "$as_dir" || eval $as_mkdir_p || {
  11380. as_dirs=
  11381. while :; do
  11382. case $as_dir in #(
  11383. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11384. *) as_qdir=$as_dir;;
  11385. esac
  11386. as_dirs="'$as_qdir' $as_dirs"
  11387. as_dir=`$as_dirname -- "$as_dir" ||
  11388. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11389. X"$as_dir" : 'X\(//\)[^/]' \| \
  11390. X"$as_dir" : 'X\(//\)$' \| \
  11391. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11392. $as_echo X"$as_dir" |
  11393. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11394. s//\1/
  11395. q
  11396. }
  11397. /^X\(\/\/\)[^/].*/{
  11398. s//\1/
  11399. q
  11400. }
  11401. /^X\(\/\/\)$/{
  11402. s//\1/
  11403. q
  11404. }
  11405. /^X\(\/\).*/{
  11406. s//\1/
  11407. q
  11408. }
  11409. s/.*/./; q'`
  11410. test -d "$as_dir" && break
  11411. done
  11412. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11413. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  11414. } # as_fn_mkdir_p
  11415. if mkdir -p . 2>/dev/null; then
  11416. as_mkdir_p='mkdir -p "$as_dir"'
  11417. else
  11418. test -d ./-p && rmdir ./-p
  11419. as_mkdir_p=false
  11420. fi
  11421. if test -x / >/dev/null 2>&1; then
  11422. as_test_x='test -x'
  11423. else
  11424. if ls -dL / >/dev/null 2>&1; then
  11425. as_ls_L_option=L
  11426. else
  11427. as_ls_L_option=
  11428. fi
  11429. as_test_x='
  11430. eval sh -c '\''
  11431. if test -d "$1"; then
  11432. test -d "$1/.";
  11433. else
  11434. case $1 in #(
  11435. -*)set "./$1";;
  11436. esac;
  11437. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11438. ???[sx]*):;;*)false;;esac;fi
  11439. '\'' sh
  11440. '
  11441. fi
  11442. as_executable_p=$as_test_x
  11443. # Sed expression to map a string onto a valid CPP name.
  11444. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11445. # Sed expression to map a string onto a valid variable name.
  11446. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11447. exec 6>&1
  11448. ## ----------------------------------- ##
  11449. ## Main body of $CONFIG_STATUS script. ##
  11450. ## ----------------------------------- ##
  11451. _ASEOF
  11452. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11453. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11454. # Save the log message, to keep $0 and so on meaningful, and to
  11455. # report actual input values of CONFIG_FILES etc. instead of their
  11456. # values after options handling.
  11457. ac_log="
  11458. This file was extended by $as_me, which was
  11459. generated by GNU Autoconf 2.64. Invocation command line was
  11460. CONFIG_FILES = $CONFIG_FILES
  11461. CONFIG_HEADERS = $CONFIG_HEADERS
  11462. CONFIG_LINKS = $CONFIG_LINKS
  11463. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11464. $ $0 $@
  11465. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11466. "
  11467. _ACEOF
  11468. case $ac_config_files in *"
  11469. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11470. esac
  11471. case $ac_config_headers in *"
  11472. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11473. esac
  11474. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11475. # Files that config.status was made for.
  11476. config_files="$ac_config_files"
  11477. config_headers="$ac_config_headers"
  11478. config_links="$ac_config_links"
  11479. config_commands="$ac_config_commands"
  11480. _ACEOF
  11481. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11482. ac_cs_usage="\
  11483. \`$as_me' instantiates files and other configuration actions
  11484. from templates according to the current configuration. Unless the files
  11485. and actions are specified as TAGs, all are instantiated by default.
  11486. Usage: $0 [OPTION]... [TAG]...
  11487. -h, --help print this help, then exit
  11488. -V, --version print version number and configuration settings, then exit
  11489. -q, --quiet, --silent
  11490. do not print progress messages
  11491. -d, --debug don't remove temporary files
  11492. --recheck update $as_me by reconfiguring in the same conditions
  11493. --file=FILE[:TEMPLATE]
  11494. instantiate the configuration file FILE
  11495. --header=FILE[:TEMPLATE]
  11496. instantiate the configuration header FILE
  11497. Configuration files:
  11498. $config_files
  11499. Configuration headers:
  11500. $config_headers
  11501. Configuration links:
  11502. $config_links
  11503. Configuration commands:
  11504. $config_commands
  11505. Report bugs to the package provider."
  11506. _ACEOF
  11507. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11508. ac_cs_version="\\
  11509. config.status
  11510. configured by $0, generated by GNU Autoconf 2.64,
  11511. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11512. Copyright (C) 2009 Free Software Foundation, Inc.
  11513. This config.status script is free software; the Free Software Foundation
  11514. gives unlimited permission to copy, distribute and modify it."
  11515. ac_pwd='$ac_pwd'
  11516. srcdir='$srcdir'
  11517. INSTALL='$INSTALL'
  11518. AWK='$AWK'
  11519. test -n "\$AWK" || AWK=awk
  11520. _ACEOF
  11521. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11522. # The default lists apply if the user does not specify any file.
  11523. ac_need_defaults=:
  11524. while test $# != 0
  11525. do
  11526. case $1 in
  11527. --*=*)
  11528. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11529. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11530. ac_shift=:
  11531. ;;
  11532. *)
  11533. ac_option=$1
  11534. ac_optarg=$2
  11535. ac_shift=shift
  11536. ;;
  11537. esac
  11538. case $ac_option in
  11539. # Handling of the options.
  11540. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11541. ac_cs_recheck=: ;;
  11542. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11543. $as_echo "$ac_cs_version"; exit ;;
  11544. --debug | --debu | --deb | --de | --d | -d )
  11545. debug=: ;;
  11546. --file | --fil | --fi | --f )
  11547. $ac_shift
  11548. case $ac_optarg in
  11549. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11550. esac
  11551. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11552. ac_need_defaults=false;;
  11553. --header | --heade | --head | --hea )
  11554. $ac_shift
  11555. case $ac_optarg in
  11556. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11557. esac
  11558. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11559. ac_need_defaults=false;;
  11560. --he | --h)
  11561. # Conflict between --help and --header
  11562. as_fn_error "ambiguous option: \`$1'
  11563. Try \`$0 --help' for more information.";;
  11564. --help | --hel | -h )
  11565. $as_echo "$ac_cs_usage"; exit ;;
  11566. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11567. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11568. ac_cs_silent=: ;;
  11569. # This is an error.
  11570. -*) as_fn_error "unrecognized option: \`$1'
  11571. Try \`$0 --help' for more information." ;;
  11572. *) as_fn_append ac_config_targets " $1"
  11573. ac_need_defaults=false ;;
  11574. esac
  11575. shift
  11576. done
  11577. ac_configure_extra_args=
  11578. if $ac_cs_silent; then
  11579. exec 6>/dev/null
  11580. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11581. fi
  11582. _ACEOF
  11583. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11584. if \$ac_cs_recheck; then
  11585. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11586. shift
  11587. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11588. CONFIG_SHELL='$SHELL'
  11589. export CONFIG_SHELL
  11590. exec "\$@"
  11591. fi
  11592. _ACEOF
  11593. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11594. exec 5>>config.log
  11595. {
  11596. echo
  11597. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11598. ## Running $as_me. ##
  11599. _ASBOX
  11600. $as_echo "$ac_log"
  11601. } >&5
  11602. _ACEOF
  11603. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11604. #
  11605. # INIT-COMMANDS
  11606. #
  11607. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  11608. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11609. # if CDPATH is set.
  11610. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11611. sed_quote_subst='$sed_quote_subst'
  11612. double_quote_subst='$double_quote_subst'
  11613. delay_variable_subst='$delay_variable_subst'
  11614. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11615. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11616. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11617. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11618. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11619. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11620. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11621. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11622. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11623. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11624. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11625. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11626. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11627. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11628. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11629. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11630. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11631. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11632. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11633. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11634. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11635. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11636. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11637. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11638. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11639. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11640. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11641. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11642. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11643. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11644. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11645. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11646. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11647. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11648. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11649. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11650. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11651. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11652. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11653. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11654. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11655. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11656. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11657. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11658. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11659. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11660. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11661. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11662. 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"`'
  11663. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11664. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11665. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11666. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11667. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11668. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11669. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11670. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11671. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11672. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11673. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11674. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11675. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11676. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11677. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11678. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11679. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11680. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11681. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11682. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11683. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11684. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11685. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11686. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11687. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11688. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11689. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11690. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11691. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11692. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11693. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11694. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  11695. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11696. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11697. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11698. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11699. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11700. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11701. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11702. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11703. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  11704. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11705. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11706. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11707. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11708. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11709. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11710. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11711. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11712. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11713. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11714. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11715. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11716. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11717. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11718. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11719. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11720. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11721. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11722. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11723. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11724. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11725. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11726. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11727. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11728. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11729. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11730. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11731. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11732. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11733. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11734. LTCC='$LTCC'
  11735. LTCFLAGS='$LTCFLAGS'
  11736. compiler='$compiler_DEFAULT'
  11737. # A function that is used when there is no print builtin or printf.
  11738. func_fallback_echo ()
  11739. {
  11740. eval 'cat <<_LTECHO_EOF
  11741. \$1
  11742. _LTECHO_EOF'
  11743. }
  11744. # Quote evaled strings.
  11745. for var in SHELL \
  11746. ECHO \
  11747. SED \
  11748. GREP \
  11749. EGREP \
  11750. FGREP \
  11751. LD \
  11752. NM \
  11753. LN_S \
  11754. lt_SP2NL \
  11755. lt_NL2SP \
  11756. reload_flag \
  11757. OBJDUMP \
  11758. deplibs_check_method \
  11759. file_magic_cmd \
  11760. AR \
  11761. AR_FLAGS \
  11762. STRIP \
  11763. RANLIB \
  11764. CC \
  11765. CFLAGS \
  11766. compiler \
  11767. lt_cv_sys_global_symbol_pipe \
  11768. lt_cv_sys_global_symbol_to_cdecl \
  11769. lt_cv_sys_global_symbol_to_c_name_address \
  11770. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11771. lt_prog_compiler_no_builtin_flag \
  11772. lt_prog_compiler_wl \
  11773. lt_prog_compiler_pic \
  11774. lt_prog_compiler_static \
  11775. lt_cv_prog_compiler_c_o \
  11776. need_locks \
  11777. DSYMUTIL \
  11778. NMEDIT \
  11779. LIPO \
  11780. OTOOL \
  11781. OTOOL64 \
  11782. shrext_cmds \
  11783. export_dynamic_flag_spec \
  11784. whole_archive_flag_spec \
  11785. compiler_needs_object \
  11786. with_gnu_ld \
  11787. allow_undefined_flag \
  11788. no_undefined_flag \
  11789. hardcode_libdir_flag_spec \
  11790. hardcode_libdir_flag_spec_ld \
  11791. hardcode_libdir_separator \
  11792. fix_srcfile_path \
  11793. exclude_expsyms \
  11794. include_expsyms \
  11795. file_list_spec \
  11796. variables_saved_for_relink \
  11797. libname_spec \
  11798. library_names_spec \
  11799. soname_spec \
  11800. install_override_mode \
  11801. finish_eval \
  11802. old_striplib \
  11803. striplib; do
  11804. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11805. *[\\\\\\\`\\"\\\$]*)
  11806. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11807. ;;
  11808. *)
  11809. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11810. ;;
  11811. esac
  11812. done
  11813. # Double-quote double-evaled strings.
  11814. for var in reload_cmds \
  11815. old_postinstall_cmds \
  11816. old_postuninstall_cmds \
  11817. old_archive_cmds \
  11818. extract_expsyms_cmds \
  11819. old_archive_from_new_cmds \
  11820. old_archive_from_expsyms_cmds \
  11821. archive_cmds \
  11822. archive_expsym_cmds \
  11823. module_cmds \
  11824. module_expsym_cmds \
  11825. export_symbols_cmds \
  11826. prelink_cmds \
  11827. postinstall_cmds \
  11828. postuninstall_cmds \
  11829. finish_cmds \
  11830. sys_lib_search_path_spec \
  11831. sys_lib_dlsearch_path_spec; do
  11832. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11833. *[\\\\\\\`\\"\\\$]*)
  11834. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11835. ;;
  11836. *)
  11837. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11838. ;;
  11839. esac
  11840. done
  11841. ac_aux_dir='$ac_aux_dir'
  11842. xsi_shell='$xsi_shell'
  11843. lt_shell_append='$lt_shell_append'
  11844. # See if we are running on zsh, and set the options which allow our
  11845. # commands through without removal of \ escapes INIT.
  11846. if test -n "\${ZSH_VERSION+set}" ; then
  11847. setopt NO_GLOB_SUBST
  11848. fi
  11849. PACKAGE='$PACKAGE'
  11850. VERSION='$VERSION'
  11851. TIMESTAMP='$TIMESTAMP'
  11852. RM='$RM'
  11853. ofile='$ofile'
  11854. _ACEOF
  11855. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11856. # Handling of arguments.
  11857. for ac_config_target in $ac_config_targets
  11858. do
  11859. case $ac_config_target in
  11860. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  11861. "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  11862. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11863. "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
  11864. "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
  11865. "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
  11866. ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
  11867. "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
  11868. "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
  11869. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11870. esac
  11871. done
  11872. # If the user did not use the arguments to specify the items to instantiate,
  11873. # then the envvar interface is used. Set only those that are not.
  11874. # We use the long form for the default assignment because of an extremely
  11875. # bizarre bug on SunOS 4.1.3.
  11876. if $ac_need_defaults; then
  11877. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11878. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11879. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  11880. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11881. fi
  11882. # Have a temporary directory for convenience. Make it in the build tree
  11883. # simply because there is no reason against having it here, and in addition,
  11884. # creating and moving files from /tmp can sometimes cause problems.
  11885. # Hook for its removal unless debugging.
  11886. # Note that there is a small window in which the directory will not be cleaned:
  11887. # after its creation but before its name has been assigned to `$tmp'.
  11888. $debug ||
  11889. {
  11890. tmp=
  11891. trap 'exit_status=$?
  11892. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11893. ' 0
  11894. trap 'as_fn_exit 1' 1 2 13 15
  11895. }
  11896. # Create a (secure) tmp directory for tmp files.
  11897. {
  11898. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11899. test -n "$tmp" && test -d "$tmp"
  11900. } ||
  11901. {
  11902. tmp=./conf$$-$RANDOM
  11903. (umask 077 && mkdir "$tmp")
  11904. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  11905. # Set up the scripts for CONFIG_FILES section.
  11906. # No need to generate them if there are no CONFIG_FILES.
  11907. # This happens for instance with `./config.status config.h'.
  11908. if test -n "$CONFIG_FILES"; then
  11909. ac_cr=`echo X | tr X '\015'`
  11910. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11911. # But we know of no other shell where ac_cr would be empty at this
  11912. # point, so we can use a bashism as a fallback.
  11913. if test "x$ac_cr" = x; then
  11914. eval ac_cr=\$\'\\r\'
  11915. fi
  11916. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11917. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11918. ac_cs_awk_cr='\r'
  11919. else
  11920. ac_cs_awk_cr=$ac_cr
  11921. fi
  11922. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  11923. _ACEOF
  11924. {
  11925. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11926. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11927. echo "_ACEOF"
  11928. } >conf$$subs.sh ||
  11929. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11930. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  11931. ac_delim='%!_!# '
  11932. for ac_last_try in false false false false false :; do
  11933. . ./conf$$subs.sh ||
  11934. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11935. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11936. if test $ac_delim_n = $ac_delim_num; then
  11937. break
  11938. elif $ac_last_try; then
  11939. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11940. else
  11941. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11942. fi
  11943. done
  11944. rm -f conf$$subs.sh
  11945. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11946. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  11947. _ACEOF
  11948. sed -n '
  11949. h
  11950. s/^/S["/; s/!.*/"]=/
  11951. p
  11952. g
  11953. s/^[^!]*!//
  11954. :repl
  11955. t repl
  11956. s/'"$ac_delim"'$//
  11957. t delim
  11958. :nl
  11959. h
  11960. s/\(.\{148\}\).*/\1/
  11961. t more1
  11962. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11963. p
  11964. n
  11965. b repl
  11966. :more1
  11967. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11968. p
  11969. g
  11970. s/.\{148\}//
  11971. t nl
  11972. :delim
  11973. h
  11974. s/\(.\{148\}\).*/\1/
  11975. t more2
  11976. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11977. p
  11978. b
  11979. :more2
  11980. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11981. p
  11982. g
  11983. s/.\{148\}//
  11984. t delim
  11985. ' <conf$$subs.awk | sed '
  11986. /^[^""]/{
  11987. N
  11988. s/\n//
  11989. }
  11990. ' >>$CONFIG_STATUS || ac_write_fail=1
  11991. rm -f conf$$subs.awk
  11992. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11993. _ACAWK
  11994. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  11995. for (key in S) S_is_set[key] = 1
  11996. FS = ""
  11997. }
  11998. {
  11999. line = $ 0
  12000. nfields = split(line, field, "@")
  12001. substed = 0
  12002. len = length(field[1])
  12003. for (i = 2; i < nfields; i++) {
  12004. key = field[i]
  12005. keylen = length(key)
  12006. if (S_is_set[key]) {
  12007. value = S[key]
  12008. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12009. len += length(value) + length(field[++i])
  12010. substed = 1
  12011. } else
  12012. len += 1 + keylen
  12013. }
  12014. print line
  12015. }
  12016. _ACAWK
  12017. _ACEOF
  12018. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12019. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12020. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12021. else
  12022. cat
  12023. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12024. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  12025. _ACEOF
  12026. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12027. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12028. # trailing colons and then remove the whole line if VPATH becomes empty
  12029. # (actually we leave an empty line to preserve line numbers).
  12030. if test "x$srcdir" = x.; then
  12031. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12032. s/:*\$(srcdir):*/:/
  12033. s/:*\${srcdir}:*/:/
  12034. s/:*@srcdir@:*/:/
  12035. s/^\([^=]*=[ ]*\):*/\1/
  12036. s/:*$//
  12037. s/^[^=]*=[ ]*$//
  12038. }'
  12039. fi
  12040. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12041. fi # test -n "$CONFIG_FILES"
  12042. # Set up the scripts for CONFIG_HEADERS section.
  12043. # No need to generate them if there are no CONFIG_HEADERS.
  12044. # This happens for instance with `./config.status Makefile'.
  12045. if test -n "$CONFIG_HEADERS"; then
  12046. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12047. BEGIN {
  12048. _ACEOF
  12049. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12050. # here-document in config.status, that substitutes the proper values into
  12051. # config.h.in to produce config.h.
  12052. # Create a delimiter string that does not exist in confdefs.h, to ease
  12053. # handling of long lines.
  12054. ac_delim='%!_!# '
  12055. for ac_last_try in false false :; do
  12056. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12057. if test -z "$ac_t"; then
  12058. break
  12059. elif $ac_last_try; then
  12060. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  12061. else
  12062. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12063. fi
  12064. done
  12065. # For the awk script, D is an array of macro values keyed by name,
  12066. # likewise P contains macro parameters if any. Preserve backslash
  12067. # newline sequences.
  12068. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12069. sed -n '
  12070. s/.\{148\}/&'"$ac_delim"'/g
  12071. t rset
  12072. :rset
  12073. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12074. t def
  12075. d
  12076. :def
  12077. s/\\$//
  12078. t bsnl
  12079. s/["\\]/\\&/g
  12080. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12081. D["\1"]=" \3"/p
  12082. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12083. d
  12084. :bsnl
  12085. s/["\\]/\\&/g
  12086. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12087. D["\1"]=" \3\\\\\\n"\\/p
  12088. t cont
  12089. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12090. t cont
  12091. d
  12092. :cont
  12093. n
  12094. s/.\{148\}/&'"$ac_delim"'/g
  12095. t clear
  12096. :clear
  12097. s/\\$//
  12098. t bsnlc
  12099. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12100. d
  12101. :bsnlc
  12102. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12103. b cont
  12104. ' <confdefs.h | sed '
  12105. s/'"$ac_delim"'/"\\\
  12106. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12107. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12108. for (key in D) D_is_set[key] = 1
  12109. FS = ""
  12110. }
  12111. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12112. line = \$ 0
  12113. split(line, arg, " ")
  12114. if (arg[1] == "#") {
  12115. defundef = arg[2]
  12116. mac1 = arg[3]
  12117. } else {
  12118. defundef = substr(arg[1], 2)
  12119. mac1 = arg[2]
  12120. }
  12121. split(mac1, mac2, "(") #)
  12122. macro = mac2[1]
  12123. prefix = substr(line, 1, index(line, defundef) - 1)
  12124. if (D_is_set[macro]) {
  12125. # Preserve the white space surrounding the "#".
  12126. print prefix "define", macro P[macro] D[macro]
  12127. next
  12128. } else {
  12129. # Replace #undef with comments. This is necessary, for example,
  12130. # in the case of _POSIX_SOURCE, which is predefined and required
  12131. # on some systems where configure will not decide to define it.
  12132. if (defundef == "undef") {
  12133. print "/*", prefix defundef, macro, "*/"
  12134. next
  12135. }
  12136. }
  12137. }
  12138. { print }
  12139. _ACAWK
  12140. _ACEOF
  12141. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12142. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  12143. fi # test -n "$CONFIG_HEADERS"
  12144. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  12145. shift
  12146. for ac_tag
  12147. do
  12148. case $ac_tag in
  12149. :[FHLC]) ac_mode=$ac_tag; continue;;
  12150. esac
  12151. case $ac_mode$ac_tag in
  12152. :[FHL]*:*);;
  12153. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12154. :[FH]-) ac_tag=-:-;;
  12155. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12156. esac
  12157. ac_save_IFS=$IFS
  12158. IFS=:
  12159. set x $ac_tag
  12160. IFS=$ac_save_IFS
  12161. shift
  12162. ac_file=$1
  12163. shift
  12164. case $ac_mode in
  12165. :L) ac_source=$1;;
  12166. :[FH])
  12167. ac_file_inputs=
  12168. for ac_f
  12169. do
  12170. case $ac_f in
  12171. -) ac_f="$tmp/stdin";;
  12172. *) # Look for the file first in the build tree, then in the source tree
  12173. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12174. # because $ac_f cannot contain `:'.
  12175. test -f "$ac_f" ||
  12176. case $ac_f in
  12177. [\\/$]*) false;;
  12178. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12179. esac ||
  12180. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12181. esac
  12182. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12183. as_fn_append ac_file_inputs " '$ac_f'"
  12184. done
  12185. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12186. # use $as_me), people would be surprised to read:
  12187. # /* config.h. Generated by config.status. */
  12188. configure_input='Generated from '`
  12189. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12190. `' by configure.'
  12191. if test x"$ac_file" != x-; then
  12192. configure_input="$ac_file. $configure_input"
  12193. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12194. $as_echo "$as_me: creating $ac_file" >&6;}
  12195. fi
  12196. # Neutralize special characters interpreted by sed in replacement strings.
  12197. case $configure_input in #(
  12198. *\&* | *\|* | *\\* )
  12199. ac_sed_conf_input=`$as_echo "$configure_input" |
  12200. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12201. *) ac_sed_conf_input=$configure_input;;
  12202. esac
  12203. case $ac_tag in
  12204. *:-:* | *:-) cat >"$tmp/stdin" \
  12205. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  12206. esac
  12207. ;;
  12208. esac
  12209. ac_dir=`$as_dirname -- "$ac_file" ||
  12210. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12211. X"$ac_file" : 'X\(//\)[^/]' \| \
  12212. X"$ac_file" : 'X\(//\)$' \| \
  12213. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12214. $as_echo X"$ac_file" |
  12215. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12216. s//\1/
  12217. q
  12218. }
  12219. /^X\(\/\/\)[^/].*/{
  12220. s//\1/
  12221. q
  12222. }
  12223. /^X\(\/\/\)$/{
  12224. s//\1/
  12225. q
  12226. }
  12227. /^X\(\/\).*/{
  12228. s//\1/
  12229. q
  12230. }
  12231. s/.*/./; q'`
  12232. as_dir="$ac_dir"; as_fn_mkdir_p
  12233. ac_builddir=.
  12234. case "$ac_dir" in
  12235. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12236. *)
  12237. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12238. # A ".." for each directory in $ac_dir_suffix.
  12239. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12240. case $ac_top_builddir_sub in
  12241. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12242. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12243. esac ;;
  12244. esac
  12245. ac_abs_top_builddir=$ac_pwd
  12246. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12247. # for backward compatibility:
  12248. ac_top_builddir=$ac_top_build_prefix
  12249. case $srcdir in
  12250. .) # We are building in place.
  12251. ac_srcdir=.
  12252. ac_top_srcdir=$ac_top_builddir_sub
  12253. ac_abs_top_srcdir=$ac_pwd ;;
  12254. [\\/]* | ?:[\\/]* ) # Absolute name.
  12255. ac_srcdir=$srcdir$ac_dir_suffix;
  12256. ac_top_srcdir=$srcdir
  12257. ac_abs_top_srcdir=$srcdir ;;
  12258. *) # Relative name.
  12259. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12260. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12261. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12262. esac
  12263. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12264. case $ac_mode in
  12265. :F)
  12266. #
  12267. # CONFIG_FILE
  12268. #
  12269. case $INSTALL in
  12270. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12271. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12272. esac
  12273. _ACEOF
  12274. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12275. # If the template does not know about datarootdir, expand it.
  12276. # FIXME: This hack should be removed a few years after 2.60.
  12277. ac_datarootdir_hack=; ac_datarootdir_seen=
  12278. ac_sed_dataroot='
  12279. /datarootdir/ {
  12280. p
  12281. q
  12282. }
  12283. /@datadir@/p
  12284. /@docdir@/p
  12285. /@infodir@/p
  12286. /@localedir@/p
  12287. /@mandir@/p'
  12288. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12289. *datarootdir*) ac_datarootdir_seen=yes;;
  12290. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12291. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12292. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12293. _ACEOF
  12294. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12295. ac_datarootdir_hack='
  12296. s&@datadir@&$datadir&g
  12297. s&@docdir@&$docdir&g
  12298. s&@infodir@&$infodir&g
  12299. s&@localedir@&$localedir&g
  12300. s&@mandir@&$mandir&g
  12301. s&\\\${datarootdir}&$datarootdir&g' ;;
  12302. esac
  12303. _ACEOF
  12304. # Neutralize VPATH when `$srcdir' = `.'.
  12305. # Shell code in configure.ac might set extrasub.
  12306. # FIXME: do we really want to maintain this feature?
  12307. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12308. ac_sed_extra="$ac_vpsub
  12309. $extrasub
  12310. _ACEOF
  12311. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12312. :t
  12313. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12314. s|@configure_input@|$ac_sed_conf_input|;t t
  12315. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12316. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12317. s&@srcdir@&$ac_srcdir&;t t
  12318. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12319. s&@top_srcdir@&$ac_top_srcdir&;t t
  12320. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12321. s&@builddir@&$ac_builddir&;t t
  12322. s&@abs_builddir@&$ac_abs_builddir&;t t
  12323. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12324. s&@INSTALL@&$ac_INSTALL&;t t
  12325. $ac_datarootdir_hack
  12326. "
  12327. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12328. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12329. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12330. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12331. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12333. which seems to be undefined. Please make sure it is defined." >&5
  12334. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12335. which seems to be undefined. Please make sure it is defined." >&2;}
  12336. rm -f "$tmp/stdin"
  12337. case $ac_file in
  12338. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12339. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12340. esac \
  12341. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12342. ;;
  12343. :H)
  12344. #
  12345. # CONFIG_HEADER
  12346. #
  12347. if test x"$ac_file" != x-; then
  12348. {
  12349. $as_echo "/* $configure_input */" \
  12350. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12351. } >"$tmp/config.h" \
  12352. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12353. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12354. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12355. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12356. else
  12357. rm -f "$ac_file"
  12358. mv "$tmp/config.h" "$ac_file" \
  12359. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12360. fi
  12361. else
  12362. $as_echo "/* $configure_input */" \
  12363. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12364. || as_fn_error "could not create -" "$LINENO" 5
  12365. fi
  12366. ;;
  12367. :L)
  12368. #
  12369. # CONFIG_LINK
  12370. #
  12371. if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  12372. :
  12373. else
  12374. # Prefer the file from the source tree if names are identical.
  12375. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  12376. ac_source=$srcdir/$ac_source
  12377. fi
  12378. { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  12379. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  12380. if test ! -r "$ac_source"; then
  12381. as_fn_error "$ac_source: file not found" "$LINENO" 5
  12382. fi
  12383. rm -f "$ac_file"
  12384. # Try a relative symlink, then a hard link, then a copy.
  12385. case $srcdir in
  12386. [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  12387. *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  12388. esac
  12389. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  12390. ln "$ac_source" "$ac_file" 2>/dev/null ||
  12391. cp -p "$ac_source" "$ac_file" ||
  12392. as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  12393. fi
  12394. ;;
  12395. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12396. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12397. ;;
  12398. esac
  12399. case $ac_file$ac_mode in
  12400. "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  12401. "libtool":C)
  12402. # See if we are running on zsh, and set the options which allow our
  12403. # commands through without removal of \ escapes.
  12404. if test -n "${ZSH_VERSION+set}" ; then
  12405. setopt NO_GLOB_SUBST
  12406. fi
  12407. cfgfile="${ofile}T"
  12408. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12409. $RM "$cfgfile"
  12410. cat <<_LT_EOF >> "$cfgfile"
  12411. #! $SHELL
  12412. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12413. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12414. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12415. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12416. #
  12417. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12418. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  12419. # Written by Gordon Matzigkeit, 1996
  12420. #
  12421. # This file is part of GNU Libtool.
  12422. #
  12423. # GNU Libtool is free software; you can redistribute it and/or
  12424. # modify it under the terms of the GNU General Public License as
  12425. # published by the Free Software Foundation; either version 2 of
  12426. # the License, or (at your option) any later version.
  12427. #
  12428. # As a special exception to the GNU General Public License,
  12429. # if you distribute this file as part of a program or library that
  12430. # is built using GNU Libtool, you may include this file under the
  12431. # same distribution terms that you use for the rest of that program.
  12432. #
  12433. # GNU Libtool is distributed in the hope that it will be useful,
  12434. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12435. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12436. # GNU General Public License for more details.
  12437. #
  12438. # You should have received a copy of the GNU General Public License
  12439. # along with GNU Libtool; see the file COPYING. If not, a copy
  12440. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12441. # obtained by writing to the Free Software Foundation, Inc.,
  12442. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12443. # The names of the tagged configurations supported by this script.
  12444. available_tags=""
  12445. # ### BEGIN LIBTOOL CONFIG
  12446. # Which release of libtool.m4 was used?
  12447. macro_version=$macro_version
  12448. macro_revision=$macro_revision
  12449. # Whether or not to build shared libraries.
  12450. build_libtool_libs=$enable_shared
  12451. # Whether or not to build static libraries.
  12452. build_old_libs=$enable_static
  12453. # What type of objects to build.
  12454. pic_mode=$pic_mode
  12455. # Whether or not to optimize for fast installation.
  12456. fast_install=$enable_fast_install
  12457. # Shell to use when invoking shell scripts.
  12458. SHELL=$lt_SHELL
  12459. # An echo program that protects backslashes.
  12460. ECHO=$lt_ECHO
  12461. # The host system.
  12462. host_alias=$host_alias
  12463. host=$host
  12464. host_os=$host_os
  12465. # The build system.
  12466. build_alias=$build_alias
  12467. build=$build
  12468. build_os=$build_os
  12469. # A sed program that does not truncate output.
  12470. SED=$lt_SED
  12471. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12472. Xsed="\$SED -e 1s/^X//"
  12473. # A grep program that handles long lines.
  12474. GREP=$lt_GREP
  12475. # An ERE matcher.
  12476. EGREP=$lt_EGREP
  12477. # A literal string matcher.
  12478. FGREP=$lt_FGREP
  12479. # A BSD- or MS-compatible name lister.
  12480. NM=$lt_NM
  12481. # Whether we need soft or hard links.
  12482. LN_S=$lt_LN_S
  12483. # What is the maximum length of a command?
  12484. max_cmd_len=$max_cmd_len
  12485. # Object file suffix (normally "o").
  12486. objext=$ac_objext
  12487. # Executable file suffix (normally "").
  12488. exeext=$exeext
  12489. # whether the shell understands "unset".
  12490. lt_unset=$lt_unset
  12491. # turn spaces into newlines.
  12492. SP2NL=$lt_lt_SP2NL
  12493. # turn newlines into spaces.
  12494. NL2SP=$lt_lt_NL2SP
  12495. # An object symbol dumper.
  12496. OBJDUMP=$lt_OBJDUMP
  12497. # Method to check whether dependent libraries are shared objects.
  12498. deplibs_check_method=$lt_deplibs_check_method
  12499. # Command to use when deplibs_check_method == "file_magic".
  12500. file_magic_cmd=$lt_file_magic_cmd
  12501. # The archiver.
  12502. AR=$lt_AR
  12503. AR_FLAGS=$lt_AR_FLAGS
  12504. # A symbol stripping program.
  12505. STRIP=$lt_STRIP
  12506. # Commands used to install an old-style archive.
  12507. RANLIB=$lt_RANLIB
  12508. old_postinstall_cmds=$lt_old_postinstall_cmds
  12509. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12510. # Whether to use a lock for old archive extraction.
  12511. lock_old_archive_extraction=$lock_old_archive_extraction
  12512. # A C compiler.
  12513. LTCC=$lt_CC
  12514. # LTCC compiler flags.
  12515. LTCFLAGS=$lt_CFLAGS
  12516. # Take the output of nm and produce a listing of raw symbols and C names.
  12517. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12518. # Transform the output of nm in a proper C declaration.
  12519. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12520. # Transform the output of nm in a C name address pair.
  12521. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12522. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12523. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12524. # The name of the directory that contains temporary libtool files.
  12525. objdir=$objdir
  12526. # Used to examine libraries when file_magic_cmd begins with "file".
  12527. MAGIC_CMD=$MAGIC_CMD
  12528. # Must we lock files when doing compilation?
  12529. need_locks=$lt_need_locks
  12530. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12531. DSYMUTIL=$lt_DSYMUTIL
  12532. # Tool to change global to local symbols on Mac OS X.
  12533. NMEDIT=$lt_NMEDIT
  12534. # Tool to manipulate fat objects and archives on Mac OS X.
  12535. LIPO=$lt_LIPO
  12536. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12537. OTOOL=$lt_OTOOL
  12538. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12539. OTOOL64=$lt_OTOOL64
  12540. # Old archive suffix (normally "a").
  12541. libext=$libext
  12542. # Shared library suffix (normally ".so").
  12543. shrext_cmds=$lt_shrext_cmds
  12544. # The commands to extract the exported symbol list from a shared archive.
  12545. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12546. # Variables whose values should be saved in libtool wrapper scripts and
  12547. # restored at link time.
  12548. variables_saved_for_relink=$lt_variables_saved_for_relink
  12549. # Do we need the "lib" prefix for modules?
  12550. need_lib_prefix=$need_lib_prefix
  12551. # Do we need a version for libraries?
  12552. need_version=$need_version
  12553. # Library versioning type.
  12554. version_type=$version_type
  12555. # Shared library runtime path variable.
  12556. runpath_var=$runpath_var
  12557. # Shared library path variable.
  12558. shlibpath_var=$shlibpath_var
  12559. # Is shlibpath searched before the hard-coded library search path?
  12560. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12561. # Format of library name prefix.
  12562. libname_spec=$lt_libname_spec
  12563. # List of archive names. First name is the real one, the rest are links.
  12564. # The last name is the one that the linker finds with -lNAME
  12565. library_names_spec=$lt_library_names_spec
  12566. # The coded name of the library, if different from the real name.
  12567. soname_spec=$lt_soname_spec
  12568. # Permission mode override for installation of shared libraries.
  12569. install_override_mode=$lt_install_override_mode
  12570. # Command to use after installation of a shared archive.
  12571. postinstall_cmds=$lt_postinstall_cmds
  12572. # Command to use after uninstallation of a shared archive.
  12573. postuninstall_cmds=$lt_postuninstall_cmds
  12574. # Commands used to finish a libtool library installation in a directory.
  12575. finish_cmds=$lt_finish_cmds
  12576. # As "finish_cmds", except a single script fragment to be evaled but
  12577. # not shown.
  12578. finish_eval=$lt_finish_eval
  12579. # Whether we should hardcode library paths into libraries.
  12580. hardcode_into_libs=$hardcode_into_libs
  12581. # Compile-time system search path for libraries.
  12582. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12583. # Run-time system search path for libraries.
  12584. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12585. # Whether dlopen is supported.
  12586. dlopen_support=$enable_dlopen
  12587. # Whether dlopen of programs is supported.
  12588. dlopen_self=$enable_dlopen_self
  12589. # Whether dlopen of statically linked programs is supported.
  12590. dlopen_self_static=$enable_dlopen_self_static
  12591. # Commands to strip libraries.
  12592. old_striplib=$lt_old_striplib
  12593. striplib=$lt_striplib
  12594. # The linker used to build libraries.
  12595. LD=$lt_LD
  12596. # How to create reloadable object files.
  12597. reload_flag=$lt_reload_flag
  12598. reload_cmds=$lt_reload_cmds
  12599. # Commands used to build an old-style archive.
  12600. old_archive_cmds=$lt_old_archive_cmds
  12601. # A language specific compiler.
  12602. CC=$lt_compiler
  12603. # Is the compiler the GNU compiler?
  12604. with_gcc=$GCC
  12605. # Compiler flag to turn off builtin functions.
  12606. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12607. # How to pass a linker flag through the compiler.
  12608. wl=$lt_lt_prog_compiler_wl
  12609. # Additional compiler flags for building library objects.
  12610. pic_flag=$lt_lt_prog_compiler_pic
  12611. # Compiler flag to prevent dynamic linking.
  12612. link_static_flag=$lt_lt_prog_compiler_static
  12613. # Does compiler simultaneously support -c and -o options?
  12614. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12615. # Whether or not to add -lc for building shared libraries.
  12616. build_libtool_need_lc=$archive_cmds_need_lc
  12617. # Whether or not to disallow shared libs when runtime libs are static.
  12618. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12619. # Compiler flag to allow reflexive dlopens.
  12620. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12621. # Compiler flag to generate shared objects directly from archives.
  12622. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12623. # Whether the compiler copes with passing no objects directly.
  12624. compiler_needs_object=$lt_compiler_needs_object
  12625. # Create an old-style archive from a shared archive.
  12626. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12627. # Create a temporary old-style archive to link instead of a shared archive.
  12628. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12629. # Commands used to build a shared archive.
  12630. archive_cmds=$lt_archive_cmds
  12631. archive_expsym_cmds=$lt_archive_expsym_cmds
  12632. # Commands used to build a loadable module if different from building
  12633. # a shared archive.
  12634. module_cmds=$lt_module_cmds
  12635. module_expsym_cmds=$lt_module_expsym_cmds
  12636. # Whether we are building with GNU ld or not.
  12637. with_gnu_ld=$lt_with_gnu_ld
  12638. # Flag that allows shared libraries with undefined symbols to be built.
  12639. allow_undefined_flag=$lt_allow_undefined_flag
  12640. # Flag that enforces no undefined symbols.
  12641. no_undefined_flag=$lt_no_undefined_flag
  12642. # Flag to hardcode \$libdir into a binary during linking.
  12643. # This must work even if \$libdir does not exist
  12644. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12645. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12646. # during linking. This must work even if \$libdir does not exist.
  12647. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12648. # Whether we need a single "-rpath" flag with a separated argument.
  12649. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12650. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12651. # DIR into the resulting binary.
  12652. hardcode_direct=$hardcode_direct
  12653. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12654. # DIR into the resulting binary and the resulting library dependency is
  12655. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12656. # library is relocated.
  12657. hardcode_direct_absolute=$hardcode_direct_absolute
  12658. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12659. # into the resulting binary.
  12660. hardcode_minus_L=$hardcode_minus_L
  12661. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12662. # into the resulting binary.
  12663. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12664. # Set to "yes" if building a shared library automatically hardcodes DIR
  12665. # into the library and all subsequent libraries and executables linked
  12666. # against it.
  12667. hardcode_automatic=$hardcode_automatic
  12668. # Set to yes if linker adds runtime paths of dependent libraries
  12669. # to runtime path list.
  12670. inherit_rpath=$inherit_rpath
  12671. # Whether libtool must link a program against all its dependency libraries.
  12672. link_all_deplibs=$link_all_deplibs
  12673. # Fix the shell variable \$srcfile for the compiler.
  12674. fix_srcfile_path=$lt_fix_srcfile_path
  12675. # Set to "yes" if exported symbols are required.
  12676. always_export_symbols=$always_export_symbols
  12677. # The commands to list exported symbols.
  12678. export_symbols_cmds=$lt_export_symbols_cmds
  12679. # Symbols that should not be listed in the preloaded symbols.
  12680. exclude_expsyms=$lt_exclude_expsyms
  12681. # Symbols that must always be exported.
  12682. include_expsyms=$lt_include_expsyms
  12683. # Commands necessary for linking programs (against libraries) with templates.
  12684. prelink_cmds=$lt_prelink_cmds
  12685. # Specify filename containing input files.
  12686. file_list_spec=$lt_file_list_spec
  12687. # How to hardcode a shared library path into an executable.
  12688. hardcode_action=$hardcode_action
  12689. # ### END LIBTOOL CONFIG
  12690. _LT_EOF
  12691. case $host_os in
  12692. aix3*)
  12693. cat <<\_LT_EOF >> "$cfgfile"
  12694. # AIX sometimes has problems with the GCC collect2 program. For some
  12695. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12696. # vanish in a puff of smoke.
  12697. if test "X${COLLECT_NAMES+set}" != Xset; then
  12698. COLLECT_NAMES=
  12699. export COLLECT_NAMES
  12700. fi
  12701. _LT_EOF
  12702. ;;
  12703. esac
  12704. ltmain="$ac_aux_dir/ltmain.sh"
  12705. # We use sed instead of cat because bash on DJGPP gets confused if
  12706. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12707. # text mode, it properly converts lines to CR/LF. This bash problem
  12708. # is reportedly fixed, but why not run on old versions too?
  12709. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12710. || (rm -f "$cfgfile"; exit 1)
  12711. case $xsi_shell in
  12712. yes)
  12713. cat << \_LT_EOF >> "$cfgfile"
  12714. # func_dirname file append nondir_replacement
  12715. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12716. # otherwise set result to NONDIR_REPLACEMENT.
  12717. func_dirname ()
  12718. {
  12719. case ${1} in
  12720. */*) func_dirname_result="${1%/*}${2}" ;;
  12721. * ) func_dirname_result="${3}" ;;
  12722. esac
  12723. }
  12724. # func_basename file
  12725. func_basename ()
  12726. {
  12727. func_basename_result="${1##*/}"
  12728. }
  12729. # func_dirname_and_basename file append nondir_replacement
  12730. # perform func_basename and func_dirname in a single function
  12731. # call:
  12732. # dirname: Compute the dirname of FILE. If nonempty,
  12733. # add APPEND to the result, otherwise set result
  12734. # to NONDIR_REPLACEMENT.
  12735. # value returned in "$func_dirname_result"
  12736. # basename: Compute filename of FILE.
  12737. # value retuned in "$func_basename_result"
  12738. # Implementation must be kept synchronized with func_dirname
  12739. # and func_basename. For efficiency, we do not delegate to
  12740. # those functions but instead duplicate the functionality here.
  12741. func_dirname_and_basename ()
  12742. {
  12743. case ${1} in
  12744. */*) func_dirname_result="${1%/*}${2}" ;;
  12745. * ) func_dirname_result="${3}" ;;
  12746. esac
  12747. func_basename_result="${1##*/}"
  12748. }
  12749. # func_stripname prefix suffix name
  12750. # strip PREFIX and SUFFIX off of NAME.
  12751. # PREFIX and SUFFIX must not contain globbing or regex special
  12752. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12753. # dot (in which case that matches only a dot).
  12754. func_stripname ()
  12755. {
  12756. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12757. # positional parameters, so assign one to ordinary parameter first.
  12758. func_stripname_result=${3}
  12759. func_stripname_result=${func_stripname_result#"${1}"}
  12760. func_stripname_result=${func_stripname_result%"${2}"}
  12761. }
  12762. # func_opt_split
  12763. func_opt_split ()
  12764. {
  12765. func_opt_split_opt=${1%%=*}
  12766. func_opt_split_arg=${1#*=}
  12767. }
  12768. # func_lo2o object
  12769. func_lo2o ()
  12770. {
  12771. case ${1} in
  12772. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12773. *) func_lo2o_result=${1} ;;
  12774. esac
  12775. }
  12776. # func_xform libobj-or-source
  12777. func_xform ()
  12778. {
  12779. func_xform_result=${1%.*}.lo
  12780. }
  12781. # func_arith arithmetic-term...
  12782. func_arith ()
  12783. {
  12784. func_arith_result=$(( $* ))
  12785. }
  12786. # func_len string
  12787. # STRING may not start with a hyphen.
  12788. func_len ()
  12789. {
  12790. func_len_result=${#1}
  12791. }
  12792. _LT_EOF
  12793. ;;
  12794. *) # Bourne compatible functions.
  12795. cat << \_LT_EOF >> "$cfgfile"
  12796. # func_dirname file append nondir_replacement
  12797. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12798. # otherwise set result to NONDIR_REPLACEMENT.
  12799. func_dirname ()
  12800. {
  12801. # Extract subdirectory from the argument.
  12802. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  12803. if test "X$func_dirname_result" = "X${1}"; then
  12804. func_dirname_result="${3}"
  12805. else
  12806. func_dirname_result="$func_dirname_result${2}"
  12807. fi
  12808. }
  12809. # func_basename file
  12810. func_basename ()
  12811. {
  12812. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  12813. }
  12814. # func_stripname prefix suffix name
  12815. # strip PREFIX and SUFFIX off of NAME.
  12816. # PREFIX and SUFFIX must not contain globbing or regex special
  12817. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12818. # dot (in which case that matches only a dot).
  12819. # func_strip_suffix prefix name
  12820. func_stripname ()
  12821. {
  12822. case ${2} in
  12823. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12824. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12825. esac
  12826. }
  12827. # sed scripts:
  12828. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12829. my_sed_long_arg='1s/^-[^=]*=//'
  12830. # func_opt_split
  12831. func_opt_split ()
  12832. {
  12833. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  12834. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  12835. }
  12836. # func_lo2o object
  12837. func_lo2o ()
  12838. {
  12839. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  12840. }
  12841. # func_xform libobj-or-source
  12842. func_xform ()
  12843. {
  12844. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  12845. }
  12846. # func_arith arithmetic-term...
  12847. func_arith ()
  12848. {
  12849. func_arith_result=`expr "$@"`
  12850. }
  12851. # func_len string
  12852. # STRING may not start with a hyphen.
  12853. func_len ()
  12854. {
  12855. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12856. }
  12857. _LT_EOF
  12858. esac
  12859. case $lt_shell_append in
  12860. yes)
  12861. cat << \_LT_EOF >> "$cfgfile"
  12862. # func_append var value
  12863. # Append VALUE to the end of shell variable VAR.
  12864. func_append ()
  12865. {
  12866. eval "$1+=\$2"
  12867. }
  12868. _LT_EOF
  12869. ;;
  12870. *)
  12871. cat << \_LT_EOF >> "$cfgfile"
  12872. # func_append var value
  12873. # Append VALUE to the end of shell variable VAR.
  12874. func_append ()
  12875. {
  12876. eval "$1=\$$1\$2"
  12877. }
  12878. _LT_EOF
  12879. ;;
  12880. esac
  12881. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12882. || (rm -f "$cfgfile"; exit 1)
  12883. mv -f "$cfgfile" "$ofile" ||
  12884. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12885. chmod +x "$ofile"
  12886. ;;
  12887. "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
  12888. rm -f Makesim1.tmp Makesim2.tmp Makefile
  12889. sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
  12890. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
  12891. sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
  12892. -e '/^## COMMON_POST_/ r Makesim2.tmp' \
  12893. <Makefile.sim >Makefile
  12894. rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
  12895. ;;
  12896. "stamp-h":C) echo > stamp-h ;;
  12897. esac
  12898. done # for ac_tag
  12899. as_fn_exit 0
  12900. _ACEOF
  12901. ac_clean_files=$ac_clean_files_save
  12902. test $ac_write_fail = 0 ||
  12903. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12904. # configure is writing to config.log, and then calls config.status.
  12905. # config.status does its own redirection, appending to config.log.
  12906. # Unfortunately, on DOS this fails, as config.log is still kept open
  12907. # by configure, so config.status won't be able to write to it; its
  12908. # output is simply discarded. So we exec the FD to /dev/null,
  12909. # effectively closing config.log, so it can be properly (re)opened and
  12910. # appended to by config.status. When coming back to configure, we
  12911. # need to make the FD available again.
  12912. if test "$no_create" != yes; then
  12913. ac_cs_success=:
  12914. ac_config_status_args=
  12915. test "$silent" = yes &&
  12916. ac_config_status_args="$ac_config_status_args --quiet"
  12917. exec 5>/dev/null
  12918. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12919. exec 5>>config.log
  12920. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12921. # would make configure fail if this is the last instruction.
  12922. $ac_cs_success || as_fn_exit $?
  12923. fi
  12924. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12925. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12926. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12927. fi