configure 448 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738
  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. REPORT_BUGS_TEXI
  554. REPORT_BUGS_TO
  555. PKGVERSION
  556. sim_profile
  557. sim_trace
  558. sim_stdio
  559. sim_debug
  560. sim_cflags
  561. sim_bswap
  562. MAINT
  563. MAINTAINER_MODE_FALSE
  564. MAINTAINER_MODE_TRUE
  565. lt_cv_dlopen_libs
  566. OTOOL64
  567. OTOOL
  568. LIPO
  569. NMEDIT
  570. DSYMUTIL
  571. AWK
  572. STRIP
  573. OBJDUMP
  574. LN_S
  575. NM
  576. ac_ct_DUMPBIN
  577. DUMPBIN
  578. LD
  579. FGREP
  580. SED
  581. LIBTOOL
  582. PLUGINS_FALSE
  583. PLUGINS_TRUE
  584. zlibinc
  585. zlibdir
  586. CATOBJEXT
  587. GENCAT
  588. INSTOBJEXT
  589. DATADIRNAME
  590. CATALOGS
  591. POSUB
  592. GMSGFMT
  593. XGETTEXT
  594. INCINTL
  595. LIBINTL_DEP
  596. LIBINTL
  597. USE_NLS
  598. GMAKE_FALSE
  599. GMAKE_TRUE
  600. MAKE
  601. CCDEPMODE
  602. DEPDIR
  603. am__leading_dot
  604. PACKAGE
  605. RANLIB
  606. AR
  607. HDEFINES
  608. CC_FOR_BUILD
  609. INSTALL_DATA
  610. INSTALL_SCRIPT
  611. INSTALL_PROGRAM
  612. EGREP
  613. GREP
  614. CPP
  615. target_os
  616. target_vendor
  617. target_cpu
  618. target
  619. host_os
  620. host_vendor
  621. host_cpu
  622. host
  623. build_os
  624. build_vendor
  625. build_cpu
  626. build
  627. OBJEXT
  628. EXEEXT
  629. ac_ct_CC
  630. CPPFLAGS
  631. LDFLAGS
  632. CFLAGS
  633. CC
  634. WERROR_CFLAGS
  635. WARN_CFLAGS
  636. sim_xor_endian
  637. sim_stdcall
  638. sim_smp
  639. sim_reserved_bits
  640. sim_regparm
  641. sim_packages
  642. sim_inline
  643. sim_hw
  644. sim_hw_objs
  645. sim_hw_cflags
  646. sim_default_model
  647. sim_scache
  648. sim_float
  649. sim_hostendian
  650. sim_endian
  651. sim_bitsize
  652. sim_assert
  653. sim_alignment
  654. sim_environment
  655. target_alias
  656. host_alias
  657. build_alias
  658. LIBS
  659. ECHO_T
  660. ECHO_N
  661. ECHO_C
  662. DEFS
  663. mandir
  664. localedir
  665. libdir
  666. psdir
  667. pdfdir
  668. dvidir
  669. htmldir
  670. infodir
  671. docdir
  672. oldincludedir
  673. includedir
  674. localstatedir
  675. sharedstatedir
  676. sysconfdir
  677. datadir
  678. datarootdir
  679. libexecdir
  680. sbindir
  681. bindir
  682. program_transform_name
  683. prefix
  684. exec_prefix
  685. PACKAGE_URL
  686. PACKAGE_BUGREPORT
  687. PACKAGE_STRING
  688. PACKAGE_VERSION
  689. PACKAGE_TARNAME
  690. PACKAGE_NAME
  691. PATH_SEPARATOR
  692. SHELL'
  693. ac_subst_files=''
  694. ac_user_opts='
  695. enable_option_checking
  696. with_system_zlib
  697. enable_plugins
  698. enable_shared
  699. enable_static
  700. with_pic
  701. enable_fast_install
  702. with_gnu_ld
  703. enable_libtool_lock
  704. enable_maintainer_mode
  705. enable_sim_bswap
  706. enable_sim_cflags
  707. enable_sim_debug
  708. enable_sim_stdio
  709. enable_sim_trace
  710. enable_sim_profile
  711. with_pkgversion
  712. with_bugurl
  713. enable_sim_inline
  714. enable_sim_alignment
  715. enable_sim_hostendian
  716. enable_werror
  717. enable_build_warnings
  718. enable_sim_build_warnings
  719. enable_sim_hardware
  720. '
  721. ac_precious_vars='build_alias
  722. host_alias
  723. target_alias
  724. CC
  725. CFLAGS
  726. LDFLAGS
  727. LIBS
  728. CPPFLAGS
  729. CPP'
  730. # Initialize some variables set by options.
  731. ac_init_help=
  732. ac_init_version=false
  733. ac_unrecognized_opts=
  734. ac_unrecognized_sep=
  735. # The variables have the same names as the options, with
  736. # dashes changed to underlines.
  737. cache_file=/dev/null
  738. exec_prefix=NONE
  739. no_create=
  740. no_recursion=
  741. prefix=NONE
  742. program_prefix=NONE
  743. program_suffix=NONE
  744. program_transform_name=s,x,x,
  745. silent=
  746. site=
  747. srcdir=
  748. verbose=
  749. x_includes=NONE
  750. x_libraries=NONE
  751. # Installation directory options.
  752. # These are left unexpanded so users can "make install exec_prefix=/foo"
  753. # and all the variables that are supposed to be based on exec_prefix
  754. # by default will actually change.
  755. # Use braces instead of parens because sh, perl, etc. also accept them.
  756. # (The list follows the same order as the GNU Coding Standards.)
  757. bindir='${exec_prefix}/bin'
  758. sbindir='${exec_prefix}/sbin'
  759. libexecdir='${exec_prefix}/libexec'
  760. datarootdir='${prefix}/share'
  761. datadir='${datarootdir}'
  762. sysconfdir='${prefix}/etc'
  763. sharedstatedir='${prefix}/com'
  764. localstatedir='${prefix}/var'
  765. includedir='${prefix}/include'
  766. oldincludedir='/usr/include'
  767. docdir='${datarootdir}/doc/${PACKAGE}'
  768. infodir='${datarootdir}/info'
  769. htmldir='${docdir}'
  770. dvidir='${docdir}'
  771. pdfdir='${docdir}'
  772. psdir='${docdir}'
  773. libdir='${exec_prefix}/lib'
  774. localedir='${datarootdir}/locale'
  775. mandir='${datarootdir}/man'
  776. ac_prev=
  777. ac_dashdash=
  778. for ac_option
  779. do
  780. # If the previous option needs an argument, assign it.
  781. if test -n "$ac_prev"; then
  782. eval $ac_prev=\$ac_option
  783. ac_prev=
  784. continue
  785. fi
  786. case $ac_option in
  787. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  788. *) ac_optarg=yes ;;
  789. esac
  790. # Accept the important Cygnus configure options, so we can diagnose typos.
  791. case $ac_dashdash$ac_option in
  792. --)
  793. ac_dashdash=yes ;;
  794. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  795. ac_prev=bindir ;;
  796. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  797. bindir=$ac_optarg ;;
  798. -build | --build | --buil | --bui | --bu)
  799. ac_prev=build_alias ;;
  800. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  801. build_alias=$ac_optarg ;;
  802. -cache-file | --cache-file | --cache-fil | --cache-fi \
  803. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  804. ac_prev=cache_file ;;
  805. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  806. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  807. cache_file=$ac_optarg ;;
  808. --config-cache | -C)
  809. cache_file=config.cache ;;
  810. -datadir | --datadir | --datadi | --datad)
  811. ac_prev=datadir ;;
  812. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  813. datadir=$ac_optarg ;;
  814. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  815. | --dataroo | --dataro | --datar)
  816. ac_prev=datarootdir ;;
  817. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  818. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  819. datarootdir=$ac_optarg ;;
  820. -disable-* | --disable-*)
  821. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  822. # Reject names that are not valid shell variable names.
  823. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  824. as_fn_error "invalid feature name: $ac_useropt"
  825. ac_useropt_orig=$ac_useropt
  826. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  827. case $ac_user_opts in
  828. *"
  829. "enable_$ac_useropt"
  830. "*) ;;
  831. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  832. ac_unrecognized_sep=', ';;
  833. esac
  834. eval enable_$ac_useropt=no ;;
  835. -docdir | --docdir | --docdi | --doc | --do)
  836. ac_prev=docdir ;;
  837. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  838. docdir=$ac_optarg ;;
  839. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  840. ac_prev=dvidir ;;
  841. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  842. dvidir=$ac_optarg ;;
  843. -enable-* | --enable-*)
  844. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  845. # Reject names that are not valid shell variable names.
  846. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  847. as_fn_error "invalid feature name: $ac_useropt"
  848. ac_useropt_orig=$ac_useropt
  849. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  850. case $ac_user_opts in
  851. *"
  852. "enable_$ac_useropt"
  853. "*) ;;
  854. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  855. ac_unrecognized_sep=', ';;
  856. esac
  857. eval enable_$ac_useropt=\$ac_optarg ;;
  858. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  859. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  860. | --exec | --exe | --ex)
  861. ac_prev=exec_prefix ;;
  862. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  863. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  864. | --exec=* | --exe=* | --ex=*)
  865. exec_prefix=$ac_optarg ;;
  866. -gas | --gas | --ga | --g)
  867. # Obsolete; use --with-gas.
  868. with_gas=yes ;;
  869. -help | --help | --hel | --he | -h)
  870. ac_init_help=long ;;
  871. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  872. ac_init_help=recursive ;;
  873. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  874. ac_init_help=short ;;
  875. -host | --host | --hos | --ho)
  876. ac_prev=host_alias ;;
  877. -host=* | --host=* | --hos=* | --ho=*)
  878. host_alias=$ac_optarg ;;
  879. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  880. ac_prev=htmldir ;;
  881. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  882. | --ht=*)
  883. htmldir=$ac_optarg ;;
  884. -includedir | --includedir | --includedi | --included | --include \
  885. | --includ | --inclu | --incl | --inc)
  886. ac_prev=includedir ;;
  887. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  888. | --includ=* | --inclu=* | --incl=* | --inc=*)
  889. includedir=$ac_optarg ;;
  890. -infodir | --infodir | --infodi | --infod | --info | --inf)
  891. ac_prev=infodir ;;
  892. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  893. infodir=$ac_optarg ;;
  894. -libdir | --libdir | --libdi | --libd)
  895. ac_prev=libdir ;;
  896. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  897. libdir=$ac_optarg ;;
  898. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  899. | --libexe | --libex | --libe)
  900. ac_prev=libexecdir ;;
  901. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  902. | --libexe=* | --libex=* | --libe=*)
  903. libexecdir=$ac_optarg ;;
  904. -localedir | --localedir | --localedi | --localed | --locale)
  905. ac_prev=localedir ;;
  906. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  907. localedir=$ac_optarg ;;
  908. -localstatedir | --localstatedir | --localstatedi | --localstated \
  909. | --localstate | --localstat | --localsta | --localst | --locals)
  910. ac_prev=localstatedir ;;
  911. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  912. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  913. localstatedir=$ac_optarg ;;
  914. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  915. ac_prev=mandir ;;
  916. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  917. mandir=$ac_optarg ;;
  918. -nfp | --nfp | --nf)
  919. # Obsolete; use --without-fp.
  920. with_fp=no ;;
  921. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  922. | --no-cr | --no-c | -n)
  923. no_create=yes ;;
  924. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  925. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  926. no_recursion=yes ;;
  927. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  928. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  929. | --oldin | --oldi | --old | --ol | --o)
  930. ac_prev=oldincludedir ;;
  931. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  932. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  933. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  934. oldincludedir=$ac_optarg ;;
  935. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  936. ac_prev=prefix ;;
  937. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  938. prefix=$ac_optarg ;;
  939. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  940. | --program-pre | --program-pr | --program-p)
  941. ac_prev=program_prefix ;;
  942. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  943. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  944. program_prefix=$ac_optarg ;;
  945. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  946. | --program-suf | --program-su | --program-s)
  947. ac_prev=program_suffix ;;
  948. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  949. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  950. program_suffix=$ac_optarg ;;
  951. -program-transform-name | --program-transform-name \
  952. | --program-transform-nam | --program-transform-na \
  953. | --program-transform-n | --program-transform- \
  954. | --program-transform | --program-transfor \
  955. | --program-transfo | --program-transf \
  956. | --program-trans | --program-tran \
  957. | --progr-tra | --program-tr | --program-t)
  958. ac_prev=program_transform_name ;;
  959. -program-transform-name=* | --program-transform-name=* \
  960. | --program-transform-nam=* | --program-transform-na=* \
  961. | --program-transform-n=* | --program-transform-=* \
  962. | --program-transform=* | --program-transfor=* \
  963. | --program-transfo=* | --program-transf=* \
  964. | --program-trans=* | --program-tran=* \
  965. | --progr-tra=* | --program-tr=* | --program-t=*)
  966. program_transform_name=$ac_optarg ;;
  967. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  968. ac_prev=pdfdir ;;
  969. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  970. pdfdir=$ac_optarg ;;
  971. -psdir | --psdir | --psdi | --psd | --ps)
  972. ac_prev=psdir ;;
  973. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  974. psdir=$ac_optarg ;;
  975. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  976. | -silent | --silent | --silen | --sile | --sil)
  977. silent=yes ;;
  978. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  979. ac_prev=sbindir ;;
  980. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  981. | --sbi=* | --sb=*)
  982. sbindir=$ac_optarg ;;
  983. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  984. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  985. | --sharedst | --shareds | --shared | --share | --shar \
  986. | --sha | --sh)
  987. ac_prev=sharedstatedir ;;
  988. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  989. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  990. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  991. | --sha=* | --sh=*)
  992. sharedstatedir=$ac_optarg ;;
  993. -site | --site | --sit)
  994. ac_prev=site ;;
  995. -site=* | --site=* | --sit=*)
  996. site=$ac_optarg ;;
  997. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  998. ac_prev=srcdir ;;
  999. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1000. srcdir=$ac_optarg ;;
  1001. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1002. | --syscon | --sysco | --sysc | --sys | --sy)
  1003. ac_prev=sysconfdir ;;
  1004. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1005. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1006. sysconfdir=$ac_optarg ;;
  1007. -target | --target | --targe | --targ | --tar | --ta | --t)
  1008. ac_prev=target_alias ;;
  1009. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1010. target_alias=$ac_optarg ;;
  1011. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1012. verbose=yes ;;
  1013. -version | --version | --versio | --versi | --vers | -V)
  1014. ac_init_version=: ;;
  1015. -with-* | --with-*)
  1016. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1017. # Reject names that are not valid shell variable names.
  1018. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1019. as_fn_error "invalid package name: $ac_useropt"
  1020. ac_useropt_orig=$ac_useropt
  1021. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1022. case $ac_user_opts in
  1023. *"
  1024. "with_$ac_useropt"
  1025. "*) ;;
  1026. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1027. ac_unrecognized_sep=', ';;
  1028. esac
  1029. eval with_$ac_useropt=\$ac_optarg ;;
  1030. -without-* | --without-*)
  1031. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1032. # Reject names that are not valid shell variable names.
  1033. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1034. as_fn_error "invalid package name: $ac_useropt"
  1035. ac_useropt_orig=$ac_useropt
  1036. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1037. case $ac_user_opts in
  1038. *"
  1039. "with_$ac_useropt"
  1040. "*) ;;
  1041. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1042. ac_unrecognized_sep=', ';;
  1043. esac
  1044. eval with_$ac_useropt=no ;;
  1045. --x)
  1046. # Obsolete; use --with-x.
  1047. with_x=yes ;;
  1048. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1049. | --x-incl | --x-inc | --x-in | --x-i)
  1050. ac_prev=x_includes ;;
  1051. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1052. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1053. x_includes=$ac_optarg ;;
  1054. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1055. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1056. ac_prev=x_libraries ;;
  1057. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1058. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1059. x_libraries=$ac_optarg ;;
  1060. -*) as_fn_error "unrecognized option: \`$ac_option'
  1061. Try \`$0 --help' for more information."
  1062. ;;
  1063. *=*)
  1064. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1065. # Reject names that are not valid shell variable names.
  1066. case $ac_envvar in #(
  1067. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1068. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1069. esac
  1070. eval $ac_envvar=\$ac_optarg
  1071. export $ac_envvar ;;
  1072. *)
  1073. # FIXME: should be removed in autoconf 3.0.
  1074. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1075. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1076. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1077. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1078. ;;
  1079. esac
  1080. done
  1081. if test -n "$ac_prev"; then
  1082. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1083. as_fn_error "missing argument to $ac_option"
  1084. fi
  1085. if test -n "$ac_unrecognized_opts"; then
  1086. case $enable_option_checking in
  1087. no) ;;
  1088. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1089. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1090. esac
  1091. fi
  1092. # Check all directory arguments for consistency.
  1093. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1094. datadir sysconfdir sharedstatedir localstatedir includedir \
  1095. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1096. libdir localedir mandir
  1097. do
  1098. eval ac_val=\$$ac_var
  1099. # Remove trailing slashes.
  1100. case $ac_val in
  1101. */ )
  1102. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1103. eval $ac_var=\$ac_val;;
  1104. esac
  1105. # Be sure to have absolute directory names.
  1106. case $ac_val in
  1107. [\\/$]* | ?:[\\/]* ) continue;;
  1108. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1109. esac
  1110. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1111. done
  1112. # There might be people who depend on the old broken behavior: `$host'
  1113. # used to hold the argument of --host etc.
  1114. # FIXME: To remove some day.
  1115. build=$build_alias
  1116. host=$host_alias
  1117. target=$target_alias
  1118. # FIXME: To remove some day.
  1119. if test "x$host_alias" != x; then
  1120. if test "x$build_alias" = x; then
  1121. cross_compiling=maybe
  1122. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1123. If a cross compiler is detected then cross compile mode will be used." >&2
  1124. elif test "x$build_alias" != "x$host_alias"; then
  1125. cross_compiling=yes
  1126. fi
  1127. fi
  1128. ac_tool_prefix=
  1129. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1130. test "$silent" = yes && exec 6>/dev/null
  1131. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1132. ac_ls_di=`ls -di .` &&
  1133. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1134. as_fn_error "working directory cannot be determined"
  1135. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1136. as_fn_error "pwd does not report name of working directory"
  1137. # Find the source files, if location was not specified.
  1138. if test -z "$srcdir"; then
  1139. ac_srcdir_defaulted=yes
  1140. # Try the directory containing this script, then the parent directory.
  1141. ac_confdir=`$as_dirname -- "$as_myself" ||
  1142. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1143. X"$as_myself" : 'X\(//\)[^/]' \| \
  1144. X"$as_myself" : 'X\(//\)$' \| \
  1145. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1146. $as_echo X"$as_myself" |
  1147. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1148. s//\1/
  1149. q
  1150. }
  1151. /^X\(\/\/\)[^/].*/{
  1152. s//\1/
  1153. q
  1154. }
  1155. /^X\(\/\/\)$/{
  1156. s//\1/
  1157. q
  1158. }
  1159. /^X\(\/\).*/{
  1160. s//\1/
  1161. q
  1162. }
  1163. s/.*/./; q'`
  1164. srcdir=$ac_confdir
  1165. if test ! -r "$srcdir/$ac_unique_file"; then
  1166. srcdir=..
  1167. fi
  1168. else
  1169. ac_srcdir_defaulted=no
  1170. fi
  1171. if test ! -r "$srcdir/$ac_unique_file"; then
  1172. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1173. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1174. fi
  1175. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1176. ac_abs_confdir=`(
  1177. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1178. pwd)`
  1179. # When building in place, set srcdir=.
  1180. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1181. srcdir=.
  1182. fi
  1183. # Remove unnecessary trailing slashes from srcdir.
  1184. # Double slashes in file names in object file debugging info
  1185. # mess up M-x gdb in Emacs.
  1186. case $srcdir in
  1187. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1188. esac
  1189. for ac_var in $ac_precious_vars; do
  1190. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1191. eval ac_env_${ac_var}_value=\$${ac_var}
  1192. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1193. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1194. done
  1195. #
  1196. # Report the --help message.
  1197. #
  1198. if test "$ac_init_help" = "long"; then
  1199. # Omit some internal or obsolete options to make the list less imposing.
  1200. # This message is too long to be a string in the A/UX 3.1 sh.
  1201. cat <<_ACEOF
  1202. \`configure' configures this package to adapt to many kinds of systems.
  1203. Usage: $0 [OPTION]... [VAR=VALUE]...
  1204. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1205. VAR=VALUE. See below for descriptions of some of the useful variables.
  1206. Defaults for the options are specified in brackets.
  1207. Configuration:
  1208. -h, --help display this help and exit
  1209. --help=short display options specific to this package
  1210. --help=recursive display the short help of all the included packages
  1211. -V, --version display version information and exit
  1212. -q, --quiet, --silent do not print \`checking...' messages
  1213. --cache-file=FILE cache test results in FILE [disabled]
  1214. -C, --config-cache alias for \`--cache-file=config.cache'
  1215. -n, --no-create do not create output files
  1216. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1217. Installation directories:
  1218. --prefix=PREFIX install architecture-independent files in PREFIX
  1219. [$ac_default_prefix]
  1220. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1221. [PREFIX]
  1222. By default, \`make install' will install all the files in
  1223. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1224. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1225. for instance \`--prefix=\$HOME'.
  1226. For better control, use the options below.
  1227. Fine tuning of the installation directories:
  1228. --bindir=DIR user executables [EPREFIX/bin]
  1229. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1230. --libexecdir=DIR program executables [EPREFIX/libexec]
  1231. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1232. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1233. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1234. --libdir=DIR object code libraries [EPREFIX/lib]
  1235. --includedir=DIR C header files [PREFIX/include]
  1236. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1237. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1238. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1239. --infodir=DIR info documentation [DATAROOTDIR/info]
  1240. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1241. --mandir=DIR man documentation [DATAROOTDIR/man]
  1242. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1243. --htmldir=DIR html documentation [DOCDIR]
  1244. --dvidir=DIR dvi documentation [DOCDIR]
  1245. --pdfdir=DIR pdf documentation [DOCDIR]
  1246. --psdir=DIR ps documentation [DOCDIR]
  1247. _ACEOF
  1248. cat <<\_ACEOF
  1249. Program names:
  1250. --program-prefix=PREFIX prepend PREFIX to installed program names
  1251. --program-suffix=SUFFIX append SUFFIX to installed program names
  1252. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1253. System types:
  1254. --build=BUILD configure for building on BUILD [guessed]
  1255. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1256. --target=TARGET configure for building compilers for TARGET [HOST]
  1257. _ACEOF
  1258. fi
  1259. if test -n "$ac_init_help"; then
  1260. cat <<\_ACEOF
  1261. Optional Features:
  1262. --disable-option-checking ignore unrecognized --enable/--with options
  1263. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1264. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1265. --enable-plugins Enable support for plugins
  1266. --enable-shared[=PKGS] build shared libraries [default=yes]
  1267. --enable-static[=PKGS] build static libraries [default=yes]
  1268. --enable-fast-install[=PKGS]
  1269. optimize for fast installation [default=yes]
  1270. --disable-libtool-lock avoid locking (might break parallel builds)
  1271. --enable-maintainer-mode enable make rules and dependencies not useful
  1272. (and sometimes confusing) to the casual installer
  1273. --enable-sim-bswap Use Host specific BSWAP instruction
  1274. --enable-sim-cflags=opts
  1275. Extra CFLAGS for use in building simulator
  1276. --enable-sim-debug=opts Enable debugging flags (for developers of the sim
  1277. itself)
  1278. --enable-sim-stdio Specify whether to use stdio for console
  1279. input/output
  1280. --enable-sim-trace=opts Enable tracing of simulated programs
  1281. --enable-sim-profile=opts
  1282. Enable profiling flags
  1283. --enable-sim-inline=inlines
  1284. Specify which functions should be inlined
  1285. --enable-sim-alignment=align
  1286. Specify strict, nonstrict or forced alignment of
  1287. memory accesses
  1288. --enable-sim-hostendian=end
  1289. Specify host byte endian orientation
  1290. --enable-werror treat compile warnings as errors
  1291. --enable-build-warnings enable build-time compiler warnings if gcc is used
  1292. --enable-sim-build-warnings
  1293. enable SIM specific build-time compiler warnings if
  1294. gcc is used
  1295. --enable-sim-hardware=LIST
  1296. Specify the hardware to be included in the build.
  1297. Optional Packages:
  1298. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1299. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1300. --with-system-zlib use installed libz
  1301. --with-pic try to use only PIC/non-PIC objects [default=use
  1302. both]
  1303. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1304. --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
  1305. --with-bugurl=URL Direct users to URL to report a bug
  1306. Some influential environment variables:
  1307. CC C compiler command
  1308. CFLAGS C compiler flags
  1309. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1310. nonstandard directory <lib dir>
  1311. LIBS libraries to pass to the linker, e.g. -l<library>
  1312. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1313. you have headers in a nonstandard directory <include dir>
  1314. CPP C preprocessor
  1315. Use these variables to override the choices made by `configure' or to help
  1316. it to find libraries and programs with nonstandard names/locations.
  1317. Report bugs to the package provider.
  1318. _ACEOF
  1319. ac_status=$?
  1320. fi
  1321. if test "$ac_init_help" = "recursive"; then
  1322. # If there are subdirs, report their specific --help.
  1323. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1324. test -d "$ac_dir" ||
  1325. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1326. continue
  1327. ac_builddir=.
  1328. case "$ac_dir" in
  1329. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1330. *)
  1331. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1332. # A ".." for each directory in $ac_dir_suffix.
  1333. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1334. case $ac_top_builddir_sub in
  1335. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1336. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1337. esac ;;
  1338. esac
  1339. ac_abs_top_builddir=$ac_pwd
  1340. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1341. # for backward compatibility:
  1342. ac_top_builddir=$ac_top_build_prefix
  1343. case $srcdir in
  1344. .) # We are building in place.
  1345. ac_srcdir=.
  1346. ac_top_srcdir=$ac_top_builddir_sub
  1347. ac_abs_top_srcdir=$ac_pwd ;;
  1348. [\\/]* | ?:[\\/]* ) # Absolute name.
  1349. ac_srcdir=$srcdir$ac_dir_suffix;
  1350. ac_top_srcdir=$srcdir
  1351. ac_abs_top_srcdir=$srcdir ;;
  1352. *) # Relative name.
  1353. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1354. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1355. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1356. esac
  1357. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1358. cd "$ac_dir" || { ac_status=$?; continue; }
  1359. # Check for guested configure.
  1360. if test -f "$ac_srcdir/configure.gnu"; then
  1361. echo &&
  1362. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1363. elif test -f "$ac_srcdir/configure"; then
  1364. echo &&
  1365. $SHELL "$ac_srcdir/configure" --help=recursive
  1366. else
  1367. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1368. fi || ac_status=$?
  1369. cd "$ac_pwd" || { ac_status=$?; break; }
  1370. done
  1371. fi
  1372. test -n "$ac_init_help" && exit $ac_status
  1373. if $ac_init_version; then
  1374. cat <<\_ACEOF
  1375. configure
  1376. generated by GNU Autoconf 2.64
  1377. Copyright (C) 2009 Free Software Foundation, Inc.
  1378. This configure script is free software; the Free Software Foundation
  1379. gives unlimited permission to copy, distribute and modify it.
  1380. _ACEOF
  1381. exit
  1382. fi
  1383. ## ------------------------ ##
  1384. ## Autoconf initialization. ##
  1385. ## ------------------------ ##
  1386. # ac_fn_c_try_compile LINENO
  1387. # --------------------------
  1388. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1389. ac_fn_c_try_compile ()
  1390. {
  1391. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1392. rm -f conftest.$ac_objext
  1393. if { { ac_try="$ac_compile"
  1394. case "(($ac_try" in
  1395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1396. *) ac_try_echo=$ac_try;;
  1397. esac
  1398. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1399. $as_echo "$ac_try_echo"; } >&5
  1400. (eval "$ac_compile") 2>conftest.err
  1401. ac_status=$?
  1402. if test -s conftest.err; then
  1403. grep -v '^ *+' conftest.err >conftest.er1
  1404. cat conftest.er1 >&5
  1405. mv -f conftest.er1 conftest.err
  1406. fi
  1407. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1408. test $ac_status = 0; } && {
  1409. test -z "$ac_c_werror_flag" ||
  1410. test ! -s conftest.err
  1411. } && test -s conftest.$ac_objext; then :
  1412. ac_retval=0
  1413. else
  1414. $as_echo "$as_me: failed program was:" >&5
  1415. sed 's/^/| /' conftest.$ac_ext >&5
  1416. ac_retval=1
  1417. fi
  1418. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1419. return $ac_retval
  1420. } # ac_fn_c_try_compile
  1421. # ac_fn_c_try_cpp LINENO
  1422. # ----------------------
  1423. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1424. ac_fn_c_try_cpp ()
  1425. {
  1426. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1427. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1428. case "(($ac_try" in
  1429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1430. *) ac_try_echo=$ac_try;;
  1431. esac
  1432. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1433. $as_echo "$ac_try_echo"; } >&5
  1434. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1435. ac_status=$?
  1436. if test -s conftest.err; then
  1437. grep -v '^ *+' conftest.err >conftest.er1
  1438. cat conftest.er1 >&5
  1439. mv -f conftest.er1 conftest.err
  1440. fi
  1441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1442. test $ac_status = 0; } >/dev/null && {
  1443. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1444. test ! -s conftest.err
  1445. }; then :
  1446. ac_retval=0
  1447. else
  1448. $as_echo "$as_me: failed program was:" >&5
  1449. sed 's/^/| /' conftest.$ac_ext >&5
  1450. ac_retval=1
  1451. fi
  1452. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1453. return $ac_retval
  1454. } # ac_fn_c_try_cpp
  1455. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1456. # -------------------------------------------------------
  1457. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1458. # the include files in INCLUDES and setting the cache variable VAR
  1459. # accordingly.
  1460. ac_fn_c_check_header_mongrel ()
  1461. {
  1462. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1463. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1465. $as_echo_n "checking for $2... " >&6; }
  1466. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1467. $as_echo_n "(cached) " >&6
  1468. fi
  1469. eval ac_res=\$$3
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1471. $as_echo "$ac_res" >&6; }
  1472. else
  1473. # Is the header compilable?
  1474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1475. $as_echo_n "checking $2 usability... " >&6; }
  1476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1477. /* end confdefs.h. */
  1478. $4
  1479. #include <$2>
  1480. _ACEOF
  1481. if ac_fn_c_try_compile "$LINENO"; then :
  1482. ac_header_compiler=yes
  1483. else
  1484. ac_header_compiler=no
  1485. fi
  1486. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1488. $as_echo "$ac_header_compiler" >&6; }
  1489. # Is the header present?
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1491. $as_echo_n "checking $2 presence... " >&6; }
  1492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1493. /* end confdefs.h. */
  1494. #include <$2>
  1495. _ACEOF
  1496. if ac_fn_c_try_cpp "$LINENO"; then :
  1497. ac_header_preproc=yes
  1498. else
  1499. ac_header_preproc=no
  1500. fi
  1501. rm -f conftest.err conftest.$ac_ext
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1503. $as_echo "$ac_header_preproc" >&6; }
  1504. # So? What about this header?
  1505. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1506. yes:no: )
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1508. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1510. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1511. ;;
  1512. no:yes:* )
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1514. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1516. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1518. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1520. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1522. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1523. ;;
  1524. esac
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1526. $as_echo_n "checking for $2... " >&6; }
  1527. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1528. $as_echo_n "(cached) " >&6
  1529. else
  1530. eval "$3=\$ac_header_compiler"
  1531. fi
  1532. eval ac_res=\$$3
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1534. $as_echo "$ac_res" >&6; }
  1535. fi
  1536. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1537. } # ac_fn_c_check_header_mongrel
  1538. # ac_fn_c_try_run LINENO
  1539. # ----------------------
  1540. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1541. # that executables *can* be run.
  1542. ac_fn_c_try_run ()
  1543. {
  1544. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1545. if { { ac_try="$ac_link"
  1546. case "(($ac_try" in
  1547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1548. *) ac_try_echo=$ac_try;;
  1549. esac
  1550. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1551. $as_echo "$ac_try_echo"; } >&5
  1552. (eval "$ac_link") 2>&5
  1553. ac_status=$?
  1554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1555. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1556. { { case "(($ac_try" in
  1557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1558. *) ac_try_echo=$ac_try;;
  1559. esac
  1560. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1561. $as_echo "$ac_try_echo"; } >&5
  1562. (eval "$ac_try") 2>&5
  1563. ac_status=$?
  1564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1565. test $ac_status = 0; }; }; then :
  1566. ac_retval=0
  1567. else
  1568. $as_echo "$as_me: program exited with status $ac_status" >&5
  1569. $as_echo "$as_me: failed program was:" >&5
  1570. sed 's/^/| /' conftest.$ac_ext >&5
  1571. ac_retval=$ac_status
  1572. fi
  1573. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1574. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1575. return $ac_retval
  1576. } # ac_fn_c_try_run
  1577. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1578. # -------------------------------------------------------
  1579. # Tests whether HEADER exists and can be compiled using the include files in
  1580. # INCLUDES, setting the cache variable VAR accordingly.
  1581. ac_fn_c_check_header_compile ()
  1582. {
  1583. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1585. $as_echo_n "checking for $2... " >&6; }
  1586. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1587. $as_echo_n "(cached) " >&6
  1588. else
  1589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1590. /* end confdefs.h. */
  1591. $4
  1592. #include <$2>
  1593. _ACEOF
  1594. if ac_fn_c_try_compile "$LINENO"; then :
  1595. eval "$3=yes"
  1596. else
  1597. eval "$3=no"
  1598. fi
  1599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1600. fi
  1601. eval ac_res=\$$3
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1603. $as_echo "$ac_res" >&6; }
  1604. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1605. } # ac_fn_c_check_header_compile
  1606. # ac_fn_c_try_link LINENO
  1607. # -----------------------
  1608. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1609. ac_fn_c_try_link ()
  1610. {
  1611. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1612. rm -f conftest.$ac_objext conftest$ac_exeext
  1613. if { { ac_try="$ac_link"
  1614. case "(($ac_try" in
  1615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1616. *) ac_try_echo=$ac_try;;
  1617. esac
  1618. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1619. $as_echo "$ac_try_echo"; } >&5
  1620. (eval "$ac_link") 2>conftest.err
  1621. ac_status=$?
  1622. if test -s conftest.err; then
  1623. grep -v '^ *+' conftest.err >conftest.er1
  1624. cat conftest.er1 >&5
  1625. mv -f conftest.er1 conftest.err
  1626. fi
  1627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1628. test $ac_status = 0; } && {
  1629. test -z "$ac_c_werror_flag" ||
  1630. test ! -s conftest.err
  1631. } && test -s conftest$ac_exeext && {
  1632. test "$cross_compiling" = yes ||
  1633. $as_test_x conftest$ac_exeext
  1634. }; then :
  1635. ac_retval=0
  1636. else
  1637. $as_echo "$as_me: failed program was:" >&5
  1638. sed 's/^/| /' conftest.$ac_ext >&5
  1639. ac_retval=1
  1640. fi
  1641. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1642. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1643. # interfere with the next link command; also delete a directory that is
  1644. # left behind by Apple's compiler. We do this before executing the actions.
  1645. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1646. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1647. return $ac_retval
  1648. } # ac_fn_c_try_link
  1649. # ac_fn_c_check_func LINENO FUNC VAR
  1650. # ----------------------------------
  1651. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1652. ac_fn_c_check_func ()
  1653. {
  1654. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1656. $as_echo_n "checking for $2... " >&6; }
  1657. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1658. $as_echo_n "(cached) " >&6
  1659. else
  1660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1661. /* end confdefs.h. */
  1662. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1663. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1664. #define $2 innocuous_$2
  1665. /* System header to define __stub macros and hopefully few prototypes,
  1666. which can conflict with char $2 (); below.
  1667. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1668. <limits.h> exists even on freestanding compilers. */
  1669. #ifdef __STDC__
  1670. # include <limits.h>
  1671. #else
  1672. # include <assert.h>
  1673. #endif
  1674. #undef $2
  1675. /* Override any GCC internal prototype to avoid an error.
  1676. Use char because int might match the return type of a GCC
  1677. builtin and then its argument prototype would still apply. */
  1678. #ifdef __cplusplus
  1679. extern "C"
  1680. #endif
  1681. char $2 ();
  1682. /* The GNU C library defines this for functions which it implements
  1683. to always fail with ENOSYS. Some functions are actually named
  1684. something starting with __ and the normal name is an alias. */
  1685. #if defined __stub_$2 || defined __stub___$2
  1686. choke me
  1687. #endif
  1688. int
  1689. main ()
  1690. {
  1691. return $2 ();
  1692. ;
  1693. return 0;
  1694. }
  1695. _ACEOF
  1696. if ac_fn_c_try_link "$LINENO"; then :
  1697. eval "$3=yes"
  1698. else
  1699. eval "$3=no"
  1700. fi
  1701. rm -f core conftest.err conftest.$ac_objext \
  1702. conftest$ac_exeext conftest.$ac_ext
  1703. fi
  1704. eval ac_res=\$$3
  1705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1706. $as_echo "$ac_res" >&6; }
  1707. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1708. } # ac_fn_c_check_func
  1709. cat >config.log <<_ACEOF
  1710. This file contains any messages produced by compilers while
  1711. running configure, to aid debugging if configure makes a mistake.
  1712. It was created by $as_me, which was
  1713. generated by GNU Autoconf 2.64. Invocation command line was
  1714. $ $0 $@
  1715. _ACEOF
  1716. exec 5>>config.log
  1717. {
  1718. cat <<_ASUNAME
  1719. ## --------- ##
  1720. ## Platform. ##
  1721. ## --------- ##
  1722. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1723. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1724. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1725. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1726. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1727. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1728. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1729. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1730. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1731. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1732. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1733. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1734. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1735. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1736. _ASUNAME
  1737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1738. for as_dir in $PATH
  1739. do
  1740. IFS=$as_save_IFS
  1741. test -z "$as_dir" && as_dir=.
  1742. $as_echo "PATH: $as_dir"
  1743. done
  1744. IFS=$as_save_IFS
  1745. } >&5
  1746. cat >&5 <<_ACEOF
  1747. ## ----------- ##
  1748. ## Core tests. ##
  1749. ## ----------- ##
  1750. _ACEOF
  1751. # Keep a trace of the command line.
  1752. # Strip out --no-create and --no-recursion so they do not pile up.
  1753. # Strip out --silent because we don't want to record it for future runs.
  1754. # Also quote any args containing shell meta-characters.
  1755. # Make two passes to allow for proper duplicate-argument suppression.
  1756. ac_configure_args=
  1757. ac_configure_args0=
  1758. ac_configure_args1=
  1759. ac_must_keep_next=false
  1760. for ac_pass in 1 2
  1761. do
  1762. for ac_arg
  1763. do
  1764. case $ac_arg in
  1765. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1766. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1767. | -silent | --silent | --silen | --sile | --sil)
  1768. continue ;;
  1769. *\'*)
  1770. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1771. esac
  1772. case $ac_pass in
  1773. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1774. 2)
  1775. as_fn_append ac_configure_args1 " '$ac_arg'"
  1776. if test $ac_must_keep_next = true; then
  1777. ac_must_keep_next=false # Got value, back to normal.
  1778. else
  1779. case $ac_arg in
  1780. *=* | --config-cache | -C | -disable-* | --disable-* \
  1781. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1782. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1783. | -with-* | --with-* | -without-* | --without-* | --x)
  1784. case "$ac_configure_args0 " in
  1785. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1786. esac
  1787. ;;
  1788. -* ) ac_must_keep_next=true ;;
  1789. esac
  1790. fi
  1791. as_fn_append ac_configure_args " '$ac_arg'"
  1792. ;;
  1793. esac
  1794. done
  1795. done
  1796. { ac_configure_args0=; unset ac_configure_args0;}
  1797. { ac_configure_args1=; unset ac_configure_args1;}
  1798. # When interrupted or exit'd, cleanup temporary files, and complete
  1799. # config.log. We remove comments because anyway the quotes in there
  1800. # would cause problems or look ugly.
  1801. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1802. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1803. trap 'exit_status=$?
  1804. # Save into config.log some information that might help in debugging.
  1805. {
  1806. echo
  1807. cat <<\_ASBOX
  1808. ## ---------------- ##
  1809. ## Cache variables. ##
  1810. ## ---------------- ##
  1811. _ASBOX
  1812. echo
  1813. # The following way of writing the cache mishandles newlines in values,
  1814. (
  1815. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1816. eval ac_val=\$$ac_var
  1817. case $ac_val in #(
  1818. *${as_nl}*)
  1819. case $ac_var in #(
  1820. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1821. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1822. esac
  1823. case $ac_var in #(
  1824. _ | IFS | as_nl) ;; #(
  1825. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1826. *) { eval $ac_var=; unset $ac_var;} ;;
  1827. esac ;;
  1828. esac
  1829. done
  1830. (set) 2>&1 |
  1831. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1832. *${as_nl}ac_space=\ *)
  1833. sed -n \
  1834. "s/'\''/'\''\\\\'\'''\''/g;
  1835. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1836. ;; #(
  1837. *)
  1838. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1839. ;;
  1840. esac |
  1841. sort
  1842. )
  1843. echo
  1844. cat <<\_ASBOX
  1845. ## ----------------- ##
  1846. ## Output variables. ##
  1847. ## ----------------- ##
  1848. _ASBOX
  1849. echo
  1850. for ac_var in $ac_subst_vars
  1851. do
  1852. eval ac_val=\$$ac_var
  1853. case $ac_val in
  1854. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1855. esac
  1856. $as_echo "$ac_var='\''$ac_val'\''"
  1857. done | sort
  1858. echo
  1859. if test -n "$ac_subst_files"; then
  1860. cat <<\_ASBOX
  1861. ## ------------------- ##
  1862. ## File substitutions. ##
  1863. ## ------------------- ##
  1864. _ASBOX
  1865. echo
  1866. for ac_var in $ac_subst_files
  1867. do
  1868. eval ac_val=\$$ac_var
  1869. case $ac_val in
  1870. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1871. esac
  1872. $as_echo "$ac_var='\''$ac_val'\''"
  1873. done | sort
  1874. echo
  1875. fi
  1876. if test -s confdefs.h; then
  1877. cat <<\_ASBOX
  1878. ## ----------- ##
  1879. ## confdefs.h. ##
  1880. ## ----------- ##
  1881. _ASBOX
  1882. echo
  1883. cat confdefs.h
  1884. echo
  1885. fi
  1886. test "$ac_signal" != 0 &&
  1887. $as_echo "$as_me: caught signal $ac_signal"
  1888. $as_echo "$as_me: exit $exit_status"
  1889. } >&5
  1890. rm -f core *.core core.conftest.* &&
  1891. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1892. exit $exit_status
  1893. ' 0
  1894. for ac_signal in 1 2 13 15; do
  1895. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1896. done
  1897. ac_signal=0
  1898. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1899. rm -f -r conftest* confdefs.h
  1900. $as_echo "/* confdefs.h */" > confdefs.h
  1901. # Predefined preprocessor variables.
  1902. cat >>confdefs.h <<_ACEOF
  1903. #define PACKAGE_NAME "$PACKAGE_NAME"
  1904. _ACEOF
  1905. cat >>confdefs.h <<_ACEOF
  1906. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1907. _ACEOF
  1908. cat >>confdefs.h <<_ACEOF
  1909. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1910. _ACEOF
  1911. cat >>confdefs.h <<_ACEOF
  1912. #define PACKAGE_STRING "$PACKAGE_STRING"
  1913. _ACEOF
  1914. cat >>confdefs.h <<_ACEOF
  1915. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1916. _ACEOF
  1917. cat >>confdefs.h <<_ACEOF
  1918. #define PACKAGE_URL "$PACKAGE_URL"
  1919. _ACEOF
  1920. # Let the site file select an alternate cache file if it wants to.
  1921. # Prefer an explicitly selected file to automatically selected ones.
  1922. ac_site_file1=NONE
  1923. ac_site_file2=NONE
  1924. if test -n "$CONFIG_SITE"; then
  1925. ac_site_file1=$CONFIG_SITE
  1926. elif test "x$prefix" != xNONE; then
  1927. ac_site_file1=$prefix/share/config.site
  1928. ac_site_file2=$prefix/etc/config.site
  1929. else
  1930. ac_site_file1=$ac_default_prefix/share/config.site
  1931. ac_site_file2=$ac_default_prefix/etc/config.site
  1932. fi
  1933. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1934. do
  1935. test "x$ac_site_file" = xNONE && continue
  1936. if test -r "$ac_site_file"; then
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1938. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1939. sed 's/^/| /' "$ac_site_file" >&5
  1940. . "$ac_site_file"
  1941. fi
  1942. done
  1943. if test -r "$cache_file"; then
  1944. # Some versions of bash will fail to source /dev/null (special
  1945. # files actually), so we avoid doing that.
  1946. if test -f "$cache_file"; then
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1948. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1949. case $cache_file in
  1950. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1951. *) . "./$cache_file";;
  1952. esac
  1953. fi
  1954. else
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1956. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1957. >$cache_file
  1958. fi
  1959. # Check that the precious variables saved in the cache have kept the same
  1960. # value.
  1961. ac_cache_corrupted=false
  1962. for ac_var in $ac_precious_vars; do
  1963. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1964. eval ac_new_set=\$ac_env_${ac_var}_set
  1965. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1966. eval ac_new_val=\$ac_env_${ac_var}_value
  1967. case $ac_old_set,$ac_new_set in
  1968. set,)
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1970. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1971. ac_cache_corrupted=: ;;
  1972. ,set)
  1973. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1974. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1975. ac_cache_corrupted=: ;;
  1976. ,);;
  1977. *)
  1978. if test "x$ac_old_val" != "x$ac_new_val"; then
  1979. # differences in whitespace do not lead to failure.
  1980. ac_old_val_w=`echo x $ac_old_val`
  1981. ac_new_val_w=`echo x $ac_new_val`
  1982. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1984. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1985. ac_cache_corrupted=:
  1986. else
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1988. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1989. eval $ac_var=\$ac_old_val
  1990. fi
  1991. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1992. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1993. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1994. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1995. fi;;
  1996. esac
  1997. # Pass precious variables to config.status.
  1998. if test "$ac_new_set" = set; then
  1999. case $ac_new_val in
  2000. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2001. *) ac_arg=$ac_var=$ac_new_val ;;
  2002. esac
  2003. case " $ac_configure_args " in
  2004. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2005. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2006. esac
  2007. fi
  2008. done
  2009. if $ac_cache_corrupted; then
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2011. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2012. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2013. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2014. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2015. fi
  2016. ## -------------------- ##
  2017. ## Main body of script. ##
  2018. ## -------------------- ##
  2019. ac_ext=c
  2020. ac_cpp='$CPP $CPPFLAGS'
  2021. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2022. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2023. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2024. # This file contains common code used by all simulators.
  2025. #
  2026. # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
  2027. # directory. It is intended to be invoked before any target specific stuff.
  2028. # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
  2029. # It is intended to be invoked last.
  2030. #
  2031. # The simulator's configure.ac should look like:
  2032. #
  2033. # dnl Process this file with autoconf to produce a configure script.
  2034. # AC_PREREQ(2.64)dnl
  2035. # AC_INIT(Makefile.in)
  2036. # sinclude(../common/aclocal.m4)
  2037. #
  2038. # SIM_AC_COMMON
  2039. #
  2040. # ... target specific stuff ...
  2041. #
  2042. # SIM_AC_OUTPUT
  2043. # Include global overrides and fixes for Autoconf.
  2044. # _AC_CHECK_DECL_BODY
  2045. # -------------------
  2046. # Shell function body for AC_CHECK_DECL.
  2047. # _AC_CHECK_DECL_BODY
  2048. # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
  2049. # INCLUDES)
  2050. # -------------------------------------------------------------
  2051. # Helper to AC_CHECK_DECLS, which generates the check for a single
  2052. # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
  2053. # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
  2054. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  2055. #
  2056. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  2057. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  2058. # Written by Gordon Matzigkeit, 1996
  2059. #
  2060. # This file is free software; the Free Software Foundation gives
  2061. # unlimited permission to copy and/or distribute it, with or without
  2062. # modifications, as long as this notice is preserved.
  2063. # serial 56 LT_INIT
  2064. # LT_PREREQ(VERSION)
  2065. # ------------------
  2066. # Complain and exit if this libtool version is less that VERSION.
  2067. # _LT_CHECK_BUILDDIR
  2068. # ------------------
  2069. # Complain if the absolute build directory name contains unusual characters
  2070. # LT_INIT([OPTIONS])
  2071. # ------------------
  2072. # LT_INIT
  2073. # Old names:
  2074. # This is what autoupdate's m4 run will expand. It fires
  2075. # the warning (with _au_warn_XXX), outputs it into the
  2076. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2077. # the replacement expansion.
  2078. # This is an auxiliary macro that is also run when
  2079. # autoupdate runs m4. It simply calls m4_warning, but
  2080. # we need a wrapper so that each warning is emitted only
  2081. # once. We break the quoting in m4_warning's argument in
  2082. # order to expand this macro's arguments, not AU_DEFUN's.
  2083. # Finally, this is the expansion that is picked up by
  2084. # autoconf. It tells the user to run autoupdate, and
  2085. # then outputs the replacement expansion. We do not care
  2086. # about autoupdate's warning because that contains
  2087. # information on what to do *after* running autoupdate.
  2088. # This is what autoupdate's m4 run will expand. It fires
  2089. # the warning (with _au_warn_XXX), outputs it into the
  2090. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2091. # the replacement expansion.
  2092. # This is an auxiliary macro that is also run when
  2093. # autoupdate runs m4. It simply calls m4_warning, but
  2094. # we need a wrapper so that each warning is emitted only
  2095. # once. We break the quoting in m4_warning's argument in
  2096. # order to expand this macro's arguments, not AU_DEFUN's.
  2097. # Finally, this is the expansion that is picked up by
  2098. # autoconf. It tells the user to run autoupdate, and
  2099. # then outputs the replacement expansion. We do not care
  2100. # about autoupdate's warning because that contains
  2101. # information on what to do *after* running autoupdate.
  2102. # _LT_CC_BASENAME(CC)
  2103. # -------------------
  2104. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  2105. # _LT_FILEUTILS_DEFAULTS
  2106. # ----------------------
  2107. # It is okay to use these file commands and assume they have been set
  2108. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  2109. # _LT_FILEUTILS_DEFAULTS
  2110. # _LT_SETUP
  2111. # ---------
  2112. # _LT_SETUP
  2113. # _LT_PREPARE_SED_QUOTE_VARS
  2114. # --------------------------
  2115. # Define a few sed substitution that help us do robust quoting.
  2116. # _LT_PROG_LTMAIN
  2117. # ---------------
  2118. # Note that this code is called both from `configure', and `config.status'
  2119. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  2120. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  2121. # so we pass a copy along to make sure it has a sensible value anyway.
  2122. # _LT_PROG_LTMAIN
  2123. ## ------------------------------------- ##
  2124. ## Accumulate code for creating libtool. ##
  2125. ## ------------------------------------- ##
  2126. # So that we can recreate a full libtool script including additional
  2127. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  2128. # in macros and then make a single call at the end using the `libtool'
  2129. # label.
  2130. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  2131. # ----------------------------------------
  2132. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2133. # Initialize.
  2134. # _LT_CONFIG_LIBTOOL([COMMANDS])
  2135. # ------------------------------
  2136. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  2137. # Initialize.
  2138. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  2139. # -----------------------------------------------------
  2140. # _LT_FORMAT_COMMENT([COMMENT])
  2141. # -----------------------------
  2142. # Add leading comment marks to the start of each line, and a trailing
  2143. # full-stop to the whole comment if one is not present already.
  2144. ## ------------------------ ##
  2145. ## FIXME: Eliminate VARNAME ##
  2146. ## ------------------------ ##
  2147. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  2148. # -------------------------------------------------------------------
  2149. # CONFIGNAME is the name given to the value in the libtool script.
  2150. # VARNAME is the (base) name used in the configure script.
  2151. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  2152. # VARNAME. Any other value will be used directly.
  2153. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  2154. # --------------------------------------------------------
  2155. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  2156. # ------------------------------------------------
  2157. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  2158. # ---------------------------------------------------------
  2159. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  2160. # --------------------------------------------------
  2161. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  2162. # ---------------------------------------------------
  2163. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  2164. # ---------------------------------------------------
  2165. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  2166. # ------------------------------------------------
  2167. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  2168. # ------------------------------------
  2169. # Quote a variable value, and forward it to `config.status' so that its
  2170. # declaration there will have the same value as in `configure'. VARNAME
  2171. # must have a single quote delimited value for this to work.
  2172. # _LT_CONFIG_STATUS_DECLARATIONS
  2173. # ------------------------------
  2174. # We delimit libtool config variables with single quotes, so when
  2175. # we write them to config.status, we have to be sure to quote all
  2176. # embedded single quotes properly. In configure, this macro expands
  2177. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  2178. #
  2179. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  2180. # _LT_LIBTOOL_TAGS
  2181. # ----------------
  2182. # Output comment and list of tags supported by the script
  2183. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  2184. # -----------------------------------
  2185. # Extract the dictionary values for VARNAME (optionally with TAG) and
  2186. # expand to a commented shell variable setting:
  2187. #
  2188. # # Some comment about what VAR is for.
  2189. # visible_name=$lt_internal_name
  2190. # _LT_LIBTOOL_CONFIG_VARS
  2191. # -----------------------
  2192. # Produce commented declarations of non-tagged libtool config variables
  2193. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  2194. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  2195. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  2196. # _LT_LIBTOOL_TAG_VARS(TAG)
  2197. # -------------------------
  2198. # _LT_TAGVAR(VARNAME, [TAGNAME])
  2199. # ------------------------------
  2200. # _LT_CONFIG_COMMANDS
  2201. # -------------------
  2202. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  2203. # variables for single and double quote escaping we saved from calls
  2204. # to _LT_DECL, we can put quote escaped variables declarations
  2205. # into `config.status', and then the shell code to quote escape them in
  2206. # for loops in `config.status'. Finally, any additional code accumulated
  2207. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  2208. #_LT_CONFIG_COMMANDS
  2209. # Initialize.
  2210. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  2211. # ------------------------------------
  2212. # Generate a child script FILE with all initialization necessary to
  2213. # reuse the environment learned by the parent script, and make the
  2214. # file executable. If COMMENT is supplied, it is inserted after the
  2215. # `#!' sequence but before initialization text begins. After this
  2216. # macro, additional text can be appended to FILE to form the body of
  2217. # the child script. The macro ends with non-zero status if the
  2218. # file could not be fully written (such as if the disk is full).
  2219. # _LT_GENERATED_FILE_INIT
  2220. # LT_OUTPUT
  2221. # ---------
  2222. # This macro allows early generation of the libtool script (before
  2223. # AC_OUTPUT is called), incase it is used in configure for compilation
  2224. # tests.
  2225. # LT_OUTPUT
  2226. # _LT_CONFIG(TAG)
  2227. # ---------------
  2228. # If TAG is the built-in tag, create an initial libtool script with a
  2229. # default configuration from the untagged config vars. Otherwise add code
  2230. # to config.status for appending the configuration named by TAG from the
  2231. # matching tagged config vars.
  2232. # _LT_CONFIG
  2233. # LT_SUPPORTED_TAG(TAG)
  2234. # ---------------------
  2235. # Trace this macro to discover what tags are supported by the libtool
  2236. # --tag option, using:
  2237. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  2238. # C support is built-in for now
  2239. # LT_LANG(LANG)
  2240. # -------------
  2241. # Enable libtool support for the given language if not already enabled.
  2242. # LT_LANG
  2243. # _LT_LANG(LANGNAME)
  2244. # ------------------
  2245. # _LT_LANG
  2246. # _LT_LANG_DEFAULT_CONFIG
  2247. # -----------------------
  2248. # _LT_LANG_DEFAULT_CONFIG
  2249. # Obsolete macros:
  2250. # This is what autoupdate's m4 run will expand. It fires
  2251. # the warning (with _au_warn_XXX), outputs it into the
  2252. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2253. # the replacement expansion.
  2254. # This is an auxiliary macro that is also run when
  2255. # autoupdate runs m4. It simply calls m4_warning, but
  2256. # we need a wrapper so that each warning is emitted only
  2257. # once. We break the quoting in m4_warning's argument in
  2258. # order to expand this macro's arguments, not AU_DEFUN's.
  2259. # Finally, this is the expansion that is picked up by
  2260. # autoconf. It tells the user to run autoupdate, and
  2261. # then outputs the replacement expansion. We do not care
  2262. # about autoupdate's warning because that contains
  2263. # information on what to do *after* running autoupdate.
  2264. # This is what autoupdate's m4 run will expand. It fires
  2265. # the warning (with _au_warn_XXX), outputs it into the
  2266. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2267. # the replacement expansion.
  2268. # This is an auxiliary macro that is also run when
  2269. # autoupdate runs m4. It simply calls m4_warning, but
  2270. # we need a wrapper so that each warning is emitted only
  2271. # once. We break the quoting in m4_warning's argument in
  2272. # order to expand this macro's arguments, not AU_DEFUN's.
  2273. # Finally, this is the expansion that is picked up by
  2274. # autoconf. It tells the user to run autoupdate, and
  2275. # then outputs the replacement expansion. We do not care
  2276. # about autoupdate's warning because that contains
  2277. # information on what to do *after* running autoupdate.
  2278. # This is what autoupdate's m4 run will expand. It fires
  2279. # the warning (with _au_warn_XXX), outputs it into the
  2280. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2281. # the replacement expansion.
  2282. # This is an auxiliary macro that is also run when
  2283. # autoupdate runs m4. It simply calls m4_warning, but
  2284. # we need a wrapper so that each warning is emitted only
  2285. # once. We break the quoting in m4_warning's argument in
  2286. # order to expand this macro's arguments, not AU_DEFUN's.
  2287. # Finally, this is the expansion that is picked up by
  2288. # autoconf. It tells the user to run autoupdate, and
  2289. # then outputs the replacement expansion. We do not care
  2290. # about autoupdate's warning because that contains
  2291. # information on what to do *after* running autoupdate.
  2292. # This is what autoupdate's m4 run will expand. It fires
  2293. # the warning (with _au_warn_XXX), outputs it into the
  2294. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2295. # the replacement expansion.
  2296. # This is an auxiliary macro that is also run when
  2297. # autoupdate runs m4. It simply calls m4_warning, but
  2298. # we need a wrapper so that each warning is emitted only
  2299. # once. We break the quoting in m4_warning's argument in
  2300. # order to expand this macro's arguments, not AU_DEFUN's.
  2301. # Finally, this is the expansion that is picked up by
  2302. # autoconf. It tells the user to run autoupdate, and
  2303. # then outputs the replacement expansion. We do not care
  2304. # about autoupdate's warning because that contains
  2305. # information on what to do *after* running autoupdate.
  2306. # This is what autoupdate's m4 run will expand. It fires
  2307. # the warning (with _au_warn_XXX), outputs it into the
  2308. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2309. # the replacement expansion.
  2310. # This is an auxiliary macro that is also run when
  2311. # autoupdate runs m4. It simply calls m4_warning, but
  2312. # we need a wrapper so that each warning is emitted only
  2313. # once. We break the quoting in m4_warning's argument in
  2314. # order to expand this macro's arguments, not AU_DEFUN's.
  2315. # Finally, this is the expansion that is picked up by
  2316. # autoconf. It tells the user to run autoupdate, and
  2317. # then outputs the replacement expansion. We do not care
  2318. # about autoupdate's warning because that contains
  2319. # information on what to do *after* running autoupdate.
  2320. # _LT_TAG_COMPILER
  2321. # ----------------
  2322. # _LT_TAG_COMPILER
  2323. # _LT_COMPILER_BOILERPLATE
  2324. # ------------------------
  2325. # Check for compiler boilerplate output or warnings with
  2326. # the simple compiler test code.
  2327. # _LT_COMPILER_BOILERPLATE
  2328. # _LT_LINKER_BOILERPLATE
  2329. # ----------------------
  2330. # Check for linker boilerplate output or warnings with
  2331. # the simple link test code.
  2332. # _LT_LINKER_BOILERPLATE
  2333. # _LT_REQUIRED_DARWIN_CHECKS
  2334. # -------------------------
  2335. # _LT_DARWIN_LINKER_FEATURES
  2336. # --------------------------
  2337. # Checks for linker and compiler features on darwin
  2338. # _LT_SYS_MODULE_PATH_AIX
  2339. # -----------------------
  2340. # Links a minimal program and checks the executable
  2341. # for the system default hardcoded library path. In most cases,
  2342. # this is /usr/lib:/lib, but when the MPI compilers are used
  2343. # the location of the communication and MPI libs are included too.
  2344. # If we don't find anything, use the default library path according
  2345. # to the aix ld manual.
  2346. # _LT_SYS_MODULE_PATH_AIX
  2347. # _LT_SHELL_INIT(ARG)
  2348. # -------------------
  2349. # _LT_SHELL_INIT
  2350. # _LT_PROG_ECHO_BACKSLASH
  2351. # -----------------------
  2352. # Find how we can fake an echo command that does not interpret backslash.
  2353. # In particular, with Autoconf 2.60 or later we add some code to the start
  2354. # of the generated configure script which will find a shell with a builtin
  2355. # printf (which we can use as an echo command).
  2356. # _LT_PROG_ECHO_BACKSLASH
  2357. # _LT_ENABLE_LOCK
  2358. # ---------------
  2359. # _LT_ENABLE_LOCK
  2360. # _LT_CMD_OLD_ARCHIVE
  2361. # -------------------
  2362. # _LT_CMD_OLD_ARCHIVE
  2363. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2364. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2365. # ----------------------------------------------------------------
  2366. # Check whether the given compiler option works
  2367. # _LT_COMPILER_OPTION
  2368. # Old name:
  2369. # This is what autoupdate's m4 run will expand. It fires
  2370. # the warning (with _au_warn_XXX), outputs it into the
  2371. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2372. # the replacement expansion.
  2373. # This is an auxiliary macro that is also run when
  2374. # autoupdate runs m4. It simply calls m4_warning, but
  2375. # we need a wrapper so that each warning is emitted only
  2376. # once. We break the quoting in m4_warning's argument in
  2377. # order to expand this macro's arguments, not AU_DEFUN's.
  2378. # Finally, this is the expansion that is picked up by
  2379. # autoconf. It tells the user to run autoupdate, and
  2380. # then outputs the replacement expansion. We do not care
  2381. # about autoupdate's warning because that contains
  2382. # information on what to do *after* running autoupdate.
  2383. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2384. # [ACTION-SUCCESS], [ACTION-FAILURE])
  2385. # ----------------------------------------------------
  2386. # Check whether the given linker option works
  2387. # _LT_LINKER_OPTION
  2388. # Old name:
  2389. # This is what autoupdate's m4 run will expand. It fires
  2390. # the warning (with _au_warn_XXX), outputs it into the
  2391. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2392. # the replacement expansion.
  2393. # This is an auxiliary macro that is also run when
  2394. # autoupdate runs m4. It simply calls m4_warning, but
  2395. # we need a wrapper so that each warning is emitted only
  2396. # once. We break the quoting in m4_warning's argument in
  2397. # order to expand this macro's arguments, not AU_DEFUN's.
  2398. # Finally, this is the expansion that is picked up by
  2399. # autoconf. It tells the user to run autoupdate, and
  2400. # then outputs the replacement expansion. We do not care
  2401. # about autoupdate's warning because that contains
  2402. # information on what to do *after* running autoupdate.
  2403. # LT_CMD_MAX_LEN
  2404. #---------------
  2405. # LT_CMD_MAX_LEN
  2406. # Old name:
  2407. # This is what autoupdate's m4 run will expand. It fires
  2408. # the warning (with _au_warn_XXX), outputs it into the
  2409. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2410. # the replacement expansion.
  2411. # This is an auxiliary macro that is also run when
  2412. # autoupdate runs m4. It simply calls m4_warning, but
  2413. # we need a wrapper so that each warning is emitted only
  2414. # once. We break the quoting in m4_warning's argument in
  2415. # order to expand this macro's arguments, not AU_DEFUN's.
  2416. # Finally, this is the expansion that is picked up by
  2417. # autoconf. It tells the user to run autoupdate, and
  2418. # then outputs the replacement expansion. We do not care
  2419. # about autoupdate's warning because that contains
  2420. # information on what to do *after* running autoupdate.
  2421. # _LT_HEADER_DLFCN
  2422. # ----------------
  2423. # _LT_HEADER_DLFCN
  2424. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2425. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2426. # ----------------------------------------------------------------
  2427. # _LT_TRY_DLOPEN_SELF
  2428. # LT_SYS_DLOPEN_SELF
  2429. # ------------------
  2430. # LT_SYS_DLOPEN_SELF
  2431. # Old name:
  2432. # This is what autoupdate's m4 run will expand. It fires
  2433. # the warning (with _au_warn_XXX), outputs it into the
  2434. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2435. # the replacement expansion.
  2436. # This is an auxiliary macro that is also run when
  2437. # autoupdate runs m4. It simply calls m4_warning, but
  2438. # we need a wrapper so that each warning is emitted only
  2439. # once. We break the quoting in m4_warning's argument in
  2440. # order to expand this macro's arguments, not AU_DEFUN's.
  2441. # Finally, this is the expansion that is picked up by
  2442. # autoconf. It tells the user to run autoupdate, and
  2443. # then outputs the replacement expansion. We do not care
  2444. # about autoupdate's warning because that contains
  2445. # information on what to do *after* running autoupdate.
  2446. # _LT_COMPILER_C_O([TAGNAME])
  2447. # ---------------------------
  2448. # Check to see if options -c and -o are simultaneously supported by compiler.
  2449. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2450. # _LT_COMPILER_C_O
  2451. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2452. # ----------------------------------
  2453. # Check to see if we can do hard links to lock some files if needed
  2454. # _LT_COMPILER_FILE_LOCKS
  2455. # _LT_CHECK_OBJDIR
  2456. # ----------------
  2457. # _LT_CHECK_OBJDIR
  2458. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2459. # --------------------------------------
  2460. # Check hardcoding attributes.
  2461. # _LT_LINKER_HARDCODE_LIBPATH
  2462. # _LT_CMD_STRIPLIB
  2463. # ----------------
  2464. # _LT_CMD_STRIPLIB
  2465. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2466. # -----------------------------
  2467. # PORTME Fill in your ld.so characteristics
  2468. # _LT_SYS_DYNAMIC_LINKER
  2469. # _LT_PATH_TOOL_PREFIX(TOOL)
  2470. # --------------------------
  2471. # find a file program which can recognize shared library
  2472. # _LT_PATH_TOOL_PREFIX
  2473. # Old name:
  2474. # This is what autoupdate's m4 run will expand. It fires
  2475. # the warning (with _au_warn_XXX), outputs it into the
  2476. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2477. # the replacement expansion.
  2478. # This is an auxiliary macro that is also run when
  2479. # autoupdate runs m4. It simply calls m4_warning, but
  2480. # we need a wrapper so that each warning is emitted only
  2481. # once. We break the quoting in m4_warning's argument in
  2482. # order to expand this macro's arguments, not AU_DEFUN's.
  2483. # Finally, this is the expansion that is picked up by
  2484. # autoconf. It tells the user to run autoupdate, and
  2485. # then outputs the replacement expansion. We do not care
  2486. # about autoupdate's warning because that contains
  2487. # information on what to do *after* running autoupdate.
  2488. # _LT_PATH_MAGIC
  2489. # --------------
  2490. # find a file program which can recognize a shared library
  2491. # _LT_PATH_MAGIC
  2492. # LT_PATH_LD
  2493. # ----------
  2494. # find the pathname to the GNU or non-GNU linker
  2495. # LT_PATH_LD
  2496. # Old names:
  2497. # This is what autoupdate's m4 run will expand. It fires
  2498. # the warning (with _au_warn_XXX), outputs it into the
  2499. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2500. # the replacement expansion.
  2501. # This is an auxiliary macro that is also run when
  2502. # autoupdate runs m4. It simply calls m4_warning, but
  2503. # we need a wrapper so that each warning is emitted only
  2504. # once. We break the quoting in m4_warning's argument in
  2505. # order to expand this macro's arguments, not AU_DEFUN's.
  2506. # Finally, this is the expansion that is picked up by
  2507. # autoconf. It tells the user to run autoupdate, and
  2508. # then outputs the replacement expansion. We do not care
  2509. # about autoupdate's warning because that contains
  2510. # information on what to do *after* running autoupdate.
  2511. # This is what autoupdate's m4 run will expand. It fires
  2512. # the warning (with _au_warn_XXX), outputs it into the
  2513. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2514. # the replacement expansion.
  2515. # This is an auxiliary macro that is also run when
  2516. # autoupdate runs m4. It simply calls m4_warning, but
  2517. # we need a wrapper so that each warning is emitted only
  2518. # once. We break the quoting in m4_warning's argument in
  2519. # order to expand this macro's arguments, not AU_DEFUN's.
  2520. # Finally, this is the expansion that is picked up by
  2521. # autoconf. It tells the user to run autoupdate, and
  2522. # then outputs the replacement expansion. We do not care
  2523. # about autoupdate's warning because that contains
  2524. # information on what to do *after* running autoupdate.
  2525. # _LT_PATH_LD_GNU
  2526. #- --------------
  2527. # _LT_PATH_LD_GNU
  2528. # _LT_CMD_RELOAD
  2529. # --------------
  2530. # find reload flag for linker
  2531. # -- PORTME Some linkers may need a different reload flag.
  2532. # _LT_CMD_RELOAD
  2533. # _LT_CHECK_MAGIC_METHOD
  2534. # ----------------------
  2535. # how to check for library dependencies
  2536. # -- PORTME fill in with the dynamic library characteristics
  2537. # _LT_CHECK_MAGIC_METHOD
  2538. # LT_PATH_NM
  2539. # ----------
  2540. # find the pathname to a BSD- or MS-compatible name lister
  2541. # LT_PATH_NM
  2542. # Old names:
  2543. # This is what autoupdate's m4 run will expand. It fires
  2544. # the warning (with _au_warn_XXX), outputs it into the
  2545. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2546. # the replacement expansion.
  2547. # This is an auxiliary macro that is also run when
  2548. # autoupdate runs m4. It simply calls m4_warning, but
  2549. # we need a wrapper so that each warning is emitted only
  2550. # once. We break the quoting in m4_warning's argument in
  2551. # order to expand this macro's arguments, not AU_DEFUN's.
  2552. # Finally, this is the expansion that is picked up by
  2553. # autoconf. It tells the user to run autoupdate, and
  2554. # then outputs the replacement expansion. We do not care
  2555. # about autoupdate's warning because that contains
  2556. # information on what to do *after* running autoupdate.
  2557. # This is what autoupdate's m4 run will expand. It fires
  2558. # the warning (with _au_warn_XXX), outputs it into the
  2559. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2560. # the replacement expansion.
  2561. # This is an auxiliary macro that is also run when
  2562. # autoupdate runs m4. It simply calls m4_warning, but
  2563. # we need a wrapper so that each warning is emitted only
  2564. # once. We break the quoting in m4_warning's argument in
  2565. # order to expand this macro's arguments, not AU_DEFUN's.
  2566. # Finally, this is the expansion that is picked up by
  2567. # autoconf. It tells the user to run autoupdate, and
  2568. # then outputs the replacement expansion. We do not care
  2569. # about autoupdate's warning because that contains
  2570. # information on what to do *after* running autoupdate.
  2571. # LT_LIB_M
  2572. # --------
  2573. # check for math library
  2574. # LT_LIB_M
  2575. # Old name:
  2576. # This is what autoupdate's m4 run will expand. It fires
  2577. # the warning (with _au_warn_XXX), outputs it into the
  2578. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2579. # the replacement expansion.
  2580. # This is an auxiliary macro that is also run when
  2581. # autoupdate runs m4. It simply calls m4_warning, but
  2582. # we need a wrapper so that each warning is emitted only
  2583. # once. We break the quoting in m4_warning's argument in
  2584. # order to expand this macro's arguments, not AU_DEFUN's.
  2585. # Finally, this is the expansion that is picked up by
  2586. # autoconf. It tells the user to run autoupdate, and
  2587. # then outputs the replacement expansion. We do not care
  2588. # about autoupdate's warning because that contains
  2589. # information on what to do *after* running autoupdate.
  2590. # _LT_COMPILER_NO_RTTI([TAGNAME])
  2591. # -------------------------------
  2592. # _LT_COMPILER_NO_RTTI
  2593. # _LT_CMD_GLOBAL_SYMBOLS
  2594. # ----------------------
  2595. # _LT_CMD_GLOBAL_SYMBOLS
  2596. # _LT_COMPILER_PIC([TAGNAME])
  2597. # ---------------------------
  2598. # _LT_COMPILER_PIC
  2599. # _LT_LINKER_SHLIBS([TAGNAME])
  2600. # ----------------------------
  2601. # See if the linker supports building shared libraries.
  2602. # _LT_LINKER_SHLIBS
  2603. # _LT_LANG_C_CONFIG([TAG])
  2604. # ------------------------
  2605. # Ensure that the configuration variables for a C compiler are suitably
  2606. # defined. These variables are subsequently used by _LT_CONFIG to write
  2607. # the compiler configuration to `libtool'.
  2608. # _LT_LANG_C_CONFIG
  2609. # _LT_LANG_CXX_CONFIG([TAG])
  2610. # --------------------------
  2611. # Ensure that the configuration variables for a C++ compiler are suitably
  2612. # defined. These variables are subsequently used by _LT_CONFIG to write
  2613. # the compiler configuration to `libtool'.
  2614. # _LT_LANG_CXX_CONFIG
  2615. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  2616. # ---------------------------------
  2617. # Figure out "hidden" library dependencies from verbose
  2618. # compiler output when linking a shared library.
  2619. # Parse the compiler output and extract the necessary
  2620. # objects, libraries and library flags.
  2621. # _LT_SYS_HIDDEN_LIBDEPS
  2622. # _LT_LANG_F77_CONFIG([TAG])
  2623. # --------------------------
  2624. # Ensure that the configuration variables for a Fortran 77 compiler are
  2625. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2626. # to write the compiler configuration to `libtool'.
  2627. # _LT_LANG_F77_CONFIG
  2628. # _LT_LANG_FC_CONFIG([TAG])
  2629. # -------------------------
  2630. # Ensure that the configuration variables for a Fortran compiler are
  2631. # suitably defined. These variables are subsequently used by _LT_CONFIG
  2632. # to write the compiler configuration to `libtool'.
  2633. # _LT_LANG_FC_CONFIG
  2634. # _LT_LANG_GCJ_CONFIG([TAG])
  2635. # --------------------------
  2636. # Ensure that the configuration variables for the GNU Java Compiler compiler
  2637. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2638. # to write the compiler configuration to `libtool'.
  2639. # _LT_LANG_GCJ_CONFIG
  2640. # _LT_LANG_RC_CONFIG([TAG])
  2641. # -------------------------
  2642. # Ensure that the configuration variables for the Windows resource compiler
  2643. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  2644. # to write the compiler configuration to `libtool'.
  2645. # _LT_LANG_RC_CONFIG
  2646. # LT_PROG_GCJ
  2647. # -----------
  2648. # Old name:
  2649. # This is what autoupdate's m4 run will expand. It fires
  2650. # the warning (with _au_warn_XXX), outputs it into the
  2651. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2652. # the replacement expansion.
  2653. # This is an auxiliary macro that is also run when
  2654. # autoupdate runs m4. It simply calls m4_warning, but
  2655. # we need a wrapper so that each warning is emitted only
  2656. # once. We break the quoting in m4_warning's argument in
  2657. # order to expand this macro's arguments, not AU_DEFUN's.
  2658. # Finally, this is the expansion that is picked up by
  2659. # autoconf. It tells the user to run autoupdate, and
  2660. # then outputs the replacement expansion. We do not care
  2661. # about autoupdate's warning because that contains
  2662. # information on what to do *after* running autoupdate.
  2663. # LT_PROG_RC
  2664. # ----------
  2665. # Old name:
  2666. # This is what autoupdate's m4 run will expand. It fires
  2667. # the warning (with _au_warn_XXX), outputs it into the
  2668. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2669. # the replacement expansion.
  2670. # This is an auxiliary macro that is also run when
  2671. # autoupdate runs m4. It simply calls m4_warning, but
  2672. # we need a wrapper so that each warning is emitted only
  2673. # once. We break the quoting in m4_warning's argument in
  2674. # order to expand this macro's arguments, not AU_DEFUN's.
  2675. # Finally, this is the expansion that is picked up by
  2676. # autoconf. It tells the user to run autoupdate, and
  2677. # then outputs the replacement expansion. We do not care
  2678. # about autoupdate's warning because that contains
  2679. # information on what to do *after* running autoupdate.
  2680. # _LT_DECL_EGREP
  2681. # --------------
  2682. # If we don't have a new enough Autoconf to choose the best grep
  2683. # available, choose the one first in the user's PATH.
  2684. # _LT_DECL_OBJDUMP
  2685. # --------------
  2686. # If we don't have a new enough Autoconf to choose the best objdump
  2687. # available, choose the one first in the user's PATH.
  2688. # _LT_DECL_SED
  2689. # ------------
  2690. # Check for a fully-functional sed program, that truncates
  2691. # as few characters as possible. Prefer GNU sed if found.
  2692. # _LT_DECL_SED
  2693. #m4_ifndef
  2694. # Old name:
  2695. # This is what autoupdate's m4 run will expand. It fires
  2696. # the warning (with _au_warn_XXX), outputs it into the
  2697. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2698. # the replacement expansion.
  2699. # This is an auxiliary macro that is also run when
  2700. # autoupdate runs m4. It simply calls m4_warning, but
  2701. # we need a wrapper so that each warning is emitted only
  2702. # once. We break the quoting in m4_warning's argument in
  2703. # order to expand this macro's arguments, not AU_DEFUN's.
  2704. # Finally, this is the expansion that is picked up by
  2705. # autoconf. It tells the user to run autoupdate, and
  2706. # then outputs the replacement expansion. We do not care
  2707. # about autoupdate's warning because that contains
  2708. # information on what to do *after* running autoupdate.
  2709. # _LT_CHECK_SHELL_FEATURES
  2710. # ------------------------
  2711. # Find out whether the shell is Bourne or XSI compatible,
  2712. # or has some other useful features.
  2713. # _LT_CHECK_SHELL_FEATURES
  2714. # _LT_PROG_XSI_SHELLFNS
  2715. # ---------------------
  2716. # Bourne and XSI compatible variants of some useful shell functions.
  2717. # Helper functions for option handling. -*- Autoconf -*-
  2718. #
  2719. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  2720. # Inc.
  2721. # Written by Gary V. Vaughan, 2004
  2722. #
  2723. # This file is free software; the Free Software Foundation gives
  2724. # unlimited permission to copy and/or distribute it, with or without
  2725. # modifications, as long as this notice is preserved.
  2726. # serial 6 ltoptions.m4
  2727. # This is to help aclocal find these macros, as it can't see m4_define.
  2728. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  2729. # ------------------------------------------
  2730. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  2731. # ---------------------------------------
  2732. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  2733. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  2734. # saved as a flag.
  2735. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  2736. # ------------------------------------------------------------
  2737. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  2738. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  2739. # -------------------------------------------------------
  2740. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  2741. # are set.
  2742. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  2743. # ----------------------------------------
  2744. # OPTION-LIST is a space-separated list of Libtool options associated
  2745. # with MACRO-NAME. If any OPTION has a matching handler declared with
  2746. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  2747. # the unknown option and exit.
  2748. # _LT_SET_OPTIONS
  2749. ## --------------------------------- ##
  2750. ## Macros to handle LT_INIT options. ##
  2751. ## --------------------------------- ##
  2752. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  2753. # -----------------------------------------
  2754. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  2755. # -----------------------------------------------
  2756. # LT_OPTION_DEFINE
  2757. # dlopen
  2758. # ------
  2759. # This is what autoupdate's m4 run will expand. It fires
  2760. # the warning (with _au_warn_XXX), outputs it into the
  2761. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2762. # the replacement expansion.
  2763. # This is an auxiliary macro that is also run when
  2764. # autoupdate runs m4. It simply calls m4_warning, but
  2765. # we need a wrapper so that each warning is emitted only
  2766. # once. We break the quoting in m4_warning's argument in
  2767. # order to expand this macro's arguments, not AU_DEFUN's.
  2768. # Finally, this is the expansion that is picked up by
  2769. # autoconf. It tells the user to run autoupdate, and
  2770. # then outputs the replacement expansion. We do not care
  2771. # about autoupdate's warning because that contains
  2772. # information on what to do *after* running autoupdate.
  2773. # win32-dll
  2774. # ---------
  2775. # Declare package support for building win32 dll's.
  2776. # win32-dll
  2777. # This is what autoupdate's m4 run will expand. It fires
  2778. # the warning (with _au_warn_XXX), outputs it into the
  2779. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2780. # the replacement expansion.
  2781. # This is an auxiliary macro that is also run when
  2782. # autoupdate runs m4. It simply calls m4_warning, but
  2783. # we need a wrapper so that each warning is emitted only
  2784. # once. We break the quoting in m4_warning's argument in
  2785. # order to expand this macro's arguments, not AU_DEFUN's.
  2786. # Finally, this is the expansion that is picked up by
  2787. # autoconf. It tells the user to run autoupdate, and
  2788. # then outputs the replacement expansion. We do not care
  2789. # about autoupdate's warning because that contains
  2790. # information on what to do *after* running autoupdate.
  2791. # _LT_ENABLE_SHARED([DEFAULT])
  2792. # ----------------------------
  2793. # implement the --enable-shared flag, and supports the `shared' and
  2794. # `disable-shared' LT_INIT options.
  2795. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2796. # _LT_ENABLE_SHARED
  2797. # Old names:
  2798. # This is what autoupdate's m4 run will expand. It fires
  2799. # the warning (with _au_warn_XXX), outputs it into the
  2800. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2801. # the replacement expansion.
  2802. # This is an auxiliary macro that is also run when
  2803. # autoupdate runs m4. It simply calls m4_warning, but
  2804. # we need a wrapper so that each warning is emitted only
  2805. # once. We break the quoting in m4_warning's argument in
  2806. # order to expand this macro's arguments, not AU_DEFUN's.
  2807. # Finally, this is the expansion that is picked up by
  2808. # autoconf. It tells the user to run autoupdate, and
  2809. # then outputs the replacement expansion. We do not care
  2810. # about autoupdate's warning because that contains
  2811. # information on what to do *after* running autoupdate.
  2812. # This is what autoupdate's m4 run will expand. It fires
  2813. # the warning (with _au_warn_XXX), outputs it into the
  2814. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2815. # the replacement expansion.
  2816. # This is an auxiliary macro that is also run when
  2817. # autoupdate runs m4. It simply calls m4_warning, but
  2818. # we need a wrapper so that each warning is emitted only
  2819. # once. We break the quoting in m4_warning's argument in
  2820. # order to expand this macro's arguments, not AU_DEFUN's.
  2821. # Finally, this is the expansion that is picked up by
  2822. # autoconf. It tells the user to run autoupdate, and
  2823. # then outputs the replacement expansion. We do not care
  2824. # about autoupdate's warning because that contains
  2825. # information on what to do *after* running autoupdate.
  2826. # _LT_ENABLE_STATIC([DEFAULT])
  2827. # ----------------------------
  2828. # implement the --enable-static flag, and support the `static' and
  2829. # `disable-static' LT_INIT options.
  2830. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2831. # _LT_ENABLE_STATIC
  2832. # Old names:
  2833. # This is what autoupdate's m4 run will expand. It fires
  2834. # the warning (with _au_warn_XXX), outputs it into the
  2835. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2836. # the replacement expansion.
  2837. # This is an auxiliary macro that is also run when
  2838. # autoupdate runs m4. It simply calls m4_warning, but
  2839. # we need a wrapper so that each warning is emitted only
  2840. # once. We break the quoting in m4_warning's argument in
  2841. # order to expand this macro's arguments, not AU_DEFUN's.
  2842. # Finally, this is the expansion that is picked up by
  2843. # autoconf. It tells the user to run autoupdate, and
  2844. # then outputs the replacement expansion. We do not care
  2845. # about autoupdate's warning because that contains
  2846. # information on what to do *after* running autoupdate.
  2847. # This is what autoupdate's m4 run will expand. It fires
  2848. # the warning (with _au_warn_XXX), outputs it into the
  2849. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2850. # the replacement expansion.
  2851. # This is an auxiliary macro that is also run when
  2852. # autoupdate runs m4. It simply calls m4_warning, but
  2853. # we need a wrapper so that each warning is emitted only
  2854. # once. We break the quoting in m4_warning's argument in
  2855. # order to expand this macro's arguments, not AU_DEFUN's.
  2856. # Finally, this is the expansion that is picked up by
  2857. # autoconf. It tells the user to run autoupdate, and
  2858. # then outputs the replacement expansion. We do not care
  2859. # about autoupdate's warning because that contains
  2860. # information on what to do *after* running autoupdate.
  2861. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  2862. # ----------------------------------
  2863. # implement the --enable-fast-install flag, and support the `fast-install'
  2864. # and `disable-fast-install' LT_INIT options.
  2865. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2866. # _LT_ENABLE_FAST_INSTALL
  2867. # Old names:
  2868. # This is what autoupdate's m4 run will expand. It fires
  2869. # the warning (with _au_warn_XXX), outputs it into the
  2870. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2871. # the replacement expansion.
  2872. # This is an auxiliary macro that is also run when
  2873. # autoupdate runs m4. It simply calls m4_warning, but
  2874. # we need a wrapper so that each warning is emitted only
  2875. # once. We break the quoting in m4_warning's argument in
  2876. # order to expand this macro's arguments, not AU_DEFUN's.
  2877. # Finally, this is the expansion that is picked up by
  2878. # autoconf. It tells the user to run autoupdate, and
  2879. # then outputs the replacement expansion. We do not care
  2880. # about autoupdate's warning because that contains
  2881. # information on what to do *after* running autoupdate.
  2882. # This is what autoupdate's m4 run will expand. It fires
  2883. # the warning (with _au_warn_XXX), outputs it into the
  2884. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2885. # the replacement expansion.
  2886. # This is an auxiliary macro that is also run when
  2887. # autoupdate runs m4. It simply calls m4_warning, but
  2888. # we need a wrapper so that each warning is emitted only
  2889. # once. We break the quoting in m4_warning's argument in
  2890. # order to expand this macro's arguments, not AU_DEFUN's.
  2891. # Finally, this is the expansion that is picked up by
  2892. # autoconf. It tells the user to run autoupdate, and
  2893. # then outputs the replacement expansion. We do not care
  2894. # about autoupdate's warning because that contains
  2895. # information on what to do *after* running autoupdate.
  2896. # _LT_WITH_PIC([MODE])
  2897. # --------------------
  2898. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  2899. # LT_INIT options.
  2900. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2901. # _LT_WITH_PIC
  2902. # Old name:
  2903. # This is what autoupdate's m4 run will expand. It fires
  2904. # the warning (with _au_warn_XXX), outputs it into the
  2905. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  2906. # the replacement expansion.
  2907. # This is an auxiliary macro that is also run when
  2908. # autoupdate runs m4. It simply calls m4_warning, but
  2909. # we need a wrapper so that each warning is emitted only
  2910. # once. We break the quoting in m4_warning's argument in
  2911. # order to expand this macro's arguments, not AU_DEFUN's.
  2912. # Finally, this is the expansion that is picked up by
  2913. # autoconf. It tells the user to run autoupdate, and
  2914. # then outputs the replacement expansion. We do not care
  2915. # about autoupdate's warning because that contains
  2916. # information on what to do *after* running autoupdate.
  2917. ## ----------------- ##
  2918. ## LTDL_INIT Options ##
  2919. ## ----------------- ##
  2920. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  2921. #
  2922. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  2923. # Written by Gary V. Vaughan, 2004
  2924. #
  2925. # This file is free software; the Free Software Foundation gives
  2926. # unlimited permission to copy and/or distribute it, with or without
  2927. # modifications, as long as this notice is preserved.
  2928. # serial 6 ltsugar.m4
  2929. # This is to help aclocal find these macros, as it can't see m4_define.
  2930. # lt_join(SEP, ARG1, [ARG2...])
  2931. # -----------------------------
  2932. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  2933. # associated separator.
  2934. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  2935. # versions in m4sugar had bugs.
  2936. # lt_car(LIST)
  2937. # lt_cdr(LIST)
  2938. # ------------
  2939. # Manipulate m4 lists.
  2940. # These macros are necessary as long as will still need to support
  2941. # Autoconf-2.59 which quotes differently.
  2942. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  2943. # ------------------------------------------
  2944. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  2945. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  2946. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  2947. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  2948. # than defined and empty).
  2949. #
  2950. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  2951. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  2952. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  2953. # ----------------------------------------------------------
  2954. # Produce a SEP delimited list of all paired combinations of elements of
  2955. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  2956. # has the form PREFIXmINFIXSUFFIXn.
  2957. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  2958. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  2959. # -----------------------------------------------------------------------
  2960. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  2961. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  2962. # lt_dict_add(DICT, KEY, VALUE)
  2963. # -----------------------------
  2964. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  2965. # --------------------------------------------
  2966. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  2967. # ----------------------------------
  2968. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  2969. # -----------------------------------------------------------------
  2970. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  2971. # --------------------------------------------------------------
  2972. # ltversion.m4 -- version numbers -*- Autoconf -*-
  2973. #
  2974. # Copyright (C) 2004 Free Software Foundation, Inc.
  2975. # Written by Scott James Remnant, 2004
  2976. #
  2977. # This file is free software; the Free Software Foundation gives
  2978. # unlimited permission to copy and/or distribute it, with or without
  2979. # modifications, as long as this notice is preserved.
  2980. # Generated from ltversion.in.
  2981. # serial 3134 ltversion.m4
  2982. # This file is part of GNU Libtool
  2983. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  2984. #
  2985. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  2986. # Written by Scott James Remnant, 2004.
  2987. #
  2988. # This file is free software; the Free Software Foundation gives
  2989. # unlimited permission to copy and/or distribute it, with or without
  2990. # modifications, as long as this notice is preserved.
  2991. # serial 4 lt~obsolete.m4
  2992. # These exist entirely to fool aclocal when bootstrapping libtool.
  2993. #
  2994. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  2995. # which have later been changed to m4_define as they aren't part of the
  2996. # exported API, or moved to Autoconf or Automake where they belong.
  2997. #
  2998. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  2999. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  3000. # using a macro with the same name in our local m4/libtool.m4 it'll
  3001. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  3002. # and doesn't know about Autoconf macros at all.)
  3003. #
  3004. # So we provide this file, which has a silly filename so it's always
  3005. # included after everything else. This provides aclocal with the
  3006. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  3007. # because those macros already exist, or will be overwritten later.
  3008. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  3009. #
  3010. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  3011. # Yes, that means every name once taken will need to remain here until
  3012. # we give up compatibility with versions before 1.7, at which point
  3013. # we need to keep only those names which we still refer to.
  3014. # This is to help aclocal find these macros, as it can't see m4_define.
  3015. ## -*- Autoconf -*-
  3016. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
  3017. # Free Software Foundation, Inc.
  3018. #
  3019. # This file is free software; the Free Software Foundation
  3020. # gives unlimited permission to copy and/or distribute it,
  3021. # with or without modifications, as long as this notice is preserved.
  3022. # serial 8
  3023. # Based on depend.m4 from automake 1.9, modified for standalone use in
  3024. # an environment where GNU make is required.
  3025. # ZW_PROG_COMPILER_DEPENDENCIES
  3026. # -----------------------------
  3027. # Variant of _AM_DEPENDENCIES which just does the dependency probe and
  3028. # sets fooDEPMODE accordingly. Cache-variable compatible with
  3029. # original; not side-effect compatible. As the users of this macro
  3030. # may require accurate dependencies for correct builds, it does *not*
  3031. # honor --disable-dependency-checking, and failure to detect a usable
  3032. # method is an error. depcomp is assumed to be located in
  3033. # $ac_aux_dir.
  3034. #
  3035. # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
  3036. # AM_SET_DEPDIR
  3037. # -------------
  3038. # Choose a directory name for dependency files.
  3039. # ZW_CREATE_DEPDIR
  3040. # ----------------
  3041. # As AM_SET_DEPDIR, but also create the directory at config.status time.
  3042. sim_inline="-DDEFAULT_INLINE=0"
  3043. # intl sister-directory configuration rules.
  3044. #
  3045. # The idea behind this macro is that there's no need to repeat all the
  3046. # autoconf probes done by the intl directory - it's already done them
  3047. # for us. In fact, there's no need even to look at the cache for the
  3048. # answers. All we need to do is nab a few pieces of information.
  3049. # The intl directory is set up to make this easy, by generating a
  3050. # small file which can be sourced as a shell script; then we produce
  3051. # the necessary substitutions and definitions for this directory.
  3052. # Autoconf M4 include file defining utility macros for complex Canadian
  3053. # cross builds.
  3054. ####
  3055. # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
  3056. # or AC_INIT.
  3057. # These demand that AC_CANONICAL_SYSTEM be called beforehand.
  3058. ####
  3059. # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3060. # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
  3061. ####
  3062. # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
  3063. # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
  3064. # Backported from Autoconf 2.5x; can go away when and if
  3065. # we switch. Put the OS path separator in $PATH_SEPARATOR.
  3066. # ACX_HAVE_GCC_FOR_TARGET
  3067. # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
  3068. # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
  3069. # Searching for installed target binutils. We need to take extra care,
  3070. # else we may find the wrong assembler, linker, etc., and lose.
  3071. #
  3072. # First try --with-build-time-tools, if specified.
  3073. #
  3074. # For build != host, we ask the installed GCC for the name of the tool it
  3075. # uses, and accept it if it is an absolute path. This is because the
  3076. # only good choice for a compiler is the same GCC version that is being
  3077. # installed (or we couldn't make target libraries), and we assume that
  3078. # on the host system we'll have not only the same GCC version, but also
  3079. # the same binutils version.
  3080. #
  3081. # For build == host, search the same directories that the installed
  3082. # compiler will search. We used to do this for the assembler, linker,
  3083. # and nm only; for simplicity of configuration, however, we extend this
  3084. # criterion to tools (such as ar and ranlib) that are never invoked by
  3085. # the compiler, to avoid mismatches.
  3086. #
  3087. # Also note we have to check MD_EXEC_PREFIX before checking the user's path
  3088. # if build == target. This makes the most sense only when bootstrapping,
  3089. # but we also do so when build != host. In this case, we hope that the
  3090. # build and host systems will have similar contents of MD_EXEC_PREFIX.
  3091. #
  3092. # If we do not find a suitable binary, then try the user's path.
  3093. ###
  3094. # AC_PROG_CPP_WERROR
  3095. # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
  3096. # triggers warnings from the preprocessor. Will be in autoconf 2.58.
  3097. # For now, using this also overrides header checks to use only the
  3098. # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
  3099. # bit harder from here).
  3100. # Eventually autoconf will default to checking headers with the compiler
  3101. # instead, and we'll have to do this differently.
  3102. # AC_PROG_CPP_WERROR
  3103. # Test for GNAT.
  3104. # We require the gnatbind & gnatmake programs, as well as a compiler driver
  3105. # that understands Ada. We use the user's CC setting, already found, and
  3106. # possibly add $1 to the command-line parameters.
  3107. #
  3108. # Sets the shell variable have_gnat to yes or no as appropriate, and
  3109. # substitutes GNATBIND and GNATMAKE.
  3110. ac_ext=c
  3111. ac_cpp='$CPP $CPPFLAGS'
  3112. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3113. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3114. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3115. if test -n "$ac_tool_prefix"; then
  3116. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3117. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3119. $as_echo_n "checking for $ac_word... " >&6; }
  3120. if test "${ac_cv_prog_CC+set}" = set; then :
  3121. $as_echo_n "(cached) " >&6
  3122. else
  3123. if test -n "$CC"; then
  3124. ac_cv_prog_CC="$CC" # Let the user override the test.
  3125. else
  3126. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3127. for as_dir in $PATH
  3128. do
  3129. IFS=$as_save_IFS
  3130. test -z "$as_dir" && as_dir=.
  3131. for ac_exec_ext in '' $ac_executable_extensions; do
  3132. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3133. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3134. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3135. break 2
  3136. fi
  3137. done
  3138. done
  3139. IFS=$as_save_IFS
  3140. fi
  3141. fi
  3142. CC=$ac_cv_prog_CC
  3143. if test -n "$CC"; then
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3145. $as_echo "$CC" >&6; }
  3146. else
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3148. $as_echo "no" >&6; }
  3149. fi
  3150. fi
  3151. if test -z "$ac_cv_prog_CC"; then
  3152. ac_ct_CC=$CC
  3153. # Extract the first word of "gcc", so it can be a program name with args.
  3154. set dummy gcc; ac_word=$2
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3156. $as_echo_n "checking for $ac_word... " >&6; }
  3157. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3158. $as_echo_n "(cached) " >&6
  3159. else
  3160. if test -n "$ac_ct_CC"; then
  3161. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3162. else
  3163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3164. for as_dir in $PATH
  3165. do
  3166. IFS=$as_save_IFS
  3167. test -z "$as_dir" && as_dir=.
  3168. for ac_exec_ext in '' $ac_executable_extensions; do
  3169. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3170. ac_cv_prog_ac_ct_CC="gcc"
  3171. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3172. break 2
  3173. fi
  3174. done
  3175. done
  3176. IFS=$as_save_IFS
  3177. fi
  3178. fi
  3179. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3180. if test -n "$ac_ct_CC"; then
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3182. $as_echo "$ac_ct_CC" >&6; }
  3183. else
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3185. $as_echo "no" >&6; }
  3186. fi
  3187. if test "x$ac_ct_CC" = x; then
  3188. CC=""
  3189. else
  3190. case $cross_compiling:$ac_tool_warned in
  3191. yes:)
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3193. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3194. ac_tool_warned=yes ;;
  3195. esac
  3196. CC=$ac_ct_CC
  3197. fi
  3198. else
  3199. CC="$ac_cv_prog_CC"
  3200. fi
  3201. if test -z "$CC"; then
  3202. if test -n "$ac_tool_prefix"; then
  3203. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3204. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3206. $as_echo_n "checking for $ac_word... " >&6; }
  3207. if test "${ac_cv_prog_CC+set}" = set; then :
  3208. $as_echo_n "(cached) " >&6
  3209. else
  3210. if test -n "$CC"; then
  3211. ac_cv_prog_CC="$CC" # Let the user override the test.
  3212. else
  3213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3214. for as_dir in $PATH
  3215. do
  3216. IFS=$as_save_IFS
  3217. test -z "$as_dir" && as_dir=.
  3218. for ac_exec_ext in '' $ac_executable_extensions; do
  3219. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3220. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3221. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3222. break 2
  3223. fi
  3224. done
  3225. done
  3226. IFS=$as_save_IFS
  3227. fi
  3228. fi
  3229. CC=$ac_cv_prog_CC
  3230. if test -n "$CC"; then
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3232. $as_echo "$CC" >&6; }
  3233. else
  3234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3235. $as_echo "no" >&6; }
  3236. fi
  3237. fi
  3238. fi
  3239. if test -z "$CC"; then
  3240. # Extract the first word of "cc", so it can be a program name with args.
  3241. set dummy cc; ac_word=$2
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3243. $as_echo_n "checking for $ac_word... " >&6; }
  3244. if test "${ac_cv_prog_CC+set}" = set; then :
  3245. $as_echo_n "(cached) " >&6
  3246. else
  3247. if test -n "$CC"; then
  3248. ac_cv_prog_CC="$CC" # Let the user override the test.
  3249. else
  3250. ac_prog_rejected=no
  3251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3252. for as_dir in $PATH
  3253. do
  3254. IFS=$as_save_IFS
  3255. test -z "$as_dir" && as_dir=.
  3256. for ac_exec_ext in '' $ac_executable_extensions; do
  3257. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3258. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3259. ac_prog_rejected=yes
  3260. continue
  3261. fi
  3262. ac_cv_prog_CC="cc"
  3263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3264. break 2
  3265. fi
  3266. done
  3267. done
  3268. IFS=$as_save_IFS
  3269. if test $ac_prog_rejected = yes; then
  3270. # We found a bogon in the path, so make sure we never use it.
  3271. set dummy $ac_cv_prog_CC
  3272. shift
  3273. if test $# != 0; then
  3274. # We chose a different compiler from the bogus one.
  3275. # However, it has the same basename, so the bogon will be chosen
  3276. # first if we set CC to just the basename; use the full file name.
  3277. shift
  3278. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3279. fi
  3280. fi
  3281. fi
  3282. fi
  3283. CC=$ac_cv_prog_CC
  3284. if test -n "$CC"; then
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3286. $as_echo "$CC" >&6; }
  3287. else
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3289. $as_echo "no" >&6; }
  3290. fi
  3291. fi
  3292. if test -z "$CC"; then
  3293. if test -n "$ac_tool_prefix"; then
  3294. for ac_prog in cl.exe
  3295. do
  3296. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3297. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3299. $as_echo_n "checking for $ac_word... " >&6; }
  3300. if test "${ac_cv_prog_CC+set}" = set; then :
  3301. $as_echo_n "(cached) " >&6
  3302. else
  3303. if test -n "$CC"; then
  3304. ac_cv_prog_CC="$CC" # Let the user override the test.
  3305. else
  3306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3307. for as_dir in $PATH
  3308. do
  3309. IFS=$as_save_IFS
  3310. test -z "$as_dir" && as_dir=.
  3311. for ac_exec_ext in '' $ac_executable_extensions; do
  3312. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3313. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3314. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3315. break 2
  3316. fi
  3317. done
  3318. done
  3319. IFS=$as_save_IFS
  3320. fi
  3321. fi
  3322. CC=$ac_cv_prog_CC
  3323. if test -n "$CC"; then
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3325. $as_echo "$CC" >&6; }
  3326. else
  3327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3328. $as_echo "no" >&6; }
  3329. fi
  3330. test -n "$CC" && break
  3331. done
  3332. fi
  3333. if test -z "$CC"; then
  3334. ac_ct_CC=$CC
  3335. for ac_prog in cl.exe
  3336. do
  3337. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3338. set dummy $ac_prog; ac_word=$2
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3340. $as_echo_n "checking for $ac_word... " >&6; }
  3341. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3342. $as_echo_n "(cached) " >&6
  3343. else
  3344. if test -n "$ac_ct_CC"; then
  3345. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3346. else
  3347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3348. for as_dir in $PATH
  3349. do
  3350. IFS=$as_save_IFS
  3351. test -z "$as_dir" && as_dir=.
  3352. for ac_exec_ext in '' $ac_executable_extensions; do
  3353. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3354. ac_cv_prog_ac_ct_CC="$ac_prog"
  3355. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3356. break 2
  3357. fi
  3358. done
  3359. done
  3360. IFS=$as_save_IFS
  3361. fi
  3362. fi
  3363. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3364. if test -n "$ac_ct_CC"; then
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3366. $as_echo "$ac_ct_CC" >&6; }
  3367. else
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3369. $as_echo "no" >&6; }
  3370. fi
  3371. test -n "$ac_ct_CC" && break
  3372. done
  3373. if test "x$ac_ct_CC" = x; then
  3374. CC=""
  3375. else
  3376. case $cross_compiling:$ac_tool_warned in
  3377. yes:)
  3378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3379. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3380. ac_tool_warned=yes ;;
  3381. esac
  3382. CC=$ac_ct_CC
  3383. fi
  3384. fi
  3385. fi
  3386. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3387. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3388. as_fn_error "no acceptable C compiler found in \$PATH
  3389. See \`config.log' for more details." "$LINENO" 5; }
  3390. # Provide some information about the compiler.
  3391. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3392. set X $ac_compile
  3393. ac_compiler=$2
  3394. for ac_option in --version -v -V -qversion; do
  3395. { { ac_try="$ac_compiler $ac_option >&5"
  3396. case "(($ac_try" in
  3397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3398. *) ac_try_echo=$ac_try;;
  3399. esac
  3400. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3401. $as_echo "$ac_try_echo"; } >&5
  3402. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3403. ac_status=$?
  3404. if test -s conftest.err; then
  3405. sed '10a\
  3406. ... rest of stderr output deleted ...
  3407. 10q' conftest.err >conftest.er1
  3408. cat conftest.er1 >&5
  3409. rm -f conftest.er1 conftest.err
  3410. fi
  3411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3412. test $ac_status = 0; }
  3413. done
  3414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3415. /* end confdefs.h. */
  3416. int
  3417. main ()
  3418. {
  3419. ;
  3420. return 0;
  3421. }
  3422. _ACEOF
  3423. ac_clean_files_save=$ac_clean_files
  3424. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3425. # Try to create an executable without -o first, disregard a.out.
  3426. # It will help us diagnose broken compilers, and finding out an intuition
  3427. # of exeext.
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3429. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3430. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3431. # The possible output files:
  3432. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3433. ac_rmfiles=
  3434. for ac_file in $ac_files
  3435. do
  3436. case $ac_file in
  3437. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3438. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3439. esac
  3440. done
  3441. rm -f $ac_rmfiles
  3442. if { { ac_try="$ac_link_default"
  3443. case "(($ac_try" in
  3444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3445. *) ac_try_echo=$ac_try;;
  3446. esac
  3447. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3448. $as_echo "$ac_try_echo"; } >&5
  3449. (eval "$ac_link_default") 2>&5
  3450. ac_status=$?
  3451. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3452. test $ac_status = 0; }; then :
  3453. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3454. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3455. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3456. # so that the user can short-circuit this test for compilers unknown to
  3457. # Autoconf.
  3458. for ac_file in $ac_files ''
  3459. do
  3460. test -f "$ac_file" || continue
  3461. case $ac_file in
  3462. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3463. ;;
  3464. [ab].out )
  3465. # We found the default executable, but exeext='' is most
  3466. # certainly right.
  3467. break;;
  3468. *.* )
  3469. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3470. then :; else
  3471. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3472. fi
  3473. # We set ac_cv_exeext here because the later test for it is not
  3474. # safe: cross compilers may not add the suffix if given an `-o'
  3475. # argument, so we may need to know it at that point already.
  3476. # Even if this section looks crufty: it has the advantage of
  3477. # actually working.
  3478. break;;
  3479. * )
  3480. break;;
  3481. esac
  3482. done
  3483. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3484. else
  3485. ac_file=''
  3486. fi
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3488. $as_echo "$ac_file" >&6; }
  3489. if test -z "$ac_file"; then :
  3490. $as_echo "$as_me: failed program was:" >&5
  3491. sed 's/^/| /' conftest.$ac_ext >&5
  3492. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3493. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3494. { as_fn_set_status 77
  3495. as_fn_error "C compiler cannot create executables
  3496. See \`config.log' for more details." "$LINENO" 5; }; }
  3497. fi
  3498. ac_exeext=$ac_cv_exeext
  3499. # Check that the compiler produces executables we can run. If not, either
  3500. # the compiler is broken, or we cross compile.
  3501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3502. $as_echo_n "checking whether the C compiler works... " >&6; }
  3503. # If not cross compiling, check that we can run a simple program.
  3504. if test "$cross_compiling" != yes; then
  3505. if { ac_try='./$ac_file'
  3506. { { case "(($ac_try" in
  3507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3508. *) ac_try_echo=$ac_try;;
  3509. esac
  3510. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3511. $as_echo "$ac_try_echo"; } >&5
  3512. (eval "$ac_try") 2>&5
  3513. ac_status=$?
  3514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3515. test $ac_status = 0; }; }; then
  3516. cross_compiling=no
  3517. else
  3518. if test "$cross_compiling" = maybe; then
  3519. cross_compiling=yes
  3520. else
  3521. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3522. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3523. as_fn_error "cannot run C compiled programs.
  3524. If you meant to cross compile, use \`--host'.
  3525. See \`config.log' for more details." "$LINENO" 5; }
  3526. fi
  3527. fi
  3528. fi
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3530. $as_echo "yes" >&6; }
  3531. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3532. ac_clean_files=$ac_clean_files_save
  3533. # Check that the compiler produces executables we can run. If not, either
  3534. # the compiler is broken, or we cross compile.
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3536. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3538. $as_echo "$cross_compiling" >&6; }
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3540. $as_echo_n "checking for suffix of executables... " >&6; }
  3541. if { { ac_try="$ac_link"
  3542. case "(($ac_try" in
  3543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3544. *) ac_try_echo=$ac_try;;
  3545. esac
  3546. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3547. $as_echo "$ac_try_echo"; } >&5
  3548. (eval "$ac_link") 2>&5
  3549. ac_status=$?
  3550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3551. test $ac_status = 0; }; then :
  3552. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3553. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3554. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3555. # `rm'.
  3556. for ac_file in conftest.exe conftest conftest.*; do
  3557. test -f "$ac_file" || continue
  3558. case $ac_file in
  3559. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3560. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3561. break;;
  3562. * ) break;;
  3563. esac
  3564. done
  3565. else
  3566. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3567. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3568. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3569. See \`config.log' for more details." "$LINENO" 5; }
  3570. fi
  3571. rm -f conftest$ac_cv_exeext
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3573. $as_echo "$ac_cv_exeext" >&6; }
  3574. rm -f conftest.$ac_ext
  3575. EXEEXT=$ac_cv_exeext
  3576. ac_exeext=$EXEEXT
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3578. $as_echo_n "checking for suffix of object files... " >&6; }
  3579. if test "${ac_cv_objext+set}" = set; then :
  3580. $as_echo_n "(cached) " >&6
  3581. else
  3582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3583. /* end confdefs.h. */
  3584. int
  3585. main ()
  3586. {
  3587. ;
  3588. return 0;
  3589. }
  3590. _ACEOF
  3591. rm -f conftest.o conftest.obj
  3592. if { { ac_try="$ac_compile"
  3593. case "(($ac_try" in
  3594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3595. *) ac_try_echo=$ac_try;;
  3596. esac
  3597. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3598. $as_echo "$ac_try_echo"; } >&5
  3599. (eval "$ac_compile") 2>&5
  3600. ac_status=$?
  3601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3602. test $ac_status = 0; }; then :
  3603. for ac_file in conftest.o conftest.obj conftest.*; do
  3604. test -f "$ac_file" || continue;
  3605. case $ac_file in
  3606. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3607. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3608. break;;
  3609. esac
  3610. done
  3611. else
  3612. $as_echo "$as_me: failed program was:" >&5
  3613. sed 's/^/| /' conftest.$ac_ext >&5
  3614. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3615. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3616. as_fn_error "cannot compute suffix of object files: cannot compile
  3617. See \`config.log' for more details." "$LINENO" 5; }
  3618. fi
  3619. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3620. fi
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3622. $as_echo "$ac_cv_objext" >&6; }
  3623. OBJEXT=$ac_cv_objext
  3624. ac_objext=$OBJEXT
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3626. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3627. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3628. $as_echo_n "(cached) " >&6
  3629. else
  3630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3631. /* end confdefs.h. */
  3632. int
  3633. main ()
  3634. {
  3635. #ifndef __GNUC__
  3636. choke me
  3637. #endif
  3638. ;
  3639. return 0;
  3640. }
  3641. _ACEOF
  3642. if ac_fn_c_try_compile "$LINENO"; then :
  3643. ac_compiler_gnu=yes
  3644. else
  3645. ac_compiler_gnu=no
  3646. fi
  3647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3648. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3649. fi
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3651. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3652. if test $ac_compiler_gnu = yes; then
  3653. GCC=yes
  3654. else
  3655. GCC=
  3656. fi
  3657. ac_test_CFLAGS=${CFLAGS+set}
  3658. ac_save_CFLAGS=$CFLAGS
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3660. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3661. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3662. $as_echo_n "(cached) " >&6
  3663. else
  3664. ac_save_c_werror_flag=$ac_c_werror_flag
  3665. ac_c_werror_flag=yes
  3666. ac_cv_prog_cc_g=no
  3667. CFLAGS="-g"
  3668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3669. /* end confdefs.h. */
  3670. int
  3671. main ()
  3672. {
  3673. ;
  3674. return 0;
  3675. }
  3676. _ACEOF
  3677. if ac_fn_c_try_compile "$LINENO"; then :
  3678. ac_cv_prog_cc_g=yes
  3679. else
  3680. CFLAGS=""
  3681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3682. /* end confdefs.h. */
  3683. int
  3684. main ()
  3685. {
  3686. ;
  3687. return 0;
  3688. }
  3689. _ACEOF
  3690. if ac_fn_c_try_compile "$LINENO"; then :
  3691. else
  3692. ac_c_werror_flag=$ac_save_c_werror_flag
  3693. CFLAGS="-g"
  3694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3695. /* end confdefs.h. */
  3696. int
  3697. main ()
  3698. {
  3699. ;
  3700. return 0;
  3701. }
  3702. _ACEOF
  3703. if ac_fn_c_try_compile "$LINENO"; then :
  3704. ac_cv_prog_cc_g=yes
  3705. fi
  3706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3707. fi
  3708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3709. fi
  3710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3711. ac_c_werror_flag=$ac_save_c_werror_flag
  3712. fi
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3714. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3715. if test "$ac_test_CFLAGS" = set; then
  3716. CFLAGS=$ac_save_CFLAGS
  3717. elif test $ac_cv_prog_cc_g = yes; then
  3718. if test "$GCC" = yes; then
  3719. CFLAGS="-g -O2"
  3720. else
  3721. CFLAGS="-g"
  3722. fi
  3723. else
  3724. if test "$GCC" = yes; then
  3725. CFLAGS="-O2"
  3726. else
  3727. CFLAGS=
  3728. fi
  3729. fi
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3731. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3732. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3733. $as_echo_n "(cached) " >&6
  3734. else
  3735. ac_cv_prog_cc_c89=no
  3736. ac_save_CC=$CC
  3737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3738. /* end confdefs.h. */
  3739. #include <stdarg.h>
  3740. #include <stdio.h>
  3741. #include <sys/types.h>
  3742. #include <sys/stat.h>
  3743. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3744. struct buf { int x; };
  3745. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3746. static char *e (p, i)
  3747. char **p;
  3748. int i;
  3749. {
  3750. return p[i];
  3751. }
  3752. static char *f (char * (*g) (char **, int), char **p, ...)
  3753. {
  3754. char *s;
  3755. va_list v;
  3756. va_start (v,p);
  3757. s = g (p, va_arg (v,int));
  3758. va_end (v);
  3759. return s;
  3760. }
  3761. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3762. function prototypes and stuff, but not '\xHH' hex character constants.
  3763. These don't provoke an error unfortunately, instead are silently treated
  3764. as 'x'. The following induces an error, until -std is added to get
  3765. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3766. array size at least. It's necessary to write '\x00'==0 to get something
  3767. that's true only with -std. */
  3768. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3769. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3770. inside strings and character constants. */
  3771. #define FOO(x) 'x'
  3772. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3773. int test (int i, double x);
  3774. struct s1 {int (*f) (int a);};
  3775. struct s2 {int (*f) (double a);};
  3776. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3777. int argc;
  3778. char **argv;
  3779. int
  3780. main ()
  3781. {
  3782. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3783. ;
  3784. return 0;
  3785. }
  3786. _ACEOF
  3787. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3788. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3789. do
  3790. CC="$ac_save_CC $ac_arg"
  3791. if ac_fn_c_try_compile "$LINENO"; then :
  3792. ac_cv_prog_cc_c89=$ac_arg
  3793. fi
  3794. rm -f core conftest.err conftest.$ac_objext
  3795. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3796. done
  3797. rm -f conftest.$ac_ext
  3798. CC=$ac_save_CC
  3799. fi
  3800. # AC_CACHE_VAL
  3801. case "x$ac_cv_prog_cc_c89" in
  3802. x)
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3804. $as_echo "none needed" >&6; } ;;
  3805. xno)
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3807. $as_echo "unsupported" >&6; } ;;
  3808. *)
  3809. CC="$CC $ac_cv_prog_cc_c89"
  3810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3811. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3812. esac
  3813. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3814. fi
  3815. ac_ext=c
  3816. ac_cpp='$CPP $CPPFLAGS'
  3817. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3818. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3819. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3820. ac_aux_dir=
  3821. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3822. for ac_t in install-sh install.sh shtool; do
  3823. if test -f "$ac_dir/$ac_t"; then
  3824. ac_aux_dir=$ac_dir
  3825. ac_install_sh="$ac_aux_dir/$ac_t -c"
  3826. break 2
  3827. fi
  3828. done
  3829. done
  3830. if test -z "$ac_aux_dir"; then
  3831. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3832. fi
  3833. # These three variables are undocumented and unsupported,
  3834. # and are intended to be withdrawn in a future Autoconf release.
  3835. # They can cause serious problems if a builder's source tree is in a directory
  3836. # whose full name contains unusual characters.
  3837. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3838. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3839. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3840. # Make sure we can run config.sub.
  3841. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3842. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3844. $as_echo_n "checking build system type... " >&6; }
  3845. if test "${ac_cv_build+set}" = set; then :
  3846. $as_echo_n "(cached) " >&6
  3847. else
  3848. ac_build_alias=$build_alias
  3849. test "x$ac_build_alias" = x &&
  3850. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3851. test "x$ac_build_alias" = x &&
  3852. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3853. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3854. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3855. fi
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3857. $as_echo "$ac_cv_build" >&6; }
  3858. case $ac_cv_build in
  3859. *-*-*) ;;
  3860. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3861. esac
  3862. build=$ac_cv_build
  3863. ac_save_IFS=$IFS; IFS='-'
  3864. set x $ac_cv_build
  3865. shift
  3866. build_cpu=$1
  3867. build_vendor=$2
  3868. shift; shift
  3869. # Remember, the first character of IFS is used to create $*,
  3870. # except with old shells:
  3871. build_os=$*
  3872. IFS=$ac_save_IFS
  3873. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3875. $as_echo_n "checking host system type... " >&6; }
  3876. if test "${ac_cv_host+set}" = set; then :
  3877. $as_echo_n "(cached) " >&6
  3878. else
  3879. if test "x$host_alias" = x; then
  3880. ac_cv_host=$ac_cv_build
  3881. else
  3882. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3883. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3884. fi
  3885. fi
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3887. $as_echo "$ac_cv_host" >&6; }
  3888. case $ac_cv_host in
  3889. *-*-*) ;;
  3890. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3891. esac
  3892. host=$ac_cv_host
  3893. ac_save_IFS=$IFS; IFS='-'
  3894. set x $ac_cv_host
  3895. shift
  3896. host_cpu=$1
  3897. host_vendor=$2
  3898. shift; shift
  3899. # Remember, the first character of IFS is used to create $*,
  3900. # except with old shells:
  3901. host_os=$*
  3902. IFS=$ac_save_IFS
  3903. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3905. $as_echo_n "checking target system type... " >&6; }
  3906. if test "${ac_cv_target+set}" = set; then :
  3907. $as_echo_n "(cached) " >&6
  3908. else
  3909. if test "x$target_alias" = x; then
  3910. ac_cv_target=$ac_cv_host
  3911. else
  3912. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3913. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3914. fi
  3915. fi
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3917. $as_echo "$ac_cv_target" >&6; }
  3918. case $ac_cv_target in
  3919. *-*-*) ;;
  3920. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  3921. esac
  3922. target=$ac_cv_target
  3923. ac_save_IFS=$IFS; IFS='-'
  3924. set x $ac_cv_target
  3925. shift
  3926. target_cpu=$1
  3927. target_vendor=$2
  3928. shift; shift
  3929. # Remember, the first character of IFS is used to create $*,
  3930. # except with old shells:
  3931. target_os=$*
  3932. IFS=$ac_save_IFS
  3933. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3934. # The aliases save the names the user supplied, while $host etc.
  3935. # will get canonicalized.
  3936. test -n "$target_alias" &&
  3937. test "$program_prefix$program_suffix$program_transform_name" = \
  3938. NONENONEs,x,x, &&
  3939. program_prefix=${target_alias}-
  3940. ac_ext=c
  3941. ac_cpp='$CPP $CPPFLAGS'
  3942. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3943. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3944. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3946. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3947. # On Suns, sometimes $CPP names a directory.
  3948. if test -n "$CPP" && test -d "$CPP"; then
  3949. CPP=
  3950. fi
  3951. if test -z "$CPP"; then
  3952. if test "${ac_cv_prog_CPP+set}" = set; then :
  3953. $as_echo_n "(cached) " >&6
  3954. else
  3955. # Double quotes because CPP needs to be expanded
  3956. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3957. do
  3958. ac_preproc_ok=false
  3959. for ac_c_preproc_warn_flag in '' yes
  3960. do
  3961. # Use a header file that comes with gcc, so configuring glibc
  3962. # with a fresh cross-compiler works.
  3963. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3964. # <limits.h> exists even on freestanding compilers.
  3965. # On the NeXT, cc -E runs the code through the compiler's parser,
  3966. # not just through cpp. "Syntax error" is here to catch this case.
  3967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3968. /* end confdefs.h. */
  3969. #ifdef __STDC__
  3970. # include <limits.h>
  3971. #else
  3972. # include <assert.h>
  3973. #endif
  3974. Syntax error
  3975. _ACEOF
  3976. if ac_fn_c_try_cpp "$LINENO"; then :
  3977. else
  3978. # Broken: fails on valid input.
  3979. continue
  3980. fi
  3981. rm -f conftest.err conftest.$ac_ext
  3982. # OK, works on sane cases. Now check whether nonexistent headers
  3983. # can be detected and how.
  3984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3985. /* end confdefs.h. */
  3986. #include <ac_nonexistent.h>
  3987. _ACEOF
  3988. if ac_fn_c_try_cpp "$LINENO"; then :
  3989. # Broken: success on invalid input.
  3990. continue
  3991. else
  3992. # Passes both tests.
  3993. ac_preproc_ok=:
  3994. break
  3995. fi
  3996. rm -f conftest.err conftest.$ac_ext
  3997. done
  3998. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3999. rm -f conftest.err conftest.$ac_ext
  4000. if $ac_preproc_ok; then :
  4001. break
  4002. fi
  4003. done
  4004. ac_cv_prog_CPP=$CPP
  4005. fi
  4006. CPP=$ac_cv_prog_CPP
  4007. else
  4008. ac_cv_prog_CPP=$CPP
  4009. fi
  4010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4011. $as_echo "$CPP" >&6; }
  4012. ac_preproc_ok=false
  4013. for ac_c_preproc_warn_flag in '' yes
  4014. do
  4015. # Use a header file that comes with gcc, so configuring glibc
  4016. # with a fresh cross-compiler works.
  4017. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4018. # <limits.h> exists even on freestanding compilers.
  4019. # On the NeXT, cc -E runs the code through the compiler's parser,
  4020. # not just through cpp. "Syntax error" is here to catch this case.
  4021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4022. /* end confdefs.h. */
  4023. #ifdef __STDC__
  4024. # include <limits.h>
  4025. #else
  4026. # include <assert.h>
  4027. #endif
  4028. Syntax error
  4029. _ACEOF
  4030. if ac_fn_c_try_cpp "$LINENO"; then :
  4031. else
  4032. # Broken: fails on valid input.
  4033. continue
  4034. fi
  4035. rm -f conftest.err conftest.$ac_ext
  4036. # OK, works on sane cases. Now check whether nonexistent headers
  4037. # can be detected and how.
  4038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4039. /* end confdefs.h. */
  4040. #include <ac_nonexistent.h>
  4041. _ACEOF
  4042. if ac_fn_c_try_cpp "$LINENO"; then :
  4043. # Broken: success on invalid input.
  4044. continue
  4045. else
  4046. # Passes both tests.
  4047. ac_preproc_ok=:
  4048. break
  4049. fi
  4050. rm -f conftest.err conftest.$ac_ext
  4051. done
  4052. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4053. rm -f conftest.err conftest.$ac_ext
  4054. if $ac_preproc_ok; then :
  4055. else
  4056. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4057. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4058. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4059. See \`config.log' for more details." "$LINENO" 5; }
  4060. fi
  4061. ac_ext=c
  4062. ac_cpp='$CPP $CPPFLAGS'
  4063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4067. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4068. if test "${ac_cv_path_GREP+set}" = set; then :
  4069. $as_echo_n "(cached) " >&6
  4070. else
  4071. if test -z "$GREP"; then
  4072. ac_path_GREP_found=false
  4073. # Loop through the user's path and test for each of PROGNAME-LIST
  4074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4075. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4076. do
  4077. IFS=$as_save_IFS
  4078. test -z "$as_dir" && as_dir=.
  4079. for ac_prog in grep ggrep; do
  4080. for ac_exec_ext in '' $ac_executable_extensions; do
  4081. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4082. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4083. # Check for GNU ac_path_GREP and select it if it is found.
  4084. # Check for GNU $ac_path_GREP
  4085. case `"$ac_path_GREP" --version 2>&1` in
  4086. *GNU*)
  4087. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4088. *)
  4089. ac_count=0
  4090. $as_echo_n 0123456789 >"conftest.in"
  4091. while :
  4092. do
  4093. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4094. mv "conftest.tmp" "conftest.in"
  4095. cp "conftest.in" "conftest.nl"
  4096. $as_echo 'GREP' >> "conftest.nl"
  4097. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4098. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4099. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4100. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4101. # Best one so far, save it but keep looking for a better one
  4102. ac_cv_path_GREP="$ac_path_GREP"
  4103. ac_path_GREP_max=$ac_count
  4104. fi
  4105. # 10*(2^10) chars as input seems more than enough
  4106. test $ac_count -gt 10 && break
  4107. done
  4108. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4109. esac
  4110. $ac_path_GREP_found && break 3
  4111. done
  4112. done
  4113. done
  4114. IFS=$as_save_IFS
  4115. if test -z "$ac_cv_path_GREP"; then
  4116. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4117. fi
  4118. else
  4119. ac_cv_path_GREP=$GREP
  4120. fi
  4121. fi
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4123. $as_echo "$ac_cv_path_GREP" >&6; }
  4124. GREP="$ac_cv_path_GREP"
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4126. $as_echo_n "checking for egrep... " >&6; }
  4127. if test "${ac_cv_path_EGREP+set}" = set; then :
  4128. $as_echo_n "(cached) " >&6
  4129. else
  4130. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4131. then ac_cv_path_EGREP="$GREP -E"
  4132. else
  4133. if test -z "$EGREP"; then
  4134. ac_path_EGREP_found=false
  4135. # Loop through the user's path and test for each of PROGNAME-LIST
  4136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4137. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4138. do
  4139. IFS=$as_save_IFS
  4140. test -z "$as_dir" && as_dir=.
  4141. for ac_prog in egrep; do
  4142. for ac_exec_ext in '' $ac_executable_extensions; do
  4143. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4144. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4145. # Check for GNU ac_path_EGREP and select it if it is found.
  4146. # Check for GNU $ac_path_EGREP
  4147. case `"$ac_path_EGREP" --version 2>&1` in
  4148. *GNU*)
  4149. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4150. *)
  4151. ac_count=0
  4152. $as_echo_n 0123456789 >"conftest.in"
  4153. while :
  4154. do
  4155. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4156. mv "conftest.tmp" "conftest.in"
  4157. cp "conftest.in" "conftest.nl"
  4158. $as_echo 'EGREP' >> "conftest.nl"
  4159. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4160. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4161. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4162. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4163. # Best one so far, save it but keep looking for a better one
  4164. ac_cv_path_EGREP="$ac_path_EGREP"
  4165. ac_path_EGREP_max=$ac_count
  4166. fi
  4167. # 10*(2^10) chars as input seems more than enough
  4168. test $ac_count -gt 10 && break
  4169. done
  4170. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4171. esac
  4172. $ac_path_EGREP_found && break 3
  4173. done
  4174. done
  4175. done
  4176. IFS=$as_save_IFS
  4177. if test -z "$ac_cv_path_EGREP"; then
  4178. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4179. fi
  4180. else
  4181. ac_cv_path_EGREP=$EGREP
  4182. fi
  4183. fi
  4184. fi
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4186. $as_echo "$ac_cv_path_EGREP" >&6; }
  4187. EGREP="$ac_cv_path_EGREP"
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4189. $as_echo_n "checking for ANSI C header files... " >&6; }
  4190. if test "${ac_cv_header_stdc+set}" = set; then :
  4191. $as_echo_n "(cached) " >&6
  4192. else
  4193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4194. /* end confdefs.h. */
  4195. #include <stdlib.h>
  4196. #include <stdarg.h>
  4197. #include <string.h>
  4198. #include <float.h>
  4199. int
  4200. main ()
  4201. {
  4202. ;
  4203. return 0;
  4204. }
  4205. _ACEOF
  4206. if ac_fn_c_try_compile "$LINENO"; then :
  4207. ac_cv_header_stdc=yes
  4208. else
  4209. ac_cv_header_stdc=no
  4210. fi
  4211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4212. if test $ac_cv_header_stdc = yes; then
  4213. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4215. /* end confdefs.h. */
  4216. #include <string.h>
  4217. _ACEOF
  4218. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4219. $EGREP "memchr" >/dev/null 2>&1; then :
  4220. else
  4221. ac_cv_header_stdc=no
  4222. fi
  4223. rm -f conftest*
  4224. fi
  4225. if test $ac_cv_header_stdc = yes; then
  4226. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4228. /* end confdefs.h. */
  4229. #include <stdlib.h>
  4230. _ACEOF
  4231. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4232. $EGREP "free" >/dev/null 2>&1; then :
  4233. else
  4234. ac_cv_header_stdc=no
  4235. fi
  4236. rm -f conftest*
  4237. fi
  4238. if test $ac_cv_header_stdc = yes; then
  4239. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4240. if test "$cross_compiling" = yes; then :
  4241. :
  4242. else
  4243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4244. /* end confdefs.h. */
  4245. #include <ctype.h>
  4246. #include <stdlib.h>
  4247. #if ((' ' & 0x0FF) == 0x020)
  4248. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4249. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4250. #else
  4251. # define ISLOWER(c) \
  4252. (('a' <= (c) && (c) <= 'i') \
  4253. || ('j' <= (c) && (c) <= 'r') \
  4254. || ('s' <= (c) && (c) <= 'z'))
  4255. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4256. #endif
  4257. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4258. int
  4259. main ()
  4260. {
  4261. int i;
  4262. for (i = 0; i < 256; i++)
  4263. if (XOR (islower (i), ISLOWER (i))
  4264. || toupper (i) != TOUPPER (i))
  4265. return 2;
  4266. return 0;
  4267. }
  4268. _ACEOF
  4269. if ac_fn_c_try_run "$LINENO"; then :
  4270. else
  4271. ac_cv_header_stdc=no
  4272. fi
  4273. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4274. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4275. fi
  4276. fi
  4277. fi
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4279. $as_echo "$ac_cv_header_stdc" >&6; }
  4280. if test $ac_cv_header_stdc = yes; then
  4281. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4282. fi
  4283. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4284. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4285. inttypes.h stdint.h unistd.h
  4286. do :
  4287. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4288. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4289. "
  4290. eval as_val=\$$as_ac_Header
  4291. if test "x$as_val" = x""yes; then :
  4292. cat >>confdefs.h <<_ACEOF
  4293. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4294. _ACEOF
  4295. fi
  4296. done
  4297. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4298. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4299. MINIX=yes
  4300. else
  4301. MINIX=
  4302. fi
  4303. if test "$MINIX" = yes; then
  4304. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4305. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4306. $as_echo "#define _MINIX 1" >>confdefs.h
  4307. fi
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4309. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4310. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4311. $as_echo_n "(cached) " >&6
  4312. else
  4313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4314. /* end confdefs.h. */
  4315. # define __EXTENSIONS__ 1
  4316. $ac_includes_default
  4317. int
  4318. main ()
  4319. {
  4320. ;
  4321. return 0;
  4322. }
  4323. _ACEOF
  4324. if ac_fn_c_try_compile "$LINENO"; then :
  4325. ac_cv_safe_to_define___extensions__=yes
  4326. else
  4327. ac_cv_safe_to_define___extensions__=no
  4328. fi
  4329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4330. fi
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4332. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4333. test $ac_cv_safe_to_define___extensions__ = yes &&
  4334. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4335. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4336. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4337. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4338. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4339. test "$program_prefix" != NONE &&
  4340. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4341. # Use a double $ so make ignores it.
  4342. test "$program_suffix" != NONE &&
  4343. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4344. # Double any \ or $.
  4345. # By default was `s,x,x', remove it if useless.
  4346. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4347. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  4348. # Find a good install program. We prefer a C program (faster),
  4349. # so one script is as good as another. But avoid the broken or
  4350. # incompatible versions:
  4351. # SysV /etc/install, /usr/sbin/install
  4352. # SunOS /usr/etc/install
  4353. # IRIX /sbin/install
  4354. # AIX /bin/install
  4355. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4356. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4357. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4358. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4359. # OS/2's system install, which has a completely different semantic
  4360. # ./install, which can be erroneously created by make from ./install.sh.
  4361. # Reject install programs that cannot install multiple files.
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4363. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4364. if test -z "$INSTALL"; then
  4365. if test "${ac_cv_path_install+set}" = set; then :
  4366. $as_echo_n "(cached) " >&6
  4367. else
  4368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4369. for as_dir in $PATH
  4370. do
  4371. IFS=$as_save_IFS
  4372. test -z "$as_dir" && as_dir=.
  4373. # Account for people who put trailing slashes in PATH elements.
  4374. case $as_dir/ in #((
  4375. ./ | .// | /[cC]/* | \
  4376. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4377. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4378. /usr/ucb/* ) ;;
  4379. *)
  4380. # OSF1 and SCO ODT 3.0 have their own names for install.
  4381. # Don't use installbsd from OSF since it installs stuff as root
  4382. # by default.
  4383. for ac_prog in ginstall scoinst install; do
  4384. for ac_exec_ext in '' $ac_executable_extensions; do
  4385. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4386. if test $ac_prog = install &&
  4387. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4388. # AIX install. It has an incompatible calling convention.
  4389. :
  4390. elif test $ac_prog = install &&
  4391. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4392. # program-specific install script used by HP pwplus--don't use.
  4393. :
  4394. else
  4395. rm -rf conftest.one conftest.two conftest.dir
  4396. echo one > conftest.one
  4397. echo two > conftest.two
  4398. mkdir conftest.dir
  4399. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4400. test -s conftest.one && test -s conftest.two &&
  4401. test -s conftest.dir/conftest.one &&
  4402. test -s conftest.dir/conftest.two
  4403. then
  4404. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4405. break 3
  4406. fi
  4407. fi
  4408. fi
  4409. done
  4410. done
  4411. ;;
  4412. esac
  4413. done
  4414. IFS=$as_save_IFS
  4415. rm -rf conftest.one conftest.two conftest.dir
  4416. fi
  4417. if test "${ac_cv_path_install+set}" = set; then
  4418. INSTALL=$ac_cv_path_install
  4419. else
  4420. # As a last resort, use the slow shell script. Don't cache a
  4421. # value for INSTALL within a source directory, because that will
  4422. # break other packages using the cache if that directory is
  4423. # removed, or if the value is a relative name.
  4424. INSTALL=$ac_install_sh
  4425. fi
  4426. fi
  4427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4428. $as_echo "$INSTALL" >&6; }
  4429. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4430. # It thinks the first close brace ends the variable substitution.
  4431. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4432. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4433. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4434. rm -rf .tst 2>/dev/null
  4435. mkdir .tst 2>/dev/null
  4436. if test -d .tst; then
  4437. am__leading_dot=.
  4438. else
  4439. am__leading_dot=_
  4440. fi
  4441. rmdir .tst 2>/dev/null
  4442. DEPDIR="${am__leading_dot}deps"
  4443. case `pwd` in
  4444. *\ * | *\ *)
  4445. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4446. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4447. esac
  4448. macro_version='2.2.7a'
  4449. macro_revision='1.3134'
  4450. ltmain="$ac_aux_dir/ltmain.sh"
  4451. # Backslashify metacharacters that are still active within
  4452. # double-quoted strings.
  4453. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4454. # Same as above, but do not quote variable references.
  4455. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4456. # Sed substitution to delay expansion of an escaped shell variable in a
  4457. # double_quote_subst'ed string.
  4458. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4459. # Sed substitution to delay expansion of an escaped single quote.
  4460. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4461. # Sed substitution to avoid accidental globbing in evaled expressions
  4462. no_glob_subst='s/\*/\\\*/g'
  4463. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4464. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4465. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4467. $as_echo_n "checking how to print strings... " >&6; }
  4468. # Test print first, because it will be a builtin if present.
  4469. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4470. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4471. ECHO='print -r --'
  4472. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4473. ECHO='printf %s\n'
  4474. else
  4475. # Use this function as a fallback that always works.
  4476. func_fallback_echo ()
  4477. {
  4478. eval 'cat <<_LTECHO_EOF
  4479. $1
  4480. _LTECHO_EOF'
  4481. }
  4482. ECHO='func_fallback_echo'
  4483. fi
  4484. # func_echo_all arg...
  4485. # Invoke $ECHO with all args, space-separated.
  4486. func_echo_all ()
  4487. {
  4488. $ECHO ""
  4489. }
  4490. case "$ECHO" in
  4491. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4492. $as_echo "printf" >&6; } ;;
  4493. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4494. $as_echo "print -r" >&6; } ;;
  4495. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4496. $as_echo "cat" >&6; } ;;
  4497. esac
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4499. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4500. if test "${ac_cv_path_SED+set}" = set; then :
  4501. $as_echo_n "(cached) " >&6
  4502. else
  4503. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4504. for ac_i in 1 2 3 4 5 6 7; do
  4505. ac_script="$ac_script$as_nl$ac_script"
  4506. done
  4507. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4508. { ac_script=; unset ac_script;}
  4509. if test -z "$SED"; then
  4510. ac_path_SED_found=false
  4511. # Loop through the user's path and test for each of PROGNAME-LIST
  4512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4513. for as_dir in $PATH
  4514. do
  4515. IFS=$as_save_IFS
  4516. test -z "$as_dir" && as_dir=.
  4517. for ac_prog in sed gsed; do
  4518. for ac_exec_ext in '' $ac_executable_extensions; do
  4519. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4520. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4521. # Check for GNU ac_path_SED and select it if it is found.
  4522. # Check for GNU $ac_path_SED
  4523. case `"$ac_path_SED" --version 2>&1` in
  4524. *GNU*)
  4525. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4526. *)
  4527. ac_count=0
  4528. $as_echo_n 0123456789 >"conftest.in"
  4529. while :
  4530. do
  4531. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4532. mv "conftest.tmp" "conftest.in"
  4533. cp "conftest.in" "conftest.nl"
  4534. $as_echo '' >> "conftest.nl"
  4535. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4536. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4537. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4538. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4539. # Best one so far, save it but keep looking for a better one
  4540. ac_cv_path_SED="$ac_path_SED"
  4541. ac_path_SED_max=$ac_count
  4542. fi
  4543. # 10*(2^10) chars as input seems more than enough
  4544. test $ac_count -gt 10 && break
  4545. done
  4546. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4547. esac
  4548. $ac_path_SED_found && break 3
  4549. done
  4550. done
  4551. done
  4552. IFS=$as_save_IFS
  4553. if test -z "$ac_cv_path_SED"; then
  4554. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4555. fi
  4556. else
  4557. ac_cv_path_SED=$SED
  4558. fi
  4559. fi
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4561. $as_echo "$ac_cv_path_SED" >&6; }
  4562. SED="$ac_cv_path_SED"
  4563. rm -f conftest.sed
  4564. test -z "$SED" && SED=sed
  4565. Xsed="$SED -e 1s/^X//"
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4567. $as_echo_n "checking for fgrep... " >&6; }
  4568. if test "${ac_cv_path_FGREP+set}" = set; then :
  4569. $as_echo_n "(cached) " >&6
  4570. else
  4571. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4572. then ac_cv_path_FGREP="$GREP -F"
  4573. else
  4574. if test -z "$FGREP"; then
  4575. ac_path_FGREP_found=false
  4576. # Loop through the user's path and test for each of PROGNAME-LIST
  4577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4578. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4579. do
  4580. IFS=$as_save_IFS
  4581. test -z "$as_dir" && as_dir=.
  4582. for ac_prog in fgrep; do
  4583. for ac_exec_ext in '' $ac_executable_extensions; do
  4584. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4585. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4586. # Check for GNU ac_path_FGREP and select it if it is found.
  4587. # Check for GNU $ac_path_FGREP
  4588. case `"$ac_path_FGREP" --version 2>&1` in
  4589. *GNU*)
  4590. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4591. *)
  4592. ac_count=0
  4593. $as_echo_n 0123456789 >"conftest.in"
  4594. while :
  4595. do
  4596. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4597. mv "conftest.tmp" "conftest.in"
  4598. cp "conftest.in" "conftest.nl"
  4599. $as_echo 'FGREP' >> "conftest.nl"
  4600. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4601. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4602. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4603. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4604. # Best one so far, save it but keep looking for a better one
  4605. ac_cv_path_FGREP="$ac_path_FGREP"
  4606. ac_path_FGREP_max=$ac_count
  4607. fi
  4608. # 10*(2^10) chars as input seems more than enough
  4609. test $ac_count -gt 10 && break
  4610. done
  4611. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4612. esac
  4613. $ac_path_FGREP_found && break 3
  4614. done
  4615. done
  4616. done
  4617. IFS=$as_save_IFS
  4618. if test -z "$ac_cv_path_FGREP"; then
  4619. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4620. fi
  4621. else
  4622. ac_cv_path_FGREP=$FGREP
  4623. fi
  4624. fi
  4625. fi
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4627. $as_echo "$ac_cv_path_FGREP" >&6; }
  4628. FGREP="$ac_cv_path_FGREP"
  4629. test -z "$GREP" && GREP=grep
  4630. # Check whether --with-gnu-ld was given.
  4631. if test "${with_gnu_ld+set}" = set; then :
  4632. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4633. else
  4634. with_gnu_ld=no
  4635. fi
  4636. ac_prog=ld
  4637. if test "$GCC" = yes; then
  4638. # Check if gcc -print-prog-name=ld gives a path.
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4640. $as_echo_n "checking for ld used by $CC... " >&6; }
  4641. case $host in
  4642. *-*-mingw*)
  4643. # gcc leaves a trailing carriage return which upsets mingw
  4644. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4645. *)
  4646. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4647. esac
  4648. case $ac_prog in
  4649. # Accept absolute paths.
  4650. [\\/]* | ?:[\\/]*)
  4651. re_direlt='/[^/][^/]*/\.\./'
  4652. # Canonicalize the pathname of ld
  4653. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4654. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4655. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4656. done
  4657. test -z "$LD" && LD="$ac_prog"
  4658. ;;
  4659. "")
  4660. # If it fails, then pretend we aren't using GCC.
  4661. ac_prog=ld
  4662. ;;
  4663. *)
  4664. # If it is relative, then search for the first ld in PATH.
  4665. with_gnu_ld=unknown
  4666. ;;
  4667. esac
  4668. elif test "$with_gnu_ld" = yes; then
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4670. $as_echo_n "checking for GNU ld... " >&6; }
  4671. else
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4673. $as_echo_n "checking for non-GNU ld... " >&6; }
  4674. fi
  4675. if test "${lt_cv_path_LD+set}" = set; then :
  4676. $as_echo_n "(cached) " >&6
  4677. else
  4678. if test -z "$LD"; then
  4679. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4680. for ac_dir in $PATH; do
  4681. IFS="$lt_save_ifs"
  4682. test -z "$ac_dir" && ac_dir=.
  4683. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4684. lt_cv_path_LD="$ac_dir/$ac_prog"
  4685. # Check to see if the program is GNU ld. I'd rather use --version,
  4686. # but apparently some variants of GNU ld only accept -v.
  4687. # Break only if it was the GNU/non-GNU ld that we prefer.
  4688. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4689. *GNU* | *'with BFD'*)
  4690. test "$with_gnu_ld" != no && break
  4691. ;;
  4692. *)
  4693. test "$with_gnu_ld" != yes && break
  4694. ;;
  4695. esac
  4696. fi
  4697. done
  4698. IFS="$lt_save_ifs"
  4699. else
  4700. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4701. fi
  4702. fi
  4703. LD="$lt_cv_path_LD"
  4704. if test -n "$LD"; then
  4705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4706. $as_echo "$LD" >&6; }
  4707. else
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4709. $as_echo "no" >&6; }
  4710. fi
  4711. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4713. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4714. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4715. $as_echo_n "(cached) " >&6
  4716. else
  4717. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4718. case `$LD -v 2>&1 </dev/null` in
  4719. *GNU* | *'with BFD'*)
  4720. lt_cv_prog_gnu_ld=yes
  4721. ;;
  4722. *)
  4723. lt_cv_prog_gnu_ld=no
  4724. ;;
  4725. esac
  4726. fi
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4728. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4729. with_gnu_ld=$lt_cv_prog_gnu_ld
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4731. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4732. if test "${lt_cv_path_NM+set}" = set; then :
  4733. $as_echo_n "(cached) " >&6
  4734. else
  4735. if test -n "$NM"; then
  4736. # Let the user override the test.
  4737. lt_cv_path_NM="$NM"
  4738. else
  4739. lt_nm_to_check="${ac_tool_prefix}nm"
  4740. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4741. lt_nm_to_check="$lt_nm_to_check nm"
  4742. fi
  4743. for lt_tmp_nm in $lt_nm_to_check; do
  4744. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4745. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4746. IFS="$lt_save_ifs"
  4747. test -z "$ac_dir" && ac_dir=.
  4748. tmp_nm="$ac_dir/$lt_tmp_nm"
  4749. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4750. # Check to see if the nm accepts a BSD-compat flag.
  4751. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4752. # nm: unknown option "B" ignored
  4753. # Tru64's nm complains that /dev/null is an invalid object file
  4754. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4755. */dev/null* | *'Invalid file or object type'*)
  4756. lt_cv_path_NM="$tmp_nm -B"
  4757. break
  4758. ;;
  4759. *)
  4760. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4761. */dev/null*)
  4762. lt_cv_path_NM="$tmp_nm -p"
  4763. break
  4764. ;;
  4765. *)
  4766. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4767. continue # so that we can try to find one that supports BSD flags
  4768. ;;
  4769. esac
  4770. ;;
  4771. esac
  4772. fi
  4773. done
  4774. IFS="$lt_save_ifs"
  4775. done
  4776. : ${lt_cv_path_NM=no}
  4777. fi
  4778. fi
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4780. $as_echo "$lt_cv_path_NM" >&6; }
  4781. if test "$lt_cv_path_NM" != "no"; then
  4782. NM="$lt_cv_path_NM"
  4783. else
  4784. # Didn't find any BSD compatible name lister, look for dumpbin.
  4785. if test -n "$DUMPBIN"; then :
  4786. # Let the user override the test.
  4787. else
  4788. if test -n "$ac_tool_prefix"; then
  4789. for ac_prog in dumpbin "link -dump"
  4790. do
  4791. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4792. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4794. $as_echo_n "checking for $ac_word... " >&6; }
  4795. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4796. $as_echo_n "(cached) " >&6
  4797. else
  4798. if test -n "$DUMPBIN"; then
  4799. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4800. else
  4801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4802. for as_dir in $PATH
  4803. do
  4804. IFS=$as_save_IFS
  4805. test -z "$as_dir" && as_dir=.
  4806. for ac_exec_ext in '' $ac_executable_extensions; do
  4807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4808. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4810. break 2
  4811. fi
  4812. done
  4813. done
  4814. IFS=$as_save_IFS
  4815. fi
  4816. fi
  4817. DUMPBIN=$ac_cv_prog_DUMPBIN
  4818. if test -n "$DUMPBIN"; then
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4820. $as_echo "$DUMPBIN" >&6; }
  4821. else
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4823. $as_echo "no" >&6; }
  4824. fi
  4825. test -n "$DUMPBIN" && break
  4826. done
  4827. fi
  4828. if test -z "$DUMPBIN"; then
  4829. ac_ct_DUMPBIN=$DUMPBIN
  4830. for ac_prog in dumpbin "link -dump"
  4831. do
  4832. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4833. set dummy $ac_prog; ac_word=$2
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4835. $as_echo_n "checking for $ac_word... " >&6; }
  4836. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4837. $as_echo_n "(cached) " >&6
  4838. else
  4839. if test -n "$ac_ct_DUMPBIN"; then
  4840. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4841. else
  4842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4843. for as_dir in $PATH
  4844. do
  4845. IFS=$as_save_IFS
  4846. test -z "$as_dir" && as_dir=.
  4847. for ac_exec_ext in '' $ac_executable_extensions; do
  4848. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4849. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4851. break 2
  4852. fi
  4853. done
  4854. done
  4855. IFS=$as_save_IFS
  4856. fi
  4857. fi
  4858. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4859. if test -n "$ac_ct_DUMPBIN"; then
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4861. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4862. else
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4864. $as_echo "no" >&6; }
  4865. fi
  4866. test -n "$ac_ct_DUMPBIN" && break
  4867. done
  4868. if test "x$ac_ct_DUMPBIN" = x; then
  4869. DUMPBIN=":"
  4870. else
  4871. case $cross_compiling:$ac_tool_warned in
  4872. yes:)
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4874. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4875. ac_tool_warned=yes ;;
  4876. esac
  4877. DUMPBIN=$ac_ct_DUMPBIN
  4878. fi
  4879. fi
  4880. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4881. *COFF*)
  4882. DUMPBIN="$DUMPBIN -symbols"
  4883. ;;
  4884. *)
  4885. DUMPBIN=:
  4886. ;;
  4887. esac
  4888. fi
  4889. if test "$DUMPBIN" != ":"; then
  4890. NM="$DUMPBIN"
  4891. fi
  4892. fi
  4893. test -z "$NM" && NM=nm
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4895. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4896. if test "${lt_cv_nm_interface+set}" = set; then :
  4897. $as_echo_n "(cached) " >&6
  4898. else
  4899. lt_cv_nm_interface="BSD nm"
  4900. echo "int some_variable = 0;" > conftest.$ac_ext
  4901. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4902. (eval "$ac_compile" 2>conftest.err)
  4903. cat conftest.err >&5
  4904. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4905. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4906. cat conftest.err >&5
  4907. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4908. cat conftest.out >&5
  4909. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4910. lt_cv_nm_interface="MS dumpbin"
  4911. fi
  4912. rm -f conftest*
  4913. fi
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4915. $as_echo "$lt_cv_nm_interface" >&6; }
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4917. $as_echo_n "checking whether ln -s works... " >&6; }
  4918. LN_S=$as_ln_s
  4919. if test "$LN_S" = "ln -s"; then
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4921. $as_echo "yes" >&6; }
  4922. else
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4924. $as_echo "no, using $LN_S" >&6; }
  4925. fi
  4926. # find the maximum length of command line arguments
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4928. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4929. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4930. $as_echo_n "(cached) " >&6
  4931. else
  4932. i=0
  4933. teststring="ABCD"
  4934. case $build_os in
  4935. msdosdjgpp*)
  4936. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4937. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4938. # during glob expansion). Even if it were fixed, the result of this
  4939. # check would be larger than it should be.
  4940. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4941. ;;
  4942. gnu*)
  4943. # Under GNU Hurd, this test is not required because there is
  4944. # no limit to the length of command line arguments.
  4945. # Libtool will interpret -1 as no limit whatsoever
  4946. lt_cv_sys_max_cmd_len=-1;
  4947. ;;
  4948. cygwin* | mingw* | cegcc*)
  4949. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4950. # about 5 minutes as the teststring grows exponentially.
  4951. # Worse, since 9x/ME are not pre-emptively multitasking,
  4952. # you end up with a "frozen" computer, even though with patience
  4953. # the test eventually succeeds (with a max line length of 256k).
  4954. # Instead, let's just punt: use the minimum linelength reported by
  4955. # all of the supported platforms: 8192 (on NT/2K/XP).
  4956. lt_cv_sys_max_cmd_len=8192;
  4957. ;;
  4958. mint*)
  4959. # On MiNT this can take a long time and run out of memory.
  4960. lt_cv_sys_max_cmd_len=8192;
  4961. ;;
  4962. amigaos*)
  4963. # On AmigaOS with pdksh, this test takes hours, literally.
  4964. # So we just punt and use a minimum line length of 8192.
  4965. lt_cv_sys_max_cmd_len=8192;
  4966. ;;
  4967. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4968. # This has been around since 386BSD, at least. Likely further.
  4969. if test -x /sbin/sysctl; then
  4970. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4971. elif test -x /usr/sbin/sysctl; then
  4972. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4973. else
  4974. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4975. fi
  4976. # And add a safety zone
  4977. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4978. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4979. ;;
  4980. interix*)
  4981. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4982. lt_cv_sys_max_cmd_len=196608
  4983. ;;
  4984. osf*)
  4985. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4986. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4987. # nice to cause kernel panics so lets avoid the loop below.
  4988. # First set a reasonable default.
  4989. lt_cv_sys_max_cmd_len=16384
  4990. #
  4991. if test -x /sbin/sysconfig; then
  4992. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4993. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4994. esac
  4995. fi
  4996. ;;
  4997. sco3.2v5*)
  4998. lt_cv_sys_max_cmd_len=102400
  4999. ;;
  5000. sysv5* | sco5v6* | sysv4.2uw2*)
  5001. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5002. if test -n "$kargmax"; then
  5003. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5004. else
  5005. lt_cv_sys_max_cmd_len=32768
  5006. fi
  5007. ;;
  5008. *)
  5009. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5010. if test -n "$lt_cv_sys_max_cmd_len"; then
  5011. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5012. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5013. else
  5014. # Make teststring a little bigger before we do anything with it.
  5015. # a 1K string should be a reasonable start.
  5016. for i in 1 2 3 4 5 6 7 8 ; do
  5017. teststring=$teststring$teststring
  5018. done
  5019. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5020. # If test is not a shell built-in, we'll probably end up computing a
  5021. # maximum length that is only half of the actual maximum length, but
  5022. # we can't tell.
  5023. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5024. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5025. test $i != 17 # 1/2 MB should be enough
  5026. do
  5027. i=`expr $i + 1`
  5028. teststring=$teststring$teststring
  5029. done
  5030. # Only check the string length outside the loop.
  5031. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5032. teststring=
  5033. # Add a significant safety factor because C++ compilers can tack on
  5034. # massive amounts of additional arguments before passing them to the
  5035. # linker. It appears as though 1/2 is a usable value.
  5036. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5037. fi
  5038. ;;
  5039. esac
  5040. fi
  5041. if test -n $lt_cv_sys_max_cmd_len ; then
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5043. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5044. else
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5046. $as_echo "none" >&6; }
  5047. fi
  5048. max_cmd_len=$lt_cv_sys_max_cmd_len
  5049. : ${CP="cp -f"}
  5050. : ${MV="mv -f"}
  5051. : ${RM="rm -f"}
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5053. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5054. # Try some XSI features
  5055. xsi_shell=no
  5056. ( _lt_dummy="a/b/c"
  5057. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5058. = c,a/b,, \
  5059. && eval 'test $(( 1 + 1 )) -eq 2 \
  5060. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5061. && xsi_shell=yes
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5063. $as_echo "$xsi_shell" >&6; }
  5064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5065. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5066. lt_shell_append=no
  5067. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5068. >/dev/null 2>&1 \
  5069. && lt_shell_append=yes
  5070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5071. $as_echo "$lt_shell_append" >&6; }
  5072. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5073. lt_unset=unset
  5074. else
  5075. lt_unset=false
  5076. fi
  5077. # test EBCDIC or ASCII
  5078. case `echo X|tr X '\101'` in
  5079. A) # ASCII based system
  5080. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5081. lt_SP2NL='tr \040 \012'
  5082. lt_NL2SP='tr \015\012 \040\040'
  5083. ;;
  5084. *) # EBCDIC based system
  5085. lt_SP2NL='tr \100 \n'
  5086. lt_NL2SP='tr \r\n \100\100'
  5087. ;;
  5088. esac
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5090. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5091. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5092. $as_echo_n "(cached) " >&6
  5093. else
  5094. lt_cv_ld_reload_flag='-r'
  5095. fi
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5097. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5098. reload_flag=$lt_cv_ld_reload_flag
  5099. case $reload_flag in
  5100. "" | " "*) ;;
  5101. *) reload_flag=" $reload_flag" ;;
  5102. esac
  5103. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5104. case $host_os in
  5105. darwin*)
  5106. if test "$GCC" = yes; then
  5107. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5108. else
  5109. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5110. fi
  5111. ;;
  5112. esac
  5113. if test -n "$ac_tool_prefix"; then
  5114. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5115. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5117. $as_echo_n "checking for $ac_word... " >&6; }
  5118. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5119. $as_echo_n "(cached) " >&6
  5120. else
  5121. if test -n "$OBJDUMP"; then
  5122. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5123. else
  5124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5125. for as_dir in $PATH
  5126. do
  5127. IFS=$as_save_IFS
  5128. test -z "$as_dir" && as_dir=.
  5129. for ac_exec_ext in '' $ac_executable_extensions; do
  5130. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5131. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5133. break 2
  5134. fi
  5135. done
  5136. done
  5137. IFS=$as_save_IFS
  5138. fi
  5139. fi
  5140. OBJDUMP=$ac_cv_prog_OBJDUMP
  5141. if test -n "$OBJDUMP"; then
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5143. $as_echo "$OBJDUMP" >&6; }
  5144. else
  5145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5146. $as_echo "no" >&6; }
  5147. fi
  5148. fi
  5149. if test -z "$ac_cv_prog_OBJDUMP"; then
  5150. ac_ct_OBJDUMP=$OBJDUMP
  5151. # Extract the first word of "objdump", so it can be a program name with args.
  5152. set dummy objdump; ac_word=$2
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5154. $as_echo_n "checking for $ac_word... " >&6; }
  5155. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5156. $as_echo_n "(cached) " >&6
  5157. else
  5158. if test -n "$ac_ct_OBJDUMP"; then
  5159. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5160. else
  5161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5162. for as_dir in $PATH
  5163. do
  5164. IFS=$as_save_IFS
  5165. test -z "$as_dir" && as_dir=.
  5166. for ac_exec_ext in '' $ac_executable_extensions; do
  5167. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5168. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5169. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5170. break 2
  5171. fi
  5172. done
  5173. done
  5174. IFS=$as_save_IFS
  5175. fi
  5176. fi
  5177. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5178. if test -n "$ac_ct_OBJDUMP"; then
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5180. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5181. else
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5183. $as_echo "no" >&6; }
  5184. fi
  5185. if test "x$ac_ct_OBJDUMP" = x; then
  5186. OBJDUMP="false"
  5187. else
  5188. case $cross_compiling:$ac_tool_warned in
  5189. yes:)
  5190. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5191. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5192. ac_tool_warned=yes ;;
  5193. esac
  5194. OBJDUMP=$ac_ct_OBJDUMP
  5195. fi
  5196. else
  5197. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5198. fi
  5199. test -z "$OBJDUMP" && OBJDUMP=objdump
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5201. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5202. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5203. $as_echo_n "(cached) " >&6
  5204. else
  5205. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5206. lt_cv_file_magic_test_file=
  5207. lt_cv_deplibs_check_method='unknown'
  5208. # Need to set the preceding variable on all platforms that support
  5209. # interlibrary dependencies.
  5210. # 'none' -- dependencies not supported.
  5211. # `unknown' -- same as none, but documents that we really don't know.
  5212. # 'pass_all' -- all dependencies passed with no checks.
  5213. # 'test_compile' -- check by making test program.
  5214. # 'file_magic [[regex]]' -- check by looking for files in library path
  5215. # which responds to the $file_magic_cmd with a given extended regex.
  5216. # If you have `file' or equivalent on your system and you're not sure
  5217. # whether `pass_all' will *always* work, you probably want this one.
  5218. case $host_os in
  5219. aix[4-9]*)
  5220. lt_cv_deplibs_check_method=pass_all
  5221. ;;
  5222. beos*)
  5223. lt_cv_deplibs_check_method=pass_all
  5224. ;;
  5225. bsdi[45]*)
  5226. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5227. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5228. lt_cv_file_magic_test_file=/shlib/libc.so
  5229. ;;
  5230. cygwin*)
  5231. # func_win32_libid is a shell function defined in ltmain.sh
  5232. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5233. lt_cv_file_magic_cmd='func_win32_libid'
  5234. ;;
  5235. mingw* | pw32*)
  5236. # Base MSYS/MinGW do not provide the 'file' command needed by
  5237. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5238. # unless we find 'file', for example because we are cross-compiling.
  5239. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5240. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5241. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5242. lt_cv_file_magic_cmd='func_win32_libid'
  5243. else
  5244. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5245. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5246. fi
  5247. ;;
  5248. cegcc*)
  5249. # use the weaker test based on 'objdump'. See mingw*.
  5250. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5251. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5252. ;;
  5253. darwin* | rhapsody*)
  5254. lt_cv_deplibs_check_method=pass_all
  5255. ;;
  5256. freebsd* | dragonfly*)
  5257. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5258. case $host_cpu in
  5259. i*86 )
  5260. # Not sure whether the presence of OpenBSD here was a mistake.
  5261. # Let's accept both of them until this is cleared up.
  5262. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5263. lt_cv_file_magic_cmd=/usr/bin/file
  5264. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5265. ;;
  5266. esac
  5267. else
  5268. lt_cv_deplibs_check_method=pass_all
  5269. fi
  5270. ;;
  5271. gnu*)
  5272. lt_cv_deplibs_check_method=pass_all
  5273. ;;
  5274. haiku*)
  5275. lt_cv_deplibs_check_method=pass_all
  5276. ;;
  5277. hpux10.20* | hpux11*)
  5278. lt_cv_file_magic_cmd=/usr/bin/file
  5279. case $host_cpu in
  5280. ia64*)
  5281. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5282. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5283. ;;
  5284. hppa*64*)
  5285. 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]'
  5286. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5287. ;;
  5288. *)
  5289. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5290. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5291. ;;
  5292. esac
  5293. ;;
  5294. interix[3-9]*)
  5295. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5296. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5297. ;;
  5298. irix5* | irix6* | nonstopux*)
  5299. case $LD in
  5300. *-32|*"-32 ") libmagic=32-bit;;
  5301. *-n32|*"-n32 ") libmagic=N32;;
  5302. *-64|*"-64 ") libmagic=64-bit;;
  5303. *) libmagic=never-match;;
  5304. esac
  5305. lt_cv_deplibs_check_method=pass_all
  5306. ;;
  5307. # This must be Linux ELF.
  5308. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5309. lt_cv_deplibs_check_method=pass_all
  5310. ;;
  5311. netbsd*)
  5312. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5313. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5314. else
  5315. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5316. fi
  5317. ;;
  5318. newos6*)
  5319. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5320. lt_cv_file_magic_cmd=/usr/bin/file
  5321. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5322. ;;
  5323. *nto* | *qnx*)
  5324. lt_cv_deplibs_check_method=pass_all
  5325. ;;
  5326. openbsd*)
  5327. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5328. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5329. else
  5330. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5331. fi
  5332. ;;
  5333. osf3* | osf4* | osf5*)
  5334. lt_cv_deplibs_check_method=pass_all
  5335. ;;
  5336. rdos*)
  5337. lt_cv_deplibs_check_method=pass_all
  5338. ;;
  5339. solaris*)
  5340. lt_cv_deplibs_check_method=pass_all
  5341. ;;
  5342. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5343. lt_cv_deplibs_check_method=pass_all
  5344. ;;
  5345. sysv4 | sysv4.3*)
  5346. case $host_vendor in
  5347. motorola)
  5348. 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]'
  5349. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5350. ;;
  5351. ncr)
  5352. lt_cv_deplibs_check_method=pass_all
  5353. ;;
  5354. sequent)
  5355. lt_cv_file_magic_cmd='/bin/file'
  5356. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5357. ;;
  5358. sni)
  5359. lt_cv_file_magic_cmd='/bin/file'
  5360. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5361. lt_cv_file_magic_test_file=/lib/libc.so
  5362. ;;
  5363. siemens)
  5364. lt_cv_deplibs_check_method=pass_all
  5365. ;;
  5366. pc)
  5367. lt_cv_deplibs_check_method=pass_all
  5368. ;;
  5369. esac
  5370. ;;
  5371. tpf*)
  5372. lt_cv_deplibs_check_method=pass_all
  5373. ;;
  5374. esac
  5375. fi
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5377. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5378. file_magic_cmd=$lt_cv_file_magic_cmd
  5379. deplibs_check_method=$lt_cv_deplibs_check_method
  5380. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5381. if test -n "$ac_tool_prefix"; then
  5382. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5383. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5385. $as_echo_n "checking for $ac_word... " >&6; }
  5386. if test "${ac_cv_prog_AR+set}" = set; then :
  5387. $as_echo_n "(cached) " >&6
  5388. else
  5389. if test -n "$AR"; then
  5390. ac_cv_prog_AR="$AR" # Let the user override the test.
  5391. else
  5392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5393. for as_dir in $PATH
  5394. do
  5395. IFS=$as_save_IFS
  5396. test -z "$as_dir" && as_dir=.
  5397. for ac_exec_ext in '' $ac_executable_extensions; do
  5398. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5399. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5401. break 2
  5402. fi
  5403. done
  5404. done
  5405. IFS=$as_save_IFS
  5406. fi
  5407. fi
  5408. AR=$ac_cv_prog_AR
  5409. if test -n "$AR"; then
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5411. $as_echo "$AR" >&6; }
  5412. else
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5414. $as_echo "no" >&6; }
  5415. fi
  5416. fi
  5417. if test -z "$ac_cv_prog_AR"; then
  5418. ac_ct_AR=$AR
  5419. # Extract the first word of "ar", so it can be a program name with args.
  5420. set dummy ar; ac_word=$2
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5422. $as_echo_n "checking for $ac_word... " >&6; }
  5423. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5424. $as_echo_n "(cached) " >&6
  5425. else
  5426. if test -n "$ac_ct_AR"; then
  5427. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5428. else
  5429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5430. for as_dir in $PATH
  5431. do
  5432. IFS=$as_save_IFS
  5433. test -z "$as_dir" && as_dir=.
  5434. for ac_exec_ext in '' $ac_executable_extensions; do
  5435. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5436. ac_cv_prog_ac_ct_AR="ar"
  5437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5438. break 2
  5439. fi
  5440. done
  5441. done
  5442. IFS=$as_save_IFS
  5443. fi
  5444. fi
  5445. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5446. if test -n "$ac_ct_AR"; then
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5448. $as_echo "$ac_ct_AR" >&6; }
  5449. else
  5450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5451. $as_echo "no" >&6; }
  5452. fi
  5453. if test "x$ac_ct_AR" = x; then
  5454. AR="false"
  5455. else
  5456. case $cross_compiling:$ac_tool_warned in
  5457. yes:)
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5459. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5460. ac_tool_warned=yes ;;
  5461. esac
  5462. AR=$ac_ct_AR
  5463. fi
  5464. else
  5465. AR="$ac_cv_prog_AR"
  5466. fi
  5467. test -z "$AR" && AR=ar
  5468. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5469. if test -n "$ac_tool_prefix"; then
  5470. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5471. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5473. $as_echo_n "checking for $ac_word... " >&6; }
  5474. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5475. $as_echo_n "(cached) " >&6
  5476. else
  5477. if test -n "$STRIP"; then
  5478. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5479. else
  5480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5481. for as_dir in $PATH
  5482. do
  5483. IFS=$as_save_IFS
  5484. test -z "$as_dir" && as_dir=.
  5485. for ac_exec_ext in '' $ac_executable_extensions; do
  5486. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5487. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5489. break 2
  5490. fi
  5491. done
  5492. done
  5493. IFS=$as_save_IFS
  5494. fi
  5495. fi
  5496. STRIP=$ac_cv_prog_STRIP
  5497. if test -n "$STRIP"; then
  5498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5499. $as_echo "$STRIP" >&6; }
  5500. else
  5501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5502. $as_echo "no" >&6; }
  5503. fi
  5504. fi
  5505. if test -z "$ac_cv_prog_STRIP"; then
  5506. ac_ct_STRIP=$STRIP
  5507. # Extract the first word of "strip", so it can be a program name with args.
  5508. set dummy strip; ac_word=$2
  5509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5510. $as_echo_n "checking for $ac_word... " >&6; }
  5511. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5512. $as_echo_n "(cached) " >&6
  5513. else
  5514. if test -n "$ac_ct_STRIP"; then
  5515. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5516. else
  5517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5518. for as_dir in $PATH
  5519. do
  5520. IFS=$as_save_IFS
  5521. test -z "$as_dir" && as_dir=.
  5522. for ac_exec_ext in '' $ac_executable_extensions; do
  5523. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5524. ac_cv_prog_ac_ct_STRIP="strip"
  5525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5526. break 2
  5527. fi
  5528. done
  5529. done
  5530. IFS=$as_save_IFS
  5531. fi
  5532. fi
  5533. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5534. if test -n "$ac_ct_STRIP"; then
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5536. $as_echo "$ac_ct_STRIP" >&6; }
  5537. else
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5539. $as_echo "no" >&6; }
  5540. fi
  5541. if test "x$ac_ct_STRIP" = x; then
  5542. STRIP=":"
  5543. else
  5544. case $cross_compiling:$ac_tool_warned in
  5545. yes:)
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5547. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5548. ac_tool_warned=yes ;;
  5549. esac
  5550. STRIP=$ac_ct_STRIP
  5551. fi
  5552. else
  5553. STRIP="$ac_cv_prog_STRIP"
  5554. fi
  5555. test -z "$STRIP" && STRIP=:
  5556. if test -n "$ac_tool_prefix"; then
  5557. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5558. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5560. $as_echo_n "checking for $ac_word... " >&6; }
  5561. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5562. $as_echo_n "(cached) " >&6
  5563. else
  5564. if test -n "$RANLIB"; then
  5565. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5566. else
  5567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5568. for as_dir in $PATH
  5569. do
  5570. IFS=$as_save_IFS
  5571. test -z "$as_dir" && as_dir=.
  5572. for ac_exec_ext in '' $ac_executable_extensions; do
  5573. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5574. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5576. break 2
  5577. fi
  5578. done
  5579. done
  5580. IFS=$as_save_IFS
  5581. fi
  5582. fi
  5583. RANLIB=$ac_cv_prog_RANLIB
  5584. if test -n "$RANLIB"; then
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5586. $as_echo "$RANLIB" >&6; }
  5587. else
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5589. $as_echo "no" >&6; }
  5590. fi
  5591. fi
  5592. if test -z "$ac_cv_prog_RANLIB"; then
  5593. ac_ct_RANLIB=$RANLIB
  5594. # Extract the first word of "ranlib", so it can be a program name with args.
  5595. set dummy ranlib; ac_word=$2
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5597. $as_echo_n "checking for $ac_word... " >&6; }
  5598. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5599. $as_echo_n "(cached) " >&6
  5600. else
  5601. if test -n "$ac_ct_RANLIB"; then
  5602. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5603. else
  5604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5605. for as_dir in $PATH
  5606. do
  5607. IFS=$as_save_IFS
  5608. test -z "$as_dir" && as_dir=.
  5609. for ac_exec_ext in '' $ac_executable_extensions; do
  5610. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5611. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5613. break 2
  5614. fi
  5615. done
  5616. done
  5617. IFS=$as_save_IFS
  5618. fi
  5619. fi
  5620. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5621. if test -n "$ac_ct_RANLIB"; then
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5623. $as_echo "$ac_ct_RANLIB" >&6; }
  5624. else
  5625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5626. $as_echo "no" >&6; }
  5627. fi
  5628. if test "x$ac_ct_RANLIB" = x; then
  5629. RANLIB=":"
  5630. else
  5631. case $cross_compiling:$ac_tool_warned in
  5632. yes:)
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5634. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5635. ac_tool_warned=yes ;;
  5636. esac
  5637. RANLIB=$ac_ct_RANLIB
  5638. fi
  5639. else
  5640. RANLIB="$ac_cv_prog_RANLIB"
  5641. fi
  5642. test -z "$RANLIB" && RANLIB=:
  5643. # Determine commands to create old-style static archives.
  5644. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5645. old_postinstall_cmds='chmod 644 $oldlib'
  5646. old_postuninstall_cmds=
  5647. if test -n "$RANLIB"; then
  5648. case $host_os in
  5649. openbsd*)
  5650. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5651. ;;
  5652. *)
  5653. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5654. ;;
  5655. esac
  5656. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5657. fi
  5658. case $host_os in
  5659. darwin*)
  5660. lock_old_archive_extraction=yes ;;
  5661. *)
  5662. lock_old_archive_extraction=no ;;
  5663. esac
  5664. for ac_prog in gawk mawk nawk awk
  5665. do
  5666. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5667. set dummy $ac_prog; ac_word=$2
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5669. $as_echo_n "checking for $ac_word... " >&6; }
  5670. if test "${ac_cv_prog_AWK+set}" = set; then :
  5671. $as_echo_n "(cached) " >&6
  5672. else
  5673. if test -n "$AWK"; then
  5674. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5675. else
  5676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5677. for as_dir in $PATH
  5678. do
  5679. IFS=$as_save_IFS
  5680. test -z "$as_dir" && as_dir=.
  5681. for ac_exec_ext in '' $ac_executable_extensions; do
  5682. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5683. ac_cv_prog_AWK="$ac_prog"
  5684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5685. break 2
  5686. fi
  5687. done
  5688. done
  5689. IFS=$as_save_IFS
  5690. fi
  5691. fi
  5692. AWK=$ac_cv_prog_AWK
  5693. if test -n "$AWK"; then
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5695. $as_echo "$AWK" >&6; }
  5696. else
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5698. $as_echo "no" >&6; }
  5699. fi
  5700. test -n "$AWK" && break
  5701. done
  5702. # If no C compiler was specified, use CC.
  5703. LTCC=${LTCC-"$CC"}
  5704. # If no C compiler flags were specified, use CFLAGS.
  5705. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5706. # Allow CC to be a program name with arguments.
  5707. compiler=$CC
  5708. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5710. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5711. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5712. $as_echo_n "(cached) " >&6
  5713. else
  5714. # These are sane defaults that work on at least a few old systems.
  5715. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5716. # Character class describing NM global symbol codes.
  5717. symcode='[BCDEGRST]'
  5718. # Regexp to match symbols that can be accessed directly from C.
  5719. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5720. # Define system-specific variables.
  5721. case $host_os in
  5722. aix*)
  5723. symcode='[BCDT]'
  5724. ;;
  5725. cygwin* | mingw* | pw32* | cegcc*)
  5726. symcode='[ABCDGISTW]'
  5727. ;;
  5728. hpux*)
  5729. if test "$host_cpu" = ia64; then
  5730. symcode='[ABCDEGRST]'
  5731. fi
  5732. ;;
  5733. irix* | nonstopux*)
  5734. symcode='[BCDEGRST]'
  5735. ;;
  5736. osf*)
  5737. symcode='[BCDEGQRST]'
  5738. ;;
  5739. solaris*)
  5740. symcode='[BDRT]'
  5741. ;;
  5742. sco3.2v5*)
  5743. symcode='[DT]'
  5744. ;;
  5745. sysv4.2uw2*)
  5746. symcode='[DT]'
  5747. ;;
  5748. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5749. symcode='[ABDT]'
  5750. ;;
  5751. sysv4)
  5752. symcode='[DFNSTU]'
  5753. ;;
  5754. esac
  5755. # If we're using GNU nm, then use its standard symbol codes.
  5756. case `$NM -V 2>&1` in
  5757. *GNU* | *'with BFD'*)
  5758. symcode='[ABCDGIRSTW]' ;;
  5759. esac
  5760. # Transform an extracted symbol line into a proper C declaration.
  5761. # Some systems (esp. on ia64) link data and code symbols differently,
  5762. # so use this general approach.
  5763. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5764. # Transform an extracted symbol line into symbol name and symbol address
  5765. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5766. 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'"
  5767. # Handle CRLF in mingw tool chain
  5768. opt_cr=
  5769. case $build_os in
  5770. mingw*)
  5771. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5772. ;;
  5773. esac
  5774. # Try without a prefix underscore, then with it.
  5775. for ac_symprfx in "" "_"; do
  5776. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5777. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5778. # Write the raw and C identifiers.
  5779. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5780. # Fake it for dumpbin and say T for any non-static function
  5781. # and D for any global variable.
  5782. # Also find C++ and __fastcall symbols from MSVC++,
  5783. # which start with @ or ?.
  5784. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5785. " {last_section=section; section=\$ 3};"\
  5786. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5787. " \$ 0!~/External *\|/{next};"\
  5788. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5789. " {if(hide[section]) next};"\
  5790. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5791. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5792. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5793. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5794. " ' prfx=^$ac_symprfx"
  5795. else
  5796. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5797. fi
  5798. # Check to see that the pipe works correctly.
  5799. pipe_works=no
  5800. rm -f conftest*
  5801. cat > conftest.$ac_ext <<_LT_EOF
  5802. #ifdef __cplusplus
  5803. extern "C" {
  5804. #endif
  5805. char nm_test_var;
  5806. void nm_test_func(void);
  5807. void nm_test_func(void){}
  5808. #ifdef __cplusplus
  5809. }
  5810. #endif
  5811. int main(){nm_test_var='a';nm_test_func();return(0);}
  5812. _LT_EOF
  5813. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5814. (eval $ac_compile) 2>&5
  5815. ac_status=$?
  5816. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5817. test $ac_status = 0; }; then
  5818. # Now try to grab the symbols.
  5819. nlist=conftest.nm
  5820. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5821. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5822. ac_status=$?
  5823. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5824. test $ac_status = 0; } && test -s "$nlist"; then
  5825. # Try sorting and uniquifying the output.
  5826. if sort "$nlist" | uniq > "$nlist"T; then
  5827. mv -f "$nlist"T "$nlist"
  5828. else
  5829. rm -f "$nlist"T
  5830. fi
  5831. # Make sure that we snagged all the symbols we need.
  5832. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5833. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5834. cat <<_LT_EOF > conftest.$ac_ext
  5835. #ifdef __cplusplus
  5836. extern "C" {
  5837. #endif
  5838. _LT_EOF
  5839. # Now generate the symbol file.
  5840. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5841. cat <<_LT_EOF >> conftest.$ac_ext
  5842. /* The mapping between symbol names and symbols. */
  5843. const struct {
  5844. const char *name;
  5845. void *address;
  5846. }
  5847. lt__PROGRAM__LTX_preloaded_symbols[] =
  5848. {
  5849. { "@PROGRAM@", (void *) 0 },
  5850. _LT_EOF
  5851. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5852. cat <<\_LT_EOF >> conftest.$ac_ext
  5853. {0, (void *) 0}
  5854. };
  5855. /* This works around a problem in FreeBSD linker */
  5856. #ifdef FREEBSD_WORKAROUND
  5857. static const void *lt_preloaded_setup() {
  5858. return lt__PROGRAM__LTX_preloaded_symbols;
  5859. }
  5860. #endif
  5861. #ifdef __cplusplus
  5862. }
  5863. #endif
  5864. _LT_EOF
  5865. # Now try linking the two files.
  5866. mv conftest.$ac_objext conftstm.$ac_objext
  5867. lt_save_LIBS="$LIBS"
  5868. lt_save_CFLAGS="$CFLAGS"
  5869. LIBS="conftstm.$ac_objext"
  5870. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5871. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5872. (eval $ac_link) 2>&5
  5873. ac_status=$?
  5874. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5875. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5876. pipe_works=yes
  5877. fi
  5878. LIBS="$lt_save_LIBS"
  5879. CFLAGS="$lt_save_CFLAGS"
  5880. else
  5881. echo "cannot find nm_test_func in $nlist" >&5
  5882. fi
  5883. else
  5884. echo "cannot find nm_test_var in $nlist" >&5
  5885. fi
  5886. else
  5887. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5888. fi
  5889. else
  5890. echo "$progname: failed program was:" >&5
  5891. cat conftest.$ac_ext >&5
  5892. fi
  5893. rm -rf conftest* conftst*
  5894. # Do not use the global_symbol_pipe unless it works.
  5895. if test "$pipe_works" = yes; then
  5896. break
  5897. else
  5898. lt_cv_sys_global_symbol_pipe=
  5899. fi
  5900. done
  5901. fi
  5902. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5903. lt_cv_sys_global_symbol_to_cdecl=
  5904. fi
  5905. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5907. $as_echo "failed" >&6; }
  5908. else
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5910. $as_echo "ok" >&6; }
  5911. fi
  5912. # Check whether --enable-libtool-lock was given.
  5913. if test "${enable_libtool_lock+set}" = set; then :
  5914. enableval=$enable_libtool_lock;
  5915. fi
  5916. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5917. # Some flags need to be propagated to the compiler or linker for good
  5918. # libtool support.
  5919. case $host in
  5920. ia64-*-hpux*)
  5921. # Find out which ABI we are using.
  5922. echo 'int i;' > conftest.$ac_ext
  5923. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5924. (eval $ac_compile) 2>&5
  5925. ac_status=$?
  5926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5927. test $ac_status = 0; }; then
  5928. case `/usr/bin/file conftest.$ac_objext` in
  5929. *ELF-32*)
  5930. HPUX_IA64_MODE="32"
  5931. ;;
  5932. *ELF-64*)
  5933. HPUX_IA64_MODE="64"
  5934. ;;
  5935. esac
  5936. fi
  5937. rm -rf conftest*
  5938. ;;
  5939. *-*-irix6*)
  5940. # Find out which ABI we are using.
  5941. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5942. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5943. (eval $ac_compile) 2>&5
  5944. ac_status=$?
  5945. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5946. test $ac_status = 0; }; then
  5947. if test "$lt_cv_prog_gnu_ld" = yes; then
  5948. case `/usr/bin/file conftest.$ac_objext` in
  5949. *32-bit*)
  5950. LD="${LD-ld} -melf32bsmip"
  5951. ;;
  5952. *N32*)
  5953. LD="${LD-ld} -melf32bmipn32"
  5954. ;;
  5955. *64-bit*)
  5956. LD="${LD-ld} -melf64bmip"
  5957. ;;
  5958. esac
  5959. else
  5960. case `/usr/bin/file conftest.$ac_objext` in
  5961. *32-bit*)
  5962. LD="${LD-ld} -32"
  5963. ;;
  5964. *N32*)
  5965. LD="${LD-ld} -n32"
  5966. ;;
  5967. *64-bit*)
  5968. LD="${LD-ld} -64"
  5969. ;;
  5970. esac
  5971. fi
  5972. fi
  5973. rm -rf conftest*
  5974. ;;
  5975. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5976. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5977. # Find out which ABI we are using.
  5978. echo 'int i;' > conftest.$ac_ext
  5979. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5980. (eval $ac_compile) 2>&5
  5981. ac_status=$?
  5982. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5983. test $ac_status = 0; }; then
  5984. case `/usr/bin/file conftest.o` in
  5985. *32-bit*)
  5986. case $host in
  5987. x86_64-*kfreebsd*-gnu)
  5988. LD="${LD-ld} -m elf_i386_fbsd"
  5989. ;;
  5990. x86_64-*linux*)
  5991. case `/usr/bin/file conftest.o` in
  5992. *x86-64*)
  5993. LD="${LD-ld} -m elf32_x86_64"
  5994. ;;
  5995. *)
  5996. LD="${LD-ld} -m elf_i386"
  5997. ;;
  5998. esac
  5999. ;;
  6000. powerpc64le-*linux*)
  6001. LD="${LD-ld} -m elf32lppclinux"
  6002. ;;
  6003. powerpc64-*linux*)
  6004. LD="${LD-ld} -m elf32ppclinux"
  6005. ;;
  6006. s390x-*linux*)
  6007. LD="${LD-ld} -m elf_s390"
  6008. ;;
  6009. sparc64-*linux*)
  6010. LD="${LD-ld} -m elf32_sparc"
  6011. ;;
  6012. esac
  6013. ;;
  6014. *64-bit*)
  6015. case $host in
  6016. x86_64-*kfreebsd*-gnu)
  6017. LD="${LD-ld} -m elf_x86_64_fbsd"
  6018. ;;
  6019. x86_64-*linux*)
  6020. LD="${LD-ld} -m elf_x86_64"
  6021. ;;
  6022. powerpcle-*linux*)
  6023. LD="${LD-ld} -m elf64lppc"
  6024. ;;
  6025. powerpc-*linux*)
  6026. LD="${LD-ld} -m elf64ppc"
  6027. ;;
  6028. s390*-*linux*|s390*-*tpf*)
  6029. LD="${LD-ld} -m elf64_s390"
  6030. ;;
  6031. sparc*-*linux*)
  6032. LD="${LD-ld} -m elf64_sparc"
  6033. ;;
  6034. esac
  6035. ;;
  6036. esac
  6037. fi
  6038. rm -rf conftest*
  6039. ;;
  6040. *-*-sco3.2v5*)
  6041. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6042. SAVE_CFLAGS="$CFLAGS"
  6043. CFLAGS="$CFLAGS -belf"
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6045. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6046. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6047. $as_echo_n "(cached) " >&6
  6048. else
  6049. ac_ext=c
  6050. ac_cpp='$CPP $CPPFLAGS'
  6051. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6052. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6053. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6055. /* end confdefs.h. */
  6056. int
  6057. main ()
  6058. {
  6059. ;
  6060. return 0;
  6061. }
  6062. _ACEOF
  6063. if ac_fn_c_try_link "$LINENO"; then :
  6064. lt_cv_cc_needs_belf=yes
  6065. else
  6066. lt_cv_cc_needs_belf=no
  6067. fi
  6068. rm -f core conftest.err conftest.$ac_objext \
  6069. conftest$ac_exeext conftest.$ac_ext
  6070. ac_ext=c
  6071. ac_cpp='$CPP $CPPFLAGS'
  6072. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6073. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6074. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6075. fi
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6077. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6078. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6079. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6080. CFLAGS="$SAVE_CFLAGS"
  6081. fi
  6082. ;;
  6083. sparc*-*solaris*)
  6084. # Find out which ABI we are using.
  6085. echo 'int i;' > conftest.$ac_ext
  6086. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6087. (eval $ac_compile) 2>&5
  6088. ac_status=$?
  6089. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6090. test $ac_status = 0; }; then
  6091. case `/usr/bin/file conftest.o` in
  6092. *64-bit*)
  6093. case $lt_cv_prog_gnu_ld in
  6094. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6095. *)
  6096. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6097. LD="${LD-ld} -64"
  6098. fi
  6099. ;;
  6100. esac
  6101. ;;
  6102. esac
  6103. fi
  6104. rm -rf conftest*
  6105. ;;
  6106. esac
  6107. need_locks="$enable_libtool_lock"
  6108. case $host_os in
  6109. rhapsody* | darwin*)
  6110. if test -n "$ac_tool_prefix"; then
  6111. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6112. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6114. $as_echo_n "checking for $ac_word... " >&6; }
  6115. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6116. $as_echo_n "(cached) " >&6
  6117. else
  6118. if test -n "$DSYMUTIL"; then
  6119. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6120. else
  6121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6122. for as_dir in $PATH
  6123. do
  6124. IFS=$as_save_IFS
  6125. test -z "$as_dir" && as_dir=.
  6126. for ac_exec_ext in '' $ac_executable_extensions; do
  6127. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6128. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6130. break 2
  6131. fi
  6132. done
  6133. done
  6134. IFS=$as_save_IFS
  6135. fi
  6136. fi
  6137. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6138. if test -n "$DSYMUTIL"; then
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6140. $as_echo "$DSYMUTIL" >&6; }
  6141. else
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6143. $as_echo "no" >&6; }
  6144. fi
  6145. fi
  6146. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6147. ac_ct_DSYMUTIL=$DSYMUTIL
  6148. # Extract the first word of "dsymutil", so it can be a program name with args.
  6149. set dummy dsymutil; ac_word=$2
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6151. $as_echo_n "checking for $ac_word... " >&6; }
  6152. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6153. $as_echo_n "(cached) " >&6
  6154. else
  6155. if test -n "$ac_ct_DSYMUTIL"; then
  6156. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6157. else
  6158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6159. for as_dir in $PATH
  6160. do
  6161. IFS=$as_save_IFS
  6162. test -z "$as_dir" && as_dir=.
  6163. for ac_exec_ext in '' $ac_executable_extensions; do
  6164. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6165. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6166. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6167. break 2
  6168. fi
  6169. done
  6170. done
  6171. IFS=$as_save_IFS
  6172. fi
  6173. fi
  6174. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6175. if test -n "$ac_ct_DSYMUTIL"; then
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6177. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6178. else
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6180. $as_echo "no" >&6; }
  6181. fi
  6182. if test "x$ac_ct_DSYMUTIL" = x; then
  6183. DSYMUTIL=":"
  6184. else
  6185. case $cross_compiling:$ac_tool_warned in
  6186. yes:)
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6188. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6189. ac_tool_warned=yes ;;
  6190. esac
  6191. DSYMUTIL=$ac_ct_DSYMUTIL
  6192. fi
  6193. else
  6194. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6195. fi
  6196. if test -n "$ac_tool_prefix"; then
  6197. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6198. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6200. $as_echo_n "checking for $ac_word... " >&6; }
  6201. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6202. $as_echo_n "(cached) " >&6
  6203. else
  6204. if test -n "$NMEDIT"; then
  6205. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6206. else
  6207. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6208. for as_dir in $PATH
  6209. do
  6210. IFS=$as_save_IFS
  6211. test -z "$as_dir" && as_dir=.
  6212. for ac_exec_ext in '' $ac_executable_extensions; do
  6213. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6214. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6215. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6216. break 2
  6217. fi
  6218. done
  6219. done
  6220. IFS=$as_save_IFS
  6221. fi
  6222. fi
  6223. NMEDIT=$ac_cv_prog_NMEDIT
  6224. if test -n "$NMEDIT"; then
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6226. $as_echo "$NMEDIT" >&6; }
  6227. else
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6229. $as_echo "no" >&6; }
  6230. fi
  6231. fi
  6232. if test -z "$ac_cv_prog_NMEDIT"; then
  6233. ac_ct_NMEDIT=$NMEDIT
  6234. # Extract the first word of "nmedit", so it can be a program name with args.
  6235. set dummy nmedit; ac_word=$2
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6237. $as_echo_n "checking for $ac_word... " >&6; }
  6238. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6239. $as_echo_n "(cached) " >&6
  6240. else
  6241. if test -n "$ac_ct_NMEDIT"; then
  6242. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6243. else
  6244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6245. for as_dir in $PATH
  6246. do
  6247. IFS=$as_save_IFS
  6248. test -z "$as_dir" && as_dir=.
  6249. for ac_exec_ext in '' $ac_executable_extensions; do
  6250. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6251. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6253. break 2
  6254. fi
  6255. done
  6256. done
  6257. IFS=$as_save_IFS
  6258. fi
  6259. fi
  6260. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6261. if test -n "$ac_ct_NMEDIT"; then
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6263. $as_echo "$ac_ct_NMEDIT" >&6; }
  6264. else
  6265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6266. $as_echo "no" >&6; }
  6267. fi
  6268. if test "x$ac_ct_NMEDIT" = x; then
  6269. NMEDIT=":"
  6270. else
  6271. case $cross_compiling:$ac_tool_warned in
  6272. yes:)
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6274. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6275. ac_tool_warned=yes ;;
  6276. esac
  6277. NMEDIT=$ac_ct_NMEDIT
  6278. fi
  6279. else
  6280. NMEDIT="$ac_cv_prog_NMEDIT"
  6281. fi
  6282. if test -n "$ac_tool_prefix"; then
  6283. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6284. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6286. $as_echo_n "checking for $ac_word... " >&6; }
  6287. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6288. $as_echo_n "(cached) " >&6
  6289. else
  6290. if test -n "$LIPO"; then
  6291. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6292. else
  6293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6294. for as_dir in $PATH
  6295. do
  6296. IFS=$as_save_IFS
  6297. test -z "$as_dir" && as_dir=.
  6298. for ac_exec_ext in '' $ac_executable_extensions; do
  6299. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6300. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6302. break 2
  6303. fi
  6304. done
  6305. done
  6306. IFS=$as_save_IFS
  6307. fi
  6308. fi
  6309. LIPO=$ac_cv_prog_LIPO
  6310. if test -n "$LIPO"; then
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6312. $as_echo "$LIPO" >&6; }
  6313. else
  6314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6315. $as_echo "no" >&6; }
  6316. fi
  6317. fi
  6318. if test -z "$ac_cv_prog_LIPO"; then
  6319. ac_ct_LIPO=$LIPO
  6320. # Extract the first word of "lipo", so it can be a program name with args.
  6321. set dummy lipo; ac_word=$2
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6323. $as_echo_n "checking for $ac_word... " >&6; }
  6324. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6325. $as_echo_n "(cached) " >&6
  6326. else
  6327. if test -n "$ac_ct_LIPO"; then
  6328. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6329. else
  6330. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6331. for as_dir in $PATH
  6332. do
  6333. IFS=$as_save_IFS
  6334. test -z "$as_dir" && as_dir=.
  6335. for ac_exec_ext in '' $ac_executable_extensions; do
  6336. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6337. ac_cv_prog_ac_ct_LIPO="lipo"
  6338. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6339. break 2
  6340. fi
  6341. done
  6342. done
  6343. IFS=$as_save_IFS
  6344. fi
  6345. fi
  6346. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6347. if test -n "$ac_ct_LIPO"; then
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6349. $as_echo "$ac_ct_LIPO" >&6; }
  6350. else
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6352. $as_echo "no" >&6; }
  6353. fi
  6354. if test "x$ac_ct_LIPO" = x; then
  6355. LIPO=":"
  6356. else
  6357. case $cross_compiling:$ac_tool_warned in
  6358. yes:)
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6360. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6361. ac_tool_warned=yes ;;
  6362. esac
  6363. LIPO=$ac_ct_LIPO
  6364. fi
  6365. else
  6366. LIPO="$ac_cv_prog_LIPO"
  6367. fi
  6368. if test -n "$ac_tool_prefix"; then
  6369. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6370. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6372. $as_echo_n "checking for $ac_word... " >&6; }
  6373. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6374. $as_echo_n "(cached) " >&6
  6375. else
  6376. if test -n "$OTOOL"; then
  6377. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6378. else
  6379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6380. for as_dir in $PATH
  6381. do
  6382. IFS=$as_save_IFS
  6383. test -z "$as_dir" && as_dir=.
  6384. for ac_exec_ext in '' $ac_executable_extensions; do
  6385. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6386. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6388. break 2
  6389. fi
  6390. done
  6391. done
  6392. IFS=$as_save_IFS
  6393. fi
  6394. fi
  6395. OTOOL=$ac_cv_prog_OTOOL
  6396. if test -n "$OTOOL"; then
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6398. $as_echo "$OTOOL" >&6; }
  6399. else
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6401. $as_echo "no" >&6; }
  6402. fi
  6403. fi
  6404. if test -z "$ac_cv_prog_OTOOL"; then
  6405. ac_ct_OTOOL=$OTOOL
  6406. # Extract the first word of "otool", so it can be a program name with args.
  6407. set dummy otool; ac_word=$2
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6409. $as_echo_n "checking for $ac_word... " >&6; }
  6410. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6411. $as_echo_n "(cached) " >&6
  6412. else
  6413. if test -n "$ac_ct_OTOOL"; then
  6414. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6415. else
  6416. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6417. for as_dir in $PATH
  6418. do
  6419. IFS=$as_save_IFS
  6420. test -z "$as_dir" && as_dir=.
  6421. for ac_exec_ext in '' $ac_executable_extensions; do
  6422. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6423. ac_cv_prog_ac_ct_OTOOL="otool"
  6424. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6425. break 2
  6426. fi
  6427. done
  6428. done
  6429. IFS=$as_save_IFS
  6430. fi
  6431. fi
  6432. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6433. if test -n "$ac_ct_OTOOL"; then
  6434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6435. $as_echo "$ac_ct_OTOOL" >&6; }
  6436. else
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6438. $as_echo "no" >&6; }
  6439. fi
  6440. if test "x$ac_ct_OTOOL" = x; then
  6441. OTOOL=":"
  6442. else
  6443. case $cross_compiling:$ac_tool_warned in
  6444. yes:)
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6446. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6447. ac_tool_warned=yes ;;
  6448. esac
  6449. OTOOL=$ac_ct_OTOOL
  6450. fi
  6451. else
  6452. OTOOL="$ac_cv_prog_OTOOL"
  6453. fi
  6454. if test -n "$ac_tool_prefix"; then
  6455. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6456. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6458. $as_echo_n "checking for $ac_word... " >&6; }
  6459. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6460. $as_echo_n "(cached) " >&6
  6461. else
  6462. if test -n "$OTOOL64"; then
  6463. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6464. else
  6465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6466. for as_dir in $PATH
  6467. do
  6468. IFS=$as_save_IFS
  6469. test -z "$as_dir" && as_dir=.
  6470. for ac_exec_ext in '' $ac_executable_extensions; do
  6471. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6472. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6473. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6474. break 2
  6475. fi
  6476. done
  6477. done
  6478. IFS=$as_save_IFS
  6479. fi
  6480. fi
  6481. OTOOL64=$ac_cv_prog_OTOOL64
  6482. if test -n "$OTOOL64"; then
  6483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6484. $as_echo "$OTOOL64" >&6; }
  6485. else
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6487. $as_echo "no" >&6; }
  6488. fi
  6489. fi
  6490. if test -z "$ac_cv_prog_OTOOL64"; then
  6491. ac_ct_OTOOL64=$OTOOL64
  6492. # Extract the first word of "otool64", so it can be a program name with args.
  6493. set dummy otool64; ac_word=$2
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6495. $as_echo_n "checking for $ac_word... " >&6; }
  6496. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6497. $as_echo_n "(cached) " >&6
  6498. else
  6499. if test -n "$ac_ct_OTOOL64"; then
  6500. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6501. else
  6502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6503. for as_dir in $PATH
  6504. do
  6505. IFS=$as_save_IFS
  6506. test -z "$as_dir" && as_dir=.
  6507. for ac_exec_ext in '' $ac_executable_extensions; do
  6508. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6509. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6511. break 2
  6512. fi
  6513. done
  6514. done
  6515. IFS=$as_save_IFS
  6516. fi
  6517. fi
  6518. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6519. if test -n "$ac_ct_OTOOL64"; then
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6521. $as_echo "$ac_ct_OTOOL64" >&6; }
  6522. else
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6524. $as_echo "no" >&6; }
  6525. fi
  6526. if test "x$ac_ct_OTOOL64" = x; then
  6527. OTOOL64=":"
  6528. else
  6529. case $cross_compiling:$ac_tool_warned in
  6530. yes:)
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6532. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6533. ac_tool_warned=yes ;;
  6534. esac
  6535. OTOOL64=$ac_ct_OTOOL64
  6536. fi
  6537. else
  6538. OTOOL64="$ac_cv_prog_OTOOL64"
  6539. fi
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6541. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6542. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6543. $as_echo_n "(cached) " >&6
  6544. else
  6545. lt_cv_apple_cc_single_mod=no
  6546. if test -z "${LT_MULTI_MODULE}"; then
  6547. # By default we will add the -single_module flag. You can override
  6548. # by either setting the environment variable LT_MULTI_MODULE
  6549. # non-empty at configure time, or by adding -multi_module to the
  6550. # link flags.
  6551. rm -rf libconftest.dylib*
  6552. echo "int foo(void){return 1;}" > conftest.c
  6553. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6554. -dynamiclib -Wl,-single_module conftest.c" >&5
  6555. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6556. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6557. _lt_result=$?
  6558. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6559. lt_cv_apple_cc_single_mod=yes
  6560. else
  6561. cat conftest.err >&5
  6562. fi
  6563. rm -rf libconftest.dylib*
  6564. rm -f conftest.*
  6565. fi
  6566. fi
  6567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6568. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6570. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6571. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6572. $as_echo_n "(cached) " >&6
  6573. else
  6574. lt_cv_ld_exported_symbols_list=no
  6575. save_LDFLAGS=$LDFLAGS
  6576. echo "_main" > conftest.sym
  6577. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6579. /* end confdefs.h. */
  6580. int
  6581. main ()
  6582. {
  6583. ;
  6584. return 0;
  6585. }
  6586. _ACEOF
  6587. if ac_fn_c_try_link "$LINENO"; then :
  6588. lt_cv_ld_exported_symbols_list=yes
  6589. else
  6590. lt_cv_ld_exported_symbols_list=no
  6591. fi
  6592. rm -f core conftest.err conftest.$ac_objext \
  6593. conftest$ac_exeext conftest.$ac_ext
  6594. LDFLAGS="$save_LDFLAGS"
  6595. fi
  6596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6597. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6599. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6600. if test "${lt_cv_ld_force_load+set}" = set; then :
  6601. $as_echo_n "(cached) " >&6
  6602. else
  6603. lt_cv_ld_force_load=no
  6604. cat > conftest.c << _LT_EOF
  6605. int forced_loaded() { return 2;}
  6606. _LT_EOF
  6607. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6608. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6609. echo "$AR cru libconftest.a conftest.o" >&5
  6610. $AR cru libconftest.a conftest.o 2>&5
  6611. cat > conftest.c << _LT_EOF
  6612. int main() { return 0;}
  6613. _LT_EOF
  6614. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6615. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6616. _lt_result=$?
  6617. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6618. lt_cv_ld_force_load=yes
  6619. else
  6620. cat conftest.err >&5
  6621. fi
  6622. rm -f conftest.err libconftest.a conftest conftest.c
  6623. rm -rf conftest.dSYM
  6624. fi
  6625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6626. $as_echo "$lt_cv_ld_force_load" >&6; }
  6627. case $host_os in
  6628. rhapsody* | darwin1.[012])
  6629. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6630. darwin1.*)
  6631. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6632. darwin*) # darwin 5.x on
  6633. # if running on 10.5 or later, the deployment target defaults
  6634. # to the OS version, if on x86, and 10.4, the deployment
  6635. # target defaults to 10.4. Don't you love it?
  6636. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6637. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6638. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6639. 10.[012][,.]*)
  6640. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6641. 10.*)
  6642. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6643. esac
  6644. ;;
  6645. esac
  6646. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6647. _lt_dar_single_mod='$single_module'
  6648. fi
  6649. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6650. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6651. else
  6652. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6653. fi
  6654. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6655. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6656. else
  6657. _lt_dsymutil=
  6658. fi
  6659. ;;
  6660. esac
  6661. for ac_header in dlfcn.h
  6662. do :
  6663. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6664. "
  6665. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6666. cat >>confdefs.h <<_ACEOF
  6667. #define HAVE_DLFCN_H 1
  6668. _ACEOF
  6669. fi
  6670. done
  6671. # autoconf.info says this should be called right after AC_INIT.
  6672. ac_config_headers="$ac_config_headers config.h:config.in"
  6673. # Put a plausible default for CC_FOR_BUILD in Makefile.
  6674. if test "x$cross_compiling" = "xno"; then
  6675. CC_FOR_BUILD='$(CC)'
  6676. else
  6677. CC_FOR_BUILD=gcc
  6678. fi
  6679. AR=${AR-ar}
  6680. if test -n "$ac_tool_prefix"; then
  6681. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6682. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6684. $as_echo_n "checking for $ac_word... " >&6; }
  6685. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  6686. $as_echo_n "(cached) " >&6
  6687. else
  6688. if test -n "$RANLIB"; then
  6689. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6690. else
  6691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6692. for as_dir in $PATH
  6693. do
  6694. IFS=$as_save_IFS
  6695. test -z "$as_dir" && as_dir=.
  6696. for ac_exec_ext in '' $ac_executable_extensions; do
  6697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6698. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6700. break 2
  6701. fi
  6702. done
  6703. done
  6704. IFS=$as_save_IFS
  6705. fi
  6706. fi
  6707. RANLIB=$ac_cv_prog_RANLIB
  6708. if test -n "$RANLIB"; then
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6710. $as_echo "$RANLIB" >&6; }
  6711. else
  6712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6713. $as_echo "no" >&6; }
  6714. fi
  6715. fi
  6716. if test -z "$ac_cv_prog_RANLIB"; then
  6717. ac_ct_RANLIB=$RANLIB
  6718. # Extract the first word of "ranlib", so it can be a program name with args.
  6719. set dummy ranlib; ac_word=$2
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6721. $as_echo_n "checking for $ac_word... " >&6; }
  6722. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  6723. $as_echo_n "(cached) " >&6
  6724. else
  6725. if test -n "$ac_ct_RANLIB"; then
  6726. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6727. else
  6728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6729. for as_dir in $PATH
  6730. do
  6731. IFS=$as_save_IFS
  6732. test -z "$as_dir" && as_dir=.
  6733. for ac_exec_ext in '' $ac_executable_extensions; do
  6734. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6735. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6737. break 2
  6738. fi
  6739. done
  6740. done
  6741. IFS=$as_save_IFS
  6742. fi
  6743. fi
  6744. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6745. if test -n "$ac_ct_RANLIB"; then
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6747. $as_echo "$ac_ct_RANLIB" >&6; }
  6748. else
  6749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6750. $as_echo "no" >&6; }
  6751. fi
  6752. if test "x$ac_ct_RANLIB" = x; then
  6753. RANLIB=":"
  6754. else
  6755. case $cross_compiling:$ac_tool_warned in
  6756. yes:)
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6758. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6759. ac_tool_warned=yes ;;
  6760. esac
  6761. RANLIB=$ac_ct_RANLIB
  6762. fi
  6763. else
  6764. RANLIB="$ac_cv_prog_RANLIB"
  6765. fi
  6766. # Some of the common include files depend on bfd.h, and bfd.h checks
  6767. # that config.h is included first by testing that the PACKAGE macro
  6768. # is defined.
  6769. PACKAGE=sim
  6770. cat >>confdefs.h <<_ACEOF
  6771. #define PACKAGE "$PACKAGE"
  6772. _ACEOF
  6773. # Dependency checking.
  6774. ac_config_commands="$ac_config_commands depdir"
  6775. depcc="$CC" am_compiler_list=
  6776. am_depcomp=$ac_aux_dir/depcomp
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6778. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6779. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  6780. $as_echo_n "(cached) " >&6
  6781. else
  6782. if test -f "$am_depcomp"; then
  6783. # We make a subdir and do the tests there. Otherwise we can end up
  6784. # making bogus files that we don't know about and never remove. For
  6785. # instance it was reported that on HP-UX the gcc test will end up
  6786. # making a dummy file named `D' -- because `-MD' means `put the output
  6787. # in D'.
  6788. mkdir conftest.dir
  6789. # Copy depcomp to subdir because otherwise we won't find it if we're
  6790. # using a relative directory.
  6791. cp "$am_depcomp" conftest.dir
  6792. cd conftest.dir
  6793. # We will build objects and dependencies in a subdirectory because
  6794. # it helps to detect inapplicable dependency modes. For instance
  6795. # both Tru64's cc and ICC support -MD to output dependencies as a
  6796. # side effect of compilation, but ICC will put the dependencies in
  6797. # the current directory while Tru64 will put them in the object
  6798. # directory.
  6799. mkdir sub
  6800. am_cv_CC_dependencies_compiler_type=none
  6801. if test "$am_compiler_list" = ""; then
  6802. am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6803. fi
  6804. for depmode in $am_compiler_list; do
  6805. if test $depmode = none; then break; fi
  6806. $as_echo "$as_me:$LINENO: trying $depmode" >&5
  6807. # Setup a source with many dependencies, because some compilers
  6808. # like to wrap large dependency lists on column 80 (with \), and
  6809. # we should not choose a depcomp mode which is confused by this.
  6810. #
  6811. # We need to recreate these files for each test, as the compiler may
  6812. # overwrite some of them when testing with obscure command lines.
  6813. # This happens at least with the AIX C compiler.
  6814. : > sub/conftest.c
  6815. for i in 1 2 3 4 5 6; do
  6816. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6817. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6818. # Solaris 8's {/usr,}/bin/sh.
  6819. touch sub/conftst$i.h
  6820. done
  6821. echo "include sub/conftest.Po" > confmf
  6822. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6823. # mode. It turns out that the SunPro C++ compiler does not properly
  6824. # handle `-M -o', and we need to detect this.
  6825. depcmd="depmode=$depmode \
  6826. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  6827. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6828. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
  6829. echo "| $depcmd" | sed -e 's/ */ /g' >&5
  6830. if env $depcmd > conftest.err 2>&1 &&
  6831. grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
  6832. grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
  6833. ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
  6834. # icc doesn't choke on unknown options, it will just issue warnings
  6835. # or remarks (even with -Werror). So we grep stderr for any message
  6836. # that says an option was ignored or not supported.
  6837. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6838. # icc: Command line warning: ignoring option '-M'; no argument required
  6839. # The diagnosis changed in icc 8.0:
  6840. # icc: Command line remark: option '-MP' not supported
  6841. if (grep 'ignoring option' conftest.err ||
  6842. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6843. am_cv_CC_dependencies_compiler_type=$depmode
  6844. $as_echo "$as_me:$LINENO: success" >&5
  6845. break
  6846. fi
  6847. fi
  6848. $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
  6849. sed -e 's/^/| /' < conftest.err >&5
  6850. done
  6851. cd ..
  6852. rm -rf conftest.dir
  6853. else
  6854. am_cv_CC_dependencies_compiler_type=none
  6855. fi
  6856. fi
  6857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  6858. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  6859. if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
  6860. then as_fn_error "no usable dependency style found" "$LINENO" 5
  6861. else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  6862. fi
  6863. # Check for the 'make' the user wants to use.
  6864. for ac_prog in make
  6865. do
  6866. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6867. set dummy $ac_prog; ac_word=$2
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6869. $as_echo_n "checking for $ac_word... " >&6; }
  6870. if test "${ac_cv_prog_MAKE+set}" = set; then :
  6871. $as_echo_n "(cached) " >&6
  6872. else
  6873. if test -n "$MAKE"; then
  6874. ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
  6875. else
  6876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6877. for as_dir in $PATH
  6878. do
  6879. IFS=$as_save_IFS
  6880. test -z "$as_dir" && as_dir=.
  6881. for ac_exec_ext in '' $ac_executable_extensions; do
  6882. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6883. ac_cv_prog_MAKE="$ac_prog"
  6884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6885. break 2
  6886. fi
  6887. done
  6888. done
  6889. IFS=$as_save_IFS
  6890. fi
  6891. fi
  6892. MAKE=$ac_cv_prog_MAKE
  6893. if test -n "$MAKE"; then
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
  6895. $as_echo "$MAKE" >&6; }
  6896. else
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6898. $as_echo "no" >&6; }
  6899. fi
  6900. test -n "$MAKE" && break
  6901. done
  6902. MAKE_IS_GNU=
  6903. case "`$MAKE --version 2>&1 | sed 1q`" in
  6904. *GNU*)
  6905. MAKE_IS_GNU=yes
  6906. ;;
  6907. esac
  6908. if test "$MAKE_IS_GNU" = yes; then
  6909. GMAKE_TRUE=
  6910. GMAKE_FALSE='#'
  6911. else
  6912. GMAKE_TRUE='#'
  6913. GMAKE_FALSE=
  6914. fi
  6915. ALL_LINGUAS=
  6916. # If we haven't got the data from the intl directory,
  6917. # assume NLS is disabled.
  6918. USE_NLS=no
  6919. LIBINTL=
  6920. LIBINTL_DEP=
  6921. INCINTL=
  6922. XGETTEXT=
  6923. GMSGFMT=
  6924. POSUB=
  6925. if test -f ../../intl/config.intl; then
  6926. . ../../intl/config.intl
  6927. fi
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  6929. $as_echo_n "checking whether NLS is requested... " >&6; }
  6930. if test x"$USE_NLS" != xyes; then
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6932. $as_echo "no" >&6; }
  6933. else
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6935. $as_echo "yes" >&6; }
  6936. $as_echo "#define ENABLE_NLS 1" >>confdefs.h
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  6938. $as_echo_n "checking for catalogs to be installed... " >&6; }
  6939. # Look for .po and .gmo files in the source directory.
  6940. CATALOGS=
  6941. XLINGUAS=
  6942. for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  6943. # If there aren't any .gmo files the shell will give us the
  6944. # literal string "../path/to/srcdir/po/*.gmo" which has to be
  6945. # weeded out.
  6946. case "$cat" in *\**)
  6947. continue;;
  6948. esac
  6949. # The quadruple backslash is collapsed to a double backslash
  6950. # by the backticks, then collapsed again by the double quotes,
  6951. # leaving us with one backslash in the sed expression (right
  6952. # before the dot that mustn't act as a wildcard).
  6953. cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  6954. lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  6955. # The user is allowed to set LINGUAS to a list of languages to
  6956. # install catalogs for. If it's empty that means "all of them."
  6957. if test "x$LINGUAS" = x; then
  6958. CATALOGS="$CATALOGS $cat"
  6959. XLINGUAS="$XLINGUAS $lang"
  6960. else
  6961. case "$LINGUAS" in *$lang*)
  6962. CATALOGS="$CATALOGS $cat"
  6963. XLINGUAS="$XLINGUAS $lang"
  6964. ;;
  6965. esac
  6966. fi
  6967. done
  6968. LINGUAS="$XLINGUAS"
  6969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  6970. $as_echo "$LINGUAS" >&6; }
  6971. DATADIRNAME=share
  6972. INSTOBJEXT=.mo
  6973. GENCAT=gencat
  6974. CATOBJEXT=.gmo
  6975. fi
  6976. # Check for common headers.
  6977. # FIXME: Seems to me this can cause problems for i386-windows hosts.
  6978. # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
  6979. for ac_header in stdlib.h string.h strings.h unistd.h time.h
  6980. do :
  6981. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6982. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6983. eval as_val=\$$as_ac_Header
  6984. if test "x$as_val" = x""yes; then :
  6985. cat >>confdefs.h <<_ACEOF
  6986. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6987. _ACEOF
  6988. fi
  6989. done
  6990. for ac_header in sys/time.h sys/resource.h
  6991. do :
  6992. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6993. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6994. eval as_val=\$$as_ac_Header
  6995. if test "x$as_val" = x""yes; then :
  6996. cat >>confdefs.h <<_ACEOF
  6997. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6998. _ACEOF
  6999. fi
  7000. done
  7001. for ac_header in fcntl.h fpu_control.h
  7002. do :
  7003. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7004. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7005. eval as_val=\$$as_ac_Header
  7006. if test "x$as_val" = x""yes; then :
  7007. cat >>confdefs.h <<_ACEOF
  7008. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7009. _ACEOF
  7010. fi
  7011. done
  7012. for ac_header in dlfcn.h errno.h sys/stat.h
  7013. do :
  7014. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7015. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7016. eval as_val=\$$as_ac_Header
  7017. if test "x$as_val" = x""yes; then :
  7018. cat >>confdefs.h <<_ACEOF
  7019. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7020. _ACEOF
  7021. fi
  7022. done
  7023. for ac_func in getrusage time sigaction __setfpucw
  7024. do :
  7025. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7026. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7027. eval as_val=\$$as_ac_var
  7028. if test "x$as_val" = x""yes; then :
  7029. cat >>confdefs.h <<_ACEOF
  7030. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7031. _ACEOF
  7032. fi
  7033. done
  7034. # Check for socket libraries
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
  7036. $as_echo_n "checking for bind in -lsocket... " >&6; }
  7037. if test "${ac_cv_lib_socket_bind+set}" = set; then :
  7038. $as_echo_n "(cached) " >&6
  7039. else
  7040. ac_check_lib_save_LIBS=$LIBS
  7041. LIBS="-lsocket $LIBS"
  7042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7043. /* end confdefs.h. */
  7044. /* Override any GCC internal prototype to avoid an error.
  7045. Use char because int might match the return type of a GCC
  7046. builtin and then its argument prototype would still apply. */
  7047. #ifdef __cplusplus
  7048. extern "C"
  7049. #endif
  7050. char bind ();
  7051. int
  7052. main ()
  7053. {
  7054. return bind ();
  7055. ;
  7056. return 0;
  7057. }
  7058. _ACEOF
  7059. if ac_fn_c_try_link "$LINENO"; then :
  7060. ac_cv_lib_socket_bind=yes
  7061. else
  7062. ac_cv_lib_socket_bind=no
  7063. fi
  7064. rm -f core conftest.err conftest.$ac_objext \
  7065. conftest$ac_exeext conftest.$ac_ext
  7066. LIBS=$ac_check_lib_save_LIBS
  7067. fi
  7068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
  7069. $as_echo "$ac_cv_lib_socket_bind" >&6; }
  7070. if test "x$ac_cv_lib_socket_bind" = x""yes; then :
  7071. cat >>confdefs.h <<_ACEOF
  7072. #define HAVE_LIBSOCKET 1
  7073. _ACEOF
  7074. LIBS="-lsocket $LIBS"
  7075. fi
  7076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  7077. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  7078. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
  7079. $as_echo_n "(cached) " >&6
  7080. else
  7081. ac_check_lib_save_LIBS=$LIBS
  7082. LIBS="-lnsl $LIBS"
  7083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7084. /* end confdefs.h. */
  7085. /* Override any GCC internal prototype to avoid an error.
  7086. Use char because int might match the return type of a GCC
  7087. builtin and then its argument prototype would still apply. */
  7088. #ifdef __cplusplus
  7089. extern "C"
  7090. #endif
  7091. char gethostbyname ();
  7092. int
  7093. main ()
  7094. {
  7095. return gethostbyname ();
  7096. ;
  7097. return 0;
  7098. }
  7099. _ACEOF
  7100. if ac_fn_c_try_link "$LINENO"; then :
  7101. ac_cv_lib_nsl_gethostbyname=yes
  7102. else
  7103. ac_cv_lib_nsl_gethostbyname=no
  7104. fi
  7105. rm -f core conftest.err conftest.$ac_objext \
  7106. conftest$ac_exeext conftest.$ac_ext
  7107. LIBS=$ac_check_lib_save_LIBS
  7108. fi
  7109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  7110. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  7111. if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
  7112. cat >>confdefs.h <<_ACEOF
  7113. #define HAVE_LIBNSL 1
  7114. _ACEOF
  7115. LIBS="-lnsl $LIBS"
  7116. fi
  7117. # BFD conditionally uses zlib, so we must link it in if libbfd does, by
  7118. # using the same condition.
  7119. # Use the system's zlib library.
  7120. zlibdir="-L\$(top_builddir)/../zlib"
  7121. zlibinc="-I\$(top_srcdir)/../zlib"
  7122. # Check whether --with-system-zlib was given.
  7123. if test "${with_system_zlib+set}" = set; then :
  7124. withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
  7125. zlibdir=
  7126. zlibinc=
  7127. fi
  7128. fi
  7129. # BFD uses libdl when when plugins enabled.
  7130. maybe_plugins=no
  7131. for ac_header in dlfcn.h
  7132. do :
  7133. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7134. "
  7135. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  7136. cat >>confdefs.h <<_ACEOF
  7137. #define HAVE_DLFCN_H 1
  7138. _ACEOF
  7139. maybe_plugins=yes
  7140. fi
  7141. done
  7142. for ac_header in windows.h
  7143. do :
  7144. ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  7145. "
  7146. if test "x$ac_cv_header_windows_h" = x""yes; then :
  7147. cat >>confdefs.h <<_ACEOF
  7148. #define HAVE_WINDOWS_H 1
  7149. _ACEOF
  7150. maybe_plugins=yes
  7151. fi
  7152. done
  7153. # Check whether --enable-plugins was given.
  7154. if test "${enable_plugins+set}" = set; then :
  7155. enableval=$enable_plugins; case "${enableval}" in
  7156. no) plugins=no ;;
  7157. *) plugins=yes
  7158. if test "$maybe_plugins" != "yes" ; then
  7159. as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  7160. fi ;;
  7161. esac
  7162. else
  7163. plugins=$maybe_plugins
  7164. fi
  7165. if test "$plugins" = "yes"; then
  7166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  7167. $as_echo_n "checking for library containing dlopen... " >&6; }
  7168. if test "${ac_cv_search_dlopen+set}" = set; then :
  7169. $as_echo_n "(cached) " >&6
  7170. else
  7171. ac_func_search_save_LIBS=$LIBS
  7172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7173. /* end confdefs.h. */
  7174. /* Override any GCC internal prototype to avoid an error.
  7175. Use char because int might match the return type of a GCC
  7176. builtin and then its argument prototype would still apply. */
  7177. #ifdef __cplusplus
  7178. extern "C"
  7179. #endif
  7180. char dlopen ();
  7181. int
  7182. main ()
  7183. {
  7184. return dlopen ();
  7185. ;
  7186. return 0;
  7187. }
  7188. _ACEOF
  7189. for ac_lib in '' dl; do
  7190. if test -z "$ac_lib"; then
  7191. ac_res="none required"
  7192. else
  7193. ac_res=-l$ac_lib
  7194. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7195. fi
  7196. if ac_fn_c_try_link "$LINENO"; then :
  7197. ac_cv_search_dlopen=$ac_res
  7198. fi
  7199. rm -f core conftest.err conftest.$ac_objext \
  7200. conftest$ac_exeext
  7201. if test "${ac_cv_search_dlopen+set}" = set; then :
  7202. break
  7203. fi
  7204. done
  7205. if test "${ac_cv_search_dlopen+set}" = set; then :
  7206. else
  7207. ac_cv_search_dlopen=no
  7208. fi
  7209. rm conftest.$ac_ext
  7210. LIBS=$ac_func_search_save_LIBS
  7211. fi
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  7213. $as_echo "$ac_cv_search_dlopen" >&6; }
  7214. ac_res=$ac_cv_search_dlopen
  7215. if test "$ac_res" != no; then :
  7216. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7217. fi
  7218. fi
  7219. if test "$plugins" = yes; then
  7220. PLUGINS_TRUE=
  7221. PLUGINS_FALSE='#'
  7222. else
  7223. PLUGINS_TRUE='#'
  7224. PLUGINS_FALSE=
  7225. fi
  7226. # Set options
  7227. enable_dlopen=yes
  7228. enable_win32_dll=no
  7229. # Check whether --enable-shared was given.
  7230. if test "${enable_shared+set}" = set; then :
  7231. enableval=$enable_shared; p=${PACKAGE-default}
  7232. case $enableval in
  7233. yes) enable_shared=yes ;;
  7234. no) enable_shared=no ;;
  7235. *)
  7236. enable_shared=no
  7237. # Look at the argument we got. We use all the common list separators.
  7238. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7239. for pkg in $enableval; do
  7240. IFS="$lt_save_ifs"
  7241. if test "X$pkg" = "X$p"; then
  7242. enable_shared=yes
  7243. fi
  7244. done
  7245. IFS="$lt_save_ifs"
  7246. ;;
  7247. esac
  7248. else
  7249. enable_shared=yes
  7250. fi
  7251. # Check whether --enable-static was given.
  7252. if test "${enable_static+set}" = set; then :
  7253. enableval=$enable_static; p=${PACKAGE-default}
  7254. case $enableval in
  7255. yes) enable_static=yes ;;
  7256. no) enable_static=no ;;
  7257. *)
  7258. enable_static=no
  7259. # Look at the argument we got. We use all the common list separators.
  7260. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7261. for pkg in $enableval; do
  7262. IFS="$lt_save_ifs"
  7263. if test "X$pkg" = "X$p"; then
  7264. enable_static=yes
  7265. fi
  7266. done
  7267. IFS="$lt_save_ifs"
  7268. ;;
  7269. esac
  7270. else
  7271. enable_static=yes
  7272. fi
  7273. # Check whether --with-pic was given.
  7274. if test "${with_pic+set}" = set; then :
  7275. withval=$with_pic; pic_mode="$withval"
  7276. else
  7277. pic_mode=default
  7278. fi
  7279. test -z "$pic_mode" && pic_mode=default
  7280. # Check whether --enable-fast-install was given.
  7281. if test "${enable_fast_install+set}" = set; then :
  7282. enableval=$enable_fast_install; p=${PACKAGE-default}
  7283. case $enableval in
  7284. yes) enable_fast_install=yes ;;
  7285. no) enable_fast_install=no ;;
  7286. *)
  7287. enable_fast_install=no
  7288. # Look at the argument we got. We use all the common list separators.
  7289. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7290. for pkg in $enableval; do
  7291. IFS="$lt_save_ifs"
  7292. if test "X$pkg" = "X$p"; then
  7293. enable_fast_install=yes
  7294. fi
  7295. done
  7296. IFS="$lt_save_ifs"
  7297. ;;
  7298. esac
  7299. else
  7300. enable_fast_install=yes
  7301. fi
  7302. # This can be used to rebuild libtool when needed
  7303. LIBTOOL_DEPS="$ltmain"
  7304. # Always use our own libtool.
  7305. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7306. test -z "$LN_S" && LN_S="ln -s"
  7307. if test -n "${ZSH_VERSION+set}" ; then
  7308. setopt NO_GLOB_SUBST
  7309. fi
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7311. $as_echo_n "checking for objdir... " >&6; }
  7312. if test "${lt_cv_objdir+set}" = set; then :
  7313. $as_echo_n "(cached) " >&6
  7314. else
  7315. rm -f .libs 2>/dev/null
  7316. mkdir .libs 2>/dev/null
  7317. if test -d .libs; then
  7318. lt_cv_objdir=.libs
  7319. else
  7320. # MS-DOS does not allow filenames that begin with a dot.
  7321. lt_cv_objdir=_libs
  7322. fi
  7323. rmdir .libs 2>/dev/null
  7324. fi
  7325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7326. $as_echo "$lt_cv_objdir" >&6; }
  7327. objdir=$lt_cv_objdir
  7328. cat >>confdefs.h <<_ACEOF
  7329. #define LT_OBJDIR "$lt_cv_objdir/"
  7330. _ACEOF
  7331. case $host_os in
  7332. aix3*)
  7333. # AIX sometimes has problems with the GCC collect2 program. For some
  7334. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7335. # vanish in a puff of smoke.
  7336. if test "X${COLLECT_NAMES+set}" != Xset; then
  7337. COLLECT_NAMES=
  7338. export COLLECT_NAMES
  7339. fi
  7340. ;;
  7341. esac
  7342. # Global variables:
  7343. ofile=libtool
  7344. can_build_shared=yes
  7345. # All known linkers require a `.a' archive for static linking (except MSVC,
  7346. # which needs '.lib').
  7347. libext=a
  7348. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7349. old_CC="$CC"
  7350. old_CFLAGS="$CFLAGS"
  7351. # Set sane defaults for various variables
  7352. test -z "$CC" && CC=cc
  7353. test -z "$LTCC" && LTCC=$CC
  7354. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7355. test -z "$LD" && LD=ld
  7356. test -z "$ac_objext" && ac_objext=o
  7357. for cc_temp in $compiler""; do
  7358. case $cc_temp in
  7359. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7360. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7361. \-*) ;;
  7362. *) break;;
  7363. esac
  7364. done
  7365. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7366. # Only perform the check for file, if the check method requires it
  7367. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7368. case $deplibs_check_method in
  7369. file_magic*)
  7370. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7372. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7373. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7374. $as_echo_n "(cached) " >&6
  7375. else
  7376. case $MAGIC_CMD in
  7377. [\\/*] | ?:[\\/]*)
  7378. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7379. ;;
  7380. *)
  7381. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7382. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7383. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7384. for ac_dir in $ac_dummy; do
  7385. IFS="$lt_save_ifs"
  7386. test -z "$ac_dir" && ac_dir=.
  7387. if test -f $ac_dir/${ac_tool_prefix}file; then
  7388. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7389. if test -n "$file_magic_test_file"; then
  7390. case $deplibs_check_method in
  7391. "file_magic "*)
  7392. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7393. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7394. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7395. $EGREP "$file_magic_regex" > /dev/null; then
  7396. :
  7397. else
  7398. cat <<_LT_EOF 1>&2
  7399. *** Warning: the command libtool uses to detect shared libraries,
  7400. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7401. *** The result is that libtool may fail to recognize shared libraries
  7402. *** as such. This will affect the creation of libtool libraries that
  7403. *** depend on shared libraries, but programs linked with such libtool
  7404. *** libraries will work regardless of this problem. Nevertheless, you
  7405. *** may want to report the problem to your system manager and/or to
  7406. *** bug-libtool@gnu.org
  7407. _LT_EOF
  7408. fi ;;
  7409. esac
  7410. fi
  7411. break
  7412. fi
  7413. done
  7414. IFS="$lt_save_ifs"
  7415. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7416. ;;
  7417. esac
  7418. fi
  7419. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7420. if test -n "$MAGIC_CMD"; then
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7422. $as_echo "$MAGIC_CMD" >&6; }
  7423. else
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7425. $as_echo "no" >&6; }
  7426. fi
  7427. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7428. if test -n "$ac_tool_prefix"; then
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7430. $as_echo_n "checking for file... " >&6; }
  7431. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7432. $as_echo_n "(cached) " >&6
  7433. else
  7434. case $MAGIC_CMD in
  7435. [\\/*] | ?:[\\/]*)
  7436. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7437. ;;
  7438. *)
  7439. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7440. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7441. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7442. for ac_dir in $ac_dummy; do
  7443. IFS="$lt_save_ifs"
  7444. test -z "$ac_dir" && ac_dir=.
  7445. if test -f $ac_dir/file; then
  7446. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7447. if test -n "$file_magic_test_file"; then
  7448. case $deplibs_check_method in
  7449. "file_magic "*)
  7450. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7451. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7452. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7453. $EGREP "$file_magic_regex" > /dev/null; then
  7454. :
  7455. else
  7456. cat <<_LT_EOF 1>&2
  7457. *** Warning: the command libtool uses to detect shared libraries,
  7458. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7459. *** The result is that libtool may fail to recognize shared libraries
  7460. *** as such. This will affect the creation of libtool libraries that
  7461. *** depend on shared libraries, but programs linked with such libtool
  7462. *** libraries will work regardless of this problem. Nevertheless, you
  7463. *** may want to report the problem to your system manager and/or to
  7464. *** bug-libtool@gnu.org
  7465. _LT_EOF
  7466. fi ;;
  7467. esac
  7468. fi
  7469. break
  7470. fi
  7471. done
  7472. IFS="$lt_save_ifs"
  7473. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7474. ;;
  7475. esac
  7476. fi
  7477. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7478. if test -n "$MAGIC_CMD"; then
  7479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7480. $as_echo "$MAGIC_CMD" >&6; }
  7481. else
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7483. $as_echo "no" >&6; }
  7484. fi
  7485. else
  7486. MAGIC_CMD=:
  7487. fi
  7488. fi
  7489. fi
  7490. ;;
  7491. esac
  7492. # Use C for the default configuration in the libtool script
  7493. lt_save_CC="$CC"
  7494. ac_ext=c
  7495. ac_cpp='$CPP $CPPFLAGS'
  7496. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7497. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7498. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7499. # Source file extension for C test sources.
  7500. ac_ext=c
  7501. # Object file extension for compiled C test sources.
  7502. objext=o
  7503. objext=$objext
  7504. # Code to be used in simple compile tests
  7505. lt_simple_compile_test_code="int some_variable = 0;"
  7506. # Code to be used in simple link tests
  7507. lt_simple_link_test_code='int main(){return(0);}'
  7508. # If no C compiler was specified, use CC.
  7509. LTCC=${LTCC-"$CC"}
  7510. # If no C compiler flags were specified, use CFLAGS.
  7511. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7512. # Allow CC to be a program name with arguments.
  7513. compiler=$CC
  7514. # Save the default compiler, since it gets overwritten when the other
  7515. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7516. compiler_DEFAULT=$CC
  7517. # save warnings/boilerplate of simple test code
  7518. ac_outfile=conftest.$ac_objext
  7519. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7520. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7521. _lt_compiler_boilerplate=`cat conftest.err`
  7522. $RM conftest*
  7523. ac_outfile=conftest.$ac_objext
  7524. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7525. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7526. _lt_linker_boilerplate=`cat conftest.err`
  7527. $RM -r conftest*
  7528. ## CAVEAT EMPTOR:
  7529. ## There is no encapsulation within the following macros, do not change
  7530. ## the running order or otherwise move them around unless you know exactly
  7531. ## what you are doing...
  7532. if test -n "$compiler"; then
  7533. lt_prog_compiler_no_builtin_flag=
  7534. if test "$GCC" = yes; then
  7535. case $cc_basename in
  7536. nvcc*)
  7537. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7538. *)
  7539. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7540. esac
  7541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7542. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7543. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7544. $as_echo_n "(cached) " >&6
  7545. else
  7546. lt_cv_prog_compiler_rtti_exceptions=no
  7547. ac_outfile=conftest.$ac_objext
  7548. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7549. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7550. # Insert the option either (1) after the last *FLAGS variable, or
  7551. # (2) before a word containing "conftest.", or (3) at the end.
  7552. # Note that $ac_compile itself does not contain backslashes and begins
  7553. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7554. # The option is referenced via a variable to avoid confusing sed.
  7555. lt_compile=`echo "$ac_compile" | $SED \
  7556. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7557. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7558. -e 's:$: $lt_compiler_flag:'`
  7559. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7560. (eval "$lt_compile" 2>conftest.err)
  7561. ac_status=$?
  7562. cat conftest.err >&5
  7563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7564. if (exit $ac_status) && test -s "$ac_outfile"; then
  7565. # The compiler can only warn and ignore the option if not recognized
  7566. # So say no if there are warnings other than the usual output.
  7567. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7568. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7569. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7570. lt_cv_prog_compiler_rtti_exceptions=yes
  7571. fi
  7572. fi
  7573. $RM conftest*
  7574. fi
  7575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7576. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7577. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7578. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7579. else
  7580. :
  7581. fi
  7582. fi
  7583. lt_prog_compiler_wl=
  7584. lt_prog_compiler_pic=
  7585. lt_prog_compiler_static=
  7586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7587. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7588. if test "$GCC" = yes; then
  7589. lt_prog_compiler_wl='-Wl,'
  7590. lt_prog_compiler_static='-static'
  7591. case $host_os in
  7592. aix*)
  7593. # All AIX code is PIC.
  7594. if test "$host_cpu" = ia64; then
  7595. # AIX 5 now supports IA64 processor
  7596. lt_prog_compiler_static='-Bstatic'
  7597. fi
  7598. lt_prog_compiler_pic='-fPIC'
  7599. ;;
  7600. amigaos*)
  7601. case $host_cpu in
  7602. powerpc)
  7603. # see comment about AmigaOS4 .so support
  7604. lt_prog_compiler_pic='-fPIC'
  7605. ;;
  7606. m68k)
  7607. # FIXME: we need at least 68020 code to build shared libraries, but
  7608. # adding the `-m68020' flag to GCC prevents building anything better,
  7609. # like `-m68040'.
  7610. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7611. ;;
  7612. esac
  7613. ;;
  7614. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7615. # PIC is the default for these OSes.
  7616. ;;
  7617. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7618. # This hack is so that the source file can tell whether it is being
  7619. # built for inclusion in a dll (and should export symbols for example).
  7620. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7621. # (--disable-auto-import) libraries
  7622. lt_prog_compiler_pic='-DDLL_EXPORT'
  7623. ;;
  7624. darwin* | rhapsody*)
  7625. # PIC is the default on this platform
  7626. # Common symbols not allowed in MH_DYLIB files
  7627. lt_prog_compiler_pic='-fno-common'
  7628. ;;
  7629. haiku*)
  7630. # PIC is the default for Haiku.
  7631. # The "-static" flag exists, but is broken.
  7632. lt_prog_compiler_static=
  7633. ;;
  7634. hpux*)
  7635. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7636. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7637. # sets the default TLS model and affects inlining.
  7638. case $host_cpu in
  7639. hppa*64*)
  7640. # +Z the default
  7641. ;;
  7642. *)
  7643. lt_prog_compiler_pic='-fPIC'
  7644. ;;
  7645. esac
  7646. ;;
  7647. interix[3-9]*)
  7648. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7649. # Instead, we relocate shared libraries at runtime.
  7650. ;;
  7651. msdosdjgpp*)
  7652. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7653. # on systems that don't support them.
  7654. lt_prog_compiler_can_build_shared=no
  7655. enable_shared=no
  7656. ;;
  7657. *nto* | *qnx*)
  7658. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7659. # it will coredump.
  7660. lt_prog_compiler_pic='-fPIC -shared'
  7661. ;;
  7662. sysv4*MP*)
  7663. if test -d /usr/nec; then
  7664. lt_prog_compiler_pic=-Kconform_pic
  7665. fi
  7666. ;;
  7667. *)
  7668. lt_prog_compiler_pic='-fPIC'
  7669. ;;
  7670. esac
  7671. case $cc_basename in
  7672. nvcc*) # Cuda Compiler Driver 2.2
  7673. lt_prog_compiler_wl='-Xlinker '
  7674. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7675. ;;
  7676. esac
  7677. else
  7678. # PORTME Check for flag to pass linker flags through the system compiler.
  7679. case $host_os in
  7680. aix*)
  7681. lt_prog_compiler_wl='-Wl,'
  7682. if test "$host_cpu" = ia64; then
  7683. # AIX 5 now supports IA64 processor
  7684. lt_prog_compiler_static='-Bstatic'
  7685. else
  7686. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7687. fi
  7688. ;;
  7689. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7690. # This hack is so that the source file can tell whether it is being
  7691. # built for inclusion in a dll (and should export symbols for example).
  7692. lt_prog_compiler_pic='-DDLL_EXPORT'
  7693. ;;
  7694. hpux9* | hpux10* | hpux11*)
  7695. lt_prog_compiler_wl='-Wl,'
  7696. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7697. # not for PA HP-UX.
  7698. case $host_cpu in
  7699. hppa*64*|ia64*)
  7700. # +Z the default
  7701. ;;
  7702. *)
  7703. lt_prog_compiler_pic='+Z'
  7704. ;;
  7705. esac
  7706. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7707. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7708. ;;
  7709. irix5* | irix6* | nonstopux*)
  7710. lt_prog_compiler_wl='-Wl,'
  7711. # PIC (with -KPIC) is the default.
  7712. lt_prog_compiler_static='-non_shared'
  7713. ;;
  7714. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7715. case $cc_basename in
  7716. # old Intel for x86_64 which still supported -KPIC.
  7717. ecc*)
  7718. lt_prog_compiler_wl='-Wl,'
  7719. lt_prog_compiler_pic='-KPIC'
  7720. lt_prog_compiler_static='-static'
  7721. ;;
  7722. # icc used to be incompatible with GCC.
  7723. # ICC 10 doesn't accept -KPIC any more.
  7724. icc* | ifort*)
  7725. lt_prog_compiler_wl='-Wl,'
  7726. lt_prog_compiler_pic='-fPIC'
  7727. lt_prog_compiler_static='-static'
  7728. ;;
  7729. # Lahey Fortran 8.1.
  7730. lf95*)
  7731. lt_prog_compiler_wl='-Wl,'
  7732. lt_prog_compiler_pic='--shared'
  7733. lt_prog_compiler_static='--static'
  7734. ;;
  7735. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7736. # Portland Group compilers (*not* the Pentium gcc compiler,
  7737. # which looks to be a dead project)
  7738. lt_prog_compiler_wl='-Wl,'
  7739. lt_prog_compiler_pic='-fpic'
  7740. lt_prog_compiler_static='-Bstatic'
  7741. ;;
  7742. ccc*)
  7743. lt_prog_compiler_wl='-Wl,'
  7744. # All Alpha code is PIC.
  7745. lt_prog_compiler_static='-non_shared'
  7746. ;;
  7747. xl* | bgxl* | bgf* | mpixl*)
  7748. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7749. lt_prog_compiler_wl='-Wl,'
  7750. lt_prog_compiler_pic='-qpic'
  7751. lt_prog_compiler_static='-qstaticlink'
  7752. ;;
  7753. *)
  7754. case `$CC -V 2>&1 | sed 5q` in
  7755. *Sun\ F* | *Sun*Fortran*)
  7756. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7757. lt_prog_compiler_pic='-KPIC'
  7758. lt_prog_compiler_static='-Bstatic'
  7759. lt_prog_compiler_wl=''
  7760. ;;
  7761. *Sun\ C*)
  7762. # Sun C 5.9
  7763. lt_prog_compiler_pic='-KPIC'
  7764. lt_prog_compiler_static='-Bstatic'
  7765. lt_prog_compiler_wl='-Wl,'
  7766. ;;
  7767. esac
  7768. ;;
  7769. esac
  7770. ;;
  7771. newsos6)
  7772. lt_prog_compiler_pic='-KPIC'
  7773. lt_prog_compiler_static='-Bstatic'
  7774. ;;
  7775. *nto* | *qnx*)
  7776. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7777. # it will coredump.
  7778. lt_prog_compiler_pic='-fPIC -shared'
  7779. ;;
  7780. osf3* | osf4* | osf5*)
  7781. lt_prog_compiler_wl='-Wl,'
  7782. # All OSF/1 code is PIC.
  7783. lt_prog_compiler_static='-non_shared'
  7784. ;;
  7785. rdos*)
  7786. lt_prog_compiler_static='-non_shared'
  7787. ;;
  7788. solaris*)
  7789. lt_prog_compiler_pic='-KPIC'
  7790. lt_prog_compiler_static='-Bstatic'
  7791. case $cc_basename in
  7792. f77* | f90* | f95*)
  7793. lt_prog_compiler_wl='-Qoption ld ';;
  7794. *)
  7795. lt_prog_compiler_wl='-Wl,';;
  7796. esac
  7797. ;;
  7798. sunos4*)
  7799. lt_prog_compiler_wl='-Qoption ld '
  7800. lt_prog_compiler_pic='-PIC'
  7801. lt_prog_compiler_static='-Bstatic'
  7802. ;;
  7803. sysv4 | sysv4.2uw2* | sysv4.3*)
  7804. lt_prog_compiler_wl='-Wl,'
  7805. lt_prog_compiler_pic='-KPIC'
  7806. lt_prog_compiler_static='-Bstatic'
  7807. ;;
  7808. sysv4*MP*)
  7809. if test -d /usr/nec ;then
  7810. lt_prog_compiler_pic='-Kconform_pic'
  7811. lt_prog_compiler_static='-Bstatic'
  7812. fi
  7813. ;;
  7814. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7815. lt_prog_compiler_wl='-Wl,'
  7816. lt_prog_compiler_pic='-KPIC'
  7817. lt_prog_compiler_static='-Bstatic'
  7818. ;;
  7819. unicos*)
  7820. lt_prog_compiler_wl='-Wl,'
  7821. lt_prog_compiler_can_build_shared=no
  7822. ;;
  7823. uts4*)
  7824. lt_prog_compiler_pic='-pic'
  7825. lt_prog_compiler_static='-Bstatic'
  7826. ;;
  7827. *)
  7828. lt_prog_compiler_can_build_shared=no
  7829. ;;
  7830. esac
  7831. fi
  7832. case $host_os in
  7833. # For platforms which do not support PIC, -DPIC is meaningless:
  7834. *djgpp*)
  7835. lt_prog_compiler_pic=
  7836. ;;
  7837. *)
  7838. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7839. ;;
  7840. esac
  7841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7842. $as_echo "$lt_prog_compiler_pic" >&6; }
  7843. #
  7844. # Check to make sure the PIC flag actually works.
  7845. #
  7846. if test -n "$lt_prog_compiler_pic"; then
  7847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7848. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7849. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7850. $as_echo_n "(cached) " >&6
  7851. else
  7852. lt_cv_prog_compiler_pic_works=no
  7853. ac_outfile=conftest.$ac_objext
  7854. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7855. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7856. # Insert the option either (1) after the last *FLAGS variable, or
  7857. # (2) before a word containing "conftest.", or (3) at the end.
  7858. # Note that $ac_compile itself does not contain backslashes and begins
  7859. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7860. # The option is referenced via a variable to avoid confusing sed.
  7861. lt_compile=`echo "$ac_compile" | $SED \
  7862. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7863. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7864. -e 's:$: $lt_compiler_flag:'`
  7865. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7866. (eval "$lt_compile" 2>conftest.err)
  7867. ac_status=$?
  7868. cat conftest.err >&5
  7869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7870. if (exit $ac_status) && test -s "$ac_outfile"; then
  7871. # The compiler can only warn and ignore the option if not recognized
  7872. # So say no if there are warnings other than the usual output.
  7873. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7874. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7875. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7876. lt_cv_prog_compiler_pic_works=yes
  7877. fi
  7878. fi
  7879. $RM conftest*
  7880. fi
  7881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7882. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7883. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7884. case $lt_prog_compiler_pic in
  7885. "" | " "*) ;;
  7886. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7887. esac
  7888. else
  7889. lt_prog_compiler_pic=
  7890. lt_prog_compiler_can_build_shared=no
  7891. fi
  7892. fi
  7893. #
  7894. # Check to make sure the static flag actually works.
  7895. #
  7896. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7898. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7899. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7900. $as_echo_n "(cached) " >&6
  7901. else
  7902. lt_cv_prog_compiler_static_works=no
  7903. save_LDFLAGS="$LDFLAGS"
  7904. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7905. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7906. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7907. # The linker can only warn and ignore the option if not recognized
  7908. # So say no if there are warnings
  7909. if test -s conftest.err; then
  7910. # Append any errors to the config.log.
  7911. cat conftest.err 1>&5
  7912. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7913. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7914. if diff conftest.exp conftest.er2 >/dev/null; then
  7915. lt_cv_prog_compiler_static_works=yes
  7916. fi
  7917. else
  7918. lt_cv_prog_compiler_static_works=yes
  7919. fi
  7920. fi
  7921. $RM -r conftest*
  7922. LDFLAGS="$save_LDFLAGS"
  7923. fi
  7924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7925. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7926. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7927. :
  7928. else
  7929. lt_prog_compiler_static=
  7930. fi
  7931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7932. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7933. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7934. $as_echo_n "(cached) " >&6
  7935. else
  7936. lt_cv_prog_compiler_c_o=no
  7937. $RM -r conftest 2>/dev/null
  7938. mkdir conftest
  7939. cd conftest
  7940. mkdir out
  7941. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7942. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7943. # Insert the option either (1) after the last *FLAGS variable, or
  7944. # (2) before a word containing "conftest.", or (3) at the end.
  7945. # Note that $ac_compile itself does not contain backslashes and begins
  7946. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7947. lt_compile=`echo "$ac_compile" | $SED \
  7948. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7949. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7950. -e 's:$: $lt_compiler_flag:'`
  7951. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7952. (eval "$lt_compile" 2>out/conftest.err)
  7953. ac_status=$?
  7954. cat out/conftest.err >&5
  7955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7956. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7957. then
  7958. # The compiler can only warn and ignore the option if not recognized
  7959. # So say no if there are warnings
  7960. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7961. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7962. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7963. lt_cv_prog_compiler_c_o=yes
  7964. fi
  7965. fi
  7966. chmod u+w . 2>&5
  7967. $RM conftest*
  7968. # SGI C++ compiler will create directory out/ii_files/ for
  7969. # template instantiation
  7970. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7971. $RM out/* && rmdir out
  7972. cd ..
  7973. $RM -r conftest
  7974. $RM conftest*
  7975. fi
  7976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7977. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7979. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7980. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7981. $as_echo_n "(cached) " >&6
  7982. else
  7983. lt_cv_prog_compiler_c_o=no
  7984. $RM -r conftest 2>/dev/null
  7985. mkdir conftest
  7986. cd conftest
  7987. mkdir out
  7988. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7989. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7990. # Insert the option either (1) after the last *FLAGS variable, or
  7991. # (2) before a word containing "conftest.", or (3) at the end.
  7992. # Note that $ac_compile itself does not contain backslashes and begins
  7993. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7994. lt_compile=`echo "$ac_compile" | $SED \
  7995. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7996. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7997. -e 's:$: $lt_compiler_flag:'`
  7998. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7999. (eval "$lt_compile" 2>out/conftest.err)
  8000. ac_status=$?
  8001. cat out/conftest.err >&5
  8002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8003. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8004. then
  8005. # The compiler can only warn and ignore the option if not recognized
  8006. # So say no if there are warnings
  8007. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8008. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8009. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8010. lt_cv_prog_compiler_c_o=yes
  8011. fi
  8012. fi
  8013. chmod u+w . 2>&5
  8014. $RM conftest*
  8015. # SGI C++ compiler will create directory out/ii_files/ for
  8016. # template instantiation
  8017. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8018. $RM out/* && rmdir out
  8019. cd ..
  8020. $RM -r conftest
  8021. $RM conftest*
  8022. fi
  8023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8024. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8025. hard_links="nottested"
  8026. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8027. # do not overwrite the value of need_locks provided by the user
  8028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8029. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8030. hard_links=yes
  8031. $RM conftest*
  8032. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8033. touch conftest.a
  8034. ln conftest.a conftest.b 2>&5 || hard_links=no
  8035. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8037. $as_echo "$hard_links" >&6; }
  8038. if test "$hard_links" = no; then
  8039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8040. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8041. need_locks=warn
  8042. fi
  8043. else
  8044. need_locks=no
  8045. fi
  8046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8047. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8048. runpath_var=
  8049. allow_undefined_flag=
  8050. always_export_symbols=no
  8051. archive_cmds=
  8052. archive_expsym_cmds=
  8053. compiler_needs_object=no
  8054. enable_shared_with_static_runtimes=no
  8055. export_dynamic_flag_spec=
  8056. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8057. hardcode_automatic=no
  8058. hardcode_direct=no
  8059. hardcode_direct_absolute=no
  8060. hardcode_libdir_flag_spec=
  8061. hardcode_libdir_flag_spec_ld=
  8062. hardcode_libdir_separator=
  8063. hardcode_minus_L=no
  8064. hardcode_shlibpath_var=unsupported
  8065. inherit_rpath=no
  8066. link_all_deplibs=unknown
  8067. module_cmds=
  8068. module_expsym_cmds=
  8069. old_archive_from_new_cmds=
  8070. old_archive_from_expsyms_cmds=
  8071. thread_safe_flag_spec=
  8072. whole_archive_flag_spec=
  8073. # include_expsyms should be a list of space-separated symbols to be *always*
  8074. # included in the symbol list
  8075. include_expsyms=
  8076. # exclude_expsyms can be an extended regexp of symbols to exclude
  8077. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8078. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8079. # as well as any symbol that contains `d'.
  8080. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8081. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8082. # platforms (ab)use it in PIC code, but their linkers get confused if
  8083. # the symbol is explicitly referenced. Since portable code cannot
  8084. # rely on this symbol name, it's probably fine to never include it in
  8085. # preloaded symbol tables.
  8086. # Exclude shared library initialization/finalization symbols.
  8087. extract_expsyms_cmds=
  8088. case $host_os in
  8089. cygwin* | mingw* | pw32* | cegcc*)
  8090. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8091. # When not using gcc, we currently assume that we are using
  8092. # Microsoft Visual C++.
  8093. if test "$GCC" != yes; then
  8094. with_gnu_ld=no
  8095. fi
  8096. ;;
  8097. interix*)
  8098. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8099. with_gnu_ld=yes
  8100. ;;
  8101. openbsd*)
  8102. with_gnu_ld=no
  8103. ;;
  8104. esac
  8105. ld_shlibs=yes
  8106. # On some targets, GNU ld is compatible enough with the native linker
  8107. # that we're better off using the native interface for both.
  8108. lt_use_gnu_ld_interface=no
  8109. if test "$with_gnu_ld" = yes; then
  8110. case $host_os in
  8111. aix*)
  8112. # The AIX port of GNU ld has always aspired to compatibility
  8113. # with the native linker. However, as the warning in the GNU ld
  8114. # block says, versions before 2.19.5* couldn't really create working
  8115. # shared libraries, regardless of the interface used.
  8116. case `$LD -v 2>&1` in
  8117. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8118. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8119. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8120. *)
  8121. lt_use_gnu_ld_interface=yes
  8122. ;;
  8123. esac
  8124. ;;
  8125. *)
  8126. lt_use_gnu_ld_interface=yes
  8127. ;;
  8128. esac
  8129. fi
  8130. if test "$lt_use_gnu_ld_interface" = yes; then
  8131. # If archive_cmds runs LD, not CC, wlarc should be empty
  8132. wlarc='${wl}'
  8133. # Set some defaults for GNU ld with shared library support. These
  8134. # are reset later if shared libraries are not supported. Putting them
  8135. # here allows them to be overridden if necessary.
  8136. runpath_var=LD_RUN_PATH
  8137. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8138. export_dynamic_flag_spec='${wl}--export-dynamic'
  8139. # ancient GNU ld didn't support --whole-archive et. al.
  8140. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8141. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8142. else
  8143. whole_archive_flag_spec=
  8144. fi
  8145. supports_anon_versioning=no
  8146. case `$LD -v 2>&1` in
  8147. *GNU\ gold*) supports_anon_versioning=yes ;;
  8148. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8149. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8150. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8151. *\ 2.11.*) ;; # other 2.11 versions
  8152. *) supports_anon_versioning=yes ;;
  8153. esac
  8154. # See if GNU ld supports shared libraries.
  8155. case $host_os in
  8156. aix[3-9]*)
  8157. # On AIX/PPC, the GNU linker is very broken
  8158. if test "$host_cpu" != ia64; then
  8159. ld_shlibs=no
  8160. cat <<_LT_EOF 1>&2
  8161. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8162. *** to be unable to reliably create shared libraries on AIX.
  8163. *** Therefore, libtool is disabling shared libraries support. If you
  8164. *** really care for shared libraries, you may want to install binutils
  8165. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8166. *** You will then need to restart the configuration process.
  8167. _LT_EOF
  8168. fi
  8169. ;;
  8170. amigaos*)
  8171. case $host_cpu in
  8172. powerpc)
  8173. # see comment about AmigaOS4 .so support
  8174. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8175. archive_expsym_cmds=''
  8176. ;;
  8177. m68k)
  8178. 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)'
  8179. hardcode_libdir_flag_spec='-L$libdir'
  8180. hardcode_minus_L=yes
  8181. ;;
  8182. esac
  8183. ;;
  8184. beos*)
  8185. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8186. allow_undefined_flag=unsupported
  8187. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8188. # support --undefined. This deserves some investigation. FIXME
  8189. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8190. else
  8191. ld_shlibs=no
  8192. fi
  8193. ;;
  8194. cygwin* | mingw* | pw32* | cegcc*)
  8195. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8196. # as there is no search path for DLLs.
  8197. hardcode_libdir_flag_spec='-L$libdir'
  8198. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8199. allow_undefined_flag=unsupported
  8200. always_export_symbols=no
  8201. enable_shared_with_static_runtimes=yes
  8202. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8203. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8204. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8205. # If the export-symbols file already is a .def file (1st line
  8206. # is EXPORTS), use it as is; otherwise, prepend...
  8207. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8208. cp $export_symbols $output_objdir/$soname.def;
  8209. else
  8210. echo EXPORTS > $output_objdir/$soname.def;
  8211. cat $export_symbols >> $output_objdir/$soname.def;
  8212. fi~
  8213. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8214. else
  8215. ld_shlibs=no
  8216. fi
  8217. ;;
  8218. haiku*)
  8219. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8220. link_all_deplibs=yes
  8221. ;;
  8222. interix[3-9]*)
  8223. hardcode_direct=no
  8224. hardcode_shlibpath_var=no
  8225. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8226. export_dynamic_flag_spec='${wl}-E'
  8227. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8228. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8229. # default) and relocated if they conflict, which is a slow very memory
  8230. # consuming and fragmenting process. To avoid this, we pick a random,
  8231. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8232. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8233. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8234. 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'
  8235. ;;
  8236. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8237. tmp_diet=no
  8238. if test "$host_os" = linux-dietlibc; then
  8239. case $cc_basename in
  8240. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8241. esac
  8242. fi
  8243. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8244. && test "$tmp_diet" = no
  8245. then
  8246. tmp_addflag=' $pic_flag'
  8247. tmp_sharedflag='-shared'
  8248. case $cc_basename,$host_cpu in
  8249. pgcc*) # Portland Group C compiler
  8250. 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'
  8251. tmp_addflag=' $pic_flag'
  8252. ;;
  8253. pgf77* | pgf90* | pgf95* | pgfortran*)
  8254. # Portland Group f77 and f90 compilers
  8255. 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'
  8256. tmp_addflag=' $pic_flag -Mnomain' ;;
  8257. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8258. tmp_addflag=' -i_dynamic' ;;
  8259. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8260. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8261. ifc* | ifort*) # Intel Fortran compiler
  8262. tmp_addflag=' -nofor_main' ;;
  8263. lf95*) # Lahey Fortran 8.1
  8264. whole_archive_flag_spec=
  8265. tmp_sharedflag='--shared' ;;
  8266. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8267. tmp_sharedflag='-qmkshrobj'
  8268. tmp_addflag= ;;
  8269. nvcc*) # Cuda Compiler Driver 2.2
  8270. 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'
  8271. compiler_needs_object=yes
  8272. ;;
  8273. esac
  8274. case `$CC -V 2>&1 | sed 5q` in
  8275. *Sun\ C*) # Sun C 5.9
  8276. 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'
  8277. compiler_needs_object=yes
  8278. tmp_sharedflag='-G' ;;
  8279. *Sun\ F*) # Sun Fortran 8.3
  8280. tmp_sharedflag='-G' ;;
  8281. esac
  8282. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8283. if test "x$supports_anon_versioning" = xyes; then
  8284. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8285. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8286. echo "local: *; };" >> $output_objdir/$libname.ver~
  8287. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8288. fi
  8289. case $cc_basename in
  8290. xlf* | bgf* | bgxlf* | mpixlf*)
  8291. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8292. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8293. hardcode_libdir_flag_spec=
  8294. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8295. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8296. if test "x$supports_anon_versioning" = xyes; then
  8297. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8298. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8299. echo "local: *; };" >> $output_objdir/$libname.ver~
  8300. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8301. fi
  8302. ;;
  8303. esac
  8304. else
  8305. ld_shlibs=no
  8306. fi
  8307. ;;
  8308. netbsd*)
  8309. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8310. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8311. wlarc=
  8312. else
  8313. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8314. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8315. fi
  8316. ;;
  8317. solaris*)
  8318. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8319. ld_shlibs=no
  8320. cat <<_LT_EOF 1>&2
  8321. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8322. *** create shared libraries on Solaris systems. Therefore, libtool
  8323. *** is disabling shared libraries support. We urge you to upgrade GNU
  8324. *** binutils to release 2.9.1 or newer. Another option is to modify
  8325. *** your PATH or compiler configuration so that the native linker is
  8326. *** used, and then restart.
  8327. _LT_EOF
  8328. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8329. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8330. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8331. else
  8332. ld_shlibs=no
  8333. fi
  8334. ;;
  8335. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8336. case `$LD -v 2>&1` in
  8337. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8338. ld_shlibs=no
  8339. cat <<_LT_EOF 1>&2
  8340. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8341. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8342. *** is disabling shared libraries support. We urge you to upgrade GNU
  8343. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8344. *** your PATH or compiler configuration so that the native linker is
  8345. *** used, and then restart.
  8346. _LT_EOF
  8347. ;;
  8348. *)
  8349. # For security reasons, it is highly recommended that you always
  8350. # use absolute paths for naming shared libraries, and exclude the
  8351. # DT_RUNPATH tag from executables and libraries. But doing so
  8352. # requires that you compile everything twice, which is a pain.
  8353. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8354. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8355. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8356. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8357. else
  8358. ld_shlibs=no
  8359. fi
  8360. ;;
  8361. esac
  8362. ;;
  8363. sunos4*)
  8364. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8365. wlarc=
  8366. hardcode_direct=yes
  8367. hardcode_shlibpath_var=no
  8368. ;;
  8369. *)
  8370. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8371. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8372. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8373. else
  8374. ld_shlibs=no
  8375. fi
  8376. ;;
  8377. esac
  8378. if test "$ld_shlibs" = no; then
  8379. runpath_var=
  8380. hardcode_libdir_flag_spec=
  8381. export_dynamic_flag_spec=
  8382. whole_archive_flag_spec=
  8383. fi
  8384. else
  8385. # PORTME fill in a description of your system's linker (not GNU ld)
  8386. case $host_os in
  8387. aix3*)
  8388. allow_undefined_flag=unsupported
  8389. always_export_symbols=yes
  8390. 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'
  8391. # Note: this linker hardcodes the directories in LIBPATH if there
  8392. # are no directories specified by -L.
  8393. hardcode_minus_L=yes
  8394. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8395. # Neither direct hardcoding nor static linking is supported with a
  8396. # broken collect2.
  8397. hardcode_direct=unsupported
  8398. fi
  8399. ;;
  8400. aix[4-9]*)
  8401. if test "$host_cpu" = ia64; then
  8402. # On IA64, the linker does run time linking by default, so we don't
  8403. # have to do anything special.
  8404. aix_use_runtimelinking=no
  8405. exp_sym_flag='-Bexport'
  8406. no_entry_flag=""
  8407. else
  8408. # If we're using GNU nm, then we don't want the "-C" option.
  8409. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8410. # Also, AIX nm treats weak defined symbols like other global
  8411. # defined symbols, whereas GNU nm marks them as "W".
  8412. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8413. 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'
  8414. else
  8415. 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'
  8416. fi
  8417. aix_use_runtimelinking=no
  8418. # Test if we are trying to use run time linking or normal
  8419. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8420. # need to do runtime linking.
  8421. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8422. for ld_flag in $LDFLAGS; do
  8423. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8424. aix_use_runtimelinking=yes
  8425. break
  8426. fi
  8427. done
  8428. ;;
  8429. esac
  8430. exp_sym_flag='-bexport'
  8431. no_entry_flag='-bnoentry'
  8432. fi
  8433. # When large executables or shared objects are built, AIX ld can
  8434. # have problems creating the table of contents. If linking a library
  8435. # or program results in "error TOC overflow" add -mminimal-toc to
  8436. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8437. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8438. archive_cmds=''
  8439. hardcode_direct=yes
  8440. hardcode_direct_absolute=yes
  8441. hardcode_libdir_separator=':'
  8442. link_all_deplibs=yes
  8443. file_list_spec='${wl}-f,'
  8444. if test "$GCC" = yes; then
  8445. case $host_os in aix4.[012]|aix4.[012].*)
  8446. # We only want to do this on AIX 4.2 and lower, the check
  8447. # below for broken collect2 doesn't work under 4.3+
  8448. collect2name=`${CC} -print-prog-name=collect2`
  8449. if test -f "$collect2name" &&
  8450. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8451. then
  8452. # We have reworked collect2
  8453. :
  8454. else
  8455. # We have old collect2
  8456. hardcode_direct=unsupported
  8457. # It fails to find uninstalled libraries when the uninstalled
  8458. # path is not listed in the libpath. Setting hardcode_minus_L
  8459. # to unsupported forces relinking
  8460. hardcode_minus_L=yes
  8461. hardcode_libdir_flag_spec='-L$libdir'
  8462. hardcode_libdir_separator=
  8463. fi
  8464. ;;
  8465. esac
  8466. shared_flag='-shared'
  8467. if test "$aix_use_runtimelinking" = yes; then
  8468. shared_flag="$shared_flag "'${wl}-G'
  8469. fi
  8470. else
  8471. # not using gcc
  8472. if test "$host_cpu" = ia64; then
  8473. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8474. # chokes on -Wl,-G. The following line is correct:
  8475. shared_flag='-G'
  8476. else
  8477. if test "$aix_use_runtimelinking" = yes; then
  8478. shared_flag='${wl}-G'
  8479. else
  8480. shared_flag='${wl}-bM:SRE'
  8481. fi
  8482. fi
  8483. fi
  8484. export_dynamic_flag_spec='${wl}-bexpall'
  8485. # It seems that -bexpall does not export symbols beginning with
  8486. # underscore (_), so it is better to generate a list of symbols to export.
  8487. always_export_symbols=yes
  8488. if test "$aix_use_runtimelinking" = yes; then
  8489. # Warning - without using the other runtime loading flags (-brtl),
  8490. # -berok will link without error, but may produce a broken library.
  8491. allow_undefined_flag='-berok'
  8492. # Determine the default libpath from the value encoded in an
  8493. # empty executable.
  8494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8495. /* end confdefs.h. */
  8496. int
  8497. main ()
  8498. {
  8499. ;
  8500. return 0;
  8501. }
  8502. _ACEOF
  8503. if ac_fn_c_try_link "$LINENO"; then :
  8504. lt_aix_libpath_sed='
  8505. /Import File Strings/,/^$/ {
  8506. /^0/ {
  8507. s/^0 *\(.*\)$/\1/
  8508. p
  8509. }
  8510. }'
  8511. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8512. # Check for a 64-bit object if we didn't find anything.
  8513. if test -z "$aix_libpath"; then
  8514. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8515. fi
  8516. fi
  8517. rm -f core conftest.err conftest.$ac_objext \
  8518. conftest$ac_exeext conftest.$ac_ext
  8519. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8520. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8521. 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"
  8522. else
  8523. if test "$host_cpu" = ia64; then
  8524. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8525. allow_undefined_flag="-z nodefs"
  8526. 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"
  8527. else
  8528. # Determine the default libpath from the value encoded in an
  8529. # empty executable.
  8530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8531. /* end confdefs.h. */
  8532. int
  8533. main ()
  8534. {
  8535. ;
  8536. return 0;
  8537. }
  8538. _ACEOF
  8539. if ac_fn_c_try_link "$LINENO"; then :
  8540. lt_aix_libpath_sed='
  8541. /Import File Strings/,/^$/ {
  8542. /^0/ {
  8543. s/^0 *\(.*\)$/\1/
  8544. p
  8545. }
  8546. }'
  8547. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8548. # Check for a 64-bit object if we didn't find anything.
  8549. if test -z "$aix_libpath"; then
  8550. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8551. fi
  8552. fi
  8553. rm -f core conftest.err conftest.$ac_objext \
  8554. conftest$ac_exeext conftest.$ac_ext
  8555. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8556. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8557. # Warning - without using the other run time loading flags,
  8558. # -berok will link without error, but may produce a broken library.
  8559. no_undefined_flag=' ${wl}-bernotok'
  8560. allow_undefined_flag=' ${wl}-berok'
  8561. if test "$with_gnu_ld" = yes; then
  8562. # We only use this code for GNU lds that support --whole-archive.
  8563. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8564. else
  8565. # Exported symbols can be pulled into shared objects from archives
  8566. whole_archive_flag_spec='$convenience'
  8567. fi
  8568. archive_cmds_need_lc=yes
  8569. # This is similar to how AIX traditionally builds its shared libraries.
  8570. 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'
  8571. fi
  8572. fi
  8573. ;;
  8574. amigaos*)
  8575. case $host_cpu in
  8576. powerpc)
  8577. # see comment about AmigaOS4 .so support
  8578. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8579. archive_expsym_cmds=''
  8580. ;;
  8581. m68k)
  8582. 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)'
  8583. hardcode_libdir_flag_spec='-L$libdir'
  8584. hardcode_minus_L=yes
  8585. ;;
  8586. esac
  8587. ;;
  8588. bsdi[45]*)
  8589. export_dynamic_flag_spec=-rdynamic
  8590. ;;
  8591. cygwin* | mingw* | pw32* | cegcc*)
  8592. # When not using gcc, we currently assume that we are using
  8593. # Microsoft Visual C++.
  8594. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8595. # no search path for DLLs.
  8596. hardcode_libdir_flag_spec=' '
  8597. allow_undefined_flag=unsupported
  8598. # Tell ltmain to make .lib files, not .a files.
  8599. libext=lib
  8600. # Tell ltmain to make .dll files, not .so files.
  8601. shrext_cmds=".dll"
  8602. # FIXME: Setting linknames here is a bad hack.
  8603. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8604. # The linker will automatically build a .lib file if we build a DLL.
  8605. old_archive_from_new_cmds='true'
  8606. # FIXME: Should let the user specify the lib program.
  8607. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8608. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8609. enable_shared_with_static_runtimes=yes
  8610. ;;
  8611. darwin* | rhapsody*)
  8612. archive_cmds_need_lc=no
  8613. hardcode_direct=no
  8614. hardcode_automatic=yes
  8615. hardcode_shlibpath_var=unsupported
  8616. if test "$lt_cv_ld_force_load" = "yes"; then
  8617. 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\"`'
  8618. else
  8619. whole_archive_flag_spec=''
  8620. fi
  8621. link_all_deplibs=yes
  8622. allow_undefined_flag="$_lt_dar_allow_undefined"
  8623. case $cc_basename in
  8624. ifort*) _lt_dar_can_shared=yes ;;
  8625. *) _lt_dar_can_shared=$GCC ;;
  8626. esac
  8627. if test "$_lt_dar_can_shared" = "yes"; then
  8628. output_verbose_link_cmd=func_echo_all
  8629. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8630. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8631. 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}"
  8632. 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}"
  8633. else
  8634. ld_shlibs=no
  8635. fi
  8636. ;;
  8637. dgux*)
  8638. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8639. hardcode_libdir_flag_spec='-L$libdir'
  8640. hardcode_shlibpath_var=no
  8641. ;;
  8642. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8643. # support. Future versions do this automatically, but an explicit c++rt0.o
  8644. # does not break anything, and helps significantly (at the cost of a little
  8645. # extra space).
  8646. freebsd2.2*)
  8647. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8648. hardcode_libdir_flag_spec='-R$libdir'
  8649. hardcode_direct=yes
  8650. hardcode_shlibpath_var=no
  8651. ;;
  8652. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8653. freebsd2.*)
  8654. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8655. hardcode_direct=yes
  8656. hardcode_minus_L=yes
  8657. hardcode_shlibpath_var=no
  8658. ;;
  8659. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8660. freebsd* | dragonfly*)
  8661. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8662. hardcode_libdir_flag_spec='-R$libdir'
  8663. hardcode_direct=yes
  8664. hardcode_shlibpath_var=no
  8665. ;;
  8666. hpux9*)
  8667. if test "$GCC" = yes; then
  8668. 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'
  8669. else
  8670. 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'
  8671. fi
  8672. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8673. hardcode_libdir_separator=:
  8674. hardcode_direct=yes
  8675. # hardcode_minus_L: Not really in the search PATH,
  8676. # but as the default location of the library.
  8677. hardcode_minus_L=yes
  8678. export_dynamic_flag_spec='${wl}-E'
  8679. ;;
  8680. hpux10*)
  8681. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8682. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8683. else
  8684. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8685. fi
  8686. if test "$with_gnu_ld" = no; then
  8687. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8688. hardcode_libdir_flag_spec_ld='+b $libdir'
  8689. hardcode_libdir_separator=:
  8690. hardcode_direct=yes
  8691. hardcode_direct_absolute=yes
  8692. export_dynamic_flag_spec='${wl}-E'
  8693. # hardcode_minus_L: Not really in the search PATH,
  8694. # but as the default location of the library.
  8695. hardcode_minus_L=yes
  8696. fi
  8697. ;;
  8698. hpux11*)
  8699. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8700. case $host_cpu in
  8701. hppa*64*)
  8702. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8703. ;;
  8704. ia64*)
  8705. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8706. ;;
  8707. *)
  8708. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8709. ;;
  8710. esac
  8711. else
  8712. case $host_cpu in
  8713. hppa*64*)
  8714. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8715. ;;
  8716. ia64*)
  8717. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8718. ;;
  8719. *)
  8720. # Older versions of the 11.00 compiler do not understand -b yet
  8721. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8723. $as_echo_n "checking if $CC understands -b... " >&6; }
  8724. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8725. $as_echo_n "(cached) " >&6
  8726. else
  8727. lt_cv_prog_compiler__b=no
  8728. save_LDFLAGS="$LDFLAGS"
  8729. LDFLAGS="$LDFLAGS -b"
  8730. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8731. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8732. # The linker can only warn and ignore the option if not recognized
  8733. # So say no if there are warnings
  8734. if test -s conftest.err; then
  8735. # Append any errors to the config.log.
  8736. cat conftest.err 1>&5
  8737. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8738. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8739. if diff conftest.exp conftest.er2 >/dev/null; then
  8740. lt_cv_prog_compiler__b=yes
  8741. fi
  8742. else
  8743. lt_cv_prog_compiler__b=yes
  8744. fi
  8745. fi
  8746. $RM -r conftest*
  8747. LDFLAGS="$save_LDFLAGS"
  8748. fi
  8749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8750. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8751. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8752. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8753. else
  8754. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8755. fi
  8756. ;;
  8757. esac
  8758. fi
  8759. if test "$with_gnu_ld" = no; then
  8760. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8761. hardcode_libdir_separator=:
  8762. case $host_cpu in
  8763. hppa*64*|ia64*)
  8764. hardcode_direct=no
  8765. hardcode_shlibpath_var=no
  8766. ;;
  8767. *)
  8768. hardcode_direct=yes
  8769. hardcode_direct_absolute=yes
  8770. export_dynamic_flag_spec='${wl}-E'
  8771. # hardcode_minus_L: Not really in the search PATH,
  8772. # but as the default location of the library.
  8773. hardcode_minus_L=yes
  8774. ;;
  8775. esac
  8776. fi
  8777. ;;
  8778. irix5* | irix6* | nonstopux*)
  8779. if test "$GCC" = yes; then
  8780. 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'
  8781. # Try to use the -exported_symbol ld option, if it does not
  8782. # work, assume that -exports_file does not work either and
  8783. # implicitly export all symbols.
  8784. save_LDFLAGS="$LDFLAGS"
  8785. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8787. /* end confdefs.h. */
  8788. int foo(void) {}
  8789. _ACEOF
  8790. if ac_fn_c_try_link "$LINENO"; then :
  8791. 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'
  8792. fi
  8793. rm -f core conftest.err conftest.$ac_objext \
  8794. conftest$ac_exeext conftest.$ac_ext
  8795. LDFLAGS="$save_LDFLAGS"
  8796. else
  8797. 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'
  8798. 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'
  8799. fi
  8800. archive_cmds_need_lc='no'
  8801. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8802. hardcode_libdir_separator=:
  8803. inherit_rpath=yes
  8804. link_all_deplibs=yes
  8805. ;;
  8806. netbsd*)
  8807. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8808. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8809. else
  8810. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8811. fi
  8812. hardcode_libdir_flag_spec='-R$libdir'
  8813. hardcode_direct=yes
  8814. hardcode_shlibpath_var=no
  8815. ;;
  8816. newsos6)
  8817. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8818. hardcode_direct=yes
  8819. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8820. hardcode_libdir_separator=:
  8821. hardcode_shlibpath_var=no
  8822. ;;
  8823. *nto* | *qnx*)
  8824. ;;
  8825. openbsd*)
  8826. if test -f /usr/libexec/ld.so; then
  8827. hardcode_direct=yes
  8828. hardcode_shlibpath_var=no
  8829. hardcode_direct_absolute=yes
  8830. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8831. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8832. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8833. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8834. export_dynamic_flag_spec='${wl}-E'
  8835. else
  8836. case $host_os in
  8837. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8838. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8839. hardcode_libdir_flag_spec='-R$libdir'
  8840. ;;
  8841. *)
  8842. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8843. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8844. ;;
  8845. esac
  8846. fi
  8847. else
  8848. ld_shlibs=no
  8849. fi
  8850. ;;
  8851. os2*)
  8852. hardcode_libdir_flag_spec='-L$libdir'
  8853. hardcode_minus_L=yes
  8854. allow_undefined_flag=unsupported
  8855. 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'
  8856. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8857. ;;
  8858. osf3*)
  8859. if test "$GCC" = yes; then
  8860. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8861. 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'
  8862. else
  8863. allow_undefined_flag=' -expect_unresolved \*'
  8864. 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'
  8865. fi
  8866. archive_cmds_need_lc='no'
  8867. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8868. hardcode_libdir_separator=:
  8869. ;;
  8870. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8871. if test "$GCC" = yes; then
  8872. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8873. 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'
  8874. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8875. else
  8876. allow_undefined_flag=' -expect_unresolved \*'
  8877. 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'
  8878. 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~
  8879. $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'
  8880. # Both c and cxx compiler support -rpath directly
  8881. hardcode_libdir_flag_spec='-rpath $libdir'
  8882. fi
  8883. archive_cmds_need_lc='no'
  8884. hardcode_libdir_separator=:
  8885. ;;
  8886. solaris*)
  8887. no_undefined_flag=' -z defs'
  8888. if test "$GCC" = yes; then
  8889. wlarc='${wl}'
  8890. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8891. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8892. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8893. else
  8894. case `$CC -V 2>&1` in
  8895. *"Compilers 5.0"*)
  8896. wlarc=''
  8897. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8898. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8899. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8900. ;;
  8901. *)
  8902. wlarc='${wl}'
  8903. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8904. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8905. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8906. ;;
  8907. esac
  8908. fi
  8909. hardcode_libdir_flag_spec='-R$libdir'
  8910. hardcode_shlibpath_var=no
  8911. case $host_os in
  8912. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8913. *)
  8914. # The compiler driver will combine and reorder linker options,
  8915. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8916. # but is careful enough not to reorder.
  8917. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8918. if test "$GCC" = yes; then
  8919. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8920. else
  8921. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8922. fi
  8923. ;;
  8924. esac
  8925. link_all_deplibs=yes
  8926. ;;
  8927. sunos4*)
  8928. if test "x$host_vendor" = xsequent; then
  8929. # Use $CC to link under sequent, because it throws in some extra .o
  8930. # files that make .init and .fini sections work.
  8931. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8932. else
  8933. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8934. fi
  8935. hardcode_libdir_flag_spec='-L$libdir'
  8936. hardcode_direct=yes
  8937. hardcode_minus_L=yes
  8938. hardcode_shlibpath_var=no
  8939. ;;
  8940. sysv4)
  8941. case $host_vendor in
  8942. sni)
  8943. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8944. hardcode_direct=yes # is this really true???
  8945. ;;
  8946. siemens)
  8947. ## LD is ld it makes a PLAMLIB
  8948. ## CC just makes a GrossModule.
  8949. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8950. reload_cmds='$CC -r -o $output$reload_objs'
  8951. hardcode_direct=no
  8952. ;;
  8953. motorola)
  8954. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8955. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8956. ;;
  8957. esac
  8958. runpath_var='LD_RUN_PATH'
  8959. hardcode_shlibpath_var=no
  8960. ;;
  8961. sysv4.3*)
  8962. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8963. hardcode_shlibpath_var=no
  8964. export_dynamic_flag_spec='-Bexport'
  8965. ;;
  8966. sysv4*MP*)
  8967. if test -d /usr/nec; then
  8968. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8969. hardcode_shlibpath_var=no
  8970. runpath_var=LD_RUN_PATH
  8971. hardcode_runpath_var=yes
  8972. ld_shlibs=yes
  8973. fi
  8974. ;;
  8975. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8976. no_undefined_flag='${wl}-z,text'
  8977. archive_cmds_need_lc=no
  8978. hardcode_shlibpath_var=no
  8979. runpath_var='LD_RUN_PATH'
  8980. if test "$GCC" = yes; then
  8981. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8982. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8983. else
  8984. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8985. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8986. fi
  8987. ;;
  8988. sysv5* | sco3.2v5* | sco5v6*)
  8989. # Note: We can NOT use -z defs as we might desire, because we do not
  8990. # link with -lc, and that would cause any symbols used from libc to
  8991. # always be unresolved, which means just about no library would
  8992. # ever link correctly. If we're not using GNU ld we use -z text
  8993. # though, which does catch some bad symbols but isn't as heavy-handed
  8994. # as -z defs.
  8995. no_undefined_flag='${wl}-z,text'
  8996. allow_undefined_flag='${wl}-z,nodefs'
  8997. archive_cmds_need_lc=no
  8998. hardcode_shlibpath_var=no
  8999. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9000. hardcode_libdir_separator=':'
  9001. link_all_deplibs=yes
  9002. export_dynamic_flag_spec='${wl}-Bexport'
  9003. runpath_var='LD_RUN_PATH'
  9004. if test "$GCC" = yes; then
  9005. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9006. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9007. else
  9008. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9009. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9010. fi
  9011. ;;
  9012. uts4*)
  9013. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9014. hardcode_libdir_flag_spec='-L$libdir'
  9015. hardcode_shlibpath_var=no
  9016. ;;
  9017. *)
  9018. ld_shlibs=no
  9019. ;;
  9020. esac
  9021. if test x$host_vendor = xsni; then
  9022. case $host in
  9023. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9024. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9025. ;;
  9026. esac
  9027. fi
  9028. fi
  9029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9030. $as_echo "$ld_shlibs" >&6; }
  9031. test "$ld_shlibs" = no && can_build_shared=no
  9032. with_gnu_ld=$with_gnu_ld
  9033. #
  9034. # Do we need to explicitly link libc?
  9035. #
  9036. case "x$archive_cmds_need_lc" in
  9037. x|xyes)
  9038. # Assume -lc should be added
  9039. archive_cmds_need_lc=yes
  9040. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9041. case $archive_cmds in
  9042. *'~'*)
  9043. # FIXME: we may have to deal with multi-command sequences.
  9044. ;;
  9045. '$CC '*)
  9046. # Test whether the compiler implicitly links with -lc since on some
  9047. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9048. # to ld, don't add -lc before -lgcc.
  9049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9050. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9051. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  9052. $as_echo_n "(cached) " >&6
  9053. else
  9054. $RM conftest*
  9055. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9056. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9057. (eval $ac_compile) 2>&5
  9058. ac_status=$?
  9059. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9060. test $ac_status = 0; } 2>conftest.err; then
  9061. soname=conftest
  9062. lib=conftest
  9063. libobjs=conftest.$ac_objext
  9064. deplibs=
  9065. wl=$lt_prog_compiler_wl
  9066. pic_flag=$lt_prog_compiler_pic
  9067. compiler_flags=-v
  9068. linker_flags=-v
  9069. verstring=
  9070. output_objdir=.
  9071. libname=conftest
  9072. lt_save_allow_undefined_flag=$allow_undefined_flag
  9073. allow_undefined_flag=
  9074. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9075. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9076. ac_status=$?
  9077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9078. test $ac_status = 0; }
  9079. then
  9080. lt_cv_archive_cmds_need_lc=no
  9081. else
  9082. lt_cv_archive_cmds_need_lc=yes
  9083. fi
  9084. allow_undefined_flag=$lt_save_allow_undefined_flag
  9085. else
  9086. cat conftest.err 1>&5
  9087. fi
  9088. $RM conftest*
  9089. fi
  9090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9091. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9092. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9093. ;;
  9094. esac
  9095. fi
  9096. ;;
  9097. esac
  9098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9099. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9100. if test "$GCC" = yes; then
  9101. case $host_os in
  9102. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9103. *) lt_awk_arg="/^libraries:/" ;;
  9104. esac
  9105. case $host_os in
  9106. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9107. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9108. esac
  9109. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9110. case $lt_search_path_spec in
  9111. *\;*)
  9112. # if the path contains ";" then we assume it to be the separator
  9113. # otherwise default to the standard path separator (i.e. ":") - it is
  9114. # assumed that no part of a normal pathname contains ";" but that should
  9115. # okay in the real world where ";" in dirpaths is itself problematic.
  9116. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9117. ;;
  9118. *)
  9119. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9120. ;;
  9121. esac
  9122. # Ok, now we have the path, separated by spaces, we can step through it
  9123. # and add multilib dir if necessary.
  9124. lt_tmp_lt_search_path_spec=
  9125. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9126. for lt_sys_path in $lt_search_path_spec; do
  9127. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9128. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9129. else
  9130. test -d "$lt_sys_path" && \
  9131. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9132. fi
  9133. done
  9134. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9135. BEGIN {RS=" "; FS="/|\n";} {
  9136. lt_foo="";
  9137. lt_count=0;
  9138. for (lt_i = NF; lt_i > 0; lt_i--) {
  9139. if ($lt_i != "" && $lt_i != ".") {
  9140. if ($lt_i == "..") {
  9141. lt_count++;
  9142. } else {
  9143. if (lt_count == 0) {
  9144. lt_foo="/" $lt_i lt_foo;
  9145. } else {
  9146. lt_count--;
  9147. }
  9148. }
  9149. }
  9150. }
  9151. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9152. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9153. }'`
  9154. # AWK program above erroneously prepends '/' to C:/dos/paths
  9155. # for these hosts.
  9156. case $host_os in
  9157. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9158. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9159. esac
  9160. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9161. else
  9162. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9163. fi
  9164. library_names_spec=
  9165. libname_spec='lib$name'
  9166. soname_spec=
  9167. shrext_cmds=".so"
  9168. postinstall_cmds=
  9169. postuninstall_cmds=
  9170. finish_cmds=
  9171. finish_eval=
  9172. shlibpath_var=
  9173. shlibpath_overrides_runpath=unknown
  9174. version_type=none
  9175. dynamic_linker="$host_os ld.so"
  9176. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9177. need_lib_prefix=unknown
  9178. hardcode_into_libs=no
  9179. # when you set need_version to no, make sure it does not cause -set_version
  9180. # flags to be left without arguments
  9181. need_version=unknown
  9182. case $host_os in
  9183. aix3*)
  9184. version_type=linux
  9185. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9186. shlibpath_var=LIBPATH
  9187. # AIX 3 has no versioning support, so we append a major version to the name.
  9188. soname_spec='${libname}${release}${shared_ext}$major'
  9189. ;;
  9190. aix[4-9]*)
  9191. version_type=linux
  9192. need_lib_prefix=no
  9193. need_version=no
  9194. hardcode_into_libs=yes
  9195. if test "$host_cpu" = ia64; then
  9196. # AIX 5 supports IA64
  9197. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9198. shlibpath_var=LD_LIBRARY_PATH
  9199. else
  9200. # With GCC up to 2.95.x, collect2 would create an import file
  9201. # for dependence libraries. The import file would start with
  9202. # the line `#! .'. This would cause the generated library to
  9203. # depend on `.', always an invalid library. This was fixed in
  9204. # development snapshots of GCC prior to 3.0.
  9205. case $host_os in
  9206. aix4 | aix4.[01] | aix4.[01].*)
  9207. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9208. echo ' yes '
  9209. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9210. :
  9211. else
  9212. can_build_shared=no
  9213. fi
  9214. ;;
  9215. esac
  9216. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9217. # soname into executable. Probably we can add versioning support to
  9218. # collect2, so additional links can be useful in future.
  9219. if test "$aix_use_runtimelinking" = yes; then
  9220. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9221. # instead of lib<name>.a to let people know that these are not
  9222. # typical AIX shared libraries.
  9223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9224. else
  9225. # We preserve .a as extension for shared libraries through AIX4.2
  9226. # and later when we are not doing run time linking.
  9227. library_names_spec='${libname}${release}.a $libname.a'
  9228. soname_spec='${libname}${release}${shared_ext}$major'
  9229. fi
  9230. shlibpath_var=LIBPATH
  9231. fi
  9232. ;;
  9233. amigaos*)
  9234. case $host_cpu in
  9235. powerpc)
  9236. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9237. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9239. ;;
  9240. m68k)
  9241. library_names_spec='$libname.ixlibrary $libname.a'
  9242. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9243. 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'
  9244. ;;
  9245. esac
  9246. ;;
  9247. beos*)
  9248. library_names_spec='${libname}${shared_ext}'
  9249. dynamic_linker="$host_os ld.so"
  9250. shlibpath_var=LIBRARY_PATH
  9251. ;;
  9252. bsdi[45]*)
  9253. version_type=linux
  9254. need_version=no
  9255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9256. soname_spec='${libname}${release}${shared_ext}$major'
  9257. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9258. shlibpath_var=LD_LIBRARY_PATH
  9259. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9260. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9261. # the default ld.so.conf also contains /usr/contrib/lib and
  9262. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9263. # libtool to hard-code these into programs
  9264. ;;
  9265. cygwin* | mingw* | pw32* | cegcc*)
  9266. version_type=windows
  9267. shrext_cmds=".dll"
  9268. need_version=no
  9269. need_lib_prefix=no
  9270. case $GCC,$host_os in
  9271. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9272. library_names_spec='$libname.dll.a'
  9273. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9274. postinstall_cmds='base_file=`basename \${file}`~
  9275. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9276. dldir=$destdir/`dirname \$dlpath`~
  9277. test -d \$dldir || mkdir -p \$dldir~
  9278. $install_prog $dir/$dlname \$dldir/$dlname~
  9279. chmod a+x \$dldir/$dlname~
  9280. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9281. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9282. fi'
  9283. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9284. dlpath=$dir/\$dldll~
  9285. $RM \$dlpath'
  9286. shlibpath_overrides_runpath=yes
  9287. case $host_os in
  9288. cygwin*)
  9289. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9290. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9291. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9292. ;;
  9293. mingw* | cegcc*)
  9294. # MinGW DLLs use traditional 'lib' prefix
  9295. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9296. ;;
  9297. pw32*)
  9298. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9299. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9300. ;;
  9301. esac
  9302. ;;
  9303. *)
  9304. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9305. ;;
  9306. esac
  9307. dynamic_linker='Win32 ld.exe'
  9308. # FIXME: first we should search . and the directory the executable is in
  9309. shlibpath_var=PATH
  9310. ;;
  9311. darwin* | rhapsody*)
  9312. dynamic_linker="$host_os dyld"
  9313. version_type=darwin
  9314. need_lib_prefix=no
  9315. need_version=no
  9316. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9317. soname_spec='${libname}${release}${major}$shared_ext'
  9318. shlibpath_overrides_runpath=yes
  9319. shlibpath_var=DYLD_LIBRARY_PATH
  9320. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9321. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9322. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9323. ;;
  9324. dgux*)
  9325. version_type=linux
  9326. need_lib_prefix=no
  9327. need_version=no
  9328. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9329. soname_spec='${libname}${release}${shared_ext}$major'
  9330. shlibpath_var=LD_LIBRARY_PATH
  9331. ;;
  9332. freebsd* | dragonfly*)
  9333. # DragonFly does not have aout. When/if they implement a new
  9334. # versioning mechanism, adjust this.
  9335. if test -x /usr/bin/objformat; then
  9336. objformat=`/usr/bin/objformat`
  9337. else
  9338. case $host_os in
  9339. freebsd[23].*) objformat=aout ;;
  9340. *) objformat=elf ;;
  9341. esac
  9342. fi
  9343. version_type=freebsd-$objformat
  9344. case $version_type in
  9345. freebsd-elf*)
  9346. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9347. need_version=no
  9348. need_lib_prefix=no
  9349. ;;
  9350. freebsd-*)
  9351. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9352. need_version=yes
  9353. ;;
  9354. esac
  9355. shlibpath_var=LD_LIBRARY_PATH
  9356. case $host_os in
  9357. freebsd2.*)
  9358. shlibpath_overrides_runpath=yes
  9359. ;;
  9360. freebsd3.[01]* | freebsdelf3.[01]*)
  9361. shlibpath_overrides_runpath=yes
  9362. hardcode_into_libs=yes
  9363. ;;
  9364. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9365. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9366. shlibpath_overrides_runpath=no
  9367. hardcode_into_libs=yes
  9368. ;;
  9369. *) # from 4.6 on, and DragonFly
  9370. shlibpath_overrides_runpath=yes
  9371. hardcode_into_libs=yes
  9372. ;;
  9373. esac
  9374. ;;
  9375. gnu*)
  9376. version_type=linux
  9377. need_lib_prefix=no
  9378. need_version=no
  9379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9380. soname_spec='${libname}${release}${shared_ext}$major'
  9381. shlibpath_var=LD_LIBRARY_PATH
  9382. hardcode_into_libs=yes
  9383. ;;
  9384. haiku*)
  9385. version_type=linux
  9386. need_lib_prefix=no
  9387. need_version=no
  9388. dynamic_linker="$host_os runtime_loader"
  9389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9390. soname_spec='${libname}${release}${shared_ext}$major'
  9391. shlibpath_var=LIBRARY_PATH
  9392. shlibpath_overrides_runpath=yes
  9393. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9394. hardcode_into_libs=yes
  9395. ;;
  9396. hpux9* | hpux10* | hpux11*)
  9397. # Give a soname corresponding to the major version so that dld.sl refuses to
  9398. # link against other versions.
  9399. version_type=sunos
  9400. need_lib_prefix=no
  9401. need_version=no
  9402. case $host_cpu in
  9403. ia64*)
  9404. shrext_cmds='.so'
  9405. hardcode_into_libs=yes
  9406. dynamic_linker="$host_os dld.so"
  9407. shlibpath_var=LD_LIBRARY_PATH
  9408. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9409. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9410. soname_spec='${libname}${release}${shared_ext}$major'
  9411. if test "X$HPUX_IA64_MODE" = X32; then
  9412. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9413. else
  9414. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9415. fi
  9416. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9417. ;;
  9418. hppa*64*)
  9419. shrext_cmds='.sl'
  9420. hardcode_into_libs=yes
  9421. dynamic_linker="$host_os dld.sl"
  9422. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9423. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9424. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9425. soname_spec='${libname}${release}${shared_ext}$major'
  9426. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9427. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9428. ;;
  9429. *)
  9430. shrext_cmds='.sl'
  9431. dynamic_linker="$host_os dld.sl"
  9432. shlibpath_var=SHLIB_PATH
  9433. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9435. soname_spec='${libname}${release}${shared_ext}$major'
  9436. ;;
  9437. esac
  9438. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9439. postinstall_cmds='chmod 555 $lib'
  9440. # or fails outright, so override atomically:
  9441. install_override_mode=555
  9442. ;;
  9443. interix[3-9]*)
  9444. version_type=linux
  9445. need_lib_prefix=no
  9446. need_version=no
  9447. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9448. soname_spec='${libname}${release}${shared_ext}$major'
  9449. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9450. shlibpath_var=LD_LIBRARY_PATH
  9451. shlibpath_overrides_runpath=no
  9452. hardcode_into_libs=yes
  9453. ;;
  9454. irix5* | irix6* | nonstopux*)
  9455. case $host_os in
  9456. nonstopux*) version_type=nonstopux ;;
  9457. *)
  9458. if test "$lt_cv_prog_gnu_ld" = yes; then
  9459. version_type=linux
  9460. else
  9461. version_type=irix
  9462. fi ;;
  9463. esac
  9464. need_lib_prefix=no
  9465. need_version=no
  9466. soname_spec='${libname}${release}${shared_ext}$major'
  9467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9468. case $host_os in
  9469. irix5* | nonstopux*)
  9470. libsuff= shlibsuff=
  9471. ;;
  9472. *)
  9473. case $LD in # libtool.m4 will add one of these switches to LD
  9474. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9475. libsuff= shlibsuff= libmagic=32-bit;;
  9476. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9477. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9478. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9479. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9480. *) libsuff= shlibsuff= libmagic=never-match;;
  9481. esac
  9482. ;;
  9483. esac
  9484. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9485. shlibpath_overrides_runpath=no
  9486. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9487. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9488. hardcode_into_libs=yes
  9489. ;;
  9490. # No shared lib support for Linux oldld, aout, or coff.
  9491. linux*oldld* | linux*aout* | linux*coff*)
  9492. dynamic_linker=no
  9493. ;;
  9494. # This must be Linux ELF.
  9495. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9496. version_type=linux
  9497. need_lib_prefix=no
  9498. need_version=no
  9499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9500. soname_spec='${libname}${release}${shared_ext}$major'
  9501. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9502. shlibpath_var=LD_LIBRARY_PATH
  9503. shlibpath_overrides_runpath=no
  9504. # Some binutils ld are patched to set DT_RUNPATH
  9505. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9506. $as_echo_n "(cached) " >&6
  9507. else
  9508. lt_cv_shlibpath_overrides_runpath=no
  9509. save_LDFLAGS=$LDFLAGS
  9510. save_libdir=$libdir
  9511. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9512. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9514. /* end confdefs.h. */
  9515. int
  9516. main ()
  9517. {
  9518. ;
  9519. return 0;
  9520. }
  9521. _ACEOF
  9522. if ac_fn_c_try_link "$LINENO"; then :
  9523. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9524. lt_cv_shlibpath_overrides_runpath=yes
  9525. fi
  9526. fi
  9527. rm -f core conftest.err conftest.$ac_objext \
  9528. conftest$ac_exeext conftest.$ac_ext
  9529. LDFLAGS=$save_LDFLAGS
  9530. libdir=$save_libdir
  9531. fi
  9532. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9533. # This implies no fast_install, which is unacceptable.
  9534. # Some rework will be needed to allow for fast_install
  9535. # before this can be enabled.
  9536. hardcode_into_libs=yes
  9537. # Append ld.so.conf contents to the search path
  9538. if test -f /etc/ld.so.conf; then
  9539. 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' ' '`
  9540. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9541. fi
  9542. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9543. # powerpc, because MkLinux only supported shared libraries with the
  9544. # GNU dynamic linker. Since this was broken with cross compilers,
  9545. # most powerpc-linux boxes support dynamic linking these days and
  9546. # people can always --disable-shared, the test was removed, and we
  9547. # assume the GNU/Linux dynamic linker is in use.
  9548. dynamic_linker='GNU/Linux ld.so'
  9549. ;;
  9550. netbsd*)
  9551. version_type=sunos
  9552. need_lib_prefix=no
  9553. need_version=no
  9554. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9556. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9557. dynamic_linker='NetBSD (a.out) ld.so'
  9558. else
  9559. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9560. soname_spec='${libname}${release}${shared_ext}$major'
  9561. dynamic_linker='NetBSD ld.elf_so'
  9562. fi
  9563. shlibpath_var=LD_LIBRARY_PATH
  9564. shlibpath_overrides_runpath=yes
  9565. hardcode_into_libs=yes
  9566. ;;
  9567. newsos6)
  9568. version_type=linux
  9569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9570. shlibpath_var=LD_LIBRARY_PATH
  9571. shlibpath_overrides_runpath=yes
  9572. ;;
  9573. *nto* | *qnx*)
  9574. version_type=qnx
  9575. need_lib_prefix=no
  9576. need_version=no
  9577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9578. soname_spec='${libname}${release}${shared_ext}$major'
  9579. shlibpath_var=LD_LIBRARY_PATH
  9580. shlibpath_overrides_runpath=no
  9581. hardcode_into_libs=yes
  9582. dynamic_linker='ldqnx.so'
  9583. ;;
  9584. openbsd*)
  9585. version_type=sunos
  9586. sys_lib_dlsearch_path_spec="/usr/lib"
  9587. need_lib_prefix=no
  9588. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9589. case $host_os in
  9590. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9591. *) need_version=no ;;
  9592. esac
  9593. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9594. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9595. shlibpath_var=LD_LIBRARY_PATH
  9596. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9597. case $host_os in
  9598. openbsd2.[89] | openbsd2.[89].*)
  9599. shlibpath_overrides_runpath=no
  9600. ;;
  9601. *)
  9602. shlibpath_overrides_runpath=yes
  9603. ;;
  9604. esac
  9605. else
  9606. shlibpath_overrides_runpath=yes
  9607. fi
  9608. ;;
  9609. os2*)
  9610. libname_spec='$name'
  9611. shrext_cmds=".dll"
  9612. need_lib_prefix=no
  9613. library_names_spec='$libname${shared_ext} $libname.a'
  9614. dynamic_linker='OS/2 ld.exe'
  9615. shlibpath_var=LIBPATH
  9616. ;;
  9617. osf3* | osf4* | osf5*)
  9618. version_type=osf
  9619. need_lib_prefix=no
  9620. need_version=no
  9621. soname_spec='${libname}${release}${shared_ext}$major'
  9622. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9623. shlibpath_var=LD_LIBRARY_PATH
  9624. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9625. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9626. ;;
  9627. rdos*)
  9628. dynamic_linker=no
  9629. ;;
  9630. solaris*)
  9631. version_type=linux
  9632. need_lib_prefix=no
  9633. need_version=no
  9634. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9635. soname_spec='${libname}${release}${shared_ext}$major'
  9636. shlibpath_var=LD_LIBRARY_PATH
  9637. shlibpath_overrides_runpath=yes
  9638. hardcode_into_libs=yes
  9639. # ldd complains unless libraries are executable
  9640. postinstall_cmds='chmod +x $lib'
  9641. ;;
  9642. sunos4*)
  9643. version_type=sunos
  9644. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9645. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9646. shlibpath_var=LD_LIBRARY_PATH
  9647. shlibpath_overrides_runpath=yes
  9648. if test "$with_gnu_ld" = yes; then
  9649. need_lib_prefix=no
  9650. fi
  9651. need_version=yes
  9652. ;;
  9653. sysv4 | sysv4.3*)
  9654. version_type=linux
  9655. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9656. soname_spec='${libname}${release}${shared_ext}$major'
  9657. shlibpath_var=LD_LIBRARY_PATH
  9658. case $host_vendor in
  9659. sni)
  9660. shlibpath_overrides_runpath=no
  9661. need_lib_prefix=no
  9662. runpath_var=LD_RUN_PATH
  9663. ;;
  9664. siemens)
  9665. need_lib_prefix=no
  9666. ;;
  9667. motorola)
  9668. need_lib_prefix=no
  9669. need_version=no
  9670. shlibpath_overrides_runpath=no
  9671. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9672. ;;
  9673. esac
  9674. ;;
  9675. sysv4*MP*)
  9676. if test -d /usr/nec ;then
  9677. version_type=linux
  9678. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9679. soname_spec='$libname${shared_ext}.$major'
  9680. shlibpath_var=LD_LIBRARY_PATH
  9681. fi
  9682. ;;
  9683. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9684. version_type=freebsd-elf
  9685. need_lib_prefix=no
  9686. need_version=no
  9687. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9688. soname_spec='${libname}${release}${shared_ext}$major'
  9689. shlibpath_var=LD_LIBRARY_PATH
  9690. shlibpath_overrides_runpath=yes
  9691. hardcode_into_libs=yes
  9692. if test "$with_gnu_ld" = yes; then
  9693. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9694. else
  9695. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9696. case $host_os in
  9697. sco3.2v5*)
  9698. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9699. ;;
  9700. esac
  9701. fi
  9702. sys_lib_dlsearch_path_spec='/usr/lib'
  9703. ;;
  9704. tpf*)
  9705. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9706. version_type=linux
  9707. need_lib_prefix=no
  9708. need_version=no
  9709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9710. shlibpath_var=LD_LIBRARY_PATH
  9711. shlibpath_overrides_runpath=no
  9712. hardcode_into_libs=yes
  9713. ;;
  9714. uts4*)
  9715. version_type=linux
  9716. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9717. soname_spec='${libname}${release}${shared_ext}$major'
  9718. shlibpath_var=LD_LIBRARY_PATH
  9719. ;;
  9720. *)
  9721. dynamic_linker=no
  9722. ;;
  9723. esac
  9724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9725. $as_echo "$dynamic_linker" >&6; }
  9726. test "$dynamic_linker" = no && can_build_shared=no
  9727. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9728. if test "$GCC" = yes; then
  9729. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9730. fi
  9731. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9732. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9733. fi
  9734. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9735. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9736. fi
  9737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9738. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9739. hardcode_action=
  9740. if test -n "$hardcode_libdir_flag_spec" ||
  9741. test -n "$runpath_var" ||
  9742. test "X$hardcode_automatic" = "Xyes" ; then
  9743. # We can hardcode non-existent directories.
  9744. if test "$hardcode_direct" != no &&
  9745. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9746. # have to relink, otherwise we might link with an installed library
  9747. # when we should be linking with a yet-to-be-installed one
  9748. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9749. test "$hardcode_minus_L" != no; then
  9750. # Linking always hardcodes the temporary library directory.
  9751. hardcode_action=relink
  9752. else
  9753. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9754. hardcode_action=immediate
  9755. fi
  9756. else
  9757. # We cannot hardcode anything, or else we can only hardcode existing
  9758. # directories.
  9759. hardcode_action=unsupported
  9760. fi
  9761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9762. $as_echo "$hardcode_action" >&6; }
  9763. if test "$hardcode_action" = relink ||
  9764. test "$inherit_rpath" = yes; then
  9765. # Fast installation is not supported
  9766. enable_fast_install=no
  9767. elif test "$shlibpath_overrides_runpath" = yes ||
  9768. test "$enable_shared" = no; then
  9769. # Fast installation is not necessary
  9770. enable_fast_install=needless
  9771. fi
  9772. if test "x$enable_dlopen" != xyes; then
  9773. enable_dlopen=unknown
  9774. enable_dlopen_self=unknown
  9775. enable_dlopen_self_static=unknown
  9776. else
  9777. lt_cv_dlopen=no
  9778. lt_cv_dlopen_libs=
  9779. case $host_os in
  9780. beos*)
  9781. lt_cv_dlopen="load_add_on"
  9782. lt_cv_dlopen_libs=
  9783. lt_cv_dlopen_self=yes
  9784. ;;
  9785. mingw* | pw32* | cegcc*)
  9786. lt_cv_dlopen="LoadLibrary"
  9787. lt_cv_dlopen_libs=
  9788. ;;
  9789. cygwin*)
  9790. lt_cv_dlopen="dlopen"
  9791. lt_cv_dlopen_libs=
  9792. ;;
  9793. darwin*)
  9794. # if libdl is installed we need to link against it
  9795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9796. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9797. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9798. $as_echo_n "(cached) " >&6
  9799. else
  9800. ac_check_lib_save_LIBS=$LIBS
  9801. LIBS="-ldl $LIBS"
  9802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9803. /* end confdefs.h. */
  9804. /* Override any GCC internal prototype to avoid an error.
  9805. Use char because int might match the return type of a GCC
  9806. builtin and then its argument prototype would still apply. */
  9807. #ifdef __cplusplus
  9808. extern "C"
  9809. #endif
  9810. char dlopen ();
  9811. int
  9812. main ()
  9813. {
  9814. return dlopen ();
  9815. ;
  9816. return 0;
  9817. }
  9818. _ACEOF
  9819. if ac_fn_c_try_link "$LINENO"; then :
  9820. ac_cv_lib_dl_dlopen=yes
  9821. else
  9822. ac_cv_lib_dl_dlopen=no
  9823. fi
  9824. rm -f core conftest.err conftest.$ac_objext \
  9825. conftest$ac_exeext conftest.$ac_ext
  9826. LIBS=$ac_check_lib_save_LIBS
  9827. fi
  9828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9829. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9830. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9831. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9832. else
  9833. lt_cv_dlopen="dyld"
  9834. lt_cv_dlopen_libs=
  9835. lt_cv_dlopen_self=yes
  9836. fi
  9837. ;;
  9838. *)
  9839. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9840. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9841. lt_cv_dlopen="shl_load"
  9842. else
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9844. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9845. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9846. $as_echo_n "(cached) " >&6
  9847. else
  9848. ac_check_lib_save_LIBS=$LIBS
  9849. LIBS="-ldld $LIBS"
  9850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9851. /* end confdefs.h. */
  9852. /* Override any GCC internal prototype to avoid an error.
  9853. Use char because int might match the return type of a GCC
  9854. builtin and then its argument prototype would still apply. */
  9855. #ifdef __cplusplus
  9856. extern "C"
  9857. #endif
  9858. char shl_load ();
  9859. int
  9860. main ()
  9861. {
  9862. return shl_load ();
  9863. ;
  9864. return 0;
  9865. }
  9866. _ACEOF
  9867. if ac_fn_c_try_link "$LINENO"; then :
  9868. ac_cv_lib_dld_shl_load=yes
  9869. else
  9870. ac_cv_lib_dld_shl_load=no
  9871. fi
  9872. rm -f core conftest.err conftest.$ac_objext \
  9873. conftest$ac_exeext conftest.$ac_ext
  9874. LIBS=$ac_check_lib_save_LIBS
  9875. fi
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9877. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9878. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9879. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9880. else
  9881. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9882. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9883. lt_cv_dlopen="dlopen"
  9884. else
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9886. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9887. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9888. $as_echo_n "(cached) " >&6
  9889. else
  9890. ac_check_lib_save_LIBS=$LIBS
  9891. LIBS="-ldl $LIBS"
  9892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9893. /* end confdefs.h. */
  9894. /* Override any GCC internal prototype to avoid an error.
  9895. Use char because int might match the return type of a GCC
  9896. builtin and then its argument prototype would still apply. */
  9897. #ifdef __cplusplus
  9898. extern "C"
  9899. #endif
  9900. char dlopen ();
  9901. int
  9902. main ()
  9903. {
  9904. return dlopen ();
  9905. ;
  9906. return 0;
  9907. }
  9908. _ACEOF
  9909. if ac_fn_c_try_link "$LINENO"; then :
  9910. ac_cv_lib_dl_dlopen=yes
  9911. else
  9912. ac_cv_lib_dl_dlopen=no
  9913. fi
  9914. rm -f core conftest.err conftest.$ac_objext \
  9915. conftest$ac_exeext conftest.$ac_ext
  9916. LIBS=$ac_check_lib_save_LIBS
  9917. fi
  9918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9919. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9920. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9921. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9922. else
  9923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9924. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9925. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9926. $as_echo_n "(cached) " >&6
  9927. else
  9928. ac_check_lib_save_LIBS=$LIBS
  9929. LIBS="-lsvld $LIBS"
  9930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9931. /* end confdefs.h. */
  9932. /* Override any GCC internal prototype to avoid an error.
  9933. Use char because int might match the return type of a GCC
  9934. builtin and then its argument prototype would still apply. */
  9935. #ifdef __cplusplus
  9936. extern "C"
  9937. #endif
  9938. char dlopen ();
  9939. int
  9940. main ()
  9941. {
  9942. return dlopen ();
  9943. ;
  9944. return 0;
  9945. }
  9946. _ACEOF
  9947. if ac_fn_c_try_link "$LINENO"; then :
  9948. ac_cv_lib_svld_dlopen=yes
  9949. else
  9950. ac_cv_lib_svld_dlopen=no
  9951. fi
  9952. rm -f core conftest.err conftest.$ac_objext \
  9953. conftest$ac_exeext conftest.$ac_ext
  9954. LIBS=$ac_check_lib_save_LIBS
  9955. fi
  9956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9957. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9958. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9959. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9960. else
  9961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9962. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9963. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9964. $as_echo_n "(cached) " >&6
  9965. else
  9966. ac_check_lib_save_LIBS=$LIBS
  9967. LIBS="-ldld $LIBS"
  9968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9969. /* end confdefs.h. */
  9970. /* Override any GCC internal prototype to avoid an error.
  9971. Use char because int might match the return type of a GCC
  9972. builtin and then its argument prototype would still apply. */
  9973. #ifdef __cplusplus
  9974. extern "C"
  9975. #endif
  9976. char dld_link ();
  9977. int
  9978. main ()
  9979. {
  9980. return dld_link ();
  9981. ;
  9982. return 0;
  9983. }
  9984. _ACEOF
  9985. if ac_fn_c_try_link "$LINENO"; then :
  9986. ac_cv_lib_dld_dld_link=yes
  9987. else
  9988. ac_cv_lib_dld_dld_link=no
  9989. fi
  9990. rm -f core conftest.err conftest.$ac_objext \
  9991. conftest$ac_exeext conftest.$ac_ext
  9992. LIBS=$ac_check_lib_save_LIBS
  9993. fi
  9994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9995. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9996. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9997. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9998. fi
  9999. fi
  10000. fi
  10001. fi
  10002. fi
  10003. fi
  10004. ;;
  10005. esac
  10006. if test "x$lt_cv_dlopen" != xno; then
  10007. enable_dlopen=yes
  10008. else
  10009. enable_dlopen=no
  10010. fi
  10011. case $lt_cv_dlopen in
  10012. dlopen)
  10013. save_CPPFLAGS="$CPPFLAGS"
  10014. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10015. save_LDFLAGS="$LDFLAGS"
  10016. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10017. save_LIBS="$LIBS"
  10018. LIBS="$lt_cv_dlopen_libs $LIBS"
  10019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10020. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10021. if test "${lt_cv_dlopen_self+set}" = set; then :
  10022. $as_echo_n "(cached) " >&6
  10023. else
  10024. if test "$cross_compiling" = yes; then :
  10025. lt_cv_dlopen_self=cross
  10026. else
  10027. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10028. lt_status=$lt_dlunknown
  10029. cat > conftest.$ac_ext <<_LT_EOF
  10030. #line 12316 "configure"
  10031. #include "confdefs.h"
  10032. #if HAVE_DLFCN_H
  10033. #include <dlfcn.h>
  10034. #endif
  10035. #include <stdio.h>
  10036. #ifdef RTLD_GLOBAL
  10037. # define LT_DLGLOBAL RTLD_GLOBAL
  10038. #else
  10039. # ifdef DL_GLOBAL
  10040. # define LT_DLGLOBAL DL_GLOBAL
  10041. # else
  10042. # define LT_DLGLOBAL 0
  10043. # endif
  10044. #endif
  10045. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10046. find out it does not work in some platform. */
  10047. #ifndef LT_DLLAZY_OR_NOW
  10048. # ifdef RTLD_LAZY
  10049. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10050. # else
  10051. # ifdef DL_LAZY
  10052. # define LT_DLLAZY_OR_NOW DL_LAZY
  10053. # else
  10054. # ifdef RTLD_NOW
  10055. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10056. # else
  10057. # ifdef DL_NOW
  10058. # define LT_DLLAZY_OR_NOW DL_NOW
  10059. # else
  10060. # define LT_DLLAZY_OR_NOW 0
  10061. # endif
  10062. # endif
  10063. # endif
  10064. # endif
  10065. #endif
  10066. /* When -fvisbility=hidden is used, assume the code has been annotated
  10067. correspondingly for the symbols needed. */
  10068. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10069. void fnord () __attribute__((visibility("default")));
  10070. #endif
  10071. void fnord () { int i=42; }
  10072. int main ()
  10073. {
  10074. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10075. int status = $lt_dlunknown;
  10076. if (self)
  10077. {
  10078. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10079. else
  10080. {
  10081. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10082. else puts (dlerror ());
  10083. }
  10084. /* dlclose (self); */
  10085. }
  10086. else
  10087. puts (dlerror ());
  10088. return status;
  10089. }
  10090. _LT_EOF
  10091. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10092. (eval $ac_link) 2>&5
  10093. ac_status=$?
  10094. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10095. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10096. (./conftest; exit; ) >&5 2>/dev/null
  10097. lt_status=$?
  10098. case x$lt_status in
  10099. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10100. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10101. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10102. esac
  10103. else :
  10104. # compilation failed
  10105. lt_cv_dlopen_self=no
  10106. fi
  10107. fi
  10108. rm -fr conftest*
  10109. fi
  10110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10111. $as_echo "$lt_cv_dlopen_self" >&6; }
  10112. if test "x$lt_cv_dlopen_self" = xyes; then
  10113. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10115. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10116. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10117. $as_echo_n "(cached) " >&6
  10118. else
  10119. if test "$cross_compiling" = yes; then :
  10120. lt_cv_dlopen_self_static=cross
  10121. else
  10122. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10123. lt_status=$lt_dlunknown
  10124. cat > conftest.$ac_ext <<_LT_EOF
  10125. #line 12422 "configure"
  10126. #include "confdefs.h"
  10127. #if HAVE_DLFCN_H
  10128. #include <dlfcn.h>
  10129. #endif
  10130. #include <stdio.h>
  10131. #ifdef RTLD_GLOBAL
  10132. # define LT_DLGLOBAL RTLD_GLOBAL
  10133. #else
  10134. # ifdef DL_GLOBAL
  10135. # define LT_DLGLOBAL DL_GLOBAL
  10136. # else
  10137. # define LT_DLGLOBAL 0
  10138. # endif
  10139. #endif
  10140. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10141. find out it does not work in some platform. */
  10142. #ifndef LT_DLLAZY_OR_NOW
  10143. # ifdef RTLD_LAZY
  10144. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10145. # else
  10146. # ifdef DL_LAZY
  10147. # define LT_DLLAZY_OR_NOW DL_LAZY
  10148. # else
  10149. # ifdef RTLD_NOW
  10150. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10151. # else
  10152. # ifdef DL_NOW
  10153. # define LT_DLLAZY_OR_NOW DL_NOW
  10154. # else
  10155. # define LT_DLLAZY_OR_NOW 0
  10156. # endif
  10157. # endif
  10158. # endif
  10159. # endif
  10160. #endif
  10161. /* When -fvisbility=hidden is used, assume the code has been annotated
  10162. correspondingly for the symbols needed. */
  10163. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10164. void fnord () __attribute__((visibility("default")));
  10165. #endif
  10166. void fnord () { int i=42; }
  10167. int main ()
  10168. {
  10169. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10170. int status = $lt_dlunknown;
  10171. if (self)
  10172. {
  10173. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10174. else
  10175. {
  10176. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10177. else puts (dlerror ());
  10178. }
  10179. /* dlclose (self); */
  10180. }
  10181. else
  10182. puts (dlerror ());
  10183. return status;
  10184. }
  10185. _LT_EOF
  10186. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10187. (eval $ac_link) 2>&5
  10188. ac_status=$?
  10189. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10190. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10191. (./conftest; exit; ) >&5 2>/dev/null
  10192. lt_status=$?
  10193. case x$lt_status in
  10194. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10195. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10196. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10197. esac
  10198. else :
  10199. # compilation failed
  10200. lt_cv_dlopen_self_static=no
  10201. fi
  10202. fi
  10203. rm -fr conftest*
  10204. fi
  10205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10206. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10207. fi
  10208. CPPFLAGS="$save_CPPFLAGS"
  10209. LDFLAGS="$save_LDFLAGS"
  10210. LIBS="$save_LIBS"
  10211. ;;
  10212. esac
  10213. case $lt_cv_dlopen_self in
  10214. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10215. *) enable_dlopen_self=unknown ;;
  10216. esac
  10217. case $lt_cv_dlopen_self_static in
  10218. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10219. *) enable_dlopen_self_static=unknown ;;
  10220. esac
  10221. fi
  10222. striplib=
  10223. old_striplib=
  10224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10225. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10226. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10227. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10228. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10230. $as_echo "yes" >&6; }
  10231. else
  10232. # FIXME - insert some real tests, host_os isn't really good enough
  10233. case $host_os in
  10234. darwin*)
  10235. if test -n "$STRIP" ; then
  10236. striplib="$STRIP -x"
  10237. old_striplib="$STRIP -S"
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10239. $as_echo "yes" >&6; }
  10240. else
  10241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10242. $as_echo "no" >&6; }
  10243. fi
  10244. ;;
  10245. *)
  10246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10247. $as_echo "no" >&6; }
  10248. ;;
  10249. esac
  10250. fi
  10251. # Report which library types will actually be built
  10252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10253. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10255. $as_echo "$can_build_shared" >&6; }
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10257. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10258. test "$can_build_shared" = "no" && enable_shared=no
  10259. # On AIX, shared libraries and static libraries use the same namespace, and
  10260. # are all built from PIC.
  10261. case $host_os in
  10262. aix3*)
  10263. test "$enable_shared" = yes && enable_static=no
  10264. if test -n "$RANLIB"; then
  10265. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10266. postinstall_cmds='$RANLIB $lib'
  10267. fi
  10268. ;;
  10269. aix[4-9]*)
  10270. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10271. test "$enable_shared" = yes && enable_static=no
  10272. fi
  10273. ;;
  10274. esac
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10276. $as_echo "$enable_shared" >&6; }
  10277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10278. $as_echo_n "checking whether to build static libraries... " >&6; }
  10279. # Make sure either enable_shared or enable_static is yes.
  10280. test "$enable_shared" = yes || enable_static=yes
  10281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10282. $as_echo "$enable_static" >&6; }
  10283. fi
  10284. ac_ext=c
  10285. ac_cpp='$CPP $CPPFLAGS'
  10286. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10287. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10288. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10289. CC="$lt_save_CC"
  10290. ac_config_commands="$ac_config_commands libtool"
  10291. # Only expand once:
  10292. . ${srcdir}/../../bfd/configure.host
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10294. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10295. # Check whether --enable-maintainer-mode was given.
  10296. if test "${enable_maintainer_mode+set}" = set; then :
  10297. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10298. else
  10299. USE_MAINTAINER_MODE=no
  10300. fi
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10302. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10303. if test $USE_MAINTAINER_MODE = yes; then
  10304. MAINTAINER_MODE_TRUE=
  10305. MAINTAINER_MODE_FALSE='#'
  10306. else
  10307. MAINTAINER_MODE_TRUE='#'
  10308. MAINTAINER_MODE_FALSE=
  10309. fi
  10310. MAINT=$MAINTAINER_MODE_TRUE
  10311. # Check whether --enable-sim-bswap was given.
  10312. if test "${enable_sim_bswap+set}" = set; then :
  10313. enableval=$enable_sim_bswap; case "${enableval}" in
  10314. yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
  10315. no) sim_bswap="-DWITH_BSWAP=0";;
  10316. *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
  10317. esac
  10318. if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
  10319. echo "Setting bswap flags = $sim_bswap" 6>&1
  10320. fi
  10321. else
  10322. sim_bswap=""
  10323. fi
  10324. # Check whether --enable-sim-cflags was given.
  10325. if test "${enable_sim_cflags+set}" = set; then :
  10326. enableval=$enable_sim_cflags; case "${enableval}" in
  10327. yes) sim_cflags="-O2 -fomit-frame-pointer";;
  10328. trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
  10329. no) sim_cflags="";;
  10330. *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10331. esac
  10332. if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
  10333. echo "Setting sim cflags = $sim_cflags" 6>&1
  10334. fi
  10335. else
  10336. sim_cflags=""
  10337. fi
  10338. # Check whether --enable-sim-debug was given.
  10339. if test "${enable_sim_debug+set}" = set; then :
  10340. enableval=$enable_sim_debug; case "${enableval}" in
  10341. yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
  10342. no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
  10343. *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
  10344. esac
  10345. if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
  10346. echo "Setting sim debug = $sim_debug" 6>&1
  10347. fi
  10348. else
  10349. sim_debug=""
  10350. fi
  10351. # Check whether --enable-sim-stdio was given.
  10352. if test "${enable_sim_stdio+set}" = set; then :
  10353. enableval=$enable_sim_stdio; case "${enableval}" in
  10354. yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
  10355. no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
  10356. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
  10357. esac
  10358. if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
  10359. echo "Setting stdio flags = $sim_stdio" 6>&1
  10360. fi
  10361. else
  10362. sim_stdio=""
  10363. fi
  10364. # Check whether --enable-sim-trace was given.
  10365. if test "${enable_sim_trace+set}" = set; then :
  10366. enableval=$enable_sim_trace; case "${enableval}" in
  10367. yes) sim_trace="-DWITH_TRACE=-1";;
  10368. no) sim_trace="-DWITH_TRACE=0";;
  10369. [-0-9]*)
  10370. sim_trace="-DWITH_TRACE='(${enableval})'";;
  10371. [[:lower:]]*)
  10372. sim_trace=""
  10373. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10374. if test x"$sim_trace" = x; then
  10375. sim_trace="-DWITH_TRACE='(TRACE_$x"
  10376. else
  10377. sim_trace="${sim_trace}|TRACE_$x"
  10378. fi
  10379. done
  10380. sim_trace="$sim_trace)'" ;;
  10381. esac
  10382. if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
  10383. echo "Setting sim trace = $sim_trace" 6>&1
  10384. fi
  10385. else
  10386. sim_trace=""
  10387. fi
  10388. # Check whether --enable-sim-profile was given.
  10389. if test "${enable_sim_profile+set}" = set; then :
  10390. enableval=$enable_sim_profile; case "${enableval}" in
  10391. yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
  10392. no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
  10393. [-0-9]*)
  10394. sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
  10395. [a-z]*)
  10396. sim_profile=""
  10397. for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10398. if test x"$sim_profile" = x; then
  10399. sim_profile="-DWITH_PROFILE='(PROFILE_$x"
  10400. else
  10401. sim_profile="${sim_profile}|PROFILE_$x"
  10402. fi
  10403. done
  10404. sim_profile="$sim_profile)'" ;;
  10405. esac
  10406. if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
  10407. echo "Setting sim profile = $sim_profile" 6>&1
  10408. fi
  10409. else
  10410. sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
  10411. fi
  10412. # Check whether --with-pkgversion was given.
  10413. if test "${with_pkgversion+set}" = set; then :
  10414. withval=$with_pkgversion; case "$withval" in
  10415. yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
  10416. no) PKGVERSION= ;;
  10417. *) PKGVERSION="($withval) " ;;
  10418. esac
  10419. else
  10420. PKGVERSION="(SIM) "
  10421. fi
  10422. # Check whether --with-bugurl was given.
  10423. if test "${with_bugurl+set}" = set; then :
  10424. withval=$with_bugurl; case "$withval" in
  10425. yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
  10426. no) BUGURL=
  10427. ;;
  10428. *) BUGURL="$withval"
  10429. ;;
  10430. esac
  10431. else
  10432. BUGURL="http://www.gnu.org/software/gdb/bugs/"
  10433. fi
  10434. case ${BUGURL} in
  10435. "")
  10436. REPORT_BUGS_TO=
  10437. REPORT_BUGS_TEXI=
  10438. ;;
  10439. *)
  10440. REPORT_BUGS_TO="<$BUGURL>"
  10441. REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  10442. ;;
  10443. esac;
  10444. cat >>confdefs.h <<_ACEOF
  10445. #define PKGVERSION "$PKGVERSION"
  10446. _ACEOF
  10447. cat >>confdefs.h <<_ACEOF
  10448. #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
  10449. _ACEOF
  10450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  10451. $as_echo_n "checking return type of signal handlers... " >&6; }
  10452. if test "${ac_cv_type_signal+set}" = set; then :
  10453. $as_echo_n "(cached) " >&6
  10454. else
  10455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10456. /* end confdefs.h. */
  10457. #include <sys/types.h>
  10458. #include <signal.h>
  10459. int
  10460. main ()
  10461. {
  10462. return *(signal (0, 0)) (0) == 1;
  10463. ;
  10464. return 0;
  10465. }
  10466. _ACEOF
  10467. if ac_fn_c_try_compile "$LINENO"; then :
  10468. ac_cv_type_signal=int
  10469. else
  10470. ac_cv_type_signal=void
  10471. fi
  10472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10473. fi
  10474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  10475. $as_echo "$ac_cv_type_signal" >&6; }
  10476. cat >>confdefs.h <<_ACEOF
  10477. #define RETSIGTYPE $ac_cv_type_signal
  10478. _ACEOF
  10479. sim_link_files=
  10480. sim_link_links=
  10481. # targ-vals.def points to the libc macro description file.
  10482. case "${target}" in
  10483. *-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
  10484. esac
  10485. sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
  10486. sim_link_links="${sim_link_links} targ-vals.def"
  10487. default_sim_inline=""
  10488. # Check whether --enable-sim-inline was given.
  10489. if test "${enable_sim_inline+set}" = set; then :
  10490. enableval=$enable_sim_inline; sim_inline=""
  10491. case "$enableval" in
  10492. no) sim_inline="-DDEFAULT_INLINE=0";;
  10493. 0) sim_inline="-DDEFAULT_INLINE=0";;
  10494. yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
  10495. 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
  10496. *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
  10497. new_flag=""
  10498. case "$x" in
  10499. *_INLINE=*) new_flag="-D$x";;
  10500. *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
  10501. *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
  10502. *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
  10503. esac
  10504. if test x"$sim_inline" = x""; then
  10505. sim_inline="$new_flag"
  10506. else
  10507. sim_inline="$sim_inline $new_flag"
  10508. fi
  10509. done;;
  10510. esac
  10511. if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
  10512. echo "Setting inline flags = $sim_inline" 6>&1
  10513. fi
  10514. else
  10515. if test "x$cross_compiling" = "xno"; then
  10516. if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
  10517. sim_inline="${default_sim_inline}"
  10518. if test x"$silent" != x"yes"; then
  10519. echo "Setting inline flags = $sim_inline" 6>&1
  10520. fi
  10521. else
  10522. sim_inline=""
  10523. fi
  10524. else
  10525. sim_inline="-DDEFAULT_INLINE=0"
  10526. fi
  10527. fi
  10528. wire_alignment="NONSTRICT_ALIGNMENT"
  10529. default_alignment=""
  10530. # Check whether --enable-sim-alignment was given.
  10531. if test "${enable_sim_alignment+set}" = set; then :
  10532. enableval=$enable_sim_alignment; case "${enableval}" in
  10533. strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
  10534. nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
  10535. forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
  10536. yes) if test x"$wire_alignment" != x; then
  10537. sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
  10538. else
  10539. if test x"$default_alignment" != x; then
  10540. sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
  10541. else
  10542. echo "No hard-wired alignment for target $target" 1>&6
  10543. sim_alignment="-DWITH_ALIGNMENT=0"
  10544. fi
  10545. fi;;
  10546. no) if test x"$default_alignment" != x; then
  10547. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
  10548. else
  10549. if test x"$wire_alignment" != x; then
  10550. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
  10551. else
  10552. echo "No default alignment for target $target" 1>&6
  10553. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
  10554. fi
  10555. fi;;
  10556. *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
  10557. esac
  10558. if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
  10559. echo "Setting alignment flags = $sim_alignment" 6>&1
  10560. fi
  10561. else
  10562. if test x"$default_alignment" != x; then
  10563. sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
  10564. else
  10565. if test x"$wire_alignment" != x; then
  10566. sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
  10567. else
  10568. sim_alignment=
  10569. fi
  10570. fi
  10571. fi
  10572. # Check whether --enable-sim-hostendian was given.
  10573. if test "${enable_sim_hostendian+set}" = set; then :
  10574. enableval=$enable_sim_hostendian; case "${enableval}" in
  10575. no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
  10576. b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
  10577. l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
  10578. *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
  10579. esac
  10580. if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
  10581. echo "Setting hostendian flags = $sim_hostendian" 6>&1
  10582. fi
  10583. else
  10584. if test "x$cross_compiling" = "xno"; then
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  10586. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  10587. if test "${ac_cv_c_bigendian+set}" = set; then :
  10588. $as_echo_n "(cached) " >&6
  10589. else
  10590. ac_cv_c_bigendian=unknown
  10591. # See if we're dealing with a universal compiler.
  10592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10593. /* end confdefs.h. */
  10594. #ifndef __APPLE_CC__
  10595. not a universal capable compiler
  10596. #endif
  10597. typedef int dummy;
  10598. _ACEOF
  10599. if ac_fn_c_try_compile "$LINENO"; then :
  10600. # Check for potential -arch flags. It is not universal unless
  10601. # there are at least two -arch flags with different values.
  10602. ac_arch=
  10603. ac_prev=
  10604. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  10605. if test -n "$ac_prev"; then
  10606. case $ac_word in
  10607. i?86 | x86_64 | ppc | ppc64)
  10608. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  10609. ac_arch=$ac_word
  10610. else
  10611. ac_cv_c_bigendian=universal
  10612. break
  10613. fi
  10614. ;;
  10615. esac
  10616. ac_prev=
  10617. elif test "x$ac_word" = "x-arch"; then
  10618. ac_prev=arch
  10619. fi
  10620. done
  10621. fi
  10622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10623. if test $ac_cv_c_bigendian = unknown; then
  10624. # See if sys/param.h defines the BYTE_ORDER macro.
  10625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10626. /* end confdefs.h. */
  10627. #include <sys/types.h>
  10628. #include <sys/param.h>
  10629. int
  10630. main ()
  10631. {
  10632. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  10633. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  10634. && LITTLE_ENDIAN)
  10635. bogus endian macros
  10636. #endif
  10637. ;
  10638. return 0;
  10639. }
  10640. _ACEOF
  10641. if ac_fn_c_try_compile "$LINENO"; then :
  10642. # It does; now see whether it defined to BIG_ENDIAN or not.
  10643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10644. /* end confdefs.h. */
  10645. #include <sys/types.h>
  10646. #include <sys/param.h>
  10647. int
  10648. main ()
  10649. {
  10650. #if BYTE_ORDER != BIG_ENDIAN
  10651. not big endian
  10652. #endif
  10653. ;
  10654. return 0;
  10655. }
  10656. _ACEOF
  10657. if ac_fn_c_try_compile "$LINENO"; then :
  10658. ac_cv_c_bigendian=yes
  10659. else
  10660. ac_cv_c_bigendian=no
  10661. fi
  10662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10663. fi
  10664. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10665. fi
  10666. if test $ac_cv_c_bigendian = unknown; then
  10667. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  10668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10669. /* end confdefs.h. */
  10670. #include <limits.h>
  10671. int
  10672. main ()
  10673. {
  10674. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  10675. bogus endian macros
  10676. #endif
  10677. ;
  10678. return 0;
  10679. }
  10680. _ACEOF
  10681. if ac_fn_c_try_compile "$LINENO"; then :
  10682. # It does; now see whether it defined to _BIG_ENDIAN or not.
  10683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10684. /* end confdefs.h. */
  10685. #include <limits.h>
  10686. int
  10687. main ()
  10688. {
  10689. #ifndef _BIG_ENDIAN
  10690. not big endian
  10691. #endif
  10692. ;
  10693. return 0;
  10694. }
  10695. _ACEOF
  10696. if ac_fn_c_try_compile "$LINENO"; then :
  10697. ac_cv_c_bigendian=yes
  10698. else
  10699. ac_cv_c_bigendian=no
  10700. fi
  10701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10702. fi
  10703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10704. fi
  10705. if test $ac_cv_c_bigendian = unknown; then
  10706. # Compile a test program.
  10707. if test "$cross_compiling" = yes; then :
  10708. # Try to guess by grepping values from an object file.
  10709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10710. /* end confdefs.h. */
  10711. short int ascii_mm[] =
  10712. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  10713. short int ascii_ii[] =
  10714. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  10715. int use_ascii (int i) {
  10716. return ascii_mm[i] + ascii_ii[i];
  10717. }
  10718. short int ebcdic_ii[] =
  10719. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  10720. short int ebcdic_mm[] =
  10721. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  10722. int use_ebcdic (int i) {
  10723. return ebcdic_mm[i] + ebcdic_ii[i];
  10724. }
  10725. extern int foo;
  10726. int
  10727. main ()
  10728. {
  10729. return use_ascii (foo) == use_ebcdic (foo);
  10730. ;
  10731. return 0;
  10732. }
  10733. _ACEOF
  10734. if ac_fn_c_try_compile "$LINENO"; then :
  10735. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  10736. ac_cv_c_bigendian=yes
  10737. fi
  10738. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  10739. if test "$ac_cv_c_bigendian" = unknown; then
  10740. ac_cv_c_bigendian=no
  10741. else
  10742. # finding both strings is unlikely to happen, but who knows?
  10743. ac_cv_c_bigendian=unknown
  10744. fi
  10745. fi
  10746. fi
  10747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10748. else
  10749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10750. /* end confdefs.h. */
  10751. $ac_includes_default
  10752. int
  10753. main ()
  10754. {
  10755. /* Are we little or big endian? From Harbison&Steele. */
  10756. union
  10757. {
  10758. long int l;
  10759. char c[sizeof (long int)];
  10760. } u;
  10761. u.l = 1;
  10762. return u.c[sizeof (long int) - 1] == 1;
  10763. ;
  10764. return 0;
  10765. }
  10766. _ACEOF
  10767. if ac_fn_c_try_run "$LINENO"; then :
  10768. ac_cv_c_bigendian=no
  10769. else
  10770. ac_cv_c_bigendian=yes
  10771. fi
  10772. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10773. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10774. fi
  10775. fi
  10776. fi
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  10778. $as_echo "$ac_cv_c_bigendian" >&6; }
  10779. case $ac_cv_c_bigendian in #(
  10780. yes)
  10781. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  10782. ;; #(
  10783. no)
  10784. ;; #(
  10785. universal)
  10786. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  10787. ;; #(
  10788. *)
  10789. as_fn_error "unknown endianness
  10790. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  10791. esac
  10792. if test $ac_cv_c_bigendian = yes; then
  10793. sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
  10794. else
  10795. sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
  10796. fi
  10797. else
  10798. sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
  10799. fi
  10800. fi
  10801. # Check whether --enable-werror was given.
  10802. if test "${enable_werror+set}" = set; then :
  10803. enableval=$enable_werror; case "${enableval}" in
  10804. yes | y) ERROR_ON_WARNING="yes" ;;
  10805. no | n) ERROR_ON_WARNING="no" ;;
  10806. *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  10807. esac
  10808. fi
  10809. # Enable -Werror by default when using gcc
  10810. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
  10811. ERROR_ON_WARNING=yes
  10812. fi
  10813. WERROR_CFLAGS=""
  10814. if test "${ERROR_ON_WARNING}" = yes ; then
  10815. # NOTE: Disabled in the sim dir due to most sims generating warnings.
  10816. # WERROR_CFLAGS="-Werror"
  10817. true
  10818. fi
  10819. build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
  10820. -Wpointer-sign \
  10821. -Wno-unused -Wunused-value -Wunused-function \
  10822. -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
  10823. -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
  10824. -Wold-style-declaration -Wold-style-definition"
  10825. # Enable -Wno-format by default when using gcc on mingw since many
  10826. # GCC versions complain about %I64.
  10827. case "${host}" in
  10828. *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
  10829. *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
  10830. esac
  10831. # Check whether --enable-build-warnings was given.
  10832. if test "${enable_build_warnings+set}" = set; then :
  10833. enableval=$enable_build_warnings; case "${enableval}" in
  10834. yes) ;;
  10835. no) build_warnings="-w";;
  10836. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10837. build_warnings="${build_warnings} ${t}";;
  10838. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10839. build_warnings="${t} ${build_warnings}";;
  10840. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10841. esac
  10842. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  10843. echo "Setting compiler warning flags = $build_warnings" 6>&1
  10844. fi
  10845. fi
  10846. # Check whether --enable-sim-build-warnings was given.
  10847. if test "${enable_sim_build_warnings+set}" = set; then :
  10848. enableval=$enable_sim_build_warnings; case "${enableval}" in
  10849. yes) ;;
  10850. no) build_warnings="-w";;
  10851. ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10852. build_warnings="${build_warnings} ${t}";;
  10853. *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
  10854. build_warnings="${t} ${build_warnings}";;
  10855. *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  10856. esac
  10857. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  10858. echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
  10859. fi
  10860. fi
  10861. WARN_CFLAGS=""
  10862. if test "x${build_warnings}" != x -a "x$GCC" = xyes
  10863. then
  10864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
  10865. $as_echo_n "checking compiler warning flags... " >&6; }
  10866. # Separate out the -Werror flag as some files just cannot be
  10867. # compiled with it enabled.
  10868. for w in ${build_warnings}; do
  10869. case $w in
  10870. -Werr*) WERROR_CFLAGS=-Werror ;;
  10871. *) # Check that GCC accepts it
  10872. saved_CFLAGS="$CFLAGS"
  10873. CFLAGS="$CFLAGS $w"
  10874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10875. /* end confdefs.h. */
  10876. int
  10877. main ()
  10878. {
  10879. ;
  10880. return 0;
  10881. }
  10882. _ACEOF
  10883. if ac_fn_c_try_compile "$LINENO"; then :
  10884. WARN_CFLAGS="${WARN_CFLAGS} $w"
  10885. fi
  10886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10887. CFLAGS="$saved_CFLAGS"
  10888. esac
  10889. done
  10890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
  10891. $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
  10892. fi
  10893. #
  10894. # Add simulated hardware devices
  10895. #
  10896. hw_enabled=no
  10897. case "${target}" in
  10898. m68hc11-*-*|m6811-*-*)
  10899. hw_enabled=yes
  10900. hw_extra_devices="m68hc11 m68hc11sio m68hc11eepr m68hc11tim m68hc11spi nvram"
  10901. SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_M68HC11=1"
  10902. ;;
  10903. esac
  10904. if test "$hw_devices"; then
  10905. hardware="$hw_devices"
  10906. else
  10907. hardware="cfi core pal glue"
  10908. fi
  10909. hardware="$hardware $hw_extra_devices"
  10910. sim_hw_cflags="-DWITH_HW=1"
  10911. sim_hw="$hardware"
  10912. sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
  10913. # Check whether --enable-sim-hardware was given.
  10914. if test "${enable_sim_hardware+set}" = set; then :
  10915. enableval=$enable_sim_hardware;
  10916. else
  10917. enable_sim_hardware="$hw_enabled"
  10918. fi
  10919. case ${enable_sim_hardware} in
  10920. yes|no) ;;
  10921. ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
  10922. *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
  10923. *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
  10924. esac
  10925. if test "$enable_sim_hardware" = no; then
  10926. sim_hw_objs=
  10927. sim_hw_cflags="-DWITH_HW=0"
  10928. sim_hw=
  10929. else
  10930. sim_hw_cflags="-DWITH_HW=1"
  10931. # remove duplicates
  10932. sim_hw=""
  10933. sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
  10934. for i in $hardware ; do
  10935. case " $sim_hw " in
  10936. *" $i "*) ;;
  10937. *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
  10938. esac
  10939. done
  10940. # mingw does not support sockser
  10941. case ${host} in
  10942. *mingw*) ;;
  10943. *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
  10944. # that you instatiate. Instead, other code will call into it directly.
  10945. # At some point, we should convert it over.
  10946. sim_hw_objs="$sim_hw_objs dv-sockser.o"
  10947. cat >>confdefs.h <<_ACEOF
  10948. #define HAVE_DV_SOCKSER 1
  10949. _ACEOF
  10950. ;;
  10951. esac
  10952. if test x"$silent" != x"yes"; then
  10953. echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
  10954. fi
  10955. case " $hardware " in
  10956. *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
  10957. $as_echo_n "checking for log2 in -lm... " >&6; }
  10958. if test "${ac_cv_lib_m_log2+set}" = set; then :
  10959. $as_echo_n "(cached) " >&6
  10960. else
  10961. ac_check_lib_save_LIBS=$LIBS
  10962. LIBS="-lm $LIBS"
  10963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10964. /* end confdefs.h. */
  10965. /* Override any GCC internal prototype to avoid an error.
  10966. Use char because int might match the return type of a GCC
  10967. builtin and then its argument prototype would still apply. */
  10968. #ifdef __cplusplus
  10969. extern "C"
  10970. #endif
  10971. char log2 ();
  10972. int
  10973. main ()
  10974. {
  10975. return log2 ();
  10976. ;
  10977. return 0;
  10978. }
  10979. _ACEOF
  10980. if ac_fn_c_try_link "$LINENO"; then :
  10981. ac_cv_lib_m_log2=yes
  10982. else
  10983. ac_cv_lib_m_log2=no
  10984. fi
  10985. rm -f core conftest.err conftest.$ac_objext \
  10986. conftest$ac_exeext conftest.$ac_ext
  10987. LIBS=$ac_check_lib_save_LIBS
  10988. fi
  10989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
  10990. $as_echo "$ac_cv_lib_m_log2" >&6; }
  10991. if test "x$ac_cv_lib_m_log2" = x""yes; then :
  10992. cat >>confdefs.h <<_ACEOF
  10993. #define HAVE_LIBM 1
  10994. _ACEOF
  10995. LIBS="-lm $LIBS"
  10996. fi
  10997. ;;
  10998. esac
  10999. fi
  11000. ac_sources="$sim_link_files"
  11001. ac_dests="$sim_link_links"
  11002. while test -n "$ac_sources"; do
  11003. set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  11004. set $ac_sources; ac_source=$1; shift; ac_sources=$*
  11005. ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
  11006. done
  11007. ac_config_links="$ac_config_links $ac_config_links_1"
  11008. cgen_breaks=""
  11009. if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
  11010. cgen_breaks="break cgen_rtx_error";
  11011. fi
  11012. ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
  11013. ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
  11014. ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
  11015. ac_config_commands="$ac_config_commands Makefile"
  11016. ac_config_commands="$ac_config_commands stamp-h"
  11017. cat >confcache <<\_ACEOF
  11018. # This file is a shell script that caches the results of configure
  11019. # tests run on this system so they can be shared between configure
  11020. # scripts and configure runs, see configure's option --config-cache.
  11021. # It is not useful on other systems. If it contains results you don't
  11022. # want to keep, you may remove or edit it.
  11023. #
  11024. # config.status only pays attention to the cache file if you give it
  11025. # the --recheck option to rerun configure.
  11026. #
  11027. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11028. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11029. # following values.
  11030. _ACEOF
  11031. # The following way of writing the cache mishandles newlines in values,
  11032. # but we know of no workaround that is simple, portable, and efficient.
  11033. # So, we kill variables containing newlines.
  11034. # Ultrix sh set writes to stderr and can't be redirected directly,
  11035. # and sets the high bit in the cache file unless we assign to the vars.
  11036. (
  11037. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11038. eval ac_val=\$$ac_var
  11039. case $ac_val in #(
  11040. *${as_nl}*)
  11041. case $ac_var in #(
  11042. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11043. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11044. esac
  11045. case $ac_var in #(
  11046. _ | IFS | as_nl) ;; #(
  11047. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11048. *) { eval $ac_var=; unset $ac_var;} ;;
  11049. esac ;;
  11050. esac
  11051. done
  11052. (set) 2>&1 |
  11053. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11054. *${as_nl}ac_space=\ *)
  11055. # `set' does not quote correctly, so add quotes: double-quote
  11056. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11057. sed -n \
  11058. "s/'/'\\\\''/g;
  11059. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11060. ;; #(
  11061. *)
  11062. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11063. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11064. ;;
  11065. esac |
  11066. sort
  11067. ) |
  11068. sed '
  11069. /^ac_cv_env_/b end
  11070. t clear
  11071. :clear
  11072. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11073. t end
  11074. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11075. :end' >>confcache
  11076. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11077. if test -w "$cache_file"; then
  11078. test "x$cache_file" != "x/dev/null" &&
  11079. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11080. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11081. cat confcache >$cache_file
  11082. else
  11083. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11084. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11085. fi
  11086. fi
  11087. rm -f confcache
  11088. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11089. # Let make expand exec_prefix.
  11090. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11091. DEFS=-DHAVE_CONFIG_H
  11092. ac_libobjs=
  11093. ac_ltlibobjs=
  11094. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11095. # 1. Remove the extension, and $U if already installed.
  11096. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11097. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11098. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11099. # will be set to the directory where LIBOBJS objects are built.
  11100. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11101. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11102. done
  11103. LIBOBJS=$ac_libobjs
  11104. LTLIBOBJS=$ac_ltlibobjs
  11105. if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
  11106. as_fn_error "conditional \"GMAKE\" was never defined.
  11107. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11108. fi
  11109. if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
  11110. as_fn_error "conditional \"PLUGINS\" was never defined.
  11111. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11112. fi
  11113. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11114. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  11115. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11116. fi
  11117. : ${CONFIG_STATUS=./config.status}
  11118. ac_write_fail=0
  11119. ac_clean_files_save=$ac_clean_files
  11120. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11122. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11123. as_write_fail=0
  11124. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11125. #! $SHELL
  11126. # Generated by $as_me.
  11127. # Run this file to recreate the current configuration.
  11128. # Compiler output produced by configure, useful for debugging
  11129. # configure, is in config.log if it exists.
  11130. debug=false
  11131. ac_cs_recheck=false
  11132. ac_cs_silent=false
  11133. SHELL=\${CONFIG_SHELL-$SHELL}
  11134. export SHELL
  11135. _ASEOF
  11136. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11137. ## -------------------- ##
  11138. ## M4sh Initialization. ##
  11139. ## -------------------- ##
  11140. # Be more Bourne compatible
  11141. DUALCASE=1; export DUALCASE # for MKS sh
  11142. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11143. emulate sh
  11144. NULLCMD=:
  11145. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11146. # is contrary to our usage. Disable this feature.
  11147. alias -g '${1+"$@"}'='"$@"'
  11148. setopt NO_GLOB_SUBST
  11149. else
  11150. case `(set -o) 2>/dev/null` in #(
  11151. *posix*) :
  11152. set -o posix ;; #(
  11153. *) :
  11154. ;;
  11155. esac
  11156. fi
  11157. as_nl='
  11158. '
  11159. export as_nl
  11160. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11161. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11162. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11163. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11164. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11165. # but without wasting forks for bash or zsh.
  11166. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11167. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11168. as_echo='print -r --'
  11169. as_echo_n='print -rn --'
  11170. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11171. as_echo='printf %s\n'
  11172. as_echo_n='printf %s'
  11173. else
  11174. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11175. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11176. as_echo_n='/usr/ucb/echo -n'
  11177. else
  11178. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11179. as_echo_n_body='eval
  11180. arg=$1;
  11181. case $arg in #(
  11182. *"$as_nl"*)
  11183. expr "X$arg" : "X\\(.*\\)$as_nl";
  11184. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11185. esac;
  11186. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11187. '
  11188. export as_echo_n_body
  11189. as_echo_n='sh -c $as_echo_n_body as_echo'
  11190. fi
  11191. export as_echo_body
  11192. as_echo='sh -c $as_echo_body as_echo'
  11193. fi
  11194. # The user is always right.
  11195. if test "${PATH_SEPARATOR+set}" != set; then
  11196. PATH_SEPARATOR=:
  11197. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11198. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11199. PATH_SEPARATOR=';'
  11200. }
  11201. fi
  11202. # IFS
  11203. # We need space, tab and new line, in precisely that order. Quoting is
  11204. # there to prevent editors from complaining about space-tab.
  11205. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11206. # splitting by setting IFS to empty value.)
  11207. IFS=" "" $as_nl"
  11208. # Find who we are. Look in the path if we contain no directory separator.
  11209. case $0 in #((
  11210. *[\\/]* ) as_myself=$0 ;;
  11211. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11212. for as_dir in $PATH
  11213. do
  11214. IFS=$as_save_IFS
  11215. test -z "$as_dir" && as_dir=.
  11216. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11217. done
  11218. IFS=$as_save_IFS
  11219. ;;
  11220. esac
  11221. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11222. # in which case we are not to be found in the path.
  11223. if test "x$as_myself" = x; then
  11224. as_myself=$0
  11225. fi
  11226. if test ! -f "$as_myself"; then
  11227. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11228. exit 1
  11229. fi
  11230. # Unset variables that we do not need and which cause bugs (e.g. in
  11231. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11232. # suppresses any "Segmentation fault" message there. '((' could
  11233. # trigger a bug in pdksh 5.2.14.
  11234. for as_var in BASH_ENV ENV MAIL MAILPATH
  11235. do eval test x\${$as_var+set} = xset \
  11236. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11237. done
  11238. PS1='$ '
  11239. PS2='> '
  11240. PS4='+ '
  11241. # NLS nuisances.
  11242. LC_ALL=C
  11243. export LC_ALL
  11244. LANGUAGE=C
  11245. export LANGUAGE
  11246. # CDPATH.
  11247. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11248. # as_fn_error ERROR [LINENO LOG_FD]
  11249. # ---------------------------------
  11250. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11251. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11252. # script with status $?, using 1 if that was 0.
  11253. as_fn_error ()
  11254. {
  11255. as_status=$?; test $as_status -eq 0 && as_status=1
  11256. if test "$3"; then
  11257. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11258. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  11259. fi
  11260. $as_echo "$as_me: error: $1" >&2
  11261. as_fn_exit $as_status
  11262. } # as_fn_error
  11263. # as_fn_set_status STATUS
  11264. # -----------------------
  11265. # Set $? to STATUS, without forking.
  11266. as_fn_set_status ()
  11267. {
  11268. return $1
  11269. } # as_fn_set_status
  11270. # as_fn_exit STATUS
  11271. # -----------------
  11272. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11273. as_fn_exit ()
  11274. {
  11275. set +e
  11276. as_fn_set_status $1
  11277. exit $1
  11278. } # as_fn_exit
  11279. # as_fn_unset VAR
  11280. # ---------------
  11281. # Portably unset VAR.
  11282. as_fn_unset ()
  11283. {
  11284. { eval $1=; unset $1;}
  11285. }
  11286. as_unset=as_fn_unset
  11287. # as_fn_append VAR VALUE
  11288. # ----------------------
  11289. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11290. # advantage of any shell optimizations that allow amortized linear growth over
  11291. # repeated appends, instead of the typical quadratic growth present in naive
  11292. # implementations.
  11293. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11294. eval 'as_fn_append ()
  11295. {
  11296. eval $1+=\$2
  11297. }'
  11298. else
  11299. as_fn_append ()
  11300. {
  11301. eval $1=\$$1\$2
  11302. }
  11303. fi # as_fn_append
  11304. # as_fn_arith ARG...
  11305. # ------------------
  11306. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11307. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11308. # must be portable across $(()) and expr.
  11309. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11310. eval 'as_fn_arith ()
  11311. {
  11312. as_val=$(( $* ))
  11313. }'
  11314. else
  11315. as_fn_arith ()
  11316. {
  11317. as_val=`expr "$@" || test $? -eq 1`
  11318. }
  11319. fi # as_fn_arith
  11320. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11321. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11322. as_expr=expr
  11323. else
  11324. as_expr=false
  11325. fi
  11326. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11327. as_basename=basename
  11328. else
  11329. as_basename=false
  11330. fi
  11331. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11332. as_dirname=dirname
  11333. else
  11334. as_dirname=false
  11335. fi
  11336. as_me=`$as_basename -- "$0" ||
  11337. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11338. X"$0" : 'X\(//\)$' \| \
  11339. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11340. $as_echo X/"$0" |
  11341. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11342. s//\1/
  11343. q
  11344. }
  11345. /^X\/\(\/\/\)$/{
  11346. s//\1/
  11347. q
  11348. }
  11349. /^X\/\(\/\).*/{
  11350. s//\1/
  11351. q
  11352. }
  11353. s/.*/./; q'`
  11354. # Avoid depending upon Character Ranges.
  11355. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11356. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11357. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11358. as_cr_digits='0123456789'
  11359. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11360. ECHO_C= ECHO_N= ECHO_T=
  11361. case `echo -n x` in #(((((
  11362. -n*)
  11363. case `echo 'xy\c'` in
  11364. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11365. xy) ECHO_C='\c';;
  11366. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11367. ECHO_T=' ';;
  11368. esac;;
  11369. *)
  11370. ECHO_N='-n';;
  11371. esac
  11372. rm -f conf$$ conf$$.exe conf$$.file
  11373. if test -d conf$$.dir; then
  11374. rm -f conf$$.dir/conf$$.file
  11375. else
  11376. rm -f conf$$.dir
  11377. mkdir conf$$.dir 2>/dev/null
  11378. fi
  11379. if (echo >conf$$.file) 2>/dev/null; then
  11380. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11381. as_ln_s='ln -s'
  11382. # ... but there are two gotchas:
  11383. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11384. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11385. # In both cases, we have to default to `cp -p'.
  11386. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11387. as_ln_s='cp -p'
  11388. elif ln conf$$.file conf$$ 2>/dev/null; then
  11389. as_ln_s=ln
  11390. else
  11391. as_ln_s='cp -p'
  11392. fi
  11393. else
  11394. as_ln_s='cp -p'
  11395. fi
  11396. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11397. rmdir conf$$.dir 2>/dev/null
  11398. # as_fn_mkdir_p
  11399. # -------------
  11400. # Create "$as_dir" as a directory, including parents if necessary.
  11401. as_fn_mkdir_p ()
  11402. {
  11403. case $as_dir in #(
  11404. -*) as_dir=./$as_dir;;
  11405. esac
  11406. test -d "$as_dir" || eval $as_mkdir_p || {
  11407. as_dirs=
  11408. while :; do
  11409. case $as_dir in #(
  11410. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11411. *) as_qdir=$as_dir;;
  11412. esac
  11413. as_dirs="'$as_qdir' $as_dirs"
  11414. as_dir=`$as_dirname -- "$as_dir" ||
  11415. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11416. X"$as_dir" : 'X\(//\)[^/]' \| \
  11417. X"$as_dir" : 'X\(//\)$' \| \
  11418. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11419. $as_echo X"$as_dir" |
  11420. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11421. s//\1/
  11422. q
  11423. }
  11424. /^X\(\/\/\)[^/].*/{
  11425. s//\1/
  11426. q
  11427. }
  11428. /^X\(\/\/\)$/{
  11429. s//\1/
  11430. q
  11431. }
  11432. /^X\(\/\).*/{
  11433. s//\1/
  11434. q
  11435. }
  11436. s/.*/./; q'`
  11437. test -d "$as_dir" && break
  11438. done
  11439. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11440. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  11441. } # as_fn_mkdir_p
  11442. if mkdir -p . 2>/dev/null; then
  11443. as_mkdir_p='mkdir -p "$as_dir"'
  11444. else
  11445. test -d ./-p && rmdir ./-p
  11446. as_mkdir_p=false
  11447. fi
  11448. if test -x / >/dev/null 2>&1; then
  11449. as_test_x='test -x'
  11450. else
  11451. if ls -dL / >/dev/null 2>&1; then
  11452. as_ls_L_option=L
  11453. else
  11454. as_ls_L_option=
  11455. fi
  11456. as_test_x='
  11457. eval sh -c '\''
  11458. if test -d "$1"; then
  11459. test -d "$1/.";
  11460. else
  11461. case $1 in #(
  11462. -*)set "./$1";;
  11463. esac;
  11464. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11465. ???[sx]*):;;*)false;;esac;fi
  11466. '\'' sh
  11467. '
  11468. fi
  11469. as_executable_p=$as_test_x
  11470. # Sed expression to map a string onto a valid CPP name.
  11471. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11472. # Sed expression to map a string onto a valid variable name.
  11473. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11474. exec 6>&1
  11475. ## ----------------------------------- ##
  11476. ## Main body of $CONFIG_STATUS script. ##
  11477. ## ----------------------------------- ##
  11478. _ASEOF
  11479. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11480. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11481. # Save the log message, to keep $0 and so on meaningful, and to
  11482. # report actual input values of CONFIG_FILES etc. instead of their
  11483. # values after options handling.
  11484. ac_log="
  11485. This file was extended by $as_me, which was
  11486. generated by GNU Autoconf 2.64. Invocation command line was
  11487. CONFIG_FILES = $CONFIG_FILES
  11488. CONFIG_HEADERS = $CONFIG_HEADERS
  11489. CONFIG_LINKS = $CONFIG_LINKS
  11490. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11491. $ $0 $@
  11492. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11493. "
  11494. _ACEOF
  11495. case $ac_config_files in *"
  11496. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11497. esac
  11498. case $ac_config_headers in *"
  11499. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11500. esac
  11501. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11502. # Files that config.status was made for.
  11503. config_files="$ac_config_files"
  11504. config_headers="$ac_config_headers"
  11505. config_links="$ac_config_links"
  11506. config_commands="$ac_config_commands"
  11507. _ACEOF
  11508. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11509. ac_cs_usage="\
  11510. \`$as_me' instantiates files and other configuration actions
  11511. from templates according to the current configuration. Unless the files
  11512. and actions are specified as TAGs, all are instantiated by default.
  11513. Usage: $0 [OPTION]... [TAG]...
  11514. -h, --help print this help, then exit
  11515. -V, --version print version number and configuration settings, then exit
  11516. -q, --quiet, --silent
  11517. do not print progress messages
  11518. -d, --debug don't remove temporary files
  11519. --recheck update $as_me by reconfiguring in the same conditions
  11520. --file=FILE[:TEMPLATE]
  11521. instantiate the configuration file FILE
  11522. --header=FILE[:TEMPLATE]
  11523. instantiate the configuration header FILE
  11524. Configuration files:
  11525. $config_files
  11526. Configuration headers:
  11527. $config_headers
  11528. Configuration links:
  11529. $config_links
  11530. Configuration commands:
  11531. $config_commands
  11532. Report bugs to the package provider."
  11533. _ACEOF
  11534. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11535. ac_cs_version="\\
  11536. config.status
  11537. configured by $0, generated by GNU Autoconf 2.64,
  11538. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11539. Copyright (C) 2009 Free Software Foundation, Inc.
  11540. This config.status script is free software; the Free Software Foundation
  11541. gives unlimited permission to copy, distribute and modify it."
  11542. ac_pwd='$ac_pwd'
  11543. srcdir='$srcdir'
  11544. INSTALL='$INSTALL'
  11545. AWK='$AWK'
  11546. test -n "\$AWK" || AWK=awk
  11547. _ACEOF
  11548. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11549. # The default lists apply if the user does not specify any file.
  11550. ac_need_defaults=:
  11551. while test $# != 0
  11552. do
  11553. case $1 in
  11554. --*=*)
  11555. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11556. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11557. ac_shift=:
  11558. ;;
  11559. *)
  11560. ac_option=$1
  11561. ac_optarg=$2
  11562. ac_shift=shift
  11563. ;;
  11564. esac
  11565. case $ac_option in
  11566. # Handling of the options.
  11567. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11568. ac_cs_recheck=: ;;
  11569. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11570. $as_echo "$ac_cs_version"; exit ;;
  11571. --debug | --debu | --deb | --de | --d | -d )
  11572. debug=: ;;
  11573. --file | --fil | --fi | --f )
  11574. $ac_shift
  11575. case $ac_optarg in
  11576. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11577. esac
  11578. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11579. ac_need_defaults=false;;
  11580. --header | --heade | --head | --hea )
  11581. $ac_shift
  11582. case $ac_optarg in
  11583. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11584. esac
  11585. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11586. ac_need_defaults=false;;
  11587. --he | --h)
  11588. # Conflict between --help and --header
  11589. as_fn_error "ambiguous option: \`$1'
  11590. Try \`$0 --help' for more information.";;
  11591. --help | --hel | -h )
  11592. $as_echo "$ac_cs_usage"; exit ;;
  11593. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11594. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11595. ac_cs_silent=: ;;
  11596. # This is an error.
  11597. -*) as_fn_error "unrecognized option: \`$1'
  11598. Try \`$0 --help' for more information." ;;
  11599. *) as_fn_append ac_config_targets " $1"
  11600. ac_need_defaults=false ;;
  11601. esac
  11602. shift
  11603. done
  11604. ac_configure_extra_args=
  11605. if $ac_cs_silent; then
  11606. exec 6>/dev/null
  11607. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11608. fi
  11609. _ACEOF
  11610. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11611. if \$ac_cs_recheck; then
  11612. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11613. shift
  11614. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11615. CONFIG_SHELL='$SHELL'
  11616. export CONFIG_SHELL
  11617. exec "\$@"
  11618. fi
  11619. _ACEOF
  11620. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11621. exec 5>>config.log
  11622. {
  11623. echo
  11624. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11625. ## Running $as_me. ##
  11626. _ASBOX
  11627. $as_echo "$ac_log"
  11628. } >&5
  11629. _ACEOF
  11630. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11631. #
  11632. # INIT-COMMANDS
  11633. #
  11634. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
  11635. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11636. # if CDPATH is set.
  11637. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11638. sed_quote_subst='$sed_quote_subst'
  11639. double_quote_subst='$double_quote_subst'
  11640. delay_variable_subst='$delay_variable_subst'
  11641. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11642. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11643. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11644. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11645. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11646. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11647. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11648. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11649. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11650. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11651. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11652. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11653. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11654. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11655. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11656. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11657. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11658. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11659. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11660. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11661. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11662. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11663. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11664. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11665. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11666. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11667. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11668. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11669. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11670. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11671. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11672. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11673. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11674. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11675. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11676. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11677. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11678. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11679. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11680. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11681. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11682. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11683. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11684. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11685. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11686. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11687. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11688. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11689. 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"`'
  11690. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11691. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11692. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11693. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11694. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11695. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11696. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11697. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11698. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11699. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11700. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11701. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11702. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11703. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11704. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11705. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11706. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11707. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11708. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11709. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11710. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11711. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11712. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11713. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11714. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11715. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11716. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11717. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11718. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11719. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11720. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11721. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  11722. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11723. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11724. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11725. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11726. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11727. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11728. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11729. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11730. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  11731. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11732. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11733. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11734. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11735. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11736. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11737. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11738. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11739. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11740. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11741. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11742. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11743. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11744. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11745. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11746. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11747. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11748. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11749. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11750. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11751. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11752. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11753. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11754. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11755. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11756. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11757. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11758. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11759. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11760. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11761. LTCC='$LTCC'
  11762. LTCFLAGS='$LTCFLAGS'
  11763. compiler='$compiler_DEFAULT'
  11764. # A function that is used when there is no print builtin or printf.
  11765. func_fallback_echo ()
  11766. {
  11767. eval 'cat <<_LTECHO_EOF
  11768. \$1
  11769. _LTECHO_EOF'
  11770. }
  11771. # Quote evaled strings.
  11772. for var in SHELL \
  11773. ECHO \
  11774. SED \
  11775. GREP \
  11776. EGREP \
  11777. FGREP \
  11778. LD \
  11779. NM \
  11780. LN_S \
  11781. lt_SP2NL \
  11782. lt_NL2SP \
  11783. reload_flag \
  11784. OBJDUMP \
  11785. deplibs_check_method \
  11786. file_magic_cmd \
  11787. AR \
  11788. AR_FLAGS \
  11789. STRIP \
  11790. RANLIB \
  11791. CC \
  11792. CFLAGS \
  11793. compiler \
  11794. lt_cv_sys_global_symbol_pipe \
  11795. lt_cv_sys_global_symbol_to_cdecl \
  11796. lt_cv_sys_global_symbol_to_c_name_address \
  11797. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11798. lt_prog_compiler_no_builtin_flag \
  11799. lt_prog_compiler_wl \
  11800. lt_prog_compiler_pic \
  11801. lt_prog_compiler_static \
  11802. lt_cv_prog_compiler_c_o \
  11803. need_locks \
  11804. DSYMUTIL \
  11805. NMEDIT \
  11806. LIPO \
  11807. OTOOL \
  11808. OTOOL64 \
  11809. shrext_cmds \
  11810. export_dynamic_flag_spec \
  11811. whole_archive_flag_spec \
  11812. compiler_needs_object \
  11813. with_gnu_ld \
  11814. allow_undefined_flag \
  11815. no_undefined_flag \
  11816. hardcode_libdir_flag_spec \
  11817. hardcode_libdir_flag_spec_ld \
  11818. hardcode_libdir_separator \
  11819. fix_srcfile_path \
  11820. exclude_expsyms \
  11821. include_expsyms \
  11822. file_list_spec \
  11823. variables_saved_for_relink \
  11824. libname_spec \
  11825. library_names_spec \
  11826. soname_spec \
  11827. install_override_mode \
  11828. finish_eval \
  11829. old_striplib \
  11830. striplib; do
  11831. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11832. *[\\\\\\\`\\"\\\$]*)
  11833. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11834. ;;
  11835. *)
  11836. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11837. ;;
  11838. esac
  11839. done
  11840. # Double-quote double-evaled strings.
  11841. for var in reload_cmds \
  11842. old_postinstall_cmds \
  11843. old_postuninstall_cmds \
  11844. old_archive_cmds \
  11845. extract_expsyms_cmds \
  11846. old_archive_from_new_cmds \
  11847. old_archive_from_expsyms_cmds \
  11848. archive_cmds \
  11849. archive_expsym_cmds \
  11850. module_cmds \
  11851. module_expsym_cmds \
  11852. export_symbols_cmds \
  11853. prelink_cmds \
  11854. postinstall_cmds \
  11855. postuninstall_cmds \
  11856. finish_cmds \
  11857. sys_lib_search_path_spec \
  11858. sys_lib_dlsearch_path_spec; do
  11859. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11860. *[\\\\\\\`\\"\\\$]*)
  11861. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11862. ;;
  11863. *)
  11864. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11865. ;;
  11866. esac
  11867. done
  11868. ac_aux_dir='$ac_aux_dir'
  11869. xsi_shell='$xsi_shell'
  11870. lt_shell_append='$lt_shell_append'
  11871. # See if we are running on zsh, and set the options which allow our
  11872. # commands through without removal of \ escapes INIT.
  11873. if test -n "\${ZSH_VERSION+set}" ; then
  11874. setopt NO_GLOB_SUBST
  11875. fi
  11876. PACKAGE='$PACKAGE'
  11877. VERSION='$VERSION'
  11878. TIMESTAMP='$TIMESTAMP'
  11879. RM='$RM'
  11880. ofile='$ofile'
  11881. _ACEOF
  11882. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11883. # Handling of arguments.
  11884. for ac_config_target in $ac_config_targets
  11885. do
  11886. case $ac_config_target in
  11887. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  11888. "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  11889. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11890. "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
  11891. "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
  11892. "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
  11893. ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
  11894. "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
  11895. "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
  11896. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11897. esac
  11898. done
  11899. # If the user did not use the arguments to specify the items to instantiate,
  11900. # then the envvar interface is used. Set only those that are not.
  11901. # We use the long form for the default assignment because of an extremely
  11902. # bizarre bug on SunOS 4.1.3.
  11903. if $ac_need_defaults; then
  11904. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11905. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11906. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  11907. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11908. fi
  11909. # Have a temporary directory for convenience. Make it in the build tree
  11910. # simply because there is no reason against having it here, and in addition,
  11911. # creating and moving files from /tmp can sometimes cause problems.
  11912. # Hook for its removal unless debugging.
  11913. # Note that there is a small window in which the directory will not be cleaned:
  11914. # after its creation but before its name has been assigned to `$tmp'.
  11915. $debug ||
  11916. {
  11917. tmp=
  11918. trap 'exit_status=$?
  11919. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11920. ' 0
  11921. trap 'as_fn_exit 1' 1 2 13 15
  11922. }
  11923. # Create a (secure) tmp directory for tmp files.
  11924. {
  11925. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11926. test -n "$tmp" && test -d "$tmp"
  11927. } ||
  11928. {
  11929. tmp=./conf$$-$RANDOM
  11930. (umask 077 && mkdir "$tmp")
  11931. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  11932. # Set up the scripts for CONFIG_FILES section.
  11933. # No need to generate them if there are no CONFIG_FILES.
  11934. # This happens for instance with `./config.status config.h'.
  11935. if test -n "$CONFIG_FILES"; then
  11936. ac_cr=`echo X | tr X '\015'`
  11937. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11938. # But we know of no other shell where ac_cr would be empty at this
  11939. # point, so we can use a bashism as a fallback.
  11940. if test "x$ac_cr" = x; then
  11941. eval ac_cr=\$\'\\r\'
  11942. fi
  11943. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11944. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11945. ac_cs_awk_cr='\r'
  11946. else
  11947. ac_cs_awk_cr=$ac_cr
  11948. fi
  11949. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  11950. _ACEOF
  11951. {
  11952. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11953. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11954. echo "_ACEOF"
  11955. } >conf$$subs.sh ||
  11956. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11957. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  11958. ac_delim='%!_!# '
  11959. for ac_last_try in false false false false false :; do
  11960. . ./conf$$subs.sh ||
  11961. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11962. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11963. if test $ac_delim_n = $ac_delim_num; then
  11964. break
  11965. elif $ac_last_try; then
  11966. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11967. else
  11968. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11969. fi
  11970. done
  11971. rm -f conf$$subs.sh
  11972. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11973. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  11974. _ACEOF
  11975. sed -n '
  11976. h
  11977. s/^/S["/; s/!.*/"]=/
  11978. p
  11979. g
  11980. s/^[^!]*!//
  11981. :repl
  11982. t repl
  11983. s/'"$ac_delim"'$//
  11984. t delim
  11985. :nl
  11986. h
  11987. s/\(.\{148\}\).*/\1/
  11988. t more1
  11989. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11990. p
  11991. n
  11992. b repl
  11993. :more1
  11994. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11995. p
  11996. g
  11997. s/.\{148\}//
  11998. t nl
  11999. :delim
  12000. h
  12001. s/\(.\{148\}\).*/\1/
  12002. t more2
  12003. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12004. p
  12005. b
  12006. :more2
  12007. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12008. p
  12009. g
  12010. s/.\{148\}//
  12011. t delim
  12012. ' <conf$$subs.awk | sed '
  12013. /^[^""]/{
  12014. N
  12015. s/\n//
  12016. }
  12017. ' >>$CONFIG_STATUS || ac_write_fail=1
  12018. rm -f conf$$subs.awk
  12019. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12020. _ACAWK
  12021. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  12022. for (key in S) S_is_set[key] = 1
  12023. FS = ""
  12024. }
  12025. {
  12026. line = $ 0
  12027. nfields = split(line, field, "@")
  12028. substed = 0
  12029. len = length(field[1])
  12030. for (i = 2; i < nfields; i++) {
  12031. key = field[i]
  12032. keylen = length(key)
  12033. if (S_is_set[key]) {
  12034. value = S[key]
  12035. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12036. len += length(value) + length(field[++i])
  12037. substed = 1
  12038. } else
  12039. len += 1 + keylen
  12040. }
  12041. print line
  12042. }
  12043. _ACAWK
  12044. _ACEOF
  12045. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12046. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12047. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12048. else
  12049. cat
  12050. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12051. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  12052. _ACEOF
  12053. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12054. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12055. # trailing colons and then remove the whole line if VPATH becomes empty
  12056. # (actually we leave an empty line to preserve line numbers).
  12057. if test "x$srcdir" = x.; then
  12058. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12059. s/:*\$(srcdir):*/:/
  12060. s/:*\${srcdir}:*/:/
  12061. s/:*@srcdir@:*/:/
  12062. s/^\([^=]*=[ ]*\):*/\1/
  12063. s/:*$//
  12064. s/^[^=]*=[ ]*$//
  12065. }'
  12066. fi
  12067. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12068. fi # test -n "$CONFIG_FILES"
  12069. # Set up the scripts for CONFIG_HEADERS section.
  12070. # No need to generate them if there are no CONFIG_HEADERS.
  12071. # This happens for instance with `./config.status Makefile'.
  12072. if test -n "$CONFIG_HEADERS"; then
  12073. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12074. BEGIN {
  12075. _ACEOF
  12076. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12077. # here-document in config.status, that substitutes the proper values into
  12078. # config.h.in to produce config.h.
  12079. # Create a delimiter string that does not exist in confdefs.h, to ease
  12080. # handling of long lines.
  12081. ac_delim='%!_!# '
  12082. for ac_last_try in false false :; do
  12083. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12084. if test -z "$ac_t"; then
  12085. break
  12086. elif $ac_last_try; then
  12087. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  12088. else
  12089. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12090. fi
  12091. done
  12092. # For the awk script, D is an array of macro values keyed by name,
  12093. # likewise P contains macro parameters if any. Preserve backslash
  12094. # newline sequences.
  12095. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12096. sed -n '
  12097. s/.\{148\}/&'"$ac_delim"'/g
  12098. t rset
  12099. :rset
  12100. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12101. t def
  12102. d
  12103. :def
  12104. s/\\$//
  12105. t bsnl
  12106. s/["\\]/\\&/g
  12107. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12108. D["\1"]=" \3"/p
  12109. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12110. d
  12111. :bsnl
  12112. s/["\\]/\\&/g
  12113. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12114. D["\1"]=" \3\\\\\\n"\\/p
  12115. t cont
  12116. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12117. t cont
  12118. d
  12119. :cont
  12120. n
  12121. s/.\{148\}/&'"$ac_delim"'/g
  12122. t clear
  12123. :clear
  12124. s/\\$//
  12125. t bsnlc
  12126. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12127. d
  12128. :bsnlc
  12129. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12130. b cont
  12131. ' <confdefs.h | sed '
  12132. s/'"$ac_delim"'/"\\\
  12133. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12134. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12135. for (key in D) D_is_set[key] = 1
  12136. FS = ""
  12137. }
  12138. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12139. line = \$ 0
  12140. split(line, arg, " ")
  12141. if (arg[1] == "#") {
  12142. defundef = arg[2]
  12143. mac1 = arg[3]
  12144. } else {
  12145. defundef = substr(arg[1], 2)
  12146. mac1 = arg[2]
  12147. }
  12148. split(mac1, mac2, "(") #)
  12149. macro = mac2[1]
  12150. prefix = substr(line, 1, index(line, defundef) - 1)
  12151. if (D_is_set[macro]) {
  12152. # Preserve the white space surrounding the "#".
  12153. print prefix "define", macro P[macro] D[macro]
  12154. next
  12155. } else {
  12156. # Replace #undef with comments. This is necessary, for example,
  12157. # in the case of _POSIX_SOURCE, which is predefined and required
  12158. # on some systems where configure will not decide to define it.
  12159. if (defundef == "undef") {
  12160. print "/*", prefix defundef, macro, "*/"
  12161. next
  12162. }
  12163. }
  12164. }
  12165. { print }
  12166. _ACAWK
  12167. _ACEOF
  12168. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12169. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  12170. fi # test -n "$CONFIG_HEADERS"
  12171. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  12172. shift
  12173. for ac_tag
  12174. do
  12175. case $ac_tag in
  12176. :[FHLC]) ac_mode=$ac_tag; continue;;
  12177. esac
  12178. case $ac_mode$ac_tag in
  12179. :[FHL]*:*);;
  12180. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12181. :[FH]-) ac_tag=-:-;;
  12182. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12183. esac
  12184. ac_save_IFS=$IFS
  12185. IFS=:
  12186. set x $ac_tag
  12187. IFS=$ac_save_IFS
  12188. shift
  12189. ac_file=$1
  12190. shift
  12191. case $ac_mode in
  12192. :L) ac_source=$1;;
  12193. :[FH])
  12194. ac_file_inputs=
  12195. for ac_f
  12196. do
  12197. case $ac_f in
  12198. -) ac_f="$tmp/stdin";;
  12199. *) # Look for the file first in the build tree, then in the source tree
  12200. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12201. # because $ac_f cannot contain `:'.
  12202. test -f "$ac_f" ||
  12203. case $ac_f in
  12204. [\\/$]*) false;;
  12205. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12206. esac ||
  12207. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12208. esac
  12209. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12210. as_fn_append ac_file_inputs " '$ac_f'"
  12211. done
  12212. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12213. # use $as_me), people would be surprised to read:
  12214. # /* config.h. Generated by config.status. */
  12215. configure_input='Generated from '`
  12216. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12217. `' by configure.'
  12218. if test x"$ac_file" != x-; then
  12219. configure_input="$ac_file. $configure_input"
  12220. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12221. $as_echo "$as_me: creating $ac_file" >&6;}
  12222. fi
  12223. # Neutralize special characters interpreted by sed in replacement strings.
  12224. case $configure_input in #(
  12225. *\&* | *\|* | *\\* )
  12226. ac_sed_conf_input=`$as_echo "$configure_input" |
  12227. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12228. *) ac_sed_conf_input=$configure_input;;
  12229. esac
  12230. case $ac_tag in
  12231. *:-:* | *:-) cat >"$tmp/stdin" \
  12232. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  12233. esac
  12234. ;;
  12235. esac
  12236. ac_dir=`$as_dirname -- "$ac_file" ||
  12237. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12238. X"$ac_file" : 'X\(//\)[^/]' \| \
  12239. X"$ac_file" : 'X\(//\)$' \| \
  12240. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12241. $as_echo X"$ac_file" |
  12242. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12243. s//\1/
  12244. q
  12245. }
  12246. /^X\(\/\/\)[^/].*/{
  12247. s//\1/
  12248. q
  12249. }
  12250. /^X\(\/\/\)$/{
  12251. s//\1/
  12252. q
  12253. }
  12254. /^X\(\/\).*/{
  12255. s//\1/
  12256. q
  12257. }
  12258. s/.*/./; q'`
  12259. as_dir="$ac_dir"; as_fn_mkdir_p
  12260. ac_builddir=.
  12261. case "$ac_dir" in
  12262. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12263. *)
  12264. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12265. # A ".." for each directory in $ac_dir_suffix.
  12266. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12267. case $ac_top_builddir_sub in
  12268. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12269. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12270. esac ;;
  12271. esac
  12272. ac_abs_top_builddir=$ac_pwd
  12273. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12274. # for backward compatibility:
  12275. ac_top_builddir=$ac_top_build_prefix
  12276. case $srcdir in
  12277. .) # We are building in place.
  12278. ac_srcdir=.
  12279. ac_top_srcdir=$ac_top_builddir_sub
  12280. ac_abs_top_srcdir=$ac_pwd ;;
  12281. [\\/]* | ?:[\\/]* ) # Absolute name.
  12282. ac_srcdir=$srcdir$ac_dir_suffix;
  12283. ac_top_srcdir=$srcdir
  12284. ac_abs_top_srcdir=$srcdir ;;
  12285. *) # Relative name.
  12286. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12287. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12288. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12289. esac
  12290. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12291. case $ac_mode in
  12292. :F)
  12293. #
  12294. # CONFIG_FILE
  12295. #
  12296. case $INSTALL in
  12297. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12298. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12299. esac
  12300. _ACEOF
  12301. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12302. # If the template does not know about datarootdir, expand it.
  12303. # FIXME: This hack should be removed a few years after 2.60.
  12304. ac_datarootdir_hack=; ac_datarootdir_seen=
  12305. ac_sed_dataroot='
  12306. /datarootdir/ {
  12307. p
  12308. q
  12309. }
  12310. /@datadir@/p
  12311. /@docdir@/p
  12312. /@infodir@/p
  12313. /@localedir@/p
  12314. /@mandir@/p'
  12315. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12316. *datarootdir*) ac_datarootdir_seen=yes;;
  12317. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12318. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12319. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12320. _ACEOF
  12321. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12322. ac_datarootdir_hack='
  12323. s&@datadir@&$datadir&g
  12324. s&@docdir@&$docdir&g
  12325. s&@infodir@&$infodir&g
  12326. s&@localedir@&$localedir&g
  12327. s&@mandir@&$mandir&g
  12328. s&\\\${datarootdir}&$datarootdir&g' ;;
  12329. esac
  12330. _ACEOF
  12331. # Neutralize VPATH when `$srcdir' = `.'.
  12332. # Shell code in configure.ac might set extrasub.
  12333. # FIXME: do we really want to maintain this feature?
  12334. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12335. ac_sed_extra="$ac_vpsub
  12336. $extrasub
  12337. _ACEOF
  12338. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12339. :t
  12340. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12341. s|@configure_input@|$ac_sed_conf_input|;t t
  12342. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12343. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12344. s&@srcdir@&$ac_srcdir&;t t
  12345. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12346. s&@top_srcdir@&$ac_top_srcdir&;t t
  12347. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12348. s&@builddir@&$ac_builddir&;t t
  12349. s&@abs_builddir@&$ac_abs_builddir&;t t
  12350. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12351. s&@INSTALL@&$ac_INSTALL&;t t
  12352. $ac_datarootdir_hack
  12353. "
  12354. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12355. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12356. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12357. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12358. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12359. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12360. which seems to be undefined. Please make sure it is defined." >&5
  12361. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12362. which seems to be undefined. Please make sure it is defined." >&2;}
  12363. rm -f "$tmp/stdin"
  12364. case $ac_file in
  12365. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12366. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12367. esac \
  12368. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12369. ;;
  12370. :H)
  12371. #
  12372. # CONFIG_HEADER
  12373. #
  12374. if test x"$ac_file" != x-; then
  12375. {
  12376. $as_echo "/* $configure_input */" \
  12377. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12378. } >"$tmp/config.h" \
  12379. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12380. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12381. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12382. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12383. else
  12384. rm -f "$ac_file"
  12385. mv "$tmp/config.h" "$ac_file" \
  12386. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12387. fi
  12388. else
  12389. $as_echo "/* $configure_input */" \
  12390. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12391. || as_fn_error "could not create -" "$LINENO" 5
  12392. fi
  12393. ;;
  12394. :L)
  12395. #
  12396. # CONFIG_LINK
  12397. #
  12398. if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  12399. :
  12400. else
  12401. # Prefer the file from the source tree if names are identical.
  12402. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  12403. ac_source=$srcdir/$ac_source
  12404. fi
  12405. { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  12406. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  12407. if test ! -r "$ac_source"; then
  12408. as_fn_error "$ac_source: file not found" "$LINENO" 5
  12409. fi
  12410. rm -f "$ac_file"
  12411. # Try a relative symlink, then a hard link, then a copy.
  12412. case $srcdir in
  12413. [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  12414. *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  12415. esac
  12416. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  12417. ln "$ac_source" "$ac_file" 2>/dev/null ||
  12418. cp -p "$ac_source" "$ac_file" ||
  12419. as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  12420. fi
  12421. ;;
  12422. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12423. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12424. ;;
  12425. esac
  12426. case $ac_file$ac_mode in
  12427. "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  12428. "libtool":C)
  12429. # See if we are running on zsh, and set the options which allow our
  12430. # commands through without removal of \ escapes.
  12431. if test -n "${ZSH_VERSION+set}" ; then
  12432. setopt NO_GLOB_SUBST
  12433. fi
  12434. cfgfile="${ofile}T"
  12435. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12436. $RM "$cfgfile"
  12437. cat <<_LT_EOF >> "$cfgfile"
  12438. #! $SHELL
  12439. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12440. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12441. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12442. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12443. #
  12444. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12445. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  12446. # Written by Gordon Matzigkeit, 1996
  12447. #
  12448. # This file is part of GNU Libtool.
  12449. #
  12450. # GNU Libtool is free software; you can redistribute it and/or
  12451. # modify it under the terms of the GNU General Public License as
  12452. # published by the Free Software Foundation; either version 2 of
  12453. # the License, or (at your option) any later version.
  12454. #
  12455. # As a special exception to the GNU General Public License,
  12456. # if you distribute this file as part of a program or library that
  12457. # is built using GNU Libtool, you may include this file under the
  12458. # same distribution terms that you use for the rest of that program.
  12459. #
  12460. # GNU Libtool is distributed in the hope that it will be useful,
  12461. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12462. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12463. # GNU General Public License for more details.
  12464. #
  12465. # You should have received a copy of the GNU General Public License
  12466. # along with GNU Libtool; see the file COPYING. If not, a copy
  12467. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12468. # obtained by writing to the Free Software Foundation, Inc.,
  12469. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12470. # The names of the tagged configurations supported by this script.
  12471. available_tags=""
  12472. # ### BEGIN LIBTOOL CONFIG
  12473. # Which release of libtool.m4 was used?
  12474. macro_version=$macro_version
  12475. macro_revision=$macro_revision
  12476. # Whether or not to build shared libraries.
  12477. build_libtool_libs=$enable_shared
  12478. # Whether or not to build static libraries.
  12479. build_old_libs=$enable_static
  12480. # What type of objects to build.
  12481. pic_mode=$pic_mode
  12482. # Whether or not to optimize for fast installation.
  12483. fast_install=$enable_fast_install
  12484. # Shell to use when invoking shell scripts.
  12485. SHELL=$lt_SHELL
  12486. # An echo program that protects backslashes.
  12487. ECHO=$lt_ECHO
  12488. # The host system.
  12489. host_alias=$host_alias
  12490. host=$host
  12491. host_os=$host_os
  12492. # The build system.
  12493. build_alias=$build_alias
  12494. build=$build
  12495. build_os=$build_os
  12496. # A sed program that does not truncate output.
  12497. SED=$lt_SED
  12498. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12499. Xsed="\$SED -e 1s/^X//"
  12500. # A grep program that handles long lines.
  12501. GREP=$lt_GREP
  12502. # An ERE matcher.
  12503. EGREP=$lt_EGREP
  12504. # A literal string matcher.
  12505. FGREP=$lt_FGREP
  12506. # A BSD- or MS-compatible name lister.
  12507. NM=$lt_NM
  12508. # Whether we need soft or hard links.
  12509. LN_S=$lt_LN_S
  12510. # What is the maximum length of a command?
  12511. max_cmd_len=$max_cmd_len
  12512. # Object file suffix (normally "o").
  12513. objext=$ac_objext
  12514. # Executable file suffix (normally "").
  12515. exeext=$exeext
  12516. # whether the shell understands "unset".
  12517. lt_unset=$lt_unset
  12518. # turn spaces into newlines.
  12519. SP2NL=$lt_lt_SP2NL
  12520. # turn newlines into spaces.
  12521. NL2SP=$lt_lt_NL2SP
  12522. # An object symbol dumper.
  12523. OBJDUMP=$lt_OBJDUMP
  12524. # Method to check whether dependent libraries are shared objects.
  12525. deplibs_check_method=$lt_deplibs_check_method
  12526. # Command to use when deplibs_check_method == "file_magic".
  12527. file_magic_cmd=$lt_file_magic_cmd
  12528. # The archiver.
  12529. AR=$lt_AR
  12530. AR_FLAGS=$lt_AR_FLAGS
  12531. # A symbol stripping program.
  12532. STRIP=$lt_STRIP
  12533. # Commands used to install an old-style archive.
  12534. RANLIB=$lt_RANLIB
  12535. old_postinstall_cmds=$lt_old_postinstall_cmds
  12536. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12537. # Whether to use a lock for old archive extraction.
  12538. lock_old_archive_extraction=$lock_old_archive_extraction
  12539. # A C compiler.
  12540. LTCC=$lt_CC
  12541. # LTCC compiler flags.
  12542. LTCFLAGS=$lt_CFLAGS
  12543. # Take the output of nm and produce a listing of raw symbols and C names.
  12544. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12545. # Transform the output of nm in a proper C declaration.
  12546. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12547. # Transform the output of nm in a C name address pair.
  12548. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12549. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12550. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12551. # The name of the directory that contains temporary libtool files.
  12552. objdir=$objdir
  12553. # Used to examine libraries when file_magic_cmd begins with "file".
  12554. MAGIC_CMD=$MAGIC_CMD
  12555. # Must we lock files when doing compilation?
  12556. need_locks=$lt_need_locks
  12557. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12558. DSYMUTIL=$lt_DSYMUTIL
  12559. # Tool to change global to local symbols on Mac OS X.
  12560. NMEDIT=$lt_NMEDIT
  12561. # Tool to manipulate fat objects and archives on Mac OS X.
  12562. LIPO=$lt_LIPO
  12563. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12564. OTOOL=$lt_OTOOL
  12565. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12566. OTOOL64=$lt_OTOOL64
  12567. # Old archive suffix (normally "a").
  12568. libext=$libext
  12569. # Shared library suffix (normally ".so").
  12570. shrext_cmds=$lt_shrext_cmds
  12571. # The commands to extract the exported symbol list from a shared archive.
  12572. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12573. # Variables whose values should be saved in libtool wrapper scripts and
  12574. # restored at link time.
  12575. variables_saved_for_relink=$lt_variables_saved_for_relink
  12576. # Do we need the "lib" prefix for modules?
  12577. need_lib_prefix=$need_lib_prefix
  12578. # Do we need a version for libraries?
  12579. need_version=$need_version
  12580. # Library versioning type.
  12581. version_type=$version_type
  12582. # Shared library runtime path variable.
  12583. runpath_var=$runpath_var
  12584. # Shared library path variable.
  12585. shlibpath_var=$shlibpath_var
  12586. # Is shlibpath searched before the hard-coded library search path?
  12587. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12588. # Format of library name prefix.
  12589. libname_spec=$lt_libname_spec
  12590. # List of archive names. First name is the real one, the rest are links.
  12591. # The last name is the one that the linker finds with -lNAME
  12592. library_names_spec=$lt_library_names_spec
  12593. # The coded name of the library, if different from the real name.
  12594. soname_spec=$lt_soname_spec
  12595. # Permission mode override for installation of shared libraries.
  12596. install_override_mode=$lt_install_override_mode
  12597. # Command to use after installation of a shared archive.
  12598. postinstall_cmds=$lt_postinstall_cmds
  12599. # Command to use after uninstallation of a shared archive.
  12600. postuninstall_cmds=$lt_postuninstall_cmds
  12601. # Commands used to finish a libtool library installation in a directory.
  12602. finish_cmds=$lt_finish_cmds
  12603. # As "finish_cmds", except a single script fragment to be evaled but
  12604. # not shown.
  12605. finish_eval=$lt_finish_eval
  12606. # Whether we should hardcode library paths into libraries.
  12607. hardcode_into_libs=$hardcode_into_libs
  12608. # Compile-time system search path for libraries.
  12609. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12610. # Run-time system search path for libraries.
  12611. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12612. # Whether dlopen is supported.
  12613. dlopen_support=$enable_dlopen
  12614. # Whether dlopen of programs is supported.
  12615. dlopen_self=$enable_dlopen_self
  12616. # Whether dlopen of statically linked programs is supported.
  12617. dlopen_self_static=$enable_dlopen_self_static
  12618. # Commands to strip libraries.
  12619. old_striplib=$lt_old_striplib
  12620. striplib=$lt_striplib
  12621. # The linker used to build libraries.
  12622. LD=$lt_LD
  12623. # How to create reloadable object files.
  12624. reload_flag=$lt_reload_flag
  12625. reload_cmds=$lt_reload_cmds
  12626. # Commands used to build an old-style archive.
  12627. old_archive_cmds=$lt_old_archive_cmds
  12628. # A language specific compiler.
  12629. CC=$lt_compiler
  12630. # Is the compiler the GNU compiler?
  12631. with_gcc=$GCC
  12632. # Compiler flag to turn off builtin functions.
  12633. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12634. # How to pass a linker flag through the compiler.
  12635. wl=$lt_lt_prog_compiler_wl
  12636. # Additional compiler flags for building library objects.
  12637. pic_flag=$lt_lt_prog_compiler_pic
  12638. # Compiler flag to prevent dynamic linking.
  12639. link_static_flag=$lt_lt_prog_compiler_static
  12640. # Does compiler simultaneously support -c and -o options?
  12641. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12642. # Whether or not to add -lc for building shared libraries.
  12643. build_libtool_need_lc=$archive_cmds_need_lc
  12644. # Whether or not to disallow shared libs when runtime libs are static.
  12645. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12646. # Compiler flag to allow reflexive dlopens.
  12647. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12648. # Compiler flag to generate shared objects directly from archives.
  12649. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12650. # Whether the compiler copes with passing no objects directly.
  12651. compiler_needs_object=$lt_compiler_needs_object
  12652. # Create an old-style archive from a shared archive.
  12653. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12654. # Create a temporary old-style archive to link instead of a shared archive.
  12655. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12656. # Commands used to build a shared archive.
  12657. archive_cmds=$lt_archive_cmds
  12658. archive_expsym_cmds=$lt_archive_expsym_cmds
  12659. # Commands used to build a loadable module if different from building
  12660. # a shared archive.
  12661. module_cmds=$lt_module_cmds
  12662. module_expsym_cmds=$lt_module_expsym_cmds
  12663. # Whether we are building with GNU ld or not.
  12664. with_gnu_ld=$lt_with_gnu_ld
  12665. # Flag that allows shared libraries with undefined symbols to be built.
  12666. allow_undefined_flag=$lt_allow_undefined_flag
  12667. # Flag that enforces no undefined symbols.
  12668. no_undefined_flag=$lt_no_undefined_flag
  12669. # Flag to hardcode \$libdir into a binary during linking.
  12670. # This must work even if \$libdir does not exist
  12671. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12672. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12673. # during linking. This must work even if \$libdir does not exist.
  12674. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12675. # Whether we need a single "-rpath" flag with a separated argument.
  12676. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12677. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12678. # DIR into the resulting binary.
  12679. hardcode_direct=$hardcode_direct
  12680. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12681. # DIR into the resulting binary and the resulting library dependency is
  12682. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12683. # library is relocated.
  12684. hardcode_direct_absolute=$hardcode_direct_absolute
  12685. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12686. # into the resulting binary.
  12687. hardcode_minus_L=$hardcode_minus_L
  12688. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12689. # into the resulting binary.
  12690. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12691. # Set to "yes" if building a shared library automatically hardcodes DIR
  12692. # into the library and all subsequent libraries and executables linked
  12693. # against it.
  12694. hardcode_automatic=$hardcode_automatic
  12695. # Set to yes if linker adds runtime paths of dependent libraries
  12696. # to runtime path list.
  12697. inherit_rpath=$inherit_rpath
  12698. # Whether libtool must link a program against all its dependency libraries.
  12699. link_all_deplibs=$link_all_deplibs
  12700. # Fix the shell variable \$srcfile for the compiler.
  12701. fix_srcfile_path=$lt_fix_srcfile_path
  12702. # Set to "yes" if exported symbols are required.
  12703. always_export_symbols=$always_export_symbols
  12704. # The commands to list exported symbols.
  12705. export_symbols_cmds=$lt_export_symbols_cmds
  12706. # Symbols that should not be listed in the preloaded symbols.
  12707. exclude_expsyms=$lt_exclude_expsyms
  12708. # Symbols that must always be exported.
  12709. include_expsyms=$lt_include_expsyms
  12710. # Commands necessary for linking programs (against libraries) with templates.
  12711. prelink_cmds=$lt_prelink_cmds
  12712. # Specify filename containing input files.
  12713. file_list_spec=$lt_file_list_spec
  12714. # How to hardcode a shared library path into an executable.
  12715. hardcode_action=$hardcode_action
  12716. # ### END LIBTOOL CONFIG
  12717. _LT_EOF
  12718. case $host_os in
  12719. aix3*)
  12720. cat <<\_LT_EOF >> "$cfgfile"
  12721. # AIX sometimes has problems with the GCC collect2 program. For some
  12722. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12723. # vanish in a puff of smoke.
  12724. if test "X${COLLECT_NAMES+set}" != Xset; then
  12725. COLLECT_NAMES=
  12726. export COLLECT_NAMES
  12727. fi
  12728. _LT_EOF
  12729. ;;
  12730. esac
  12731. ltmain="$ac_aux_dir/ltmain.sh"
  12732. # We use sed instead of cat because bash on DJGPP gets confused if
  12733. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12734. # text mode, it properly converts lines to CR/LF. This bash problem
  12735. # is reportedly fixed, but why not run on old versions too?
  12736. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12737. || (rm -f "$cfgfile"; exit 1)
  12738. case $xsi_shell in
  12739. yes)
  12740. cat << \_LT_EOF >> "$cfgfile"
  12741. # func_dirname file append nondir_replacement
  12742. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12743. # otherwise set result to NONDIR_REPLACEMENT.
  12744. func_dirname ()
  12745. {
  12746. case ${1} in
  12747. */*) func_dirname_result="${1%/*}${2}" ;;
  12748. * ) func_dirname_result="${3}" ;;
  12749. esac
  12750. }
  12751. # func_basename file
  12752. func_basename ()
  12753. {
  12754. func_basename_result="${1##*/}"
  12755. }
  12756. # func_dirname_and_basename file append nondir_replacement
  12757. # perform func_basename and func_dirname in a single function
  12758. # call:
  12759. # dirname: Compute the dirname of FILE. If nonempty,
  12760. # add APPEND to the result, otherwise set result
  12761. # to NONDIR_REPLACEMENT.
  12762. # value returned in "$func_dirname_result"
  12763. # basename: Compute filename of FILE.
  12764. # value retuned in "$func_basename_result"
  12765. # Implementation must be kept synchronized with func_dirname
  12766. # and func_basename. For efficiency, we do not delegate to
  12767. # those functions but instead duplicate the functionality here.
  12768. func_dirname_and_basename ()
  12769. {
  12770. case ${1} in
  12771. */*) func_dirname_result="${1%/*}${2}" ;;
  12772. * ) func_dirname_result="${3}" ;;
  12773. esac
  12774. func_basename_result="${1##*/}"
  12775. }
  12776. # func_stripname prefix suffix name
  12777. # strip PREFIX and SUFFIX off of NAME.
  12778. # PREFIX and SUFFIX must not contain globbing or regex special
  12779. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12780. # dot (in which case that matches only a dot).
  12781. func_stripname ()
  12782. {
  12783. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12784. # positional parameters, so assign one to ordinary parameter first.
  12785. func_stripname_result=${3}
  12786. func_stripname_result=${func_stripname_result#"${1}"}
  12787. func_stripname_result=${func_stripname_result%"${2}"}
  12788. }
  12789. # func_opt_split
  12790. func_opt_split ()
  12791. {
  12792. func_opt_split_opt=${1%%=*}
  12793. func_opt_split_arg=${1#*=}
  12794. }
  12795. # func_lo2o object
  12796. func_lo2o ()
  12797. {
  12798. case ${1} in
  12799. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12800. *) func_lo2o_result=${1} ;;
  12801. esac
  12802. }
  12803. # func_xform libobj-or-source
  12804. func_xform ()
  12805. {
  12806. func_xform_result=${1%.*}.lo
  12807. }
  12808. # func_arith arithmetic-term...
  12809. func_arith ()
  12810. {
  12811. func_arith_result=$(( $* ))
  12812. }
  12813. # func_len string
  12814. # STRING may not start with a hyphen.
  12815. func_len ()
  12816. {
  12817. func_len_result=${#1}
  12818. }
  12819. _LT_EOF
  12820. ;;
  12821. *) # Bourne compatible functions.
  12822. cat << \_LT_EOF >> "$cfgfile"
  12823. # func_dirname file append nondir_replacement
  12824. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12825. # otherwise set result to NONDIR_REPLACEMENT.
  12826. func_dirname ()
  12827. {
  12828. # Extract subdirectory from the argument.
  12829. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  12830. if test "X$func_dirname_result" = "X${1}"; then
  12831. func_dirname_result="${3}"
  12832. else
  12833. func_dirname_result="$func_dirname_result${2}"
  12834. fi
  12835. }
  12836. # func_basename file
  12837. func_basename ()
  12838. {
  12839. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  12840. }
  12841. # func_stripname prefix suffix name
  12842. # strip PREFIX and SUFFIX off of NAME.
  12843. # PREFIX and SUFFIX must not contain globbing or regex special
  12844. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12845. # dot (in which case that matches only a dot).
  12846. # func_strip_suffix prefix name
  12847. func_stripname ()
  12848. {
  12849. case ${2} in
  12850. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12851. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12852. esac
  12853. }
  12854. # sed scripts:
  12855. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12856. my_sed_long_arg='1s/^-[^=]*=//'
  12857. # func_opt_split
  12858. func_opt_split ()
  12859. {
  12860. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  12861. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  12862. }
  12863. # func_lo2o object
  12864. func_lo2o ()
  12865. {
  12866. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  12867. }
  12868. # func_xform libobj-or-source
  12869. func_xform ()
  12870. {
  12871. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  12872. }
  12873. # func_arith arithmetic-term...
  12874. func_arith ()
  12875. {
  12876. func_arith_result=`expr "$@"`
  12877. }
  12878. # func_len string
  12879. # STRING may not start with a hyphen.
  12880. func_len ()
  12881. {
  12882. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12883. }
  12884. _LT_EOF
  12885. esac
  12886. case $lt_shell_append in
  12887. yes)
  12888. cat << \_LT_EOF >> "$cfgfile"
  12889. # func_append var value
  12890. # Append VALUE to the end of shell variable VAR.
  12891. func_append ()
  12892. {
  12893. eval "$1+=\$2"
  12894. }
  12895. _LT_EOF
  12896. ;;
  12897. *)
  12898. cat << \_LT_EOF >> "$cfgfile"
  12899. # func_append var value
  12900. # Append VALUE to the end of shell variable VAR.
  12901. func_append ()
  12902. {
  12903. eval "$1=\$$1\$2"
  12904. }
  12905. _LT_EOF
  12906. ;;
  12907. esac
  12908. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12909. || (rm -f "$cfgfile"; exit 1)
  12910. mv -f "$cfgfile" "$ofile" ||
  12911. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12912. chmod +x "$ofile"
  12913. ;;
  12914. "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
  12915. rm -f Makesim1.tmp Makesim2.tmp Makefile
  12916. sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
  12917. sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
  12918. sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
  12919. -e '/^## COMMON_POST_/ r Makesim2.tmp' \
  12920. <Makefile.sim >Makefile
  12921. rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
  12922. ;;
  12923. "stamp-h":C) echo > stamp-h ;;
  12924. esac
  12925. done # for ac_tag
  12926. as_fn_exit 0
  12927. _ACEOF
  12928. ac_clean_files=$ac_clean_files_save
  12929. test $ac_write_fail = 0 ||
  12930. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12931. # configure is writing to config.log, and then calls config.status.
  12932. # config.status does its own redirection, appending to config.log.
  12933. # Unfortunately, on DOS this fails, as config.log is still kept open
  12934. # by configure, so config.status won't be able to write to it; its
  12935. # output is simply discarded. So we exec the FD to /dev/null,
  12936. # effectively closing config.log, so it can be properly (re)opened and
  12937. # appended to by config.status. When coming back to configure, we
  12938. # need to make the FD available again.
  12939. if test "$no_create" != yes; then
  12940. ac_cs_success=:
  12941. ac_config_status_args=
  12942. test "$silent" = yes &&
  12943. ac_config_status_args="$ac_config_status_args --quiet"
  12944. exec 5>/dev/null
  12945. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12946. exec 5>>config.log
  12947. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12948. # would make configure fail if this is the last instruction.
  12949. $ac_cs_success || as_fn_exit $?
  12950. fi
  12951. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12953. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12954. fi