configure 534 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995
  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 -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  159. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  160. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. PATH=/empty FPATH=/empty; export PATH FPATH
  163. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  164. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  165. test \$(( 1 + 1 )) = 2 || 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="gcj_mlc.c"
  515. # Factoring default headers for most tests.
  516. ac_includes_default="\
  517. #include <stdio.h>
  518. #ifdef HAVE_SYS_TYPES_H
  519. # include <sys/types.h>
  520. #endif
  521. #ifdef HAVE_SYS_STAT_H
  522. # include <sys/stat.h>
  523. #endif
  524. #ifdef STDC_HEADERS
  525. # include <stdlib.h>
  526. # include <stddef.h>
  527. #else
  528. # ifdef HAVE_STDLIB_H
  529. # include <stdlib.h>
  530. # endif
  531. #endif
  532. #ifdef HAVE_STRING_H
  533. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  534. # include <memory.h>
  535. # endif
  536. # include <string.h>
  537. #endif
  538. #ifdef HAVE_STRINGS_H
  539. # include <strings.h>
  540. #endif
  541. #ifdef HAVE_INTTYPES_H
  542. # include <inttypes.h>
  543. #endif
  544. #ifdef HAVE_STDINT_H
  545. # include <stdint.h>
  546. #endif
  547. #ifdef HAVE_UNISTD_H
  548. # include <unistd.h>
  549. #endif"
  550. ac_subst_vars='am__EXEEXT_FALSE
  551. am__EXEEXT_TRUE
  552. LTLIBOBJS
  553. LIBOBJS
  554. toolexeclibdir
  555. toolexecdir
  556. O0_CFLAGS
  557. addtests
  558. addlibs
  559. addincludes
  560. addobjs
  561. AM_CPPFLAGS
  562. CPLUSPLUS_FALSE
  563. CPLUSPLUS_TRUE
  564. target_all
  565. EXTRA_TEST_LIBS
  566. extra_ldflags_libgc
  567. POWERPC_DARWIN_FALSE
  568. POWERPC_DARWIN_TRUE
  569. THREADLIBS
  570. THREADCFLAGS
  571. CXXCPP
  572. CPP
  573. OTOOL64
  574. OTOOL
  575. LIPO
  576. NMEDIT
  577. DSYMUTIL
  578. OBJDUMP
  579. LN_S
  580. NM
  581. ac_ct_DUMPBIN
  582. DUMPBIN
  583. LD
  584. FGREP
  585. EGREP
  586. GREP
  587. SED
  588. LIBTOOL
  589. GC_CFLAGS
  590. MAINT
  591. MAINTAINER_MODE_FALSE
  592. MAINTAINER_MODE_TRUE
  593. RANLIB
  594. AR
  595. AS
  596. CCASFLAGS
  597. CCAS
  598. am__fastdepCXX_FALSE
  599. am__fastdepCXX_TRUE
  600. CXXDEPMODE
  601. ac_ct_CXX
  602. CXXFLAGS
  603. CXX
  604. am__fastdepCC_FALSE
  605. am__fastdepCC_TRUE
  606. CCDEPMODE
  607. AMDEPBACKSLASH
  608. AMDEP_FALSE
  609. AMDEP_TRUE
  610. am__quote
  611. am__include
  612. DEPDIR
  613. OBJEXT
  614. EXEEXT
  615. ac_ct_CC
  616. CPPFLAGS
  617. LDFLAGS
  618. CFLAGS
  619. CC
  620. am__untar
  621. am__tar
  622. AMTAR
  623. am__leading_dot
  624. SET_MAKE
  625. AWK
  626. mkdir_p
  627. MKDIR_P
  628. INSTALL_STRIP_PROGRAM
  629. STRIP
  630. install_sh
  631. MAKEINFO
  632. AUTOHEADER
  633. AUTOMAKE
  634. AUTOCONF
  635. ACLOCAL
  636. VERSION
  637. PACKAGE
  638. CYGPATH_W
  639. am__isrc
  640. INSTALL_DATA
  641. INSTALL_SCRIPT
  642. INSTALL_PROGRAM
  643. mkinstalldirs
  644. target_noncanonical
  645. target_os
  646. target_vendor
  647. target_cpu
  648. target
  649. host_os
  650. host_vendor
  651. host_cpu
  652. host
  653. build_os
  654. build_vendor
  655. build_cpu
  656. build
  657. multi_basedir
  658. target_alias
  659. host_alias
  660. build_alias
  661. LIBS
  662. ECHO_T
  663. ECHO_N
  664. ECHO_C
  665. DEFS
  666. mandir
  667. localedir
  668. libdir
  669. psdir
  670. pdfdir
  671. dvidir
  672. htmldir
  673. infodir
  674. docdir
  675. oldincludedir
  676. includedir
  677. localstatedir
  678. sharedstatedir
  679. sysconfdir
  680. datadir
  681. datarootdir
  682. libexecdir
  683. sbindir
  684. bindir
  685. program_transform_name
  686. prefix
  687. exec_prefix
  688. PACKAGE_URL
  689. PACKAGE_BUGREPORT
  690. PACKAGE_STRING
  691. PACKAGE_VERSION
  692. PACKAGE_TARNAME
  693. PACKAGE_NAME
  694. PATH_SEPARATOR
  695. SHELL'
  696. ac_subst_files=''
  697. ac_user_opts='
  698. enable_option_checking
  699. enable_multilib
  700. enable_dependency_tracking
  701. enable_maintainer_mode
  702. enable_shared
  703. enable_static
  704. with_pic
  705. enable_fast_install
  706. with_gnu_ld
  707. enable_libtool_lock
  708. with_target_subdir
  709. with_cross_host
  710. enable_parallel_mark
  711. with_ecos
  712. enable_gc_debug
  713. '
  714. ac_precious_vars='build_alias
  715. host_alias
  716. target_alias
  717. CPP
  718. CPPFLAGS
  719. CXXCPP'
  720. # Initialize some variables set by options.
  721. ac_init_help=
  722. ac_init_version=false
  723. ac_unrecognized_opts=
  724. ac_unrecognized_sep=
  725. # The variables have the same names as the options, with
  726. # dashes changed to underlines.
  727. cache_file=/dev/null
  728. exec_prefix=NONE
  729. no_create=
  730. no_recursion=
  731. prefix=NONE
  732. program_prefix=NONE
  733. program_suffix=NONE
  734. program_transform_name=s,x,x,
  735. silent=
  736. site=
  737. srcdir=
  738. verbose=
  739. x_includes=NONE
  740. x_libraries=NONE
  741. # Installation directory options.
  742. # These are left unexpanded so users can "make install exec_prefix=/foo"
  743. # and all the variables that are supposed to be based on exec_prefix
  744. # by default will actually change.
  745. # Use braces instead of parens because sh, perl, etc. also accept them.
  746. # (The list follows the same order as the GNU Coding Standards.)
  747. bindir='${exec_prefix}/bin'
  748. sbindir='${exec_prefix}/sbin'
  749. libexecdir='${exec_prefix}/libexec'
  750. datarootdir='${prefix}/share'
  751. datadir='${datarootdir}'
  752. sysconfdir='${prefix}/etc'
  753. sharedstatedir='${prefix}/com'
  754. localstatedir='${prefix}/var'
  755. includedir='${prefix}/include'
  756. oldincludedir='/usr/include'
  757. docdir='${datarootdir}/doc/${PACKAGE}'
  758. infodir='${datarootdir}/info'
  759. htmldir='${docdir}'
  760. dvidir='${docdir}'
  761. pdfdir='${docdir}'
  762. psdir='${docdir}'
  763. libdir='${exec_prefix}/lib'
  764. localedir='${datarootdir}/locale'
  765. mandir='${datarootdir}/man'
  766. ac_prev=
  767. ac_dashdash=
  768. for ac_option
  769. do
  770. # If the previous option needs an argument, assign it.
  771. if test -n "$ac_prev"; then
  772. eval $ac_prev=\$ac_option
  773. ac_prev=
  774. continue
  775. fi
  776. case $ac_option in
  777. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  778. *) ac_optarg=yes ;;
  779. esac
  780. # Accept the important Cygnus configure options, so we can diagnose typos.
  781. case $ac_dashdash$ac_option in
  782. --)
  783. ac_dashdash=yes ;;
  784. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  785. ac_prev=bindir ;;
  786. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  787. bindir=$ac_optarg ;;
  788. -build | --build | --buil | --bui | --bu)
  789. ac_prev=build_alias ;;
  790. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  791. build_alias=$ac_optarg ;;
  792. -cache-file | --cache-file | --cache-fil | --cache-fi \
  793. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  794. ac_prev=cache_file ;;
  795. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  796. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  797. cache_file=$ac_optarg ;;
  798. --config-cache | -C)
  799. cache_file=config.cache ;;
  800. -datadir | --datadir | --datadi | --datad)
  801. ac_prev=datadir ;;
  802. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  803. datadir=$ac_optarg ;;
  804. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  805. | --dataroo | --dataro | --datar)
  806. ac_prev=datarootdir ;;
  807. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  808. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  809. datarootdir=$ac_optarg ;;
  810. -disable-* | --disable-*)
  811. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  812. # Reject names that are not valid shell variable names.
  813. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  814. as_fn_error "invalid feature name: $ac_useropt"
  815. ac_useropt_orig=$ac_useropt
  816. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  817. case $ac_user_opts in
  818. *"
  819. "enable_$ac_useropt"
  820. "*) ;;
  821. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  822. ac_unrecognized_sep=', ';;
  823. esac
  824. eval enable_$ac_useropt=no ;;
  825. -docdir | --docdir | --docdi | --doc | --do)
  826. ac_prev=docdir ;;
  827. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  828. docdir=$ac_optarg ;;
  829. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  830. ac_prev=dvidir ;;
  831. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  832. dvidir=$ac_optarg ;;
  833. -enable-* | --enable-*)
  834. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  835. # Reject names that are not valid shell variable names.
  836. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  837. as_fn_error "invalid feature name: $ac_useropt"
  838. ac_useropt_orig=$ac_useropt
  839. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  840. case $ac_user_opts in
  841. *"
  842. "enable_$ac_useropt"
  843. "*) ;;
  844. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  845. ac_unrecognized_sep=', ';;
  846. esac
  847. eval enable_$ac_useropt=\$ac_optarg ;;
  848. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  849. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  850. | --exec | --exe | --ex)
  851. ac_prev=exec_prefix ;;
  852. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  853. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  854. | --exec=* | --exe=* | --ex=*)
  855. exec_prefix=$ac_optarg ;;
  856. -gas | --gas | --ga | --g)
  857. # Obsolete; use --with-gas.
  858. with_gas=yes ;;
  859. -help | --help | --hel | --he | -h)
  860. ac_init_help=long ;;
  861. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  862. ac_init_help=recursive ;;
  863. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  864. ac_init_help=short ;;
  865. -host | --host | --hos | --ho)
  866. ac_prev=host_alias ;;
  867. -host=* | --host=* | --hos=* | --ho=*)
  868. host_alias=$ac_optarg ;;
  869. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  870. ac_prev=htmldir ;;
  871. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  872. | --ht=*)
  873. htmldir=$ac_optarg ;;
  874. -includedir | --includedir | --includedi | --included | --include \
  875. | --includ | --inclu | --incl | --inc)
  876. ac_prev=includedir ;;
  877. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  878. | --includ=* | --inclu=* | --incl=* | --inc=*)
  879. includedir=$ac_optarg ;;
  880. -infodir | --infodir | --infodi | --infod | --info | --inf)
  881. ac_prev=infodir ;;
  882. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  883. infodir=$ac_optarg ;;
  884. -libdir | --libdir | --libdi | --libd)
  885. ac_prev=libdir ;;
  886. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  887. libdir=$ac_optarg ;;
  888. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  889. | --libexe | --libex | --libe)
  890. ac_prev=libexecdir ;;
  891. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  892. | --libexe=* | --libex=* | --libe=*)
  893. libexecdir=$ac_optarg ;;
  894. -localedir | --localedir | --localedi | --localed | --locale)
  895. ac_prev=localedir ;;
  896. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  897. localedir=$ac_optarg ;;
  898. -localstatedir | --localstatedir | --localstatedi | --localstated \
  899. | --localstate | --localstat | --localsta | --localst | --locals)
  900. ac_prev=localstatedir ;;
  901. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  902. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  903. localstatedir=$ac_optarg ;;
  904. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  905. ac_prev=mandir ;;
  906. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  907. mandir=$ac_optarg ;;
  908. -nfp | --nfp | --nf)
  909. # Obsolete; use --without-fp.
  910. with_fp=no ;;
  911. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  912. | --no-cr | --no-c | -n)
  913. no_create=yes ;;
  914. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  915. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  916. no_recursion=yes ;;
  917. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  918. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  919. | --oldin | --oldi | --old | --ol | --o)
  920. ac_prev=oldincludedir ;;
  921. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  922. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  923. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  924. oldincludedir=$ac_optarg ;;
  925. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  926. ac_prev=prefix ;;
  927. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  928. prefix=$ac_optarg ;;
  929. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  930. | --program-pre | --program-pr | --program-p)
  931. ac_prev=program_prefix ;;
  932. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  933. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  934. program_prefix=$ac_optarg ;;
  935. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  936. | --program-suf | --program-su | --program-s)
  937. ac_prev=program_suffix ;;
  938. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  939. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  940. program_suffix=$ac_optarg ;;
  941. -program-transform-name | --program-transform-name \
  942. | --program-transform-nam | --program-transform-na \
  943. | --program-transform-n | --program-transform- \
  944. | --program-transform | --program-transfor \
  945. | --program-transfo | --program-transf \
  946. | --program-trans | --program-tran \
  947. | --progr-tra | --program-tr | --program-t)
  948. ac_prev=program_transform_name ;;
  949. -program-transform-name=* | --program-transform-name=* \
  950. | --program-transform-nam=* | --program-transform-na=* \
  951. | --program-transform-n=* | --program-transform-=* \
  952. | --program-transform=* | --program-transfor=* \
  953. | --program-transfo=* | --program-transf=* \
  954. | --program-trans=* | --program-tran=* \
  955. | --progr-tra=* | --program-tr=* | --program-t=*)
  956. program_transform_name=$ac_optarg ;;
  957. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  958. ac_prev=pdfdir ;;
  959. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  960. pdfdir=$ac_optarg ;;
  961. -psdir | --psdir | --psdi | --psd | --ps)
  962. ac_prev=psdir ;;
  963. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  964. psdir=$ac_optarg ;;
  965. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  966. | -silent | --silent | --silen | --sile | --sil)
  967. silent=yes ;;
  968. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  969. ac_prev=sbindir ;;
  970. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  971. | --sbi=* | --sb=*)
  972. sbindir=$ac_optarg ;;
  973. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  974. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  975. | --sharedst | --shareds | --shared | --share | --shar \
  976. | --sha | --sh)
  977. ac_prev=sharedstatedir ;;
  978. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  979. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  980. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  981. | --sha=* | --sh=*)
  982. sharedstatedir=$ac_optarg ;;
  983. -site | --site | --sit)
  984. ac_prev=site ;;
  985. -site=* | --site=* | --sit=*)
  986. site=$ac_optarg ;;
  987. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  988. ac_prev=srcdir ;;
  989. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  990. srcdir=$ac_optarg ;;
  991. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  992. | --syscon | --sysco | --sysc | --sys | --sy)
  993. ac_prev=sysconfdir ;;
  994. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  995. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  996. sysconfdir=$ac_optarg ;;
  997. -target | --target | --targe | --targ | --tar | --ta | --t)
  998. ac_prev=target_alias ;;
  999. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1000. target_alias=$ac_optarg ;;
  1001. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1002. verbose=yes ;;
  1003. -version | --version | --versio | --versi | --vers | -V)
  1004. ac_init_version=: ;;
  1005. -with-* | --with-*)
  1006. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1007. # Reject names that are not valid shell variable names.
  1008. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1009. as_fn_error "invalid package name: $ac_useropt"
  1010. ac_useropt_orig=$ac_useropt
  1011. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1012. case $ac_user_opts in
  1013. *"
  1014. "with_$ac_useropt"
  1015. "*) ;;
  1016. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1017. ac_unrecognized_sep=', ';;
  1018. esac
  1019. eval with_$ac_useropt=\$ac_optarg ;;
  1020. -without-* | --without-*)
  1021. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1022. # Reject names that are not valid shell variable names.
  1023. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1024. as_fn_error "invalid package name: $ac_useropt"
  1025. ac_useropt_orig=$ac_useropt
  1026. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1027. case $ac_user_opts in
  1028. *"
  1029. "with_$ac_useropt"
  1030. "*) ;;
  1031. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1032. ac_unrecognized_sep=', ';;
  1033. esac
  1034. eval with_$ac_useropt=no ;;
  1035. --x)
  1036. # Obsolete; use --with-x.
  1037. with_x=yes ;;
  1038. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1039. | --x-incl | --x-inc | --x-in | --x-i)
  1040. ac_prev=x_includes ;;
  1041. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1042. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1043. x_includes=$ac_optarg ;;
  1044. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1045. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1046. ac_prev=x_libraries ;;
  1047. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1048. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1049. x_libraries=$ac_optarg ;;
  1050. -*) as_fn_error "unrecognized option: \`$ac_option'
  1051. Try \`$0 --help' for more information."
  1052. ;;
  1053. *=*)
  1054. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1055. # Reject names that are not valid shell variable names.
  1056. case $ac_envvar in #(
  1057. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1058. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1059. esac
  1060. eval $ac_envvar=\$ac_optarg
  1061. export $ac_envvar ;;
  1062. *)
  1063. # FIXME: should be removed in autoconf 3.0.
  1064. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1065. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1066. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1067. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1068. ;;
  1069. esac
  1070. done
  1071. if test -n "$ac_prev"; then
  1072. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1073. as_fn_error "missing argument to $ac_option"
  1074. fi
  1075. if test -n "$ac_unrecognized_opts"; then
  1076. case $enable_option_checking in
  1077. no) ;;
  1078. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1079. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1080. esac
  1081. fi
  1082. # Check all directory arguments for consistency.
  1083. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1084. datadir sysconfdir sharedstatedir localstatedir includedir \
  1085. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1086. libdir localedir mandir
  1087. do
  1088. eval ac_val=\$$ac_var
  1089. # Remove trailing slashes.
  1090. case $ac_val in
  1091. */ )
  1092. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1093. eval $ac_var=\$ac_val;;
  1094. esac
  1095. # Be sure to have absolute directory names.
  1096. case $ac_val in
  1097. [\\/$]* | ?:[\\/]* ) continue;;
  1098. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1099. esac
  1100. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1101. done
  1102. # There might be people who depend on the old broken behavior: `$host'
  1103. # used to hold the argument of --host etc.
  1104. # FIXME: To remove some day.
  1105. build=$build_alias
  1106. host=$host_alias
  1107. target=$target_alias
  1108. # FIXME: To remove some day.
  1109. if test "x$host_alias" != x; then
  1110. if test "x$build_alias" = x; then
  1111. cross_compiling=maybe
  1112. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1113. If a cross compiler is detected then cross compile mode will be used." >&2
  1114. elif test "x$build_alias" != "x$host_alias"; then
  1115. cross_compiling=yes
  1116. fi
  1117. fi
  1118. ac_tool_prefix=
  1119. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1120. test "$silent" = yes && exec 6>/dev/null
  1121. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1122. ac_ls_di=`ls -di .` &&
  1123. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1124. as_fn_error "working directory cannot be determined"
  1125. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1126. as_fn_error "pwd does not report name of working directory"
  1127. # Find the source files, if location was not specified.
  1128. if test -z "$srcdir"; then
  1129. ac_srcdir_defaulted=yes
  1130. # Try the directory containing this script, then the parent directory.
  1131. ac_confdir=`$as_dirname -- "$as_myself" ||
  1132. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1133. X"$as_myself" : 'X\(//\)[^/]' \| \
  1134. X"$as_myself" : 'X\(//\)$' \| \
  1135. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1136. $as_echo X"$as_myself" |
  1137. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1138. s//\1/
  1139. q
  1140. }
  1141. /^X\(\/\/\)[^/].*/{
  1142. s//\1/
  1143. q
  1144. }
  1145. /^X\(\/\/\)$/{
  1146. s//\1/
  1147. q
  1148. }
  1149. /^X\(\/\).*/{
  1150. s//\1/
  1151. q
  1152. }
  1153. s/.*/./; q'`
  1154. srcdir=$ac_confdir
  1155. if test ! -r "$srcdir/$ac_unique_file"; then
  1156. srcdir=..
  1157. fi
  1158. else
  1159. ac_srcdir_defaulted=no
  1160. fi
  1161. if test ! -r "$srcdir/$ac_unique_file"; then
  1162. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1163. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1164. fi
  1165. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1166. ac_abs_confdir=`(
  1167. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1168. pwd)`
  1169. # When building in place, set srcdir=.
  1170. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1171. srcdir=.
  1172. fi
  1173. # Remove unnecessary trailing slashes from srcdir.
  1174. # Double slashes in file names in object file debugging info
  1175. # mess up M-x gdb in Emacs.
  1176. case $srcdir in
  1177. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1178. esac
  1179. for ac_var in $ac_precious_vars; do
  1180. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1181. eval ac_env_${ac_var}_value=\$${ac_var}
  1182. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1183. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1184. done
  1185. #
  1186. # Report the --help message.
  1187. #
  1188. if test "$ac_init_help" = "long"; then
  1189. # Omit some internal or obsolete options to make the list less imposing.
  1190. # This message is too long to be a string in the A/UX 3.1 sh.
  1191. cat <<_ACEOF
  1192. \`configure' configures this package to adapt to many kinds of systems.
  1193. Usage: $0 [OPTION]... [VAR=VALUE]...
  1194. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1195. VAR=VALUE. See below for descriptions of some of the useful variables.
  1196. Defaults for the options are specified in brackets.
  1197. Configuration:
  1198. -h, --help display this help and exit
  1199. --help=short display options specific to this package
  1200. --help=recursive display the short help of all the included packages
  1201. -V, --version display version information and exit
  1202. -q, --quiet, --silent do not print \`checking...' messages
  1203. --cache-file=FILE cache test results in FILE [disabled]
  1204. -C, --config-cache alias for \`--cache-file=config.cache'
  1205. -n, --no-create do not create output files
  1206. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1207. Installation directories:
  1208. --prefix=PREFIX install architecture-independent files in PREFIX
  1209. [$ac_default_prefix]
  1210. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1211. [PREFIX]
  1212. By default, \`make install' will install all the files in
  1213. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1214. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1215. for instance \`--prefix=\$HOME'.
  1216. For better control, use the options below.
  1217. Fine tuning of the installation directories:
  1218. --bindir=DIR user executables [EPREFIX/bin]
  1219. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1220. --libexecdir=DIR program executables [EPREFIX/libexec]
  1221. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1222. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1223. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1224. --libdir=DIR object code libraries [EPREFIX/lib]
  1225. --includedir=DIR C header files [PREFIX/include]
  1226. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1227. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1228. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1229. --infodir=DIR info documentation [DATAROOTDIR/info]
  1230. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1231. --mandir=DIR man documentation [DATAROOTDIR/man]
  1232. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1233. --htmldir=DIR html documentation [DOCDIR]
  1234. --dvidir=DIR dvi documentation [DOCDIR]
  1235. --pdfdir=DIR pdf documentation [DOCDIR]
  1236. --psdir=DIR ps documentation [DOCDIR]
  1237. _ACEOF
  1238. cat <<\_ACEOF
  1239. Program names:
  1240. --program-prefix=PREFIX prepend PREFIX to installed program names
  1241. --program-suffix=SUFFIX append SUFFIX to installed program names
  1242. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1243. System types:
  1244. --build=BUILD configure for building on BUILD [guessed]
  1245. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1246. --target=TARGET configure for building compilers for TARGET [HOST]
  1247. _ACEOF
  1248. fi
  1249. if test -n "$ac_init_help"; then
  1250. cat <<\_ACEOF
  1251. Optional Features:
  1252. --disable-option-checking ignore unrecognized --enable/--with options
  1253. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1254. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1255. --enable-multilib build many library versions (default)
  1256. --disable-dependency-tracking speeds up one-time build
  1257. --enable-dependency-tracking do not reject slow dependency extractors
  1258. --enable-maintainer-mode enable make rules and dependencies not useful
  1259. (and sometimes confusing) to the casual installer
  1260. --enable-shared[=PKGS] build shared libraries [default=yes]
  1261. --enable-static[=PKGS] build static libraries [default=yes]
  1262. --enable-fast-install[=PKGS]
  1263. optimize for fast installation [default=yes]
  1264. --disable-libtool-lock avoid locking (might break parallel builds)
  1265. --enable-parallel-mark parallelize marking and free list construction
  1266. --enable-gc-debug include full support for pointer backtracing etc.
  1267. Optional Packages:
  1268. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1269. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1270. --with-pic try to use only PIC/non-PIC objects [default=use
  1271. both]
  1272. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1273. --with-target-subdir=SUBDIR
  1274. configuring with a cross compiler
  1275. --with-cross-host=HOST configuring with a cross compiler
  1276. --with-ecos enable runtime eCos target support
  1277. Some influential environment variables:
  1278. CC C compiler command
  1279. CFLAGS C compiler flags
  1280. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1281. nonstandard directory <lib dir>
  1282. LIBS libraries to pass to the linker, e.g. -l<library>
  1283. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1284. you have headers in a nonstandard directory <include dir>
  1285. CXX C++ compiler command
  1286. CXXFLAGS C++ compiler flags
  1287. CPP C preprocessor
  1288. CXXCPP C++ preprocessor
  1289. Use these variables to override the choices made by `configure' or to help
  1290. it to find libraries and programs with nonstandard names/locations.
  1291. Report bugs to the package provider.
  1292. _ACEOF
  1293. ac_status=$?
  1294. fi
  1295. if test "$ac_init_help" = "recursive"; then
  1296. # If there are subdirs, report their specific --help.
  1297. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1298. test -d "$ac_dir" ||
  1299. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1300. continue
  1301. ac_builddir=.
  1302. case "$ac_dir" in
  1303. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1304. *)
  1305. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1306. # A ".." for each directory in $ac_dir_suffix.
  1307. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1308. case $ac_top_builddir_sub in
  1309. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1310. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1311. esac ;;
  1312. esac
  1313. ac_abs_top_builddir=$ac_pwd
  1314. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1315. # for backward compatibility:
  1316. ac_top_builddir=$ac_top_build_prefix
  1317. case $srcdir in
  1318. .) # We are building in place.
  1319. ac_srcdir=.
  1320. ac_top_srcdir=$ac_top_builddir_sub
  1321. ac_abs_top_srcdir=$ac_pwd ;;
  1322. [\\/]* | ?:[\\/]* ) # Absolute name.
  1323. ac_srcdir=$srcdir$ac_dir_suffix;
  1324. ac_top_srcdir=$srcdir
  1325. ac_abs_top_srcdir=$srcdir ;;
  1326. *) # Relative name.
  1327. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1328. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1329. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1330. esac
  1331. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1332. cd "$ac_dir" || { ac_status=$?; continue; }
  1333. # Check for guested configure.
  1334. if test -f "$ac_srcdir/configure.gnu"; then
  1335. echo &&
  1336. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1337. elif test -f "$ac_srcdir/configure"; then
  1338. echo &&
  1339. $SHELL "$ac_srcdir/configure" --help=recursive
  1340. else
  1341. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1342. fi || ac_status=$?
  1343. cd "$ac_pwd" || { ac_status=$?; break; }
  1344. done
  1345. fi
  1346. test -n "$ac_init_help" && exit $ac_status
  1347. if $ac_init_version; then
  1348. cat <<\_ACEOF
  1349. configure
  1350. generated by GNU Autoconf 2.64
  1351. Copyright (C) 2009 Free Software Foundation, Inc.
  1352. This configure script is free software; the Free Software Foundation
  1353. gives unlimited permission to copy, distribute and modify it.
  1354. _ACEOF
  1355. exit
  1356. fi
  1357. ## ------------------------ ##
  1358. ## Autoconf initialization. ##
  1359. ## ------------------------ ##
  1360. # ac_fn_c_try_compile LINENO
  1361. # --------------------------
  1362. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1363. ac_fn_c_try_compile ()
  1364. {
  1365. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1366. rm -f conftest.$ac_objext
  1367. if { { ac_try="$ac_compile"
  1368. case "(($ac_try" in
  1369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1370. *) ac_try_echo=$ac_try;;
  1371. esac
  1372. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1373. $as_echo "$ac_try_echo"; } >&5
  1374. (eval "$ac_compile") 2>conftest.err
  1375. ac_status=$?
  1376. if test -s conftest.err; then
  1377. grep -v '^ *+' conftest.err >conftest.er1
  1378. cat conftest.er1 >&5
  1379. mv -f conftest.er1 conftest.err
  1380. fi
  1381. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1382. test $ac_status = 0; } && {
  1383. test -z "$ac_c_werror_flag" ||
  1384. test ! -s conftest.err
  1385. } && test -s conftest.$ac_objext; then :
  1386. ac_retval=0
  1387. else
  1388. $as_echo "$as_me: failed program was:" >&5
  1389. sed 's/^/| /' conftest.$ac_ext >&5
  1390. ac_retval=1
  1391. fi
  1392. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1393. return $ac_retval
  1394. } # ac_fn_c_try_compile
  1395. # ac_fn_cxx_try_compile LINENO
  1396. # ----------------------------
  1397. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1398. ac_fn_cxx_try_compile ()
  1399. {
  1400. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1401. rm -f conftest.$ac_objext
  1402. if { { ac_try="$ac_compile"
  1403. case "(($ac_try" in
  1404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1405. *) ac_try_echo=$ac_try;;
  1406. esac
  1407. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1408. $as_echo "$ac_try_echo"; } >&5
  1409. (eval "$ac_compile") 2>conftest.err
  1410. ac_status=$?
  1411. if test -s conftest.err; then
  1412. grep -v '^ *+' conftest.err >conftest.er1
  1413. cat conftest.er1 >&5
  1414. mv -f conftest.er1 conftest.err
  1415. fi
  1416. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1417. test $ac_status = 0; } && {
  1418. test -z "$ac_cxx_werror_flag" ||
  1419. test ! -s conftest.err
  1420. } && test -s conftest.$ac_objext; then :
  1421. ac_retval=0
  1422. else
  1423. $as_echo "$as_me: failed program was:" >&5
  1424. sed 's/^/| /' conftest.$ac_ext >&5
  1425. ac_retval=1
  1426. fi
  1427. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1428. return $ac_retval
  1429. } # ac_fn_cxx_try_compile
  1430. # ac_fn_c_try_link LINENO
  1431. # -----------------------
  1432. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1433. ac_fn_c_try_link ()
  1434. {
  1435. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1436. rm -f conftest.$ac_objext conftest$ac_exeext
  1437. if { { ac_try="$ac_link"
  1438. case "(($ac_try" in
  1439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1440. *) ac_try_echo=$ac_try;;
  1441. esac
  1442. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1443. $as_echo "$ac_try_echo"; } >&5
  1444. (eval "$ac_link") 2>conftest.err
  1445. ac_status=$?
  1446. if test -s conftest.err; then
  1447. grep -v '^ *+' conftest.err >conftest.er1
  1448. cat conftest.er1 >&5
  1449. mv -f conftest.er1 conftest.err
  1450. fi
  1451. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1452. test $ac_status = 0; } && {
  1453. test -z "$ac_c_werror_flag" ||
  1454. test ! -s conftest.err
  1455. } && test -s conftest$ac_exeext && {
  1456. test "$cross_compiling" = yes ||
  1457. $as_test_x conftest$ac_exeext
  1458. }; then :
  1459. ac_retval=0
  1460. else
  1461. $as_echo "$as_me: failed program was:" >&5
  1462. sed 's/^/| /' conftest.$ac_ext >&5
  1463. ac_retval=1
  1464. fi
  1465. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1466. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1467. # interfere with the next link command; also delete a directory that is
  1468. # left behind by Apple's compiler. We do this before executing the actions.
  1469. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1470. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1471. return $ac_retval
  1472. } # ac_fn_c_try_link
  1473. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1474. # -------------------------------------------------------
  1475. # Tests whether HEADER exists and can be compiled using the include files in
  1476. # INCLUDES, setting the cache variable VAR accordingly.
  1477. ac_fn_c_check_header_compile ()
  1478. {
  1479. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1481. $as_echo_n "checking for $2... " >&6; }
  1482. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1483. $as_echo_n "(cached) " >&6
  1484. else
  1485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1486. /* end confdefs.h. */
  1487. $4
  1488. #include <$2>
  1489. _ACEOF
  1490. if ac_fn_c_try_compile "$LINENO"; then :
  1491. eval "$3=yes"
  1492. else
  1493. eval "$3=no"
  1494. fi
  1495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1496. fi
  1497. eval ac_res=\$$3
  1498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1499. $as_echo "$ac_res" >&6; }
  1500. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1501. } # ac_fn_c_check_header_compile
  1502. # ac_fn_c_try_cpp LINENO
  1503. # ----------------------
  1504. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1505. ac_fn_c_try_cpp ()
  1506. {
  1507. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1508. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1509. case "(($ac_try" in
  1510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1511. *) ac_try_echo=$ac_try;;
  1512. esac
  1513. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1514. $as_echo "$ac_try_echo"; } >&5
  1515. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1516. ac_status=$?
  1517. if test -s conftest.err; then
  1518. grep -v '^ *+' conftest.err >conftest.er1
  1519. cat conftest.er1 >&5
  1520. mv -f conftest.er1 conftest.err
  1521. fi
  1522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1523. test $ac_status = 0; } >/dev/null && {
  1524. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1525. test ! -s conftest.err
  1526. }; then :
  1527. ac_retval=0
  1528. else
  1529. $as_echo "$as_me: failed program was:" >&5
  1530. sed 's/^/| /' conftest.$ac_ext >&5
  1531. ac_retval=1
  1532. fi
  1533. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1534. return $ac_retval
  1535. } # ac_fn_c_try_cpp
  1536. # ac_fn_c_try_run LINENO
  1537. # ----------------------
  1538. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1539. # that executables *can* be run.
  1540. ac_fn_c_try_run ()
  1541. {
  1542. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1543. if { { ac_try="$ac_link"
  1544. case "(($ac_try" in
  1545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1546. *) ac_try_echo=$ac_try;;
  1547. esac
  1548. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1549. $as_echo "$ac_try_echo"; } >&5
  1550. (eval "$ac_link") 2>&5
  1551. ac_status=$?
  1552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1553. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1554. { { case "(($ac_try" in
  1555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1556. *) ac_try_echo=$ac_try;;
  1557. esac
  1558. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1559. $as_echo "$ac_try_echo"; } >&5
  1560. (eval "$ac_try") 2>&5
  1561. ac_status=$?
  1562. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1563. test $ac_status = 0; }; }; then :
  1564. ac_retval=0
  1565. else
  1566. $as_echo "$as_me: program exited with status $ac_status" >&5
  1567. $as_echo "$as_me: failed program was:" >&5
  1568. sed 's/^/| /' conftest.$ac_ext >&5
  1569. ac_retval=$ac_status
  1570. fi
  1571. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1572. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1573. return $ac_retval
  1574. } # ac_fn_c_try_run
  1575. # ac_fn_c_check_func LINENO FUNC VAR
  1576. # ----------------------------------
  1577. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1578. ac_fn_c_check_func ()
  1579. {
  1580. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1582. $as_echo_n "checking for $2... " >&6; }
  1583. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1584. $as_echo_n "(cached) " >&6
  1585. else
  1586. if test x$gcc_no_link = xyes; then
  1587. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1588. fi
  1589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1590. /* end confdefs.h. */
  1591. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1592. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1593. #define $2 innocuous_$2
  1594. /* System header to define __stub macros and hopefully few prototypes,
  1595. which can conflict with char $2 (); below.
  1596. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1597. <limits.h> exists even on freestanding compilers. */
  1598. #ifdef __STDC__
  1599. # include <limits.h>
  1600. #else
  1601. # include <assert.h>
  1602. #endif
  1603. #undef $2
  1604. /* Override any GCC internal prototype to avoid an error.
  1605. Use char because int might match the return type of a GCC
  1606. builtin and then its argument prototype would still apply. */
  1607. #ifdef __cplusplus
  1608. extern "C"
  1609. #endif
  1610. char $2 ();
  1611. /* The GNU C library defines this for functions which it implements
  1612. to always fail with ENOSYS. Some functions are actually named
  1613. something starting with __ and the normal name is an alias. */
  1614. #if defined __stub_$2 || defined __stub___$2
  1615. choke me
  1616. #endif
  1617. int
  1618. main ()
  1619. {
  1620. return $2 ();
  1621. ;
  1622. return 0;
  1623. }
  1624. _ACEOF
  1625. if ac_fn_c_try_link "$LINENO"; then :
  1626. eval "$3=yes"
  1627. else
  1628. eval "$3=no"
  1629. fi
  1630. rm -f core conftest.err conftest.$ac_objext \
  1631. conftest$ac_exeext conftest.$ac_ext
  1632. fi
  1633. eval ac_res=\$$3
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1635. $as_echo "$ac_res" >&6; }
  1636. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1637. } # ac_fn_c_check_func
  1638. # ac_fn_cxx_try_cpp LINENO
  1639. # ------------------------
  1640. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1641. ac_fn_cxx_try_cpp ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1645. case "(($ac_try" in
  1646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1647. *) ac_try_echo=$ac_try;;
  1648. esac
  1649. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1650. $as_echo "$ac_try_echo"; } >&5
  1651. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1652. ac_status=$?
  1653. if test -s conftest.err; then
  1654. grep -v '^ *+' conftest.err >conftest.er1
  1655. cat conftest.er1 >&5
  1656. mv -f conftest.er1 conftest.err
  1657. fi
  1658. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1659. test $ac_status = 0; } >/dev/null && {
  1660. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1661. test ! -s conftest.err
  1662. }; then :
  1663. ac_retval=0
  1664. else
  1665. $as_echo "$as_me: failed program was:" >&5
  1666. sed 's/^/| /' conftest.$ac_ext >&5
  1667. ac_retval=1
  1668. fi
  1669. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1670. return $ac_retval
  1671. } # ac_fn_cxx_try_cpp
  1672. # ac_fn_cxx_try_link LINENO
  1673. # -------------------------
  1674. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1675. ac_fn_cxx_try_link ()
  1676. {
  1677. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1678. rm -f conftest.$ac_objext conftest$ac_exeext
  1679. if { { ac_try="$ac_link"
  1680. case "(($ac_try" in
  1681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1682. *) ac_try_echo=$ac_try;;
  1683. esac
  1684. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1685. $as_echo "$ac_try_echo"; } >&5
  1686. (eval "$ac_link") 2>conftest.err
  1687. ac_status=$?
  1688. if test -s conftest.err; then
  1689. grep -v '^ *+' conftest.err >conftest.er1
  1690. cat conftest.er1 >&5
  1691. mv -f conftest.er1 conftest.err
  1692. fi
  1693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1694. test $ac_status = 0; } && {
  1695. test -z "$ac_cxx_werror_flag" ||
  1696. test ! -s conftest.err
  1697. } && test -s conftest$ac_exeext && {
  1698. test "$cross_compiling" = yes ||
  1699. $as_test_x conftest$ac_exeext
  1700. }; then :
  1701. ac_retval=0
  1702. else
  1703. $as_echo "$as_me: failed program was:" >&5
  1704. sed 's/^/| /' conftest.$ac_ext >&5
  1705. ac_retval=1
  1706. fi
  1707. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1708. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1709. # interfere with the next link command; also delete a directory that is
  1710. # left behind by Apple's compiler. We do this before executing the actions.
  1711. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1712. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1713. return $ac_retval
  1714. } # ac_fn_cxx_try_link
  1715. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1716. # ----------------------------------------------------
  1717. # Tries to find if the field MEMBER exists in type AGGR, after including
  1718. # INCLUDES, setting cache variable VAR accordingly.
  1719. ac_fn_c_check_member ()
  1720. {
  1721. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1723. $as_echo_n "checking for $2.$3... " >&6; }
  1724. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  1725. $as_echo_n "(cached) " >&6
  1726. else
  1727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1728. /* end confdefs.h. */
  1729. $5
  1730. int
  1731. main ()
  1732. {
  1733. static $2 ac_aggr;
  1734. if (ac_aggr.$3)
  1735. return 0;
  1736. ;
  1737. return 0;
  1738. }
  1739. _ACEOF
  1740. if ac_fn_c_try_compile "$LINENO"; then :
  1741. eval "$4=yes"
  1742. else
  1743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1744. /* end confdefs.h. */
  1745. $5
  1746. int
  1747. main ()
  1748. {
  1749. static $2 ac_aggr;
  1750. if (sizeof ac_aggr.$3)
  1751. return 0;
  1752. ;
  1753. return 0;
  1754. }
  1755. _ACEOF
  1756. if ac_fn_c_try_compile "$LINENO"; then :
  1757. eval "$4=yes"
  1758. else
  1759. eval "$4=no"
  1760. fi
  1761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1762. fi
  1763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1764. fi
  1765. eval ac_res=\$$4
  1766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1767. $as_echo "$ac_res" >&6; }
  1768. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1769. } # ac_fn_c_check_member
  1770. cat >config.log <<_ACEOF
  1771. This file contains any messages produced by compilers while
  1772. running configure, to aid debugging if configure makes a mistake.
  1773. It was created by $as_me, which was
  1774. generated by GNU Autoconf 2.64. Invocation command line was
  1775. $ $0 $@
  1776. _ACEOF
  1777. exec 5>>config.log
  1778. {
  1779. cat <<_ASUNAME
  1780. ## --------- ##
  1781. ## Platform. ##
  1782. ## --------- ##
  1783. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1784. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1785. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1786. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1787. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1788. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1789. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1790. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1791. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1792. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1793. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1794. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1795. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1796. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1797. _ASUNAME
  1798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1799. for as_dir in $PATH
  1800. do
  1801. IFS=$as_save_IFS
  1802. test -z "$as_dir" && as_dir=.
  1803. $as_echo "PATH: $as_dir"
  1804. done
  1805. IFS=$as_save_IFS
  1806. } >&5
  1807. cat >&5 <<_ACEOF
  1808. ## ----------- ##
  1809. ## Core tests. ##
  1810. ## ----------- ##
  1811. _ACEOF
  1812. # Keep a trace of the command line.
  1813. # Strip out --no-create and --no-recursion so they do not pile up.
  1814. # Strip out --silent because we don't want to record it for future runs.
  1815. # Also quote any args containing shell meta-characters.
  1816. # Make two passes to allow for proper duplicate-argument suppression.
  1817. ac_configure_args=
  1818. ac_configure_args0=
  1819. ac_configure_args1=
  1820. ac_must_keep_next=false
  1821. for ac_pass in 1 2
  1822. do
  1823. for ac_arg
  1824. do
  1825. case $ac_arg in
  1826. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1827. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1828. | -silent | --silent | --silen | --sile | --sil)
  1829. continue ;;
  1830. *\'*)
  1831. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1832. esac
  1833. case $ac_pass in
  1834. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1835. 2)
  1836. as_fn_append ac_configure_args1 " '$ac_arg'"
  1837. if test $ac_must_keep_next = true; then
  1838. ac_must_keep_next=false # Got value, back to normal.
  1839. else
  1840. case $ac_arg in
  1841. *=* | --config-cache | -C | -disable-* | --disable-* \
  1842. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1843. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1844. | -with-* | --with-* | -without-* | --without-* | --x)
  1845. case "$ac_configure_args0 " in
  1846. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1847. esac
  1848. ;;
  1849. -* ) ac_must_keep_next=true ;;
  1850. esac
  1851. fi
  1852. as_fn_append ac_configure_args " '$ac_arg'"
  1853. ;;
  1854. esac
  1855. done
  1856. done
  1857. { ac_configure_args0=; unset ac_configure_args0;}
  1858. { ac_configure_args1=; unset ac_configure_args1;}
  1859. # When interrupted or exit'd, cleanup temporary files, and complete
  1860. # config.log. We remove comments because anyway the quotes in there
  1861. # would cause problems or look ugly.
  1862. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1863. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1864. trap 'exit_status=$?
  1865. # Save into config.log some information that might help in debugging.
  1866. {
  1867. echo
  1868. cat <<\_ASBOX
  1869. ## ---------------- ##
  1870. ## Cache variables. ##
  1871. ## ---------------- ##
  1872. _ASBOX
  1873. echo
  1874. # The following way of writing the cache mishandles newlines in values,
  1875. (
  1876. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1877. eval ac_val=\$$ac_var
  1878. case $ac_val in #(
  1879. *${as_nl}*)
  1880. case $ac_var in #(
  1881. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1882. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1883. esac
  1884. case $ac_var in #(
  1885. _ | IFS | as_nl) ;; #(
  1886. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1887. *) { eval $ac_var=; unset $ac_var;} ;;
  1888. esac ;;
  1889. esac
  1890. done
  1891. (set) 2>&1 |
  1892. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1893. *${as_nl}ac_space=\ *)
  1894. sed -n \
  1895. "s/'\''/'\''\\\\'\'''\''/g;
  1896. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1897. ;; #(
  1898. *)
  1899. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1900. ;;
  1901. esac |
  1902. sort
  1903. )
  1904. echo
  1905. cat <<\_ASBOX
  1906. ## ----------------- ##
  1907. ## Output variables. ##
  1908. ## ----------------- ##
  1909. _ASBOX
  1910. echo
  1911. for ac_var in $ac_subst_vars
  1912. do
  1913. eval ac_val=\$$ac_var
  1914. case $ac_val in
  1915. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1916. esac
  1917. $as_echo "$ac_var='\''$ac_val'\''"
  1918. done | sort
  1919. echo
  1920. if test -n "$ac_subst_files"; then
  1921. cat <<\_ASBOX
  1922. ## ------------------- ##
  1923. ## File substitutions. ##
  1924. ## ------------------- ##
  1925. _ASBOX
  1926. echo
  1927. for ac_var in $ac_subst_files
  1928. do
  1929. eval ac_val=\$$ac_var
  1930. case $ac_val in
  1931. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1932. esac
  1933. $as_echo "$ac_var='\''$ac_val'\''"
  1934. done | sort
  1935. echo
  1936. fi
  1937. if test -s confdefs.h; then
  1938. cat <<\_ASBOX
  1939. ## ----------- ##
  1940. ## confdefs.h. ##
  1941. ## ----------- ##
  1942. _ASBOX
  1943. echo
  1944. cat confdefs.h
  1945. echo
  1946. fi
  1947. test "$ac_signal" != 0 &&
  1948. $as_echo "$as_me: caught signal $ac_signal"
  1949. $as_echo "$as_me: exit $exit_status"
  1950. } >&5
  1951. rm -f core *.core core.conftest.* &&
  1952. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1953. exit $exit_status
  1954. ' 0
  1955. for ac_signal in 1 2 13 15; do
  1956. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1957. done
  1958. ac_signal=0
  1959. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1960. rm -f -r conftest* confdefs.h
  1961. $as_echo "/* confdefs.h */" > confdefs.h
  1962. # Predefined preprocessor variables.
  1963. cat >>confdefs.h <<_ACEOF
  1964. #define PACKAGE_NAME "$PACKAGE_NAME"
  1965. _ACEOF
  1966. cat >>confdefs.h <<_ACEOF
  1967. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1968. _ACEOF
  1969. cat >>confdefs.h <<_ACEOF
  1970. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1971. _ACEOF
  1972. cat >>confdefs.h <<_ACEOF
  1973. #define PACKAGE_STRING "$PACKAGE_STRING"
  1974. _ACEOF
  1975. cat >>confdefs.h <<_ACEOF
  1976. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1977. _ACEOF
  1978. cat >>confdefs.h <<_ACEOF
  1979. #define PACKAGE_URL "$PACKAGE_URL"
  1980. _ACEOF
  1981. # Let the site file select an alternate cache file if it wants to.
  1982. # Prefer an explicitly selected file to automatically selected ones.
  1983. ac_site_file1=NONE
  1984. ac_site_file2=NONE
  1985. if test -n "$CONFIG_SITE"; then
  1986. ac_site_file1=$CONFIG_SITE
  1987. elif test "x$prefix" != xNONE; then
  1988. ac_site_file1=$prefix/share/config.site
  1989. ac_site_file2=$prefix/etc/config.site
  1990. else
  1991. ac_site_file1=$ac_default_prefix/share/config.site
  1992. ac_site_file2=$ac_default_prefix/etc/config.site
  1993. fi
  1994. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1995. do
  1996. test "x$ac_site_file" = xNONE && continue
  1997. if test -r "$ac_site_file"; then
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1999. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2000. sed 's/^/| /' "$ac_site_file" >&5
  2001. . "$ac_site_file"
  2002. fi
  2003. done
  2004. if test -r "$cache_file"; then
  2005. # Some versions of bash will fail to source /dev/null (special
  2006. # files actually), so we avoid doing that.
  2007. if test -f "$cache_file"; then
  2008. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2009. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2010. case $cache_file in
  2011. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2012. *) . "./$cache_file";;
  2013. esac
  2014. fi
  2015. else
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2017. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2018. >$cache_file
  2019. fi
  2020. # Check that the precious variables saved in the cache have kept the same
  2021. # value.
  2022. ac_cache_corrupted=false
  2023. for ac_var in $ac_precious_vars; do
  2024. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2025. eval ac_new_set=\$ac_env_${ac_var}_set
  2026. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2027. eval ac_new_val=\$ac_env_${ac_var}_value
  2028. case $ac_old_set,$ac_new_set in
  2029. set,)
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2031. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2032. ac_cache_corrupted=: ;;
  2033. ,set)
  2034. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2035. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2036. ac_cache_corrupted=: ;;
  2037. ,);;
  2038. *)
  2039. if test "x$ac_old_val" != "x$ac_new_val"; then
  2040. # differences in whitespace do not lead to failure.
  2041. ac_old_val_w=`echo x $ac_old_val`
  2042. ac_new_val_w=`echo x $ac_new_val`
  2043. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2044. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2045. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2046. ac_cache_corrupted=:
  2047. else
  2048. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2049. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2050. eval $ac_var=\$ac_old_val
  2051. fi
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2053. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2054. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2055. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2056. fi;;
  2057. esac
  2058. # Pass precious variables to config.status.
  2059. if test "$ac_new_set" = set; then
  2060. case $ac_new_val in
  2061. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2062. *) ac_arg=$ac_var=$ac_new_val ;;
  2063. esac
  2064. case " $ac_configure_args " in
  2065. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2066. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2067. esac
  2068. fi
  2069. done
  2070. if $ac_cache_corrupted; then
  2071. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2072. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2073. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2074. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2075. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2076. fi
  2077. ## -------------------- ##
  2078. ## Main body of script. ##
  2079. ## -------------------- ##
  2080. ac_ext=c
  2081. ac_cpp='$CPP $CPPFLAGS'
  2082. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2083. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2084. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2085. # This works around the fact that libtool configuration may change LD
  2086. # for this particular configuration, but some shells, instead of
  2087. # keeping the changes in LD private, export them just because LD is
  2088. # exported.
  2089. ORIGINAL_LD_FOR_MULTILIBS=$LD
  2090. # Default to --enable-multilib
  2091. # Check whether --enable-multilib was given.
  2092. if test "${enable_multilib+set}" = set; then :
  2093. enableval=$enable_multilib; case "$enableval" in
  2094. yes) multilib=yes ;;
  2095. no) multilib=no ;;
  2096. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2097. esac
  2098. else
  2099. multilib=yes
  2100. fi
  2101. # We may get other options which we leave undocumented:
  2102. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2103. # See config-ml.in if you want the gory details.
  2104. if test "$srcdir" = "."; then
  2105. if test "$with_target_subdir" != "."; then
  2106. multi_basedir="$srcdir/$with_multisrctop../.."
  2107. else
  2108. multi_basedir="$srcdir/$with_multisrctop.."
  2109. fi
  2110. else
  2111. multi_basedir="$srcdir/.."
  2112. fi
  2113. # Even if the default multilib is not a cross compilation,
  2114. # it may be that some of the other multilibs are.
  2115. if test $cross_compiling = no && test $multilib = yes \
  2116. && test "x${with_multisubdir}" != x ; then
  2117. cross_compiling=maybe
  2118. fi
  2119. ac_config_commands="$ac_config_commands default-1"
  2120. ac_aux_dir=
  2121. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2122. for ac_t in install-sh install.sh shtool; do
  2123. if test -f "$ac_dir/$ac_t"; then
  2124. ac_aux_dir=$ac_dir
  2125. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2126. break 2
  2127. fi
  2128. done
  2129. done
  2130. if test -z "$ac_aux_dir"; then
  2131. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2132. fi
  2133. # These three variables are undocumented and unsupported,
  2134. # and are intended to be withdrawn in a future Autoconf release.
  2135. # They can cause serious problems if a builder's source tree is in a directory
  2136. # whose full name contains unusual characters.
  2137. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2138. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2139. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2140. # Make sure we can run config.sub.
  2141. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2142. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2144. $as_echo_n "checking build system type... " >&6; }
  2145. if test "${ac_cv_build+set}" = set; then :
  2146. $as_echo_n "(cached) " >&6
  2147. else
  2148. ac_build_alias=$build_alias
  2149. test "x$ac_build_alias" = x &&
  2150. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2151. test "x$ac_build_alias" = x &&
  2152. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2153. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2154. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2155. fi
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2157. $as_echo "$ac_cv_build" >&6; }
  2158. case $ac_cv_build in
  2159. *-*-*) ;;
  2160. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2161. esac
  2162. build=$ac_cv_build
  2163. ac_save_IFS=$IFS; IFS='-'
  2164. set x $ac_cv_build
  2165. shift
  2166. build_cpu=$1
  2167. build_vendor=$2
  2168. shift; shift
  2169. # Remember, the first character of IFS is used to create $*,
  2170. # except with old shells:
  2171. build_os=$*
  2172. IFS=$ac_save_IFS
  2173. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2175. $as_echo_n "checking host system type... " >&6; }
  2176. if test "${ac_cv_host+set}" = set; then :
  2177. $as_echo_n "(cached) " >&6
  2178. else
  2179. if test "x$host_alias" = x; then
  2180. ac_cv_host=$ac_cv_build
  2181. else
  2182. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2183. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2184. fi
  2185. fi
  2186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2187. $as_echo "$ac_cv_host" >&6; }
  2188. case $ac_cv_host in
  2189. *-*-*) ;;
  2190. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2191. esac
  2192. host=$ac_cv_host
  2193. ac_save_IFS=$IFS; IFS='-'
  2194. set x $ac_cv_host
  2195. shift
  2196. host_cpu=$1
  2197. host_vendor=$2
  2198. shift; shift
  2199. # Remember, the first character of IFS is used to create $*,
  2200. # except with old shells:
  2201. host_os=$*
  2202. IFS=$ac_save_IFS
  2203. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2205. $as_echo_n "checking target system type... " >&6; }
  2206. if test "${ac_cv_target+set}" = set; then :
  2207. $as_echo_n "(cached) " >&6
  2208. else
  2209. if test "x$target_alias" = x; then
  2210. ac_cv_target=$ac_cv_host
  2211. else
  2212. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2213. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2214. fi
  2215. fi
  2216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2217. $as_echo "$ac_cv_target" >&6; }
  2218. case $ac_cv_target in
  2219. *-*-*) ;;
  2220. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2221. esac
  2222. target=$ac_cv_target
  2223. ac_save_IFS=$IFS; IFS='-'
  2224. set x $ac_cv_target
  2225. shift
  2226. target_cpu=$1
  2227. target_vendor=$2
  2228. shift; shift
  2229. # Remember, the first character of IFS is used to create $*,
  2230. # except with old shells:
  2231. target_os=$*
  2232. IFS=$ac_save_IFS
  2233. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2234. # The aliases save the names the user supplied, while $host etc.
  2235. # will get canonicalized.
  2236. test -n "$target_alias" &&
  2237. test "$program_prefix$program_suffix$program_transform_name" = \
  2238. NONENONEs,x,x, &&
  2239. program_prefix=${target_alias}-
  2240. # Get the 'noncanonical' system names.
  2241. case ${build_alias} in
  2242. "") build_noncanonical=${build} ;;
  2243. *) build_noncanonical=${build_alias} ;;
  2244. esac
  2245. case ${host_alias} in
  2246. "") host_noncanonical=${build_noncanonical} ;;
  2247. *) host_noncanonical=${host_alias} ;;
  2248. esac
  2249. case ${target_alias} in
  2250. "") target_noncanonical=${host_noncanonical} ;;
  2251. *) target_noncanonical=${target_alias} ;;
  2252. esac
  2253. # This works around an automake problem.
  2254. mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
  2255. am__api_version='1.11'
  2256. # Find a good install program. We prefer a C program (faster),
  2257. # so one script is as good as another. But avoid the broken or
  2258. # incompatible versions:
  2259. # SysV /etc/install, /usr/sbin/install
  2260. # SunOS /usr/etc/install
  2261. # IRIX /sbin/install
  2262. # AIX /bin/install
  2263. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2264. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2265. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2266. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2267. # OS/2's system install, which has a completely different semantic
  2268. # ./install, which can be erroneously created by make from ./install.sh.
  2269. # Reject install programs that cannot install multiple files.
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2271. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2272. if test -z "$INSTALL"; then
  2273. if test "${ac_cv_path_install+set}" = set; then :
  2274. $as_echo_n "(cached) " >&6
  2275. else
  2276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2277. for as_dir in $PATH
  2278. do
  2279. IFS=$as_save_IFS
  2280. test -z "$as_dir" && as_dir=.
  2281. # Account for people who put trailing slashes in PATH elements.
  2282. case $as_dir/ in #((
  2283. ./ | .// | /[cC]/* | \
  2284. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2285. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2286. /usr/ucb/* ) ;;
  2287. *)
  2288. # OSF1 and SCO ODT 3.0 have their own names for install.
  2289. # Don't use installbsd from OSF since it installs stuff as root
  2290. # by default.
  2291. for ac_prog in ginstall scoinst install; do
  2292. for ac_exec_ext in '' $ac_executable_extensions; do
  2293. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2294. if test $ac_prog = install &&
  2295. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2296. # AIX install. It has an incompatible calling convention.
  2297. :
  2298. elif test $ac_prog = install &&
  2299. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2300. # program-specific install script used by HP pwplus--don't use.
  2301. :
  2302. else
  2303. rm -rf conftest.one conftest.two conftest.dir
  2304. echo one > conftest.one
  2305. echo two > conftest.two
  2306. mkdir conftest.dir
  2307. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2308. test -s conftest.one && test -s conftest.two &&
  2309. test -s conftest.dir/conftest.one &&
  2310. test -s conftest.dir/conftest.two
  2311. then
  2312. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2313. break 3
  2314. fi
  2315. fi
  2316. fi
  2317. done
  2318. done
  2319. ;;
  2320. esac
  2321. done
  2322. IFS=$as_save_IFS
  2323. rm -rf conftest.one conftest.two conftest.dir
  2324. fi
  2325. if test "${ac_cv_path_install+set}" = set; then
  2326. INSTALL=$ac_cv_path_install
  2327. else
  2328. # As a last resort, use the slow shell script. Don't cache a
  2329. # value for INSTALL within a source directory, because that will
  2330. # break other packages using the cache if that directory is
  2331. # removed, or if the value is a relative name.
  2332. INSTALL=$ac_install_sh
  2333. fi
  2334. fi
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2336. $as_echo "$INSTALL" >&6; }
  2337. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2338. # It thinks the first close brace ends the variable substitution.
  2339. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2340. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2341. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2343. $as_echo_n "checking whether build environment is sane... " >&6; }
  2344. # Just in case
  2345. sleep 1
  2346. echo timestamp > conftest.file
  2347. # Reject unsafe characters in $srcdir or the absolute working directory
  2348. # name. Accept space and tab only in the latter.
  2349. am_lf='
  2350. '
  2351. case `pwd` in
  2352. *[\\\"\#\$\&\'\`$am_lf]*)
  2353. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2354. esac
  2355. case $srcdir in
  2356. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2357. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2358. esac
  2359. # Do `set' in a subshell so we don't clobber the current shell's
  2360. # arguments. Must try -L first in case configure is actually a
  2361. # symlink; some systems play weird games with the mod time of symlinks
  2362. # (eg FreeBSD returns the mod time of the symlink's containing
  2363. # directory).
  2364. if (
  2365. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2366. if test "$*" = "X"; then
  2367. # -L didn't work.
  2368. set X `ls -t "$srcdir/configure" conftest.file`
  2369. fi
  2370. rm -f conftest.file
  2371. if test "$*" != "X $srcdir/configure conftest.file" \
  2372. && test "$*" != "X conftest.file $srcdir/configure"; then
  2373. # If neither matched, then we have a broken ls. This can happen
  2374. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2375. # broken ls alias from the environment. This has actually
  2376. # happened. Such a system could not be considered "sane".
  2377. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2378. alias in your environment" "$LINENO" 5
  2379. fi
  2380. test "$2" = conftest.file
  2381. )
  2382. then
  2383. # Ok.
  2384. :
  2385. else
  2386. as_fn_error "newly created file is older than distributed files!
  2387. Check your system clock" "$LINENO" 5
  2388. fi
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2390. $as_echo "yes" >&6; }
  2391. test "$program_prefix" != NONE &&
  2392. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2393. # Use a double $ so make ignores it.
  2394. test "$program_suffix" != NONE &&
  2395. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2396. # Double any \ or $.
  2397. # By default was `s,x,x', remove it if useless.
  2398. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2399. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2400. # expand $ac_aux_dir to an absolute path
  2401. am_aux_dir=`cd $ac_aux_dir && pwd`
  2402. if test x"${MISSING+set}" != xset; then
  2403. case $am_aux_dir in
  2404. *\ * | *\ *)
  2405. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2406. *)
  2407. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2408. esac
  2409. fi
  2410. # Use eval to expand $SHELL
  2411. if eval "$MISSING --run true"; then
  2412. am_missing_run="$MISSING --run "
  2413. else
  2414. am_missing_run=
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2416. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2417. fi
  2418. if test x"${install_sh}" != xset; then
  2419. case $am_aux_dir in
  2420. *\ * | *\ *)
  2421. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2422. *)
  2423. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2424. esac
  2425. fi
  2426. # Installed binaries are usually stripped using `strip' when the user
  2427. # run `make install-strip'. However `strip' might not be the right
  2428. # tool to use in cross-compilation environments, therefore Automake
  2429. # will honor the `STRIP' environment variable to overrule this program.
  2430. if test "$cross_compiling" != no; then
  2431. if test -n "$ac_tool_prefix"; then
  2432. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2433. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2435. $as_echo_n "checking for $ac_word... " >&6; }
  2436. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2437. $as_echo_n "(cached) " >&6
  2438. else
  2439. if test -n "$STRIP"; then
  2440. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2441. else
  2442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2443. for as_dir in $PATH
  2444. do
  2445. IFS=$as_save_IFS
  2446. test -z "$as_dir" && as_dir=.
  2447. for ac_exec_ext in '' $ac_executable_extensions; do
  2448. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2449. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2450. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2451. break 2
  2452. fi
  2453. done
  2454. done
  2455. IFS=$as_save_IFS
  2456. fi
  2457. fi
  2458. STRIP=$ac_cv_prog_STRIP
  2459. if test -n "$STRIP"; then
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2461. $as_echo "$STRIP" >&6; }
  2462. else
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2464. $as_echo "no" >&6; }
  2465. fi
  2466. fi
  2467. if test -z "$ac_cv_prog_STRIP"; then
  2468. ac_ct_STRIP=$STRIP
  2469. # Extract the first word of "strip", so it can be a program name with args.
  2470. set dummy strip; ac_word=$2
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2472. $as_echo_n "checking for $ac_word... " >&6; }
  2473. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2474. $as_echo_n "(cached) " >&6
  2475. else
  2476. if test -n "$ac_ct_STRIP"; then
  2477. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2478. else
  2479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2480. for as_dir in $PATH
  2481. do
  2482. IFS=$as_save_IFS
  2483. test -z "$as_dir" && as_dir=.
  2484. for ac_exec_ext in '' $ac_executable_extensions; do
  2485. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2486. ac_cv_prog_ac_ct_STRIP="strip"
  2487. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2488. break 2
  2489. fi
  2490. done
  2491. done
  2492. IFS=$as_save_IFS
  2493. fi
  2494. fi
  2495. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2496. if test -n "$ac_ct_STRIP"; then
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2498. $as_echo "$ac_ct_STRIP" >&6; }
  2499. else
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2501. $as_echo "no" >&6; }
  2502. fi
  2503. if test "x$ac_ct_STRIP" = x; then
  2504. STRIP=":"
  2505. else
  2506. case $cross_compiling:$ac_tool_warned in
  2507. yes:)
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2509. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2510. ac_tool_warned=yes ;;
  2511. esac
  2512. STRIP=$ac_ct_STRIP
  2513. fi
  2514. else
  2515. STRIP="$ac_cv_prog_STRIP"
  2516. fi
  2517. fi
  2518. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2520. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2521. if test -z "$MKDIR_P"; then
  2522. if test "${ac_cv_path_mkdir+set}" = set; then :
  2523. $as_echo_n "(cached) " >&6
  2524. else
  2525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2526. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2527. do
  2528. IFS=$as_save_IFS
  2529. test -z "$as_dir" && as_dir=.
  2530. for ac_prog in mkdir gmkdir; do
  2531. for ac_exec_ext in '' $ac_executable_extensions; do
  2532. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2533. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2534. 'mkdir (GNU coreutils) '* | \
  2535. 'mkdir (coreutils) '* | \
  2536. 'mkdir (fileutils) '4.1*)
  2537. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2538. break 3;;
  2539. esac
  2540. done
  2541. done
  2542. done
  2543. IFS=$as_save_IFS
  2544. fi
  2545. if test "${ac_cv_path_mkdir+set}" = set; then
  2546. MKDIR_P="$ac_cv_path_mkdir -p"
  2547. else
  2548. # As a last resort, use the slow shell script. Don't cache a
  2549. # value for MKDIR_P within a source directory, because that will
  2550. # break other packages using the cache if that directory is
  2551. # removed, or if the value is a relative name.
  2552. test -d ./--version && rmdir ./--version
  2553. MKDIR_P="$ac_install_sh -d"
  2554. fi
  2555. fi
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2557. $as_echo "$MKDIR_P" >&6; }
  2558. mkdir_p="$MKDIR_P"
  2559. case $mkdir_p in
  2560. [\\/$]* | ?:[\\/]*) ;;
  2561. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2562. esac
  2563. for ac_prog in gawk mawk nawk awk
  2564. do
  2565. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2566. set dummy $ac_prog; ac_word=$2
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2568. $as_echo_n "checking for $ac_word... " >&6; }
  2569. if test "${ac_cv_prog_AWK+set}" = set; then :
  2570. $as_echo_n "(cached) " >&6
  2571. else
  2572. if test -n "$AWK"; then
  2573. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2574. else
  2575. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2576. for as_dir in $PATH
  2577. do
  2578. IFS=$as_save_IFS
  2579. test -z "$as_dir" && as_dir=.
  2580. for ac_exec_ext in '' $ac_executable_extensions; do
  2581. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2582. ac_cv_prog_AWK="$ac_prog"
  2583. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2584. break 2
  2585. fi
  2586. done
  2587. done
  2588. IFS=$as_save_IFS
  2589. fi
  2590. fi
  2591. AWK=$ac_cv_prog_AWK
  2592. if test -n "$AWK"; then
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2594. $as_echo "$AWK" >&6; }
  2595. else
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2597. $as_echo "no" >&6; }
  2598. fi
  2599. test -n "$AWK" && break
  2600. done
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2602. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2603. set x ${MAKE-make}
  2604. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2605. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2606. $as_echo_n "(cached) " >&6
  2607. else
  2608. cat >conftest.make <<\_ACEOF
  2609. SHELL = /bin/sh
  2610. all:
  2611. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2612. _ACEOF
  2613. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2614. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2615. *@@@%%%=?*=@@@%%%*)
  2616. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2617. *)
  2618. eval ac_cv_prog_make_${ac_make}_set=no;;
  2619. esac
  2620. rm -f conftest.make
  2621. fi
  2622. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2624. $as_echo "yes" >&6; }
  2625. SET_MAKE=
  2626. else
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2628. $as_echo "no" >&6; }
  2629. SET_MAKE="MAKE=${MAKE-make}"
  2630. fi
  2631. rm -rf .tst 2>/dev/null
  2632. mkdir .tst 2>/dev/null
  2633. if test -d .tst; then
  2634. am__leading_dot=.
  2635. else
  2636. am__leading_dot=_
  2637. fi
  2638. rmdir .tst 2>/dev/null
  2639. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2640. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2641. # is not polluted with repeated "-I."
  2642. am__isrc=' -I$(srcdir)'
  2643. # test to see if srcdir already configured
  2644. if test -f $srcdir/config.status; then
  2645. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2646. fi
  2647. fi
  2648. # test whether we have cygpath
  2649. if test -z "$CYGPATH_W"; then
  2650. if (cygpath --version) >/dev/null 2>/dev/null; then
  2651. CYGPATH_W='cygpath -w'
  2652. else
  2653. CYGPATH_W=echo
  2654. fi
  2655. fi
  2656. # Define the identity of the package.
  2657. PACKAGE=gc
  2658. VERSION=6.6
  2659. # Some tools Automake needs.
  2660. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2661. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2662. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2663. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2664. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2665. # We need awk for the "check" target. The system "awk" is bad on
  2666. # some platforms.
  2667. # Always define AMTAR for backward compatibility.
  2668. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2669. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2670. # The autoconf 2.5x version of the no-executables hack.
  2671. # Yak. We must force CC and CXX to /not/ be precious variables; otherwise
  2672. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2673. # As a side effect, we have to subst CFLAGS and CXXFLAGS ourselves.
  2674. ac_ext=c
  2675. ac_cpp='$CPP $CPPFLAGS'
  2676. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2677. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2678. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2679. if test -n "$ac_tool_prefix"; then
  2680. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2681. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2683. $as_echo_n "checking for $ac_word... " >&6; }
  2684. if test "${ac_cv_prog_CC+set}" = set; then :
  2685. $as_echo_n "(cached) " >&6
  2686. else
  2687. if test -n "$CC"; then
  2688. ac_cv_prog_CC="$CC" # Let the user override the test.
  2689. else
  2690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2691. for as_dir in $PATH
  2692. do
  2693. IFS=$as_save_IFS
  2694. test -z "$as_dir" && as_dir=.
  2695. for ac_exec_ext in '' $ac_executable_extensions; do
  2696. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2697. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2698. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2699. break 2
  2700. fi
  2701. done
  2702. done
  2703. IFS=$as_save_IFS
  2704. fi
  2705. fi
  2706. CC=$ac_cv_prog_CC
  2707. if test -n "$CC"; then
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2709. $as_echo "$CC" >&6; }
  2710. else
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2712. $as_echo "no" >&6; }
  2713. fi
  2714. fi
  2715. if test -z "$ac_cv_prog_CC"; then
  2716. ac_ct_CC=$CC
  2717. # Extract the first word of "gcc", so it can be a program name with args.
  2718. set dummy gcc; ac_word=$2
  2719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2720. $as_echo_n "checking for $ac_word... " >&6; }
  2721. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2722. $as_echo_n "(cached) " >&6
  2723. else
  2724. if test -n "$ac_ct_CC"; then
  2725. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2726. else
  2727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2728. for as_dir in $PATH
  2729. do
  2730. IFS=$as_save_IFS
  2731. test -z "$as_dir" && as_dir=.
  2732. for ac_exec_ext in '' $ac_executable_extensions; do
  2733. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2734. ac_cv_prog_ac_ct_CC="gcc"
  2735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2736. break 2
  2737. fi
  2738. done
  2739. done
  2740. IFS=$as_save_IFS
  2741. fi
  2742. fi
  2743. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2744. if test -n "$ac_ct_CC"; then
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2746. $as_echo "$ac_ct_CC" >&6; }
  2747. else
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2749. $as_echo "no" >&6; }
  2750. fi
  2751. if test "x$ac_ct_CC" = x; then
  2752. CC=""
  2753. else
  2754. case $cross_compiling:$ac_tool_warned in
  2755. yes:)
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2757. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2758. ac_tool_warned=yes ;;
  2759. esac
  2760. CC=$ac_ct_CC
  2761. fi
  2762. else
  2763. CC="$ac_cv_prog_CC"
  2764. fi
  2765. if test -z "$CC"; then
  2766. if test -n "$ac_tool_prefix"; then
  2767. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2768. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2770. $as_echo_n "checking for $ac_word... " >&6; }
  2771. if test "${ac_cv_prog_CC+set}" = set; then :
  2772. $as_echo_n "(cached) " >&6
  2773. else
  2774. if test -n "$CC"; then
  2775. ac_cv_prog_CC="$CC" # Let the user override the test.
  2776. else
  2777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2778. for as_dir in $PATH
  2779. do
  2780. IFS=$as_save_IFS
  2781. test -z "$as_dir" && as_dir=.
  2782. for ac_exec_ext in '' $ac_executable_extensions; do
  2783. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2784. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2786. break 2
  2787. fi
  2788. done
  2789. done
  2790. IFS=$as_save_IFS
  2791. fi
  2792. fi
  2793. CC=$ac_cv_prog_CC
  2794. if test -n "$CC"; then
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2796. $as_echo "$CC" >&6; }
  2797. else
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2799. $as_echo "no" >&6; }
  2800. fi
  2801. fi
  2802. fi
  2803. if test -z "$CC"; then
  2804. # Extract the first word of "cc", so it can be a program name with args.
  2805. set dummy cc; ac_word=$2
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2807. $as_echo_n "checking for $ac_word... " >&6; }
  2808. if test "${ac_cv_prog_CC+set}" = set; then :
  2809. $as_echo_n "(cached) " >&6
  2810. else
  2811. if test -n "$CC"; then
  2812. ac_cv_prog_CC="$CC" # Let the user override the test.
  2813. else
  2814. ac_prog_rejected=no
  2815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2816. for as_dir in $PATH
  2817. do
  2818. IFS=$as_save_IFS
  2819. test -z "$as_dir" && as_dir=.
  2820. for ac_exec_ext in '' $ac_executable_extensions; do
  2821. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2822. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2823. ac_prog_rejected=yes
  2824. continue
  2825. fi
  2826. ac_cv_prog_CC="cc"
  2827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2828. break 2
  2829. fi
  2830. done
  2831. done
  2832. IFS=$as_save_IFS
  2833. if test $ac_prog_rejected = yes; then
  2834. # We found a bogon in the path, so make sure we never use it.
  2835. set dummy $ac_cv_prog_CC
  2836. shift
  2837. if test $# != 0; then
  2838. # We chose a different compiler from the bogus one.
  2839. # However, it has the same basename, so the bogon will be chosen
  2840. # first if we set CC to just the basename; use the full file name.
  2841. shift
  2842. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2843. fi
  2844. fi
  2845. fi
  2846. fi
  2847. CC=$ac_cv_prog_CC
  2848. if test -n "$CC"; then
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2850. $as_echo "$CC" >&6; }
  2851. else
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2853. $as_echo "no" >&6; }
  2854. fi
  2855. fi
  2856. if test -z "$CC"; then
  2857. if test -n "$ac_tool_prefix"; then
  2858. for ac_prog in cl.exe
  2859. do
  2860. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2861. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2863. $as_echo_n "checking for $ac_word... " >&6; }
  2864. if test "${ac_cv_prog_CC+set}" = set; then :
  2865. $as_echo_n "(cached) " >&6
  2866. else
  2867. if test -n "$CC"; then
  2868. ac_cv_prog_CC="$CC" # Let the user override the test.
  2869. else
  2870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2871. for as_dir in $PATH
  2872. do
  2873. IFS=$as_save_IFS
  2874. test -z "$as_dir" && as_dir=.
  2875. for ac_exec_ext in '' $ac_executable_extensions; do
  2876. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2877. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2879. break 2
  2880. fi
  2881. done
  2882. done
  2883. IFS=$as_save_IFS
  2884. fi
  2885. fi
  2886. CC=$ac_cv_prog_CC
  2887. if test -n "$CC"; then
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2889. $as_echo "$CC" >&6; }
  2890. else
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2892. $as_echo "no" >&6; }
  2893. fi
  2894. test -n "$CC" && break
  2895. done
  2896. fi
  2897. if test -z "$CC"; then
  2898. ac_ct_CC=$CC
  2899. for ac_prog in cl.exe
  2900. do
  2901. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2902. set dummy $ac_prog; ac_word=$2
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2904. $as_echo_n "checking for $ac_word... " >&6; }
  2905. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2906. $as_echo_n "(cached) " >&6
  2907. else
  2908. if test -n "$ac_ct_CC"; then
  2909. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2910. else
  2911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2912. for as_dir in $PATH
  2913. do
  2914. IFS=$as_save_IFS
  2915. test -z "$as_dir" && as_dir=.
  2916. for ac_exec_ext in '' $ac_executable_extensions; do
  2917. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2918. ac_cv_prog_ac_ct_CC="$ac_prog"
  2919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2920. break 2
  2921. fi
  2922. done
  2923. done
  2924. IFS=$as_save_IFS
  2925. fi
  2926. fi
  2927. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2928. if test -n "$ac_ct_CC"; then
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2930. $as_echo "$ac_ct_CC" >&6; }
  2931. else
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2933. $as_echo "no" >&6; }
  2934. fi
  2935. test -n "$ac_ct_CC" && break
  2936. done
  2937. if test "x$ac_ct_CC" = x; then
  2938. CC=""
  2939. else
  2940. case $cross_compiling:$ac_tool_warned in
  2941. yes:)
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2944. ac_tool_warned=yes ;;
  2945. esac
  2946. CC=$ac_ct_CC
  2947. fi
  2948. fi
  2949. fi
  2950. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2951. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2952. as_fn_error "no acceptable C compiler found in \$PATH
  2953. See \`config.log' for more details." "$LINENO" 5; }
  2954. # Provide some information about the compiler.
  2955. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2956. set X $ac_compile
  2957. ac_compiler=$2
  2958. for ac_option in --version -v -V -qversion; do
  2959. { { ac_try="$ac_compiler $ac_option >&5"
  2960. case "(($ac_try" in
  2961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2962. *) ac_try_echo=$ac_try;;
  2963. esac
  2964. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2965. $as_echo "$ac_try_echo"; } >&5
  2966. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2967. ac_status=$?
  2968. if test -s conftest.err; then
  2969. sed '10a\
  2970. ... rest of stderr output deleted ...
  2971. 10q' conftest.err >conftest.er1
  2972. cat conftest.er1 >&5
  2973. rm -f conftest.er1 conftest.err
  2974. fi
  2975. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2976. test $ac_status = 0; }
  2977. done
  2978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2979. /* end confdefs.h. */
  2980. int
  2981. main ()
  2982. {
  2983. ;
  2984. return 0;
  2985. }
  2986. _ACEOF
  2987. # FIXME: Cleanup?
  2988. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  2989. (eval $ac_link) 2>&5
  2990. ac_status=$?
  2991. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2992. test $ac_status = 0; }; then :
  2993. gcc_no_link=no
  2994. else
  2995. gcc_no_link=yes
  2996. fi
  2997. if test x$gcc_no_link = xyes; then
  2998. # Setting cross_compile will disable run tests; it will
  2999. # also disable AC_CHECK_FILE but that's generally
  3000. # correct if we can't link.
  3001. cross_compiling=yes
  3002. EXEEXT=
  3003. else
  3004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3005. /* end confdefs.h. */
  3006. int
  3007. main ()
  3008. {
  3009. ;
  3010. return 0;
  3011. }
  3012. _ACEOF
  3013. ac_clean_files_save=$ac_clean_files
  3014. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3015. # Try to create an executable without -o first, disregard a.out.
  3016. # It will help us diagnose broken compilers, and finding out an intuition
  3017. # of exeext.
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3019. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3020. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3021. # The possible output files:
  3022. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3023. ac_rmfiles=
  3024. for ac_file in $ac_files
  3025. do
  3026. case $ac_file in
  3027. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3028. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3029. esac
  3030. done
  3031. rm -f $ac_rmfiles
  3032. if { { ac_try="$ac_link_default"
  3033. case "(($ac_try" in
  3034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3035. *) ac_try_echo=$ac_try;;
  3036. esac
  3037. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3038. $as_echo "$ac_try_echo"; } >&5
  3039. (eval "$ac_link_default") 2>&5
  3040. ac_status=$?
  3041. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3042. test $ac_status = 0; }; then :
  3043. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3044. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3045. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3046. # so that the user can short-circuit this test for compilers unknown to
  3047. # Autoconf.
  3048. for ac_file in $ac_files ''
  3049. do
  3050. test -f "$ac_file" || continue
  3051. case $ac_file in
  3052. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3053. ;;
  3054. [ab].out )
  3055. # We found the default executable, but exeext='' is most
  3056. # certainly right.
  3057. break;;
  3058. *.* )
  3059. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3060. then :; else
  3061. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3062. fi
  3063. # We set ac_cv_exeext here because the later test for it is not
  3064. # safe: cross compilers may not add the suffix if given an `-o'
  3065. # argument, so we may need to know it at that point already.
  3066. # Even if this section looks crufty: it has the advantage of
  3067. # actually working.
  3068. break;;
  3069. * )
  3070. break;;
  3071. esac
  3072. done
  3073. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3074. else
  3075. ac_file=''
  3076. fi
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3078. $as_echo "$ac_file" >&6; }
  3079. if test -z "$ac_file"; then :
  3080. $as_echo "$as_me: failed program was:" >&5
  3081. sed 's/^/| /' conftest.$ac_ext >&5
  3082. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3083. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3084. { as_fn_set_status 77
  3085. as_fn_error "C compiler cannot create executables
  3086. See \`config.log' for more details." "$LINENO" 5; }; }
  3087. fi
  3088. ac_exeext=$ac_cv_exeext
  3089. # Check that the compiler produces executables we can run. If not, either
  3090. # the compiler is broken, or we cross compile.
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3092. $as_echo_n "checking whether the C compiler works... " >&6; }
  3093. # If not cross compiling, check that we can run a simple program.
  3094. if test "$cross_compiling" != yes; then
  3095. if { ac_try='./$ac_file'
  3096. { { case "(($ac_try" in
  3097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3098. *) ac_try_echo=$ac_try;;
  3099. esac
  3100. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3101. $as_echo "$ac_try_echo"; } >&5
  3102. (eval "$ac_try") 2>&5
  3103. ac_status=$?
  3104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3105. test $ac_status = 0; }; }; then
  3106. cross_compiling=no
  3107. else
  3108. if test "$cross_compiling" = maybe; then
  3109. cross_compiling=yes
  3110. else
  3111. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3112. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3113. as_fn_error "cannot run C compiled programs.
  3114. If you meant to cross compile, use \`--host'.
  3115. See \`config.log' for more details." "$LINENO" 5; }
  3116. fi
  3117. fi
  3118. fi
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3120. $as_echo "yes" >&6; }
  3121. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3122. ac_clean_files=$ac_clean_files_save
  3123. # Check that the compiler produces executables we can run. If not, either
  3124. # the compiler is broken, or we cross compile.
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3126. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3128. $as_echo "$cross_compiling" >&6; }
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3130. $as_echo_n "checking for suffix of executables... " >&6; }
  3131. if { { ac_try="$ac_link"
  3132. case "(($ac_try" in
  3133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3134. *) ac_try_echo=$ac_try;;
  3135. esac
  3136. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3137. $as_echo "$ac_try_echo"; } >&5
  3138. (eval "$ac_link") 2>&5
  3139. ac_status=$?
  3140. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3141. test $ac_status = 0; }; then :
  3142. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3143. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3144. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3145. # `rm'.
  3146. for ac_file in conftest.exe conftest conftest.*; do
  3147. test -f "$ac_file" || continue
  3148. case $ac_file in
  3149. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3150. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3151. break;;
  3152. * ) break;;
  3153. esac
  3154. done
  3155. else
  3156. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3157. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3158. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3159. See \`config.log' for more details." "$LINENO" 5; }
  3160. fi
  3161. rm -f conftest$ac_cv_exeext
  3162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3163. $as_echo "$ac_cv_exeext" >&6; }
  3164. rm -f conftest.$ac_ext
  3165. EXEEXT=$ac_cv_exeext
  3166. ac_exeext=$EXEEXT
  3167. fi
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3169. $as_echo_n "checking for suffix of object files... " >&6; }
  3170. if test "${ac_cv_objext+set}" = set; then :
  3171. $as_echo_n "(cached) " >&6
  3172. else
  3173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3174. /* end confdefs.h. */
  3175. int
  3176. main ()
  3177. {
  3178. ;
  3179. return 0;
  3180. }
  3181. _ACEOF
  3182. rm -f conftest.o conftest.obj
  3183. if { { ac_try="$ac_compile"
  3184. case "(($ac_try" in
  3185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3186. *) ac_try_echo=$ac_try;;
  3187. esac
  3188. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3189. $as_echo "$ac_try_echo"; } >&5
  3190. (eval "$ac_compile") 2>&5
  3191. ac_status=$?
  3192. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3193. test $ac_status = 0; }; then :
  3194. for ac_file in conftest.o conftest.obj conftest.*; do
  3195. test -f "$ac_file" || continue;
  3196. case $ac_file in
  3197. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3198. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3199. break;;
  3200. esac
  3201. done
  3202. else
  3203. $as_echo "$as_me: failed program was:" >&5
  3204. sed 's/^/| /' conftest.$ac_ext >&5
  3205. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3206. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3207. as_fn_error "cannot compute suffix of object files: cannot compile
  3208. See \`config.log' for more details." "$LINENO" 5; }
  3209. fi
  3210. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3211. fi
  3212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3213. $as_echo "$ac_cv_objext" >&6; }
  3214. OBJEXT=$ac_cv_objext
  3215. ac_objext=$OBJEXT
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3217. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3218. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3219. $as_echo_n "(cached) " >&6
  3220. else
  3221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3222. /* end confdefs.h. */
  3223. int
  3224. main ()
  3225. {
  3226. #ifndef __GNUC__
  3227. choke me
  3228. #endif
  3229. ;
  3230. return 0;
  3231. }
  3232. _ACEOF
  3233. if ac_fn_c_try_compile "$LINENO"; then :
  3234. ac_compiler_gnu=yes
  3235. else
  3236. ac_compiler_gnu=no
  3237. fi
  3238. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3239. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3240. fi
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3242. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3243. if test $ac_compiler_gnu = yes; then
  3244. GCC=yes
  3245. else
  3246. GCC=
  3247. fi
  3248. ac_test_CFLAGS=${CFLAGS+set}
  3249. ac_save_CFLAGS=$CFLAGS
  3250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3251. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3252. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3253. $as_echo_n "(cached) " >&6
  3254. else
  3255. ac_save_c_werror_flag=$ac_c_werror_flag
  3256. ac_c_werror_flag=yes
  3257. ac_cv_prog_cc_g=no
  3258. CFLAGS="-g"
  3259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3260. /* end confdefs.h. */
  3261. int
  3262. main ()
  3263. {
  3264. ;
  3265. return 0;
  3266. }
  3267. _ACEOF
  3268. if ac_fn_c_try_compile "$LINENO"; then :
  3269. ac_cv_prog_cc_g=yes
  3270. else
  3271. CFLAGS=""
  3272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3273. /* end confdefs.h. */
  3274. int
  3275. main ()
  3276. {
  3277. ;
  3278. return 0;
  3279. }
  3280. _ACEOF
  3281. if ac_fn_c_try_compile "$LINENO"; then :
  3282. else
  3283. ac_c_werror_flag=$ac_save_c_werror_flag
  3284. CFLAGS="-g"
  3285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3286. /* end confdefs.h. */
  3287. int
  3288. main ()
  3289. {
  3290. ;
  3291. return 0;
  3292. }
  3293. _ACEOF
  3294. if ac_fn_c_try_compile "$LINENO"; then :
  3295. ac_cv_prog_cc_g=yes
  3296. fi
  3297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3298. fi
  3299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3300. fi
  3301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3302. ac_c_werror_flag=$ac_save_c_werror_flag
  3303. fi
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3305. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3306. if test "$ac_test_CFLAGS" = set; then
  3307. CFLAGS=$ac_save_CFLAGS
  3308. elif test $ac_cv_prog_cc_g = yes; then
  3309. if test "$GCC" = yes; then
  3310. CFLAGS="-g -O2"
  3311. else
  3312. CFLAGS="-g"
  3313. fi
  3314. else
  3315. if test "$GCC" = yes; then
  3316. CFLAGS="-O2"
  3317. else
  3318. CFLAGS=
  3319. fi
  3320. fi
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3322. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3323. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3324. $as_echo_n "(cached) " >&6
  3325. else
  3326. ac_cv_prog_cc_c89=no
  3327. ac_save_CC=$CC
  3328. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3329. /* end confdefs.h. */
  3330. #include <stdarg.h>
  3331. #include <stdio.h>
  3332. #include <sys/types.h>
  3333. #include <sys/stat.h>
  3334. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3335. struct buf { int x; };
  3336. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3337. static char *e (p, i)
  3338. char **p;
  3339. int i;
  3340. {
  3341. return p[i];
  3342. }
  3343. static char *f (char * (*g) (char **, int), char **p, ...)
  3344. {
  3345. char *s;
  3346. va_list v;
  3347. va_start (v,p);
  3348. s = g (p, va_arg (v,int));
  3349. va_end (v);
  3350. return s;
  3351. }
  3352. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3353. function prototypes and stuff, but not '\xHH' hex character constants.
  3354. These don't provoke an error unfortunately, instead are silently treated
  3355. as 'x'. The following induces an error, until -std is added to get
  3356. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3357. array size at least. It's necessary to write '\x00'==0 to get something
  3358. that's true only with -std. */
  3359. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3360. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3361. inside strings and character constants. */
  3362. #define FOO(x) 'x'
  3363. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3364. int test (int i, double x);
  3365. struct s1 {int (*f) (int a);};
  3366. struct s2 {int (*f) (double a);};
  3367. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3368. int argc;
  3369. char **argv;
  3370. int
  3371. main ()
  3372. {
  3373. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3374. ;
  3375. return 0;
  3376. }
  3377. _ACEOF
  3378. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3379. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3380. do
  3381. CC="$ac_save_CC $ac_arg"
  3382. if ac_fn_c_try_compile "$LINENO"; then :
  3383. ac_cv_prog_cc_c89=$ac_arg
  3384. fi
  3385. rm -f core conftest.err conftest.$ac_objext
  3386. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3387. done
  3388. rm -f conftest.$ac_ext
  3389. CC=$ac_save_CC
  3390. fi
  3391. # AC_CACHE_VAL
  3392. case "x$ac_cv_prog_cc_c89" in
  3393. x)
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3395. $as_echo "none needed" >&6; } ;;
  3396. xno)
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3398. $as_echo "unsupported" >&6; } ;;
  3399. *)
  3400. CC="$CC $ac_cv_prog_cc_c89"
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3402. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3403. esac
  3404. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3405. fi
  3406. ac_ext=c
  3407. ac_cpp='$CPP $CPPFLAGS'
  3408. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3409. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3410. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3411. DEPDIR="${am__leading_dot}deps"
  3412. ac_config_commands="$ac_config_commands depfiles"
  3413. am_make=${MAKE-make}
  3414. cat > confinc << 'END'
  3415. am__doit:
  3416. @echo this is the am__doit target
  3417. .PHONY: am__doit
  3418. END
  3419. # If we don't find an include directive, just comment out the code.
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3421. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3422. am__include="#"
  3423. am__quote=
  3424. _am_result=none
  3425. # First try GNU make style include.
  3426. echo "include confinc" > confmf
  3427. # Ignore all kinds of additional output from `make'.
  3428. case `$am_make -s -f confmf 2> /dev/null` in #(
  3429. *the\ am__doit\ target*)
  3430. am__include=include
  3431. am__quote=
  3432. _am_result=GNU
  3433. ;;
  3434. esac
  3435. # Now try BSD make style include.
  3436. if test "$am__include" = "#"; then
  3437. echo '.include "confinc"' > confmf
  3438. case `$am_make -s -f confmf 2> /dev/null` in #(
  3439. *the\ am__doit\ target*)
  3440. am__include=.include
  3441. am__quote="\""
  3442. _am_result=BSD
  3443. ;;
  3444. esac
  3445. fi
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3447. $as_echo "$_am_result" >&6; }
  3448. rm -f confinc confmf
  3449. # Check whether --enable-dependency-tracking was given.
  3450. if test "${enable_dependency_tracking+set}" = set; then :
  3451. enableval=$enable_dependency_tracking;
  3452. fi
  3453. if test "x$enable_dependency_tracking" != xno; then
  3454. am_depcomp="$ac_aux_dir/depcomp"
  3455. AMDEPBACKSLASH='\'
  3456. fi
  3457. if test "x$enable_dependency_tracking" != xno; then
  3458. AMDEP_TRUE=
  3459. AMDEP_FALSE='#'
  3460. else
  3461. AMDEP_TRUE='#'
  3462. AMDEP_FALSE=
  3463. fi
  3464. depcc="$CC" am_compiler_list=
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3466. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3467. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3468. $as_echo_n "(cached) " >&6
  3469. else
  3470. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3471. # We make a subdir and do the tests there. Otherwise we can end up
  3472. # making bogus files that we don't know about and never remove. For
  3473. # instance it was reported that on HP-UX the gcc test will end up
  3474. # making a dummy file named `D' -- because `-MD' means `put the output
  3475. # in D'.
  3476. mkdir conftest.dir
  3477. # Copy depcomp to subdir because otherwise we won't find it if we're
  3478. # using a relative directory.
  3479. cp "$am_depcomp" conftest.dir
  3480. cd conftest.dir
  3481. # We will build objects and dependencies in a subdirectory because
  3482. # it helps to detect inapplicable dependency modes. For instance
  3483. # both Tru64's cc and ICC support -MD to output dependencies as a
  3484. # side effect of compilation, but ICC will put the dependencies in
  3485. # the current directory while Tru64 will put them in the object
  3486. # directory.
  3487. mkdir sub
  3488. am_cv_CC_dependencies_compiler_type=none
  3489. if test "$am_compiler_list" = ""; then
  3490. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3491. fi
  3492. am__universal=false
  3493. case " $depcc " in #(
  3494. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3495. esac
  3496. for depmode in $am_compiler_list; do
  3497. # Setup a source with many dependencies, because some compilers
  3498. # like to wrap large dependency lists on column 80 (with \), and
  3499. # we should not choose a depcomp mode which is confused by this.
  3500. #
  3501. # We need to recreate these files for each test, as the compiler may
  3502. # overwrite some of them when testing with obscure command lines.
  3503. # This happens at least with the AIX C compiler.
  3504. : > sub/conftest.c
  3505. for i in 1 2 3 4 5 6; do
  3506. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3507. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3508. # Solaris 8's {/usr,}/bin/sh.
  3509. touch sub/conftst$i.h
  3510. done
  3511. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3512. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3513. # mode. It turns out that the SunPro C++ compiler does not properly
  3514. # handle `-M -o', and we need to detect this. Also, some Intel
  3515. # versions had trouble with output in subdirs
  3516. am__obj=sub/conftest.${OBJEXT-o}
  3517. am__minus_obj="-o $am__obj"
  3518. case $depmode in
  3519. gcc)
  3520. # This depmode causes a compiler race in universal mode.
  3521. test "$am__universal" = false || continue
  3522. ;;
  3523. nosideeffect)
  3524. # after this tag, mechanisms are not by side-effect, so they'll
  3525. # only be used when explicitly requested
  3526. if test "x$enable_dependency_tracking" = xyes; then
  3527. continue
  3528. else
  3529. break
  3530. fi
  3531. ;;
  3532. msvisualcpp | msvcmsys)
  3533. # This compiler won't grok `-c -o', but also, the minuso test has
  3534. # not run yet. These depmodes are late enough in the game, and
  3535. # so weak that their functioning should not be impacted.
  3536. am__obj=conftest.${OBJEXT-o}
  3537. am__minus_obj=
  3538. ;;
  3539. none) break ;;
  3540. esac
  3541. if depmode=$depmode \
  3542. source=sub/conftest.c object=$am__obj \
  3543. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3544. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3545. >/dev/null 2>conftest.err &&
  3546. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3547. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3548. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3549. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3550. # icc doesn't choke on unknown options, it will just issue warnings
  3551. # or remarks (even with -Werror). So we grep stderr for any message
  3552. # that says an option was ignored or not supported.
  3553. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3554. # icc: Command line warning: ignoring option '-M'; no argument required
  3555. # The diagnosis changed in icc 8.0:
  3556. # icc: Command line remark: option '-MP' not supported
  3557. if (grep 'ignoring option' conftest.err ||
  3558. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3559. am_cv_CC_dependencies_compiler_type=$depmode
  3560. break
  3561. fi
  3562. fi
  3563. done
  3564. cd ..
  3565. rm -rf conftest.dir
  3566. else
  3567. am_cv_CC_dependencies_compiler_type=none
  3568. fi
  3569. fi
  3570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3571. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3572. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3573. if
  3574. test "x$enable_dependency_tracking" != xno \
  3575. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3576. am__fastdepCC_TRUE=
  3577. am__fastdepCC_FALSE='#'
  3578. else
  3579. am__fastdepCC_TRUE='#'
  3580. am__fastdepCC_FALSE=
  3581. fi
  3582. ac_ext=cpp
  3583. ac_cpp='$CXXCPP $CPPFLAGS'
  3584. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3585. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3586. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3587. if test -z "$CXX"; then
  3588. if test -n "$CCC"; then
  3589. CXX=$CCC
  3590. else
  3591. if test -n "$ac_tool_prefix"; then
  3592. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3593. do
  3594. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3595. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3597. $as_echo_n "checking for $ac_word... " >&6; }
  3598. if test "${ac_cv_prog_CXX+set}" = set; then :
  3599. $as_echo_n "(cached) " >&6
  3600. else
  3601. if test -n "$CXX"; then
  3602. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3603. else
  3604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3605. for as_dir in $PATH
  3606. do
  3607. IFS=$as_save_IFS
  3608. test -z "$as_dir" && as_dir=.
  3609. for ac_exec_ext in '' $ac_executable_extensions; do
  3610. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3611. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3613. break 2
  3614. fi
  3615. done
  3616. done
  3617. IFS=$as_save_IFS
  3618. fi
  3619. fi
  3620. CXX=$ac_cv_prog_CXX
  3621. if test -n "$CXX"; then
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3623. $as_echo "$CXX" >&6; }
  3624. else
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3626. $as_echo "no" >&6; }
  3627. fi
  3628. test -n "$CXX" && break
  3629. done
  3630. fi
  3631. if test -z "$CXX"; then
  3632. ac_ct_CXX=$CXX
  3633. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3634. do
  3635. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3636. set dummy $ac_prog; ac_word=$2
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3638. $as_echo_n "checking for $ac_word... " >&6; }
  3639. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3640. $as_echo_n "(cached) " >&6
  3641. else
  3642. if test -n "$ac_ct_CXX"; then
  3643. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3644. else
  3645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3646. for as_dir in $PATH
  3647. do
  3648. IFS=$as_save_IFS
  3649. test -z "$as_dir" && as_dir=.
  3650. for ac_exec_ext in '' $ac_executable_extensions; do
  3651. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3652. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3654. break 2
  3655. fi
  3656. done
  3657. done
  3658. IFS=$as_save_IFS
  3659. fi
  3660. fi
  3661. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3662. if test -n "$ac_ct_CXX"; then
  3663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3664. $as_echo "$ac_ct_CXX" >&6; }
  3665. else
  3666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3667. $as_echo "no" >&6; }
  3668. fi
  3669. test -n "$ac_ct_CXX" && break
  3670. done
  3671. if test "x$ac_ct_CXX" = x; then
  3672. CXX="g++"
  3673. else
  3674. case $cross_compiling:$ac_tool_warned in
  3675. yes:)
  3676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3677. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3678. ac_tool_warned=yes ;;
  3679. esac
  3680. CXX=$ac_ct_CXX
  3681. fi
  3682. fi
  3683. fi
  3684. fi
  3685. # Provide some information about the compiler.
  3686. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3687. set X $ac_compile
  3688. ac_compiler=$2
  3689. for ac_option in --version -v -V -qversion; do
  3690. { { ac_try="$ac_compiler $ac_option >&5"
  3691. case "(($ac_try" in
  3692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3693. *) ac_try_echo=$ac_try;;
  3694. esac
  3695. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3696. $as_echo "$ac_try_echo"; } >&5
  3697. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3698. ac_status=$?
  3699. if test -s conftest.err; then
  3700. sed '10a\
  3701. ... rest of stderr output deleted ...
  3702. 10q' conftest.err >conftest.er1
  3703. cat conftest.er1 >&5
  3704. rm -f conftest.er1 conftest.err
  3705. fi
  3706. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3707. test $ac_status = 0; }
  3708. done
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3710. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3711. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3712. $as_echo_n "(cached) " >&6
  3713. else
  3714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3715. /* end confdefs.h. */
  3716. int
  3717. main ()
  3718. {
  3719. #ifndef __GNUC__
  3720. choke me
  3721. #endif
  3722. ;
  3723. return 0;
  3724. }
  3725. _ACEOF
  3726. if ac_fn_cxx_try_compile "$LINENO"; then :
  3727. ac_compiler_gnu=yes
  3728. else
  3729. ac_compiler_gnu=no
  3730. fi
  3731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3732. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3733. fi
  3734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3735. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3736. if test $ac_compiler_gnu = yes; then
  3737. GXX=yes
  3738. else
  3739. GXX=
  3740. fi
  3741. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3742. ac_save_CXXFLAGS=$CXXFLAGS
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3744. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3745. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3746. $as_echo_n "(cached) " >&6
  3747. else
  3748. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3749. ac_cxx_werror_flag=yes
  3750. ac_cv_prog_cxx_g=no
  3751. CXXFLAGS="-g"
  3752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3753. /* end confdefs.h. */
  3754. int
  3755. main ()
  3756. {
  3757. ;
  3758. return 0;
  3759. }
  3760. _ACEOF
  3761. if ac_fn_cxx_try_compile "$LINENO"; then :
  3762. ac_cv_prog_cxx_g=yes
  3763. else
  3764. CXXFLAGS=""
  3765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3766. /* end confdefs.h. */
  3767. int
  3768. main ()
  3769. {
  3770. ;
  3771. return 0;
  3772. }
  3773. _ACEOF
  3774. if ac_fn_cxx_try_compile "$LINENO"; then :
  3775. else
  3776. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3777. CXXFLAGS="-g"
  3778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3779. /* end confdefs.h. */
  3780. int
  3781. main ()
  3782. {
  3783. ;
  3784. return 0;
  3785. }
  3786. _ACEOF
  3787. if ac_fn_cxx_try_compile "$LINENO"; then :
  3788. ac_cv_prog_cxx_g=yes
  3789. fi
  3790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3791. fi
  3792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3793. fi
  3794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3795. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3796. fi
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3798. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3799. if test "$ac_test_CXXFLAGS" = set; then
  3800. CXXFLAGS=$ac_save_CXXFLAGS
  3801. elif test $ac_cv_prog_cxx_g = yes; then
  3802. if test "$GXX" = yes; then
  3803. CXXFLAGS="-g -O2"
  3804. else
  3805. CXXFLAGS="-g"
  3806. fi
  3807. else
  3808. if test "$GXX" = yes; then
  3809. CXXFLAGS="-O2"
  3810. else
  3811. CXXFLAGS=
  3812. fi
  3813. fi
  3814. ac_ext=c
  3815. ac_cpp='$CPP $CPPFLAGS'
  3816. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3817. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3818. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3819. depcc="$CXX" am_compiler_list=
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3821. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3822. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3823. $as_echo_n "(cached) " >&6
  3824. else
  3825. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3826. # We make a subdir and do the tests there. Otherwise we can end up
  3827. # making bogus files that we don't know about and never remove. For
  3828. # instance it was reported that on HP-UX the gcc test will end up
  3829. # making a dummy file named `D' -- because `-MD' means `put the output
  3830. # in D'.
  3831. mkdir conftest.dir
  3832. # Copy depcomp to subdir because otherwise we won't find it if we're
  3833. # using a relative directory.
  3834. cp "$am_depcomp" conftest.dir
  3835. cd conftest.dir
  3836. # We will build objects and dependencies in a subdirectory because
  3837. # it helps to detect inapplicable dependency modes. For instance
  3838. # both Tru64's cc and ICC support -MD to output dependencies as a
  3839. # side effect of compilation, but ICC will put the dependencies in
  3840. # the current directory while Tru64 will put them in the object
  3841. # directory.
  3842. mkdir sub
  3843. am_cv_CXX_dependencies_compiler_type=none
  3844. if test "$am_compiler_list" = ""; then
  3845. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3846. fi
  3847. am__universal=false
  3848. case " $depcc " in #(
  3849. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3850. esac
  3851. for depmode in $am_compiler_list; do
  3852. # Setup a source with many dependencies, because some compilers
  3853. # like to wrap large dependency lists on column 80 (with \), and
  3854. # we should not choose a depcomp mode which is confused by this.
  3855. #
  3856. # We need to recreate these files for each test, as the compiler may
  3857. # overwrite some of them when testing with obscure command lines.
  3858. # This happens at least with the AIX C compiler.
  3859. : > sub/conftest.c
  3860. for i in 1 2 3 4 5 6; do
  3861. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3862. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3863. # Solaris 8's {/usr,}/bin/sh.
  3864. touch sub/conftst$i.h
  3865. done
  3866. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3867. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3868. # mode. It turns out that the SunPro C++ compiler does not properly
  3869. # handle `-M -o', and we need to detect this. Also, some Intel
  3870. # versions had trouble with output in subdirs
  3871. am__obj=sub/conftest.${OBJEXT-o}
  3872. am__minus_obj="-o $am__obj"
  3873. case $depmode in
  3874. gcc)
  3875. # This depmode causes a compiler race in universal mode.
  3876. test "$am__universal" = false || continue
  3877. ;;
  3878. nosideeffect)
  3879. # after this tag, mechanisms are not by side-effect, so they'll
  3880. # only be used when explicitly requested
  3881. if test "x$enable_dependency_tracking" = xyes; then
  3882. continue
  3883. else
  3884. break
  3885. fi
  3886. ;;
  3887. msvisualcpp | msvcmsys)
  3888. # This compiler won't grok `-c -o', but also, the minuso test has
  3889. # not run yet. These depmodes are late enough in the game, and
  3890. # so weak that their functioning should not be impacted.
  3891. am__obj=conftest.${OBJEXT-o}
  3892. am__minus_obj=
  3893. ;;
  3894. none) break ;;
  3895. esac
  3896. if depmode=$depmode \
  3897. source=sub/conftest.c object=$am__obj \
  3898. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3899. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3900. >/dev/null 2>conftest.err &&
  3901. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3902. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3903. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3904. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3905. # icc doesn't choke on unknown options, it will just issue warnings
  3906. # or remarks (even with -Werror). So we grep stderr for any message
  3907. # that says an option was ignored or not supported.
  3908. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3909. # icc: Command line warning: ignoring option '-M'; no argument required
  3910. # The diagnosis changed in icc 8.0:
  3911. # icc: Command line remark: option '-MP' not supported
  3912. if (grep 'ignoring option' conftest.err ||
  3913. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3914. am_cv_CXX_dependencies_compiler_type=$depmode
  3915. break
  3916. fi
  3917. fi
  3918. done
  3919. cd ..
  3920. rm -rf conftest.dir
  3921. else
  3922. am_cv_CXX_dependencies_compiler_type=none
  3923. fi
  3924. fi
  3925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3926. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3927. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3928. if
  3929. test "x$enable_dependency_tracking" != xno \
  3930. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3931. am__fastdepCXX_TRUE=
  3932. am__fastdepCXX_FALSE='#'
  3933. else
  3934. am__fastdepCXX_TRUE='#'
  3935. am__fastdepCXX_FALSE=
  3936. fi
  3937. if test "x$CC" != xcc; then
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  3939. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3940. else
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  3942. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3943. fi
  3944. set dummy $CC; ac_cc=`$as_echo "$2" |
  3945. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3946. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  3947. $as_echo_n "(cached) " >&6
  3948. else
  3949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3950. /* end confdefs.h. */
  3951. int
  3952. main ()
  3953. {
  3954. ;
  3955. return 0;
  3956. }
  3957. _ACEOF
  3958. # Make sure it works both with $CC and with simple cc.
  3959. # We do the test twice because some compilers refuse to overwrite an
  3960. # existing .o file with -o, though they will create one.
  3961. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3962. rm -f conftest2.*
  3963. if { { case "(($ac_try" in
  3964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3965. *) ac_try_echo=$ac_try;;
  3966. esac
  3967. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3968. $as_echo "$ac_try_echo"; } >&5
  3969. (eval "$ac_try") 2>&5
  3970. ac_status=$?
  3971. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3972. test $ac_status = 0; } &&
  3973. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3975. *) ac_try_echo=$ac_try;;
  3976. esac
  3977. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3978. $as_echo "$ac_try_echo"; } >&5
  3979. (eval "$ac_try") 2>&5
  3980. ac_status=$?
  3981. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3982. test $ac_status = 0; };
  3983. then
  3984. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3985. if test "x$CC" != xcc; then
  3986. # Test first that cc exists at all.
  3987. if { ac_try='cc -c conftest.$ac_ext >&5'
  3988. { { case "(($ac_try" in
  3989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3990. *) ac_try_echo=$ac_try;;
  3991. esac
  3992. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3993. $as_echo "$ac_try_echo"; } >&5
  3994. (eval "$ac_try") 2>&5
  3995. ac_status=$?
  3996. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3997. test $ac_status = 0; }; }; then
  3998. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3999. rm -f conftest2.*
  4000. if { { case "(($ac_try" in
  4001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4002. *) ac_try_echo=$ac_try;;
  4003. esac
  4004. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4005. $as_echo "$ac_try_echo"; } >&5
  4006. (eval "$ac_try") 2>&5
  4007. ac_status=$?
  4008. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4009. test $ac_status = 0; } &&
  4010. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4012. *) ac_try_echo=$ac_try;;
  4013. esac
  4014. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4015. $as_echo "$ac_try_echo"; } >&5
  4016. (eval "$ac_try") 2>&5
  4017. ac_status=$?
  4018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4019. test $ac_status = 0; };
  4020. then
  4021. # cc works too.
  4022. :
  4023. else
  4024. # cc exists but doesn't like -o.
  4025. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4026. fi
  4027. fi
  4028. fi
  4029. else
  4030. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4031. fi
  4032. rm -f core conftest*
  4033. fi
  4034. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4036. $as_echo "yes" >&6; }
  4037. else
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4039. $as_echo "no" >&6; }
  4040. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4041. fi
  4042. # FIXME: we rely on the cache variable name because
  4043. # there is no other way.
  4044. set dummy $CC
  4045. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4046. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4047. if test "$am_t" != yes; then
  4048. # Losing compiler, so override with the script.
  4049. # FIXME: It is wrong to rewrite CC.
  4050. # But if we don't then we get into trouble of one sort or another.
  4051. # A longer-term fix would be to have automake use am__CC in this case,
  4052. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4053. CC="$am_aux_dir/compile $CC"
  4054. fi
  4055. # Newer automakes demand CCAS and CCASFLAGS.
  4056. : ${CCAS='$(CC)'}
  4057. : ${CCASFLAGS='$(CFLAGS)'}
  4058. if test -n "$ac_tool_prefix"; then
  4059. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4060. set dummy ${ac_tool_prefix}as; ac_word=$2
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4062. $as_echo_n "checking for $ac_word... " >&6; }
  4063. if test "${ac_cv_prog_AS+set}" = set; then :
  4064. $as_echo_n "(cached) " >&6
  4065. else
  4066. if test -n "$AS"; then
  4067. ac_cv_prog_AS="$AS" # Let the user override the test.
  4068. else
  4069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4070. for as_dir in $PATH
  4071. do
  4072. IFS=$as_save_IFS
  4073. test -z "$as_dir" && as_dir=.
  4074. for ac_exec_ext in '' $ac_executable_extensions; do
  4075. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4076. ac_cv_prog_AS="${ac_tool_prefix}as"
  4077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4078. break 2
  4079. fi
  4080. done
  4081. done
  4082. IFS=$as_save_IFS
  4083. fi
  4084. fi
  4085. AS=$ac_cv_prog_AS
  4086. if test -n "$AS"; then
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4088. $as_echo "$AS" >&6; }
  4089. else
  4090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4091. $as_echo "no" >&6; }
  4092. fi
  4093. fi
  4094. if test -z "$ac_cv_prog_AS"; then
  4095. ac_ct_AS=$AS
  4096. # Extract the first word of "as", so it can be a program name with args.
  4097. set dummy as; ac_word=$2
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4099. $as_echo_n "checking for $ac_word... " >&6; }
  4100. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  4101. $as_echo_n "(cached) " >&6
  4102. else
  4103. if test -n "$ac_ct_AS"; then
  4104. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4105. else
  4106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4107. for as_dir in $PATH
  4108. do
  4109. IFS=$as_save_IFS
  4110. test -z "$as_dir" && as_dir=.
  4111. for ac_exec_ext in '' $ac_executable_extensions; do
  4112. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4113. ac_cv_prog_ac_ct_AS="as"
  4114. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4115. break 2
  4116. fi
  4117. done
  4118. done
  4119. IFS=$as_save_IFS
  4120. fi
  4121. fi
  4122. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4123. if test -n "$ac_ct_AS"; then
  4124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4125. $as_echo "$ac_ct_AS" >&6; }
  4126. else
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4128. $as_echo "no" >&6; }
  4129. fi
  4130. if test "x$ac_ct_AS" = x; then
  4131. AS=""
  4132. else
  4133. case $cross_compiling:$ac_tool_warned in
  4134. yes:)
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4136. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4137. ac_tool_warned=yes ;;
  4138. esac
  4139. AS=$ac_ct_AS
  4140. fi
  4141. else
  4142. AS="$ac_cv_prog_AS"
  4143. fi
  4144. if test -n "$ac_tool_prefix"; then
  4145. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4146. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4148. $as_echo_n "checking for $ac_word... " >&6; }
  4149. if test "${ac_cv_prog_AR+set}" = set; then :
  4150. $as_echo_n "(cached) " >&6
  4151. else
  4152. if test -n "$AR"; then
  4153. ac_cv_prog_AR="$AR" # Let the user override the test.
  4154. else
  4155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4156. for as_dir in $PATH
  4157. do
  4158. IFS=$as_save_IFS
  4159. test -z "$as_dir" && as_dir=.
  4160. for ac_exec_ext in '' $ac_executable_extensions; do
  4161. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4162. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4163. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4164. break 2
  4165. fi
  4166. done
  4167. done
  4168. IFS=$as_save_IFS
  4169. fi
  4170. fi
  4171. AR=$ac_cv_prog_AR
  4172. if test -n "$AR"; then
  4173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4174. $as_echo "$AR" >&6; }
  4175. else
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4177. $as_echo "no" >&6; }
  4178. fi
  4179. fi
  4180. if test -z "$ac_cv_prog_AR"; then
  4181. ac_ct_AR=$AR
  4182. # Extract the first word of "ar", so it can be a program name with args.
  4183. set dummy ar; ac_word=$2
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4185. $as_echo_n "checking for $ac_word... " >&6; }
  4186. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4187. $as_echo_n "(cached) " >&6
  4188. else
  4189. if test -n "$ac_ct_AR"; then
  4190. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4191. else
  4192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4193. for as_dir in $PATH
  4194. do
  4195. IFS=$as_save_IFS
  4196. test -z "$as_dir" && as_dir=.
  4197. for ac_exec_ext in '' $ac_executable_extensions; do
  4198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4199. ac_cv_prog_ac_ct_AR="ar"
  4200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4201. break 2
  4202. fi
  4203. done
  4204. done
  4205. IFS=$as_save_IFS
  4206. fi
  4207. fi
  4208. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4209. if test -n "$ac_ct_AR"; then
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4211. $as_echo "$ac_ct_AR" >&6; }
  4212. else
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4214. $as_echo "no" >&6; }
  4215. fi
  4216. if test "x$ac_ct_AR" = x; then
  4217. AR=""
  4218. else
  4219. case $cross_compiling:$ac_tool_warned in
  4220. yes:)
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4222. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4223. ac_tool_warned=yes ;;
  4224. esac
  4225. AR=$ac_ct_AR
  4226. fi
  4227. else
  4228. AR="$ac_cv_prog_AR"
  4229. fi
  4230. if test -n "$ac_tool_prefix"; then
  4231. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4232. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4234. $as_echo_n "checking for $ac_word... " >&6; }
  4235. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  4236. $as_echo_n "(cached) " >&6
  4237. else
  4238. if test -n "$RANLIB"; then
  4239. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4240. else
  4241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4242. for as_dir in $PATH
  4243. do
  4244. IFS=$as_save_IFS
  4245. test -z "$as_dir" && as_dir=.
  4246. for ac_exec_ext in '' $ac_executable_extensions; do
  4247. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4248. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4250. break 2
  4251. fi
  4252. done
  4253. done
  4254. IFS=$as_save_IFS
  4255. fi
  4256. fi
  4257. RANLIB=$ac_cv_prog_RANLIB
  4258. if test -n "$RANLIB"; then
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4260. $as_echo "$RANLIB" >&6; }
  4261. else
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4263. $as_echo "no" >&6; }
  4264. fi
  4265. fi
  4266. if test -z "$ac_cv_prog_RANLIB"; then
  4267. ac_ct_RANLIB=$RANLIB
  4268. # Extract the first word of "ranlib", so it can be a program name with args.
  4269. set dummy ranlib; ac_word=$2
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4271. $as_echo_n "checking for $ac_word... " >&6; }
  4272. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4273. $as_echo_n "(cached) " >&6
  4274. else
  4275. if test -n "$ac_ct_RANLIB"; then
  4276. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4277. else
  4278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4279. for as_dir in $PATH
  4280. do
  4281. IFS=$as_save_IFS
  4282. test -z "$as_dir" && as_dir=.
  4283. for ac_exec_ext in '' $ac_executable_extensions; do
  4284. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4285. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4287. break 2
  4288. fi
  4289. done
  4290. done
  4291. IFS=$as_save_IFS
  4292. fi
  4293. fi
  4294. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4295. if test -n "$ac_ct_RANLIB"; then
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4297. $as_echo "$ac_ct_RANLIB" >&6; }
  4298. else
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4300. $as_echo "no" >&6; }
  4301. fi
  4302. if test "x$ac_ct_RANLIB" = x; then
  4303. RANLIB=":"
  4304. else
  4305. case $cross_compiling:$ac_tool_warned in
  4306. yes:)
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4308. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4309. ac_tool_warned=yes ;;
  4310. esac
  4311. RANLIB=$ac_ct_RANLIB
  4312. fi
  4313. else
  4314. RANLIB="$ac_cv_prog_RANLIB"
  4315. fi
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4317. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4318. # Check whether --enable-maintainer-mode was given.
  4319. if test "${enable_maintainer_mode+set}" = set; then :
  4320. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4321. else
  4322. USE_MAINTAINER_MODE=no
  4323. fi
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  4325. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4326. if test $USE_MAINTAINER_MODE = yes; then
  4327. MAINTAINER_MODE_TRUE=
  4328. MAINTAINER_MODE_FALSE='#'
  4329. else
  4330. MAINTAINER_MODE_TRUE='#'
  4331. MAINTAINER_MODE_FALSE=
  4332. fi
  4333. MAINT=$MAINTAINER_MODE_TRUE
  4334. . ${srcdir}/configure.host
  4335. case ${gc_basedir} in
  4336. /* | A-Za-z:/\\*) gc_flagbasedir=${gc_basedir} ;;
  4337. *) gc_flagbasedir='$(top_builddir)/'${gc_basedir} ;;
  4338. esac
  4339. gc_cflags="${gc_cflags} -Iinclude -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
  4340. case "${host}" in
  4341. *-*-cygwin32*)
  4342. gc_cflags="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
  4343. ;;
  4344. esac
  4345. case "${host}" in
  4346. *-*-mingw*)
  4347. gc_cflags="${gc_cflags} -DGC_BUILD=1"
  4348. ;;
  4349. esac
  4350. GC_CFLAGS=${gc_cflags}
  4351. case `pwd` in
  4352. *\ * | *\ *)
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4354. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4355. esac
  4356. macro_version='2.2.7a'
  4357. macro_revision='1.3134'
  4358. ltmain="$ac_aux_dir/ltmain.sh"
  4359. # Backslashify metacharacters that are still active within
  4360. # double-quoted strings.
  4361. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4362. # Same as above, but do not quote variable references.
  4363. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4364. # Sed substitution to delay expansion of an escaped shell variable in a
  4365. # double_quote_subst'ed string.
  4366. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4367. # Sed substitution to delay expansion of an escaped single quote.
  4368. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4369. # Sed substitution to avoid accidental globbing in evaled expressions
  4370. no_glob_subst='s/\*/\\\*/g'
  4371. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4372. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4373. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4375. $as_echo_n "checking how to print strings... " >&6; }
  4376. # Test print first, because it will be a builtin if present.
  4377. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4378. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4379. ECHO='print -r --'
  4380. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4381. ECHO='printf %s\n'
  4382. else
  4383. # Use this function as a fallback that always works.
  4384. func_fallback_echo ()
  4385. {
  4386. eval 'cat <<_LTECHO_EOF
  4387. $1
  4388. _LTECHO_EOF'
  4389. }
  4390. ECHO='func_fallback_echo'
  4391. fi
  4392. # func_echo_all arg...
  4393. # Invoke $ECHO with all args, space-separated.
  4394. func_echo_all ()
  4395. {
  4396. $ECHO ""
  4397. }
  4398. case "$ECHO" in
  4399. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4400. $as_echo "printf" >&6; } ;;
  4401. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4402. $as_echo "print -r" >&6; } ;;
  4403. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4404. $as_echo "cat" >&6; } ;;
  4405. esac
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4407. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4408. if test "${ac_cv_path_SED+set}" = set; then :
  4409. $as_echo_n "(cached) " >&6
  4410. else
  4411. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4412. for ac_i in 1 2 3 4 5 6 7; do
  4413. ac_script="$ac_script$as_nl$ac_script"
  4414. done
  4415. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4416. { ac_script=; unset ac_script;}
  4417. if test -z "$SED"; then
  4418. ac_path_SED_found=false
  4419. # Loop through the user's path and test for each of PROGNAME-LIST
  4420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4421. for as_dir in $PATH
  4422. do
  4423. IFS=$as_save_IFS
  4424. test -z "$as_dir" && as_dir=.
  4425. for ac_prog in sed gsed; do
  4426. for ac_exec_ext in '' $ac_executable_extensions; do
  4427. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4428. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4429. # Check for GNU ac_path_SED and select it if it is found.
  4430. # Check for GNU $ac_path_SED
  4431. case `"$ac_path_SED" --version 2>&1` in
  4432. *GNU*)
  4433. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4434. *)
  4435. ac_count=0
  4436. $as_echo_n 0123456789 >"conftest.in"
  4437. while :
  4438. do
  4439. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4440. mv "conftest.tmp" "conftest.in"
  4441. cp "conftest.in" "conftest.nl"
  4442. $as_echo '' >> "conftest.nl"
  4443. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4444. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4445. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4446. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4447. # Best one so far, save it but keep looking for a better one
  4448. ac_cv_path_SED="$ac_path_SED"
  4449. ac_path_SED_max=$ac_count
  4450. fi
  4451. # 10*(2^10) chars as input seems more than enough
  4452. test $ac_count -gt 10 && break
  4453. done
  4454. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4455. esac
  4456. $ac_path_SED_found && break 3
  4457. done
  4458. done
  4459. done
  4460. IFS=$as_save_IFS
  4461. if test -z "$ac_cv_path_SED"; then
  4462. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4463. fi
  4464. else
  4465. ac_cv_path_SED=$SED
  4466. fi
  4467. fi
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4469. $as_echo "$ac_cv_path_SED" >&6; }
  4470. SED="$ac_cv_path_SED"
  4471. rm -f conftest.sed
  4472. test -z "$SED" && SED=sed
  4473. Xsed="$SED -e 1s/^X//"
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4475. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4476. if test "${ac_cv_path_GREP+set}" = set; then :
  4477. $as_echo_n "(cached) " >&6
  4478. else
  4479. if test -z "$GREP"; then
  4480. ac_path_GREP_found=false
  4481. # Loop through the user's path and test for each of PROGNAME-LIST
  4482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4483. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4484. do
  4485. IFS=$as_save_IFS
  4486. test -z "$as_dir" && as_dir=.
  4487. for ac_prog in grep ggrep; do
  4488. for ac_exec_ext in '' $ac_executable_extensions; do
  4489. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4490. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4491. # Check for GNU ac_path_GREP and select it if it is found.
  4492. # Check for GNU $ac_path_GREP
  4493. case `"$ac_path_GREP" --version 2>&1` in
  4494. *GNU*)
  4495. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4496. *)
  4497. ac_count=0
  4498. $as_echo_n 0123456789 >"conftest.in"
  4499. while :
  4500. do
  4501. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4502. mv "conftest.tmp" "conftest.in"
  4503. cp "conftest.in" "conftest.nl"
  4504. $as_echo 'GREP' >> "conftest.nl"
  4505. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4506. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4507. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4508. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4509. # Best one so far, save it but keep looking for a better one
  4510. ac_cv_path_GREP="$ac_path_GREP"
  4511. ac_path_GREP_max=$ac_count
  4512. fi
  4513. # 10*(2^10) chars as input seems more than enough
  4514. test $ac_count -gt 10 && break
  4515. done
  4516. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4517. esac
  4518. $ac_path_GREP_found && break 3
  4519. done
  4520. done
  4521. done
  4522. IFS=$as_save_IFS
  4523. if test -z "$ac_cv_path_GREP"; then
  4524. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4525. fi
  4526. else
  4527. ac_cv_path_GREP=$GREP
  4528. fi
  4529. fi
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4531. $as_echo "$ac_cv_path_GREP" >&6; }
  4532. GREP="$ac_cv_path_GREP"
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4534. $as_echo_n "checking for egrep... " >&6; }
  4535. if test "${ac_cv_path_EGREP+set}" = set; then :
  4536. $as_echo_n "(cached) " >&6
  4537. else
  4538. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4539. then ac_cv_path_EGREP="$GREP -E"
  4540. else
  4541. if test -z "$EGREP"; then
  4542. ac_path_EGREP_found=false
  4543. # Loop through the user's path and test for each of PROGNAME-LIST
  4544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4545. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4546. do
  4547. IFS=$as_save_IFS
  4548. test -z "$as_dir" && as_dir=.
  4549. for ac_prog in egrep; do
  4550. for ac_exec_ext in '' $ac_executable_extensions; do
  4551. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4552. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4553. # Check for GNU ac_path_EGREP and select it if it is found.
  4554. # Check for GNU $ac_path_EGREP
  4555. case `"$ac_path_EGREP" --version 2>&1` in
  4556. *GNU*)
  4557. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4558. *)
  4559. ac_count=0
  4560. $as_echo_n 0123456789 >"conftest.in"
  4561. while :
  4562. do
  4563. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4564. mv "conftest.tmp" "conftest.in"
  4565. cp "conftest.in" "conftest.nl"
  4566. $as_echo 'EGREP' >> "conftest.nl"
  4567. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4568. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4569. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4570. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4571. # Best one so far, save it but keep looking for a better one
  4572. ac_cv_path_EGREP="$ac_path_EGREP"
  4573. ac_path_EGREP_max=$ac_count
  4574. fi
  4575. # 10*(2^10) chars as input seems more than enough
  4576. test $ac_count -gt 10 && break
  4577. done
  4578. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4579. esac
  4580. $ac_path_EGREP_found && break 3
  4581. done
  4582. done
  4583. done
  4584. IFS=$as_save_IFS
  4585. if test -z "$ac_cv_path_EGREP"; then
  4586. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4587. fi
  4588. else
  4589. ac_cv_path_EGREP=$EGREP
  4590. fi
  4591. fi
  4592. fi
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4594. $as_echo "$ac_cv_path_EGREP" >&6; }
  4595. EGREP="$ac_cv_path_EGREP"
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4597. $as_echo_n "checking for fgrep... " >&6; }
  4598. if test "${ac_cv_path_FGREP+set}" = set; then :
  4599. $as_echo_n "(cached) " >&6
  4600. else
  4601. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4602. then ac_cv_path_FGREP="$GREP -F"
  4603. else
  4604. if test -z "$FGREP"; then
  4605. ac_path_FGREP_found=false
  4606. # Loop through the user's path and test for each of PROGNAME-LIST
  4607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4608. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4609. do
  4610. IFS=$as_save_IFS
  4611. test -z "$as_dir" && as_dir=.
  4612. for ac_prog in fgrep; do
  4613. for ac_exec_ext in '' $ac_executable_extensions; do
  4614. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4615. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4616. # Check for GNU ac_path_FGREP and select it if it is found.
  4617. # Check for GNU $ac_path_FGREP
  4618. case `"$ac_path_FGREP" --version 2>&1` in
  4619. *GNU*)
  4620. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4621. *)
  4622. ac_count=0
  4623. $as_echo_n 0123456789 >"conftest.in"
  4624. while :
  4625. do
  4626. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4627. mv "conftest.tmp" "conftest.in"
  4628. cp "conftest.in" "conftest.nl"
  4629. $as_echo 'FGREP' >> "conftest.nl"
  4630. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4631. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4632. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4633. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4634. # Best one so far, save it but keep looking for a better one
  4635. ac_cv_path_FGREP="$ac_path_FGREP"
  4636. ac_path_FGREP_max=$ac_count
  4637. fi
  4638. # 10*(2^10) chars as input seems more than enough
  4639. test $ac_count -gt 10 && break
  4640. done
  4641. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4642. esac
  4643. $ac_path_FGREP_found && break 3
  4644. done
  4645. done
  4646. done
  4647. IFS=$as_save_IFS
  4648. if test -z "$ac_cv_path_FGREP"; then
  4649. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4650. fi
  4651. else
  4652. ac_cv_path_FGREP=$FGREP
  4653. fi
  4654. fi
  4655. fi
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4657. $as_echo "$ac_cv_path_FGREP" >&6; }
  4658. FGREP="$ac_cv_path_FGREP"
  4659. test -z "$GREP" && GREP=grep
  4660. # Check whether --with-gnu-ld was given.
  4661. if test "${with_gnu_ld+set}" = set; then :
  4662. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4663. else
  4664. with_gnu_ld=no
  4665. fi
  4666. ac_prog=ld
  4667. if test "$GCC" = yes; then
  4668. # Check if gcc -print-prog-name=ld gives a path.
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4670. $as_echo_n "checking for ld used by $CC... " >&6; }
  4671. case $host in
  4672. *-*-mingw*)
  4673. # gcc leaves a trailing carriage return which upsets mingw
  4674. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4675. *)
  4676. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4677. esac
  4678. case $ac_prog in
  4679. # Accept absolute paths.
  4680. [\\/]* | ?:[\\/]*)
  4681. re_direlt='/[^/][^/]*/\.\./'
  4682. # Canonicalize the pathname of ld
  4683. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4684. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4685. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4686. done
  4687. test -z "$LD" && LD="$ac_prog"
  4688. ;;
  4689. "")
  4690. # If it fails, then pretend we aren't using GCC.
  4691. ac_prog=ld
  4692. ;;
  4693. *)
  4694. # If it is relative, then search for the first ld in PATH.
  4695. with_gnu_ld=unknown
  4696. ;;
  4697. esac
  4698. elif test "$with_gnu_ld" = yes; then
  4699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4700. $as_echo_n "checking for GNU ld... " >&6; }
  4701. else
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4703. $as_echo_n "checking for non-GNU ld... " >&6; }
  4704. fi
  4705. if test "${lt_cv_path_LD+set}" = set; then :
  4706. $as_echo_n "(cached) " >&6
  4707. else
  4708. if test -z "$LD"; then
  4709. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4710. for ac_dir in $PATH; do
  4711. IFS="$lt_save_ifs"
  4712. test -z "$ac_dir" && ac_dir=.
  4713. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4714. lt_cv_path_LD="$ac_dir/$ac_prog"
  4715. # Check to see if the program is GNU ld. I'd rather use --version,
  4716. # but apparently some variants of GNU ld only accept -v.
  4717. # Break only if it was the GNU/non-GNU ld that we prefer.
  4718. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4719. *GNU* | *'with BFD'*)
  4720. test "$with_gnu_ld" != no && break
  4721. ;;
  4722. *)
  4723. test "$with_gnu_ld" != yes && break
  4724. ;;
  4725. esac
  4726. fi
  4727. done
  4728. IFS="$lt_save_ifs"
  4729. else
  4730. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4731. fi
  4732. fi
  4733. LD="$lt_cv_path_LD"
  4734. if test -n "$LD"; then
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4736. $as_echo "$LD" >&6; }
  4737. else
  4738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4739. $as_echo "no" >&6; }
  4740. fi
  4741. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4743. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4744. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4745. $as_echo_n "(cached) " >&6
  4746. else
  4747. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4748. case `$LD -v 2>&1 </dev/null` in
  4749. *GNU* | *'with BFD'*)
  4750. lt_cv_prog_gnu_ld=yes
  4751. ;;
  4752. *)
  4753. lt_cv_prog_gnu_ld=no
  4754. ;;
  4755. esac
  4756. fi
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4758. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4759. with_gnu_ld=$lt_cv_prog_gnu_ld
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4761. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4762. if test "${lt_cv_path_NM+set}" = set; then :
  4763. $as_echo_n "(cached) " >&6
  4764. else
  4765. if test -n "$NM"; then
  4766. # Let the user override the test.
  4767. lt_cv_path_NM="$NM"
  4768. else
  4769. lt_nm_to_check="${ac_tool_prefix}nm"
  4770. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4771. lt_nm_to_check="$lt_nm_to_check nm"
  4772. fi
  4773. for lt_tmp_nm in $lt_nm_to_check; do
  4774. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4775. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4776. IFS="$lt_save_ifs"
  4777. test -z "$ac_dir" && ac_dir=.
  4778. tmp_nm="$ac_dir/$lt_tmp_nm"
  4779. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4780. # Check to see if the nm accepts a BSD-compat flag.
  4781. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4782. # nm: unknown option "B" ignored
  4783. # Tru64's nm complains that /dev/null is an invalid object file
  4784. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4785. */dev/null* | *'Invalid file or object type'*)
  4786. lt_cv_path_NM="$tmp_nm -B"
  4787. break
  4788. ;;
  4789. *)
  4790. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4791. */dev/null*)
  4792. lt_cv_path_NM="$tmp_nm -p"
  4793. break
  4794. ;;
  4795. *)
  4796. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4797. continue # so that we can try to find one that supports BSD flags
  4798. ;;
  4799. esac
  4800. ;;
  4801. esac
  4802. fi
  4803. done
  4804. IFS="$lt_save_ifs"
  4805. done
  4806. : ${lt_cv_path_NM=no}
  4807. fi
  4808. fi
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4810. $as_echo "$lt_cv_path_NM" >&6; }
  4811. if test "$lt_cv_path_NM" != "no"; then
  4812. NM="$lt_cv_path_NM"
  4813. else
  4814. # Didn't find any BSD compatible name lister, look for dumpbin.
  4815. if test -n "$DUMPBIN"; then :
  4816. # Let the user override the test.
  4817. else
  4818. if test -n "$ac_tool_prefix"; then
  4819. for ac_prog in dumpbin "link -dump"
  4820. do
  4821. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4822. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4824. $as_echo_n "checking for $ac_word... " >&6; }
  4825. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4826. $as_echo_n "(cached) " >&6
  4827. else
  4828. if test -n "$DUMPBIN"; then
  4829. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4830. else
  4831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4832. for as_dir in $PATH
  4833. do
  4834. IFS=$as_save_IFS
  4835. test -z "$as_dir" && as_dir=.
  4836. for ac_exec_ext in '' $ac_executable_extensions; do
  4837. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4838. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4840. break 2
  4841. fi
  4842. done
  4843. done
  4844. IFS=$as_save_IFS
  4845. fi
  4846. fi
  4847. DUMPBIN=$ac_cv_prog_DUMPBIN
  4848. if test -n "$DUMPBIN"; then
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4850. $as_echo "$DUMPBIN" >&6; }
  4851. else
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4853. $as_echo "no" >&6; }
  4854. fi
  4855. test -n "$DUMPBIN" && break
  4856. done
  4857. fi
  4858. if test -z "$DUMPBIN"; then
  4859. ac_ct_DUMPBIN=$DUMPBIN
  4860. for ac_prog in dumpbin "link -dump"
  4861. do
  4862. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4863. set dummy $ac_prog; ac_word=$2
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4865. $as_echo_n "checking for $ac_word... " >&6; }
  4866. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4867. $as_echo_n "(cached) " >&6
  4868. else
  4869. if test -n "$ac_ct_DUMPBIN"; then
  4870. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4871. else
  4872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4873. for as_dir in $PATH
  4874. do
  4875. IFS=$as_save_IFS
  4876. test -z "$as_dir" && as_dir=.
  4877. for ac_exec_ext in '' $ac_executable_extensions; do
  4878. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4879. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4881. break 2
  4882. fi
  4883. done
  4884. done
  4885. IFS=$as_save_IFS
  4886. fi
  4887. fi
  4888. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4889. if test -n "$ac_ct_DUMPBIN"; then
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4891. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4892. else
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4894. $as_echo "no" >&6; }
  4895. fi
  4896. test -n "$ac_ct_DUMPBIN" && break
  4897. done
  4898. if test "x$ac_ct_DUMPBIN" = x; then
  4899. DUMPBIN=":"
  4900. else
  4901. case $cross_compiling:$ac_tool_warned in
  4902. yes:)
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4904. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4905. ac_tool_warned=yes ;;
  4906. esac
  4907. DUMPBIN=$ac_ct_DUMPBIN
  4908. fi
  4909. fi
  4910. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4911. *COFF*)
  4912. DUMPBIN="$DUMPBIN -symbols"
  4913. ;;
  4914. *)
  4915. DUMPBIN=:
  4916. ;;
  4917. esac
  4918. fi
  4919. if test "$DUMPBIN" != ":"; then
  4920. NM="$DUMPBIN"
  4921. fi
  4922. fi
  4923. test -z "$NM" && NM=nm
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4925. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4926. if test "${lt_cv_nm_interface+set}" = set; then :
  4927. $as_echo_n "(cached) " >&6
  4928. else
  4929. lt_cv_nm_interface="BSD nm"
  4930. echo "int some_variable = 0;" > conftest.$ac_ext
  4931. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4932. (eval "$ac_compile" 2>conftest.err)
  4933. cat conftest.err >&5
  4934. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4935. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4936. cat conftest.err >&5
  4937. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4938. cat conftest.out >&5
  4939. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4940. lt_cv_nm_interface="MS dumpbin"
  4941. fi
  4942. rm -f conftest*
  4943. fi
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4945. $as_echo "$lt_cv_nm_interface" >&6; }
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4947. $as_echo_n "checking whether ln -s works... " >&6; }
  4948. LN_S=$as_ln_s
  4949. if test "$LN_S" = "ln -s"; then
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4951. $as_echo "yes" >&6; }
  4952. else
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4954. $as_echo "no, using $LN_S" >&6; }
  4955. fi
  4956. # find the maximum length of command line arguments
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4958. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4959. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4960. $as_echo_n "(cached) " >&6
  4961. else
  4962. i=0
  4963. teststring="ABCD"
  4964. case $build_os in
  4965. msdosdjgpp*)
  4966. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4967. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4968. # during glob expansion). Even if it were fixed, the result of this
  4969. # check would be larger than it should be.
  4970. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4971. ;;
  4972. gnu*)
  4973. # Under GNU Hurd, this test is not required because there is
  4974. # no limit to the length of command line arguments.
  4975. # Libtool will interpret -1 as no limit whatsoever
  4976. lt_cv_sys_max_cmd_len=-1;
  4977. ;;
  4978. cygwin* | mingw* | cegcc*)
  4979. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4980. # about 5 minutes as the teststring grows exponentially.
  4981. # Worse, since 9x/ME are not pre-emptively multitasking,
  4982. # you end up with a "frozen" computer, even though with patience
  4983. # the test eventually succeeds (with a max line length of 256k).
  4984. # Instead, let's just punt: use the minimum linelength reported by
  4985. # all of the supported platforms: 8192 (on NT/2K/XP).
  4986. lt_cv_sys_max_cmd_len=8192;
  4987. ;;
  4988. mint*)
  4989. # On MiNT this can take a long time and run out of memory.
  4990. lt_cv_sys_max_cmd_len=8192;
  4991. ;;
  4992. amigaos*)
  4993. # On AmigaOS with pdksh, this test takes hours, literally.
  4994. # So we just punt and use a minimum line length of 8192.
  4995. lt_cv_sys_max_cmd_len=8192;
  4996. ;;
  4997. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4998. # This has been around since 386BSD, at least. Likely further.
  4999. if test -x /sbin/sysctl; then
  5000. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5001. elif test -x /usr/sbin/sysctl; then
  5002. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5003. else
  5004. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5005. fi
  5006. # And add a safety zone
  5007. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5008. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5009. ;;
  5010. interix*)
  5011. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5012. lt_cv_sys_max_cmd_len=196608
  5013. ;;
  5014. osf*)
  5015. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5016. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5017. # nice to cause kernel panics so lets avoid the loop below.
  5018. # First set a reasonable default.
  5019. lt_cv_sys_max_cmd_len=16384
  5020. #
  5021. if test -x /sbin/sysconfig; then
  5022. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5023. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5024. esac
  5025. fi
  5026. ;;
  5027. sco3.2v5*)
  5028. lt_cv_sys_max_cmd_len=102400
  5029. ;;
  5030. sysv5* | sco5v6* | sysv4.2uw2*)
  5031. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5032. if test -n "$kargmax"; then
  5033. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5034. else
  5035. lt_cv_sys_max_cmd_len=32768
  5036. fi
  5037. ;;
  5038. *)
  5039. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5040. if test -n "$lt_cv_sys_max_cmd_len"; then
  5041. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5042. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5043. else
  5044. # Make teststring a little bigger before we do anything with it.
  5045. # a 1K string should be a reasonable start.
  5046. for i in 1 2 3 4 5 6 7 8 ; do
  5047. teststring=$teststring$teststring
  5048. done
  5049. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5050. # If test is not a shell built-in, we'll probably end up computing a
  5051. # maximum length that is only half of the actual maximum length, but
  5052. # we can't tell.
  5053. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5054. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5055. test $i != 17 # 1/2 MB should be enough
  5056. do
  5057. i=`expr $i + 1`
  5058. teststring=$teststring$teststring
  5059. done
  5060. # Only check the string length outside the loop.
  5061. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5062. teststring=
  5063. # Add a significant safety factor because C++ compilers can tack on
  5064. # massive amounts of additional arguments before passing them to the
  5065. # linker. It appears as though 1/2 is a usable value.
  5066. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5067. fi
  5068. ;;
  5069. esac
  5070. fi
  5071. if test -n $lt_cv_sys_max_cmd_len ; then
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5073. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5074. else
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5076. $as_echo "none" >&6; }
  5077. fi
  5078. max_cmd_len=$lt_cv_sys_max_cmd_len
  5079. : ${CP="cp -f"}
  5080. : ${MV="mv -f"}
  5081. : ${RM="rm -f"}
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5083. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5084. # Try some XSI features
  5085. xsi_shell=no
  5086. ( _lt_dummy="a/b/c"
  5087. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5088. = c,a/b,, \
  5089. && eval 'test $(( 1 + 1 )) -eq 2 \
  5090. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5091. && xsi_shell=yes
  5092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5093. $as_echo "$xsi_shell" >&6; }
  5094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5095. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5096. lt_shell_append=no
  5097. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5098. >/dev/null 2>&1 \
  5099. && lt_shell_append=yes
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5101. $as_echo "$lt_shell_append" >&6; }
  5102. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5103. lt_unset=unset
  5104. else
  5105. lt_unset=false
  5106. fi
  5107. # test EBCDIC or ASCII
  5108. case `echo X|tr X '\101'` in
  5109. A) # ASCII based system
  5110. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5111. lt_SP2NL='tr \040 \012'
  5112. lt_NL2SP='tr \015\012 \040\040'
  5113. ;;
  5114. *) # EBCDIC based system
  5115. lt_SP2NL='tr \100 \n'
  5116. lt_NL2SP='tr \r\n \100\100'
  5117. ;;
  5118. esac
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5120. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5121. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  5122. $as_echo_n "(cached) " >&6
  5123. else
  5124. lt_cv_ld_reload_flag='-r'
  5125. fi
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5127. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5128. reload_flag=$lt_cv_ld_reload_flag
  5129. case $reload_flag in
  5130. "" | " "*) ;;
  5131. *) reload_flag=" $reload_flag" ;;
  5132. esac
  5133. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5134. case $host_os in
  5135. darwin*)
  5136. if test "$GCC" = yes; then
  5137. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5138. else
  5139. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5140. fi
  5141. ;;
  5142. esac
  5143. if test -n "$ac_tool_prefix"; then
  5144. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5145. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5147. $as_echo_n "checking for $ac_word... " >&6; }
  5148. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5149. $as_echo_n "(cached) " >&6
  5150. else
  5151. if test -n "$OBJDUMP"; then
  5152. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5153. else
  5154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5155. for as_dir in $PATH
  5156. do
  5157. IFS=$as_save_IFS
  5158. test -z "$as_dir" && as_dir=.
  5159. for ac_exec_ext in '' $ac_executable_extensions; do
  5160. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5161. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5162. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5163. break 2
  5164. fi
  5165. done
  5166. done
  5167. IFS=$as_save_IFS
  5168. fi
  5169. fi
  5170. OBJDUMP=$ac_cv_prog_OBJDUMP
  5171. if test -n "$OBJDUMP"; then
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5173. $as_echo "$OBJDUMP" >&6; }
  5174. else
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5176. $as_echo "no" >&6; }
  5177. fi
  5178. fi
  5179. if test -z "$ac_cv_prog_OBJDUMP"; then
  5180. ac_ct_OBJDUMP=$OBJDUMP
  5181. # Extract the first word of "objdump", so it can be a program name with args.
  5182. set dummy objdump; ac_word=$2
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5184. $as_echo_n "checking for $ac_word... " >&6; }
  5185. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5186. $as_echo_n "(cached) " >&6
  5187. else
  5188. if test -n "$ac_ct_OBJDUMP"; then
  5189. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5190. else
  5191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5192. for as_dir in $PATH
  5193. do
  5194. IFS=$as_save_IFS
  5195. test -z "$as_dir" && as_dir=.
  5196. for ac_exec_ext in '' $ac_executable_extensions; do
  5197. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5198. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5199. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5200. break 2
  5201. fi
  5202. done
  5203. done
  5204. IFS=$as_save_IFS
  5205. fi
  5206. fi
  5207. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5208. if test -n "$ac_ct_OBJDUMP"; then
  5209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5210. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5211. else
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5213. $as_echo "no" >&6; }
  5214. fi
  5215. if test "x$ac_ct_OBJDUMP" = x; then
  5216. OBJDUMP="false"
  5217. else
  5218. case $cross_compiling:$ac_tool_warned in
  5219. yes:)
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5221. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5222. ac_tool_warned=yes ;;
  5223. esac
  5224. OBJDUMP=$ac_ct_OBJDUMP
  5225. fi
  5226. else
  5227. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5228. fi
  5229. test -z "$OBJDUMP" && OBJDUMP=objdump
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5231. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5232. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5233. $as_echo_n "(cached) " >&6
  5234. else
  5235. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5236. lt_cv_file_magic_test_file=
  5237. lt_cv_deplibs_check_method='unknown'
  5238. # Need to set the preceding variable on all platforms that support
  5239. # interlibrary dependencies.
  5240. # 'none' -- dependencies not supported.
  5241. # `unknown' -- same as none, but documents that we really don't know.
  5242. # 'pass_all' -- all dependencies passed with no checks.
  5243. # 'test_compile' -- check by making test program.
  5244. # 'file_magic [[regex]]' -- check by looking for files in library path
  5245. # which responds to the $file_magic_cmd with a given extended regex.
  5246. # If you have `file' or equivalent on your system and you're not sure
  5247. # whether `pass_all' will *always* work, you probably want this one.
  5248. case $host_os in
  5249. aix[4-9]*)
  5250. lt_cv_deplibs_check_method=pass_all
  5251. ;;
  5252. beos*)
  5253. lt_cv_deplibs_check_method=pass_all
  5254. ;;
  5255. bsdi[45]*)
  5256. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5257. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5258. lt_cv_file_magic_test_file=/shlib/libc.so
  5259. ;;
  5260. cygwin*)
  5261. # func_win32_libid is a shell function defined in ltmain.sh
  5262. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5263. lt_cv_file_magic_cmd='func_win32_libid'
  5264. ;;
  5265. mingw* | pw32*)
  5266. # Base MSYS/MinGW do not provide the 'file' command needed by
  5267. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5268. # unless we find 'file', for example because we are cross-compiling.
  5269. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5270. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5271. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5272. lt_cv_file_magic_cmd='func_win32_libid'
  5273. else
  5274. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5275. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5276. fi
  5277. ;;
  5278. cegcc*)
  5279. # use the weaker test based on 'objdump'. See mingw*.
  5280. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5281. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5282. ;;
  5283. darwin* | rhapsody*)
  5284. lt_cv_deplibs_check_method=pass_all
  5285. ;;
  5286. freebsd* | dragonfly*)
  5287. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5288. case $host_cpu in
  5289. i*86 )
  5290. # Not sure whether the presence of OpenBSD here was a mistake.
  5291. # Let's accept both of them until this is cleared up.
  5292. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5293. lt_cv_file_magic_cmd=/usr/bin/file
  5294. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5295. ;;
  5296. esac
  5297. else
  5298. lt_cv_deplibs_check_method=pass_all
  5299. fi
  5300. ;;
  5301. gnu*)
  5302. lt_cv_deplibs_check_method=pass_all
  5303. ;;
  5304. haiku*)
  5305. lt_cv_deplibs_check_method=pass_all
  5306. ;;
  5307. hpux10.20* | hpux11*)
  5308. lt_cv_file_magic_cmd=/usr/bin/file
  5309. case $host_cpu in
  5310. ia64*)
  5311. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5312. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5313. ;;
  5314. hppa*64*)
  5315. 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]'
  5316. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5317. ;;
  5318. *)
  5319. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5320. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5321. ;;
  5322. esac
  5323. ;;
  5324. interix[3-9]*)
  5325. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5326. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5327. ;;
  5328. irix5* | irix6* | nonstopux*)
  5329. case $LD in
  5330. *-32|*"-32 ") libmagic=32-bit;;
  5331. *-n32|*"-n32 ") libmagic=N32;;
  5332. *-64|*"-64 ") libmagic=64-bit;;
  5333. *) libmagic=never-match;;
  5334. esac
  5335. lt_cv_deplibs_check_method=pass_all
  5336. ;;
  5337. # This must be Linux ELF.
  5338. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5339. lt_cv_deplibs_check_method=pass_all
  5340. ;;
  5341. netbsd*)
  5342. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5343. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5344. else
  5345. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5346. fi
  5347. ;;
  5348. newos6*)
  5349. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5350. lt_cv_file_magic_cmd=/usr/bin/file
  5351. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5352. ;;
  5353. *nto* | *qnx*)
  5354. lt_cv_deplibs_check_method=pass_all
  5355. ;;
  5356. openbsd*)
  5357. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5358. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5359. else
  5360. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5361. fi
  5362. ;;
  5363. osf3* | osf4* | osf5*)
  5364. lt_cv_deplibs_check_method=pass_all
  5365. ;;
  5366. rdos*)
  5367. lt_cv_deplibs_check_method=pass_all
  5368. ;;
  5369. solaris*)
  5370. lt_cv_deplibs_check_method=pass_all
  5371. ;;
  5372. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5373. lt_cv_deplibs_check_method=pass_all
  5374. ;;
  5375. sysv4 | sysv4.3*)
  5376. case $host_vendor in
  5377. motorola)
  5378. 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]'
  5379. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5380. ;;
  5381. ncr)
  5382. lt_cv_deplibs_check_method=pass_all
  5383. ;;
  5384. sequent)
  5385. lt_cv_file_magic_cmd='/bin/file'
  5386. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5387. ;;
  5388. sni)
  5389. lt_cv_file_magic_cmd='/bin/file'
  5390. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5391. lt_cv_file_magic_test_file=/lib/libc.so
  5392. ;;
  5393. siemens)
  5394. lt_cv_deplibs_check_method=pass_all
  5395. ;;
  5396. pc)
  5397. lt_cv_deplibs_check_method=pass_all
  5398. ;;
  5399. esac
  5400. ;;
  5401. tpf*)
  5402. lt_cv_deplibs_check_method=pass_all
  5403. ;;
  5404. esac
  5405. fi
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5407. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5408. file_magic_cmd=$lt_cv_file_magic_cmd
  5409. deplibs_check_method=$lt_cv_deplibs_check_method
  5410. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5411. if test -n "$ac_tool_prefix"; then
  5412. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5413. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5415. $as_echo_n "checking for $ac_word... " >&6; }
  5416. if test "${ac_cv_prog_AR+set}" = set; then :
  5417. $as_echo_n "(cached) " >&6
  5418. else
  5419. if test -n "$AR"; then
  5420. ac_cv_prog_AR="$AR" # Let the user override the test.
  5421. else
  5422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5423. for as_dir in $PATH
  5424. do
  5425. IFS=$as_save_IFS
  5426. test -z "$as_dir" && as_dir=.
  5427. for ac_exec_ext in '' $ac_executable_extensions; do
  5428. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5429. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5431. break 2
  5432. fi
  5433. done
  5434. done
  5435. IFS=$as_save_IFS
  5436. fi
  5437. fi
  5438. AR=$ac_cv_prog_AR
  5439. if test -n "$AR"; then
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5441. $as_echo "$AR" >&6; }
  5442. else
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5444. $as_echo "no" >&6; }
  5445. fi
  5446. fi
  5447. if test -z "$ac_cv_prog_AR"; then
  5448. ac_ct_AR=$AR
  5449. # Extract the first word of "ar", so it can be a program name with args.
  5450. set dummy ar; ac_word=$2
  5451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5452. $as_echo_n "checking for $ac_word... " >&6; }
  5453. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5454. $as_echo_n "(cached) " >&6
  5455. else
  5456. if test -n "$ac_ct_AR"; then
  5457. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5458. else
  5459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5460. for as_dir in $PATH
  5461. do
  5462. IFS=$as_save_IFS
  5463. test -z "$as_dir" && as_dir=.
  5464. for ac_exec_ext in '' $ac_executable_extensions; do
  5465. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5466. ac_cv_prog_ac_ct_AR="ar"
  5467. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5468. break 2
  5469. fi
  5470. done
  5471. done
  5472. IFS=$as_save_IFS
  5473. fi
  5474. fi
  5475. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5476. if test -n "$ac_ct_AR"; then
  5477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5478. $as_echo "$ac_ct_AR" >&6; }
  5479. else
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5481. $as_echo "no" >&6; }
  5482. fi
  5483. if test "x$ac_ct_AR" = x; then
  5484. AR="false"
  5485. else
  5486. case $cross_compiling:$ac_tool_warned in
  5487. yes:)
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5489. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5490. ac_tool_warned=yes ;;
  5491. esac
  5492. AR=$ac_ct_AR
  5493. fi
  5494. else
  5495. AR="$ac_cv_prog_AR"
  5496. fi
  5497. test -z "$AR" && AR=ar
  5498. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5499. if test -n "$ac_tool_prefix"; then
  5500. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5501. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5503. $as_echo_n "checking for $ac_word... " >&6; }
  5504. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5505. $as_echo_n "(cached) " >&6
  5506. else
  5507. if test -n "$STRIP"; then
  5508. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5509. else
  5510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5511. for as_dir in $PATH
  5512. do
  5513. IFS=$as_save_IFS
  5514. test -z "$as_dir" && as_dir=.
  5515. for ac_exec_ext in '' $ac_executable_extensions; do
  5516. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5517. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5519. break 2
  5520. fi
  5521. done
  5522. done
  5523. IFS=$as_save_IFS
  5524. fi
  5525. fi
  5526. STRIP=$ac_cv_prog_STRIP
  5527. if test -n "$STRIP"; then
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5529. $as_echo "$STRIP" >&6; }
  5530. else
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5532. $as_echo "no" >&6; }
  5533. fi
  5534. fi
  5535. if test -z "$ac_cv_prog_STRIP"; then
  5536. ac_ct_STRIP=$STRIP
  5537. # Extract the first word of "strip", so it can be a program name with args.
  5538. set dummy strip; ac_word=$2
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5540. $as_echo_n "checking for $ac_word... " >&6; }
  5541. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5542. $as_echo_n "(cached) " >&6
  5543. else
  5544. if test -n "$ac_ct_STRIP"; then
  5545. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5546. else
  5547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5548. for as_dir in $PATH
  5549. do
  5550. IFS=$as_save_IFS
  5551. test -z "$as_dir" && as_dir=.
  5552. for ac_exec_ext in '' $ac_executable_extensions; do
  5553. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5554. ac_cv_prog_ac_ct_STRIP="strip"
  5555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5556. break 2
  5557. fi
  5558. done
  5559. done
  5560. IFS=$as_save_IFS
  5561. fi
  5562. fi
  5563. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5564. if test -n "$ac_ct_STRIP"; then
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5566. $as_echo "$ac_ct_STRIP" >&6; }
  5567. else
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5569. $as_echo "no" >&6; }
  5570. fi
  5571. if test "x$ac_ct_STRIP" = x; then
  5572. STRIP=":"
  5573. else
  5574. case $cross_compiling:$ac_tool_warned in
  5575. yes:)
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5577. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5578. ac_tool_warned=yes ;;
  5579. esac
  5580. STRIP=$ac_ct_STRIP
  5581. fi
  5582. else
  5583. STRIP="$ac_cv_prog_STRIP"
  5584. fi
  5585. test -z "$STRIP" && STRIP=:
  5586. if test -n "$ac_tool_prefix"; then
  5587. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5588. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5590. $as_echo_n "checking for $ac_word... " >&6; }
  5591. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5592. $as_echo_n "(cached) " >&6
  5593. else
  5594. if test -n "$RANLIB"; then
  5595. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5596. else
  5597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5598. for as_dir in $PATH
  5599. do
  5600. IFS=$as_save_IFS
  5601. test -z "$as_dir" && as_dir=.
  5602. for ac_exec_ext in '' $ac_executable_extensions; do
  5603. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5604. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5606. break 2
  5607. fi
  5608. done
  5609. done
  5610. IFS=$as_save_IFS
  5611. fi
  5612. fi
  5613. RANLIB=$ac_cv_prog_RANLIB
  5614. if test -n "$RANLIB"; then
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5616. $as_echo "$RANLIB" >&6; }
  5617. else
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5619. $as_echo "no" >&6; }
  5620. fi
  5621. fi
  5622. if test -z "$ac_cv_prog_RANLIB"; then
  5623. ac_ct_RANLIB=$RANLIB
  5624. # Extract the first word of "ranlib", so it can be a program name with args.
  5625. set dummy ranlib; ac_word=$2
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5627. $as_echo_n "checking for $ac_word... " >&6; }
  5628. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5629. $as_echo_n "(cached) " >&6
  5630. else
  5631. if test -n "$ac_ct_RANLIB"; then
  5632. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5633. else
  5634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5635. for as_dir in $PATH
  5636. do
  5637. IFS=$as_save_IFS
  5638. test -z "$as_dir" && as_dir=.
  5639. for ac_exec_ext in '' $ac_executable_extensions; do
  5640. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5641. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5643. break 2
  5644. fi
  5645. done
  5646. done
  5647. IFS=$as_save_IFS
  5648. fi
  5649. fi
  5650. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5651. if test -n "$ac_ct_RANLIB"; then
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5653. $as_echo "$ac_ct_RANLIB" >&6; }
  5654. else
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5656. $as_echo "no" >&6; }
  5657. fi
  5658. if test "x$ac_ct_RANLIB" = x; then
  5659. RANLIB=":"
  5660. else
  5661. case $cross_compiling:$ac_tool_warned in
  5662. yes:)
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5664. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5665. ac_tool_warned=yes ;;
  5666. esac
  5667. RANLIB=$ac_ct_RANLIB
  5668. fi
  5669. else
  5670. RANLIB="$ac_cv_prog_RANLIB"
  5671. fi
  5672. test -z "$RANLIB" && RANLIB=:
  5673. # Determine commands to create old-style static archives.
  5674. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5675. old_postinstall_cmds='chmod 644 $oldlib'
  5676. old_postuninstall_cmds=
  5677. if test -n "$RANLIB"; then
  5678. case $host_os in
  5679. openbsd*)
  5680. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5681. ;;
  5682. *)
  5683. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5684. ;;
  5685. esac
  5686. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5687. fi
  5688. case $host_os in
  5689. darwin*)
  5690. lock_old_archive_extraction=yes ;;
  5691. *)
  5692. lock_old_archive_extraction=no ;;
  5693. esac
  5694. # If no C compiler was specified, use CC.
  5695. LTCC=${LTCC-"$CC"}
  5696. # If no C compiler flags were specified, use CFLAGS.
  5697. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5698. # Allow CC to be a program name with arguments.
  5699. compiler=$CC
  5700. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5702. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5703. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5704. $as_echo_n "(cached) " >&6
  5705. else
  5706. # These are sane defaults that work on at least a few old systems.
  5707. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5708. # Character class describing NM global symbol codes.
  5709. symcode='[BCDEGRST]'
  5710. # Regexp to match symbols that can be accessed directly from C.
  5711. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5712. # Define system-specific variables.
  5713. case $host_os in
  5714. aix*)
  5715. symcode='[BCDT]'
  5716. ;;
  5717. cygwin* | mingw* | pw32* | cegcc*)
  5718. symcode='[ABCDGISTW]'
  5719. ;;
  5720. hpux*)
  5721. if test "$host_cpu" = ia64; then
  5722. symcode='[ABCDEGRST]'
  5723. fi
  5724. ;;
  5725. irix* | nonstopux*)
  5726. symcode='[BCDEGRST]'
  5727. ;;
  5728. osf*)
  5729. symcode='[BCDEGQRST]'
  5730. ;;
  5731. solaris*)
  5732. symcode='[BDRT]'
  5733. ;;
  5734. sco3.2v5*)
  5735. symcode='[DT]'
  5736. ;;
  5737. sysv4.2uw2*)
  5738. symcode='[DT]'
  5739. ;;
  5740. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5741. symcode='[ABDT]'
  5742. ;;
  5743. sysv4)
  5744. symcode='[DFNSTU]'
  5745. ;;
  5746. esac
  5747. # If we're using GNU nm, then use its standard symbol codes.
  5748. case `$NM -V 2>&1` in
  5749. *GNU* | *'with BFD'*)
  5750. symcode='[ABCDGIRSTW]' ;;
  5751. esac
  5752. # Transform an extracted symbol line into a proper C declaration.
  5753. # Some systems (esp. on ia64) link data and code symbols differently,
  5754. # so use this general approach.
  5755. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5756. # Transform an extracted symbol line into symbol name and symbol address
  5757. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5758. 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'"
  5759. # Handle CRLF in mingw tool chain
  5760. opt_cr=
  5761. case $build_os in
  5762. mingw*)
  5763. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5764. ;;
  5765. esac
  5766. # Try without a prefix underscore, then with it.
  5767. for ac_symprfx in "" "_"; do
  5768. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5769. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5770. # Write the raw and C identifiers.
  5771. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5772. # Fake it for dumpbin and say T for any non-static function
  5773. # and D for any global variable.
  5774. # Also find C++ and __fastcall symbols from MSVC++,
  5775. # which start with @ or ?.
  5776. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5777. " {last_section=section; section=\$ 3};"\
  5778. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5779. " \$ 0!~/External *\|/{next};"\
  5780. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5781. " {if(hide[section]) next};"\
  5782. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5783. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5784. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5785. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5786. " ' prfx=^$ac_symprfx"
  5787. else
  5788. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5789. fi
  5790. # Check to see that the pipe works correctly.
  5791. pipe_works=no
  5792. rm -f conftest*
  5793. cat > conftest.$ac_ext <<_LT_EOF
  5794. #ifdef __cplusplus
  5795. extern "C" {
  5796. #endif
  5797. char nm_test_var;
  5798. void nm_test_func(void);
  5799. void nm_test_func(void){}
  5800. #ifdef __cplusplus
  5801. }
  5802. #endif
  5803. int main(){nm_test_var='a';nm_test_func();return(0);}
  5804. _LT_EOF
  5805. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5806. (eval $ac_compile) 2>&5
  5807. ac_status=$?
  5808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5809. test $ac_status = 0; }; then
  5810. # Now try to grab the symbols.
  5811. nlist=conftest.nm
  5812. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5813. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5814. ac_status=$?
  5815. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5816. test $ac_status = 0; } && test -s "$nlist"; then
  5817. # Try sorting and uniquifying the output.
  5818. if sort "$nlist" | uniq > "$nlist"T; then
  5819. mv -f "$nlist"T "$nlist"
  5820. else
  5821. rm -f "$nlist"T
  5822. fi
  5823. # Make sure that we snagged all the symbols we need.
  5824. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5825. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5826. cat <<_LT_EOF > conftest.$ac_ext
  5827. #ifdef __cplusplus
  5828. extern "C" {
  5829. #endif
  5830. _LT_EOF
  5831. # Now generate the symbol file.
  5832. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5833. cat <<_LT_EOF >> conftest.$ac_ext
  5834. /* The mapping between symbol names and symbols. */
  5835. const struct {
  5836. const char *name;
  5837. void *address;
  5838. }
  5839. lt__PROGRAM__LTX_preloaded_symbols[] =
  5840. {
  5841. { "@PROGRAM@", (void *) 0 },
  5842. _LT_EOF
  5843. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5844. cat <<\_LT_EOF >> conftest.$ac_ext
  5845. {0, (void *) 0}
  5846. };
  5847. /* This works around a problem in FreeBSD linker */
  5848. #ifdef FREEBSD_WORKAROUND
  5849. static const void *lt_preloaded_setup() {
  5850. return lt__PROGRAM__LTX_preloaded_symbols;
  5851. }
  5852. #endif
  5853. #ifdef __cplusplus
  5854. }
  5855. #endif
  5856. _LT_EOF
  5857. # Now try linking the two files.
  5858. mv conftest.$ac_objext conftstm.$ac_objext
  5859. lt_save_LIBS="$LIBS"
  5860. lt_save_CFLAGS="$CFLAGS"
  5861. LIBS="conftstm.$ac_objext"
  5862. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5863. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5864. (eval $ac_link) 2>&5
  5865. ac_status=$?
  5866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5867. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5868. pipe_works=yes
  5869. fi
  5870. LIBS="$lt_save_LIBS"
  5871. CFLAGS="$lt_save_CFLAGS"
  5872. else
  5873. echo "cannot find nm_test_func in $nlist" >&5
  5874. fi
  5875. else
  5876. echo "cannot find nm_test_var in $nlist" >&5
  5877. fi
  5878. else
  5879. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5880. fi
  5881. else
  5882. echo "$progname: failed program was:" >&5
  5883. cat conftest.$ac_ext >&5
  5884. fi
  5885. rm -rf conftest* conftst*
  5886. # Do not use the global_symbol_pipe unless it works.
  5887. if test "$pipe_works" = yes; then
  5888. break
  5889. else
  5890. lt_cv_sys_global_symbol_pipe=
  5891. fi
  5892. done
  5893. fi
  5894. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5895. lt_cv_sys_global_symbol_to_cdecl=
  5896. fi
  5897. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5899. $as_echo "failed" >&6; }
  5900. else
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5902. $as_echo "ok" >&6; }
  5903. fi
  5904. # Check whether --enable-libtool-lock was given.
  5905. if test "${enable_libtool_lock+set}" = set; then :
  5906. enableval=$enable_libtool_lock;
  5907. fi
  5908. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5909. # Some flags need to be propagated to the compiler or linker for good
  5910. # libtool support.
  5911. case $host in
  5912. ia64-*-hpux*)
  5913. # Find out which ABI we are using.
  5914. echo 'int i;' > conftest.$ac_ext
  5915. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5916. (eval $ac_compile) 2>&5
  5917. ac_status=$?
  5918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5919. test $ac_status = 0; }; then
  5920. case `/usr/bin/file conftest.$ac_objext` in
  5921. *ELF-32*)
  5922. HPUX_IA64_MODE="32"
  5923. ;;
  5924. *ELF-64*)
  5925. HPUX_IA64_MODE="64"
  5926. ;;
  5927. esac
  5928. fi
  5929. rm -rf conftest*
  5930. ;;
  5931. *-*-irix6*)
  5932. # Find out which ABI we are using.
  5933. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5934. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5935. (eval $ac_compile) 2>&5
  5936. ac_status=$?
  5937. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5938. test $ac_status = 0; }; then
  5939. if test "$lt_cv_prog_gnu_ld" = yes; then
  5940. case `/usr/bin/file conftest.$ac_objext` in
  5941. *32-bit*)
  5942. LD="${LD-ld} -melf32bsmip"
  5943. ;;
  5944. *N32*)
  5945. LD="${LD-ld} -melf32bmipn32"
  5946. ;;
  5947. *64-bit*)
  5948. LD="${LD-ld} -melf64bmip"
  5949. ;;
  5950. esac
  5951. else
  5952. case `/usr/bin/file conftest.$ac_objext` in
  5953. *32-bit*)
  5954. LD="${LD-ld} -32"
  5955. ;;
  5956. *N32*)
  5957. LD="${LD-ld} -n32"
  5958. ;;
  5959. *64-bit*)
  5960. LD="${LD-ld} -64"
  5961. ;;
  5962. esac
  5963. fi
  5964. fi
  5965. rm -rf conftest*
  5966. ;;
  5967. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5968. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5969. # Find out which ABI we are using.
  5970. echo 'int i;' > conftest.$ac_ext
  5971. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5972. (eval $ac_compile) 2>&5
  5973. ac_status=$?
  5974. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5975. test $ac_status = 0; }; then
  5976. case `/usr/bin/file conftest.o` in
  5977. *32-bit*)
  5978. case $host in
  5979. x86_64-*kfreebsd*-gnu)
  5980. LD="${LD-ld} -m elf_i386_fbsd"
  5981. ;;
  5982. x86_64-*linux*)
  5983. case `/usr/bin/file conftest.o` in
  5984. *x86-64*)
  5985. LD="${LD-ld} -m elf32_x86_64"
  5986. ;;
  5987. *)
  5988. LD="${LD-ld} -m elf_i386"
  5989. ;;
  5990. esac
  5991. ;;
  5992. powerpc64le-*linux*)
  5993. LD="${LD-ld} -m elf32lppclinux"
  5994. ;;
  5995. powerpc64-*linux*)
  5996. LD="${LD-ld} -m elf32ppclinux"
  5997. ;;
  5998. s390x-*linux*)
  5999. LD="${LD-ld} -m elf_s390"
  6000. ;;
  6001. sparc64-*linux*)
  6002. LD="${LD-ld} -m elf32_sparc"
  6003. ;;
  6004. esac
  6005. ;;
  6006. *64-bit*)
  6007. case $host in
  6008. x86_64-*kfreebsd*-gnu)
  6009. LD="${LD-ld} -m elf_x86_64_fbsd"
  6010. ;;
  6011. x86_64-*linux*)
  6012. LD="${LD-ld} -m elf_x86_64"
  6013. ;;
  6014. powerpcle-*linux*)
  6015. LD="${LD-ld} -m elf64lppc"
  6016. ;;
  6017. powerpc-*linux*)
  6018. LD="${LD-ld} -m elf64ppc"
  6019. ;;
  6020. s390*-*linux*|s390*-*tpf*)
  6021. LD="${LD-ld} -m elf64_s390"
  6022. ;;
  6023. sparc*-*linux*)
  6024. LD="${LD-ld} -m elf64_sparc"
  6025. ;;
  6026. esac
  6027. ;;
  6028. esac
  6029. fi
  6030. rm -rf conftest*
  6031. ;;
  6032. *-*-sco3.2v5*)
  6033. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6034. SAVE_CFLAGS="$CFLAGS"
  6035. CFLAGS="$CFLAGS -belf"
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6037. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6038. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6039. $as_echo_n "(cached) " >&6
  6040. else
  6041. ac_ext=c
  6042. ac_cpp='$CPP $CPPFLAGS'
  6043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6046. if test x$gcc_no_link = xyes; then
  6047. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6048. fi
  6049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6050. /* end confdefs.h. */
  6051. int
  6052. main ()
  6053. {
  6054. ;
  6055. return 0;
  6056. }
  6057. _ACEOF
  6058. if ac_fn_c_try_link "$LINENO"; then :
  6059. lt_cv_cc_needs_belf=yes
  6060. else
  6061. lt_cv_cc_needs_belf=no
  6062. fi
  6063. rm -f core conftest.err conftest.$ac_objext \
  6064. conftest$ac_exeext conftest.$ac_ext
  6065. ac_ext=c
  6066. ac_cpp='$CPP $CPPFLAGS'
  6067. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6068. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6069. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6070. fi
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6072. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6073. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6074. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6075. CFLAGS="$SAVE_CFLAGS"
  6076. fi
  6077. ;;
  6078. sparc*-*solaris*)
  6079. # Find out which ABI we are using.
  6080. echo 'int i;' > conftest.$ac_ext
  6081. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6082. (eval $ac_compile) 2>&5
  6083. ac_status=$?
  6084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6085. test $ac_status = 0; }; then
  6086. case `/usr/bin/file conftest.o` in
  6087. *64-bit*)
  6088. case $lt_cv_prog_gnu_ld in
  6089. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6090. *)
  6091. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6092. LD="${LD-ld} -64"
  6093. fi
  6094. ;;
  6095. esac
  6096. ;;
  6097. esac
  6098. fi
  6099. rm -rf conftest*
  6100. ;;
  6101. esac
  6102. need_locks="$enable_libtool_lock"
  6103. case $host_os in
  6104. rhapsody* | darwin*)
  6105. if test -n "$ac_tool_prefix"; then
  6106. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6107. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6109. $as_echo_n "checking for $ac_word... " >&6; }
  6110. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6111. $as_echo_n "(cached) " >&6
  6112. else
  6113. if test -n "$DSYMUTIL"; then
  6114. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6115. else
  6116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6117. for as_dir in $PATH
  6118. do
  6119. IFS=$as_save_IFS
  6120. test -z "$as_dir" && as_dir=.
  6121. for ac_exec_ext in '' $ac_executable_extensions; do
  6122. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6123. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6125. break 2
  6126. fi
  6127. done
  6128. done
  6129. IFS=$as_save_IFS
  6130. fi
  6131. fi
  6132. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6133. if test -n "$DSYMUTIL"; then
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6135. $as_echo "$DSYMUTIL" >&6; }
  6136. else
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6138. $as_echo "no" >&6; }
  6139. fi
  6140. fi
  6141. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6142. ac_ct_DSYMUTIL=$DSYMUTIL
  6143. # Extract the first word of "dsymutil", so it can be a program name with args.
  6144. set dummy dsymutil; ac_word=$2
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6146. $as_echo_n "checking for $ac_word... " >&6; }
  6147. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6148. $as_echo_n "(cached) " >&6
  6149. else
  6150. if test -n "$ac_ct_DSYMUTIL"; then
  6151. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6152. else
  6153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6154. for as_dir in $PATH
  6155. do
  6156. IFS=$as_save_IFS
  6157. test -z "$as_dir" && as_dir=.
  6158. for ac_exec_ext in '' $ac_executable_extensions; do
  6159. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6160. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6162. break 2
  6163. fi
  6164. done
  6165. done
  6166. IFS=$as_save_IFS
  6167. fi
  6168. fi
  6169. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6170. if test -n "$ac_ct_DSYMUTIL"; then
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6172. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6173. else
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6175. $as_echo "no" >&6; }
  6176. fi
  6177. if test "x$ac_ct_DSYMUTIL" = x; then
  6178. DSYMUTIL=":"
  6179. else
  6180. case $cross_compiling:$ac_tool_warned in
  6181. yes:)
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6183. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6184. ac_tool_warned=yes ;;
  6185. esac
  6186. DSYMUTIL=$ac_ct_DSYMUTIL
  6187. fi
  6188. else
  6189. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6190. fi
  6191. if test -n "$ac_tool_prefix"; then
  6192. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6193. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6195. $as_echo_n "checking for $ac_word... " >&6; }
  6196. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6197. $as_echo_n "(cached) " >&6
  6198. else
  6199. if test -n "$NMEDIT"; then
  6200. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6201. else
  6202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6203. for as_dir in $PATH
  6204. do
  6205. IFS=$as_save_IFS
  6206. test -z "$as_dir" && as_dir=.
  6207. for ac_exec_ext in '' $ac_executable_extensions; do
  6208. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6209. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6211. break 2
  6212. fi
  6213. done
  6214. done
  6215. IFS=$as_save_IFS
  6216. fi
  6217. fi
  6218. NMEDIT=$ac_cv_prog_NMEDIT
  6219. if test -n "$NMEDIT"; then
  6220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6221. $as_echo "$NMEDIT" >&6; }
  6222. else
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6224. $as_echo "no" >&6; }
  6225. fi
  6226. fi
  6227. if test -z "$ac_cv_prog_NMEDIT"; then
  6228. ac_ct_NMEDIT=$NMEDIT
  6229. # Extract the first word of "nmedit", so it can be a program name with args.
  6230. set dummy nmedit; ac_word=$2
  6231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6232. $as_echo_n "checking for $ac_word... " >&6; }
  6233. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6234. $as_echo_n "(cached) " >&6
  6235. else
  6236. if test -n "$ac_ct_NMEDIT"; then
  6237. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6238. else
  6239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6240. for as_dir in $PATH
  6241. do
  6242. IFS=$as_save_IFS
  6243. test -z "$as_dir" && as_dir=.
  6244. for ac_exec_ext in '' $ac_executable_extensions; do
  6245. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6246. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6247. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6248. break 2
  6249. fi
  6250. done
  6251. done
  6252. IFS=$as_save_IFS
  6253. fi
  6254. fi
  6255. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6256. if test -n "$ac_ct_NMEDIT"; then
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6258. $as_echo "$ac_ct_NMEDIT" >&6; }
  6259. else
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6261. $as_echo "no" >&6; }
  6262. fi
  6263. if test "x$ac_ct_NMEDIT" = x; then
  6264. NMEDIT=":"
  6265. else
  6266. case $cross_compiling:$ac_tool_warned in
  6267. yes:)
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6269. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6270. ac_tool_warned=yes ;;
  6271. esac
  6272. NMEDIT=$ac_ct_NMEDIT
  6273. fi
  6274. else
  6275. NMEDIT="$ac_cv_prog_NMEDIT"
  6276. fi
  6277. if test -n "$ac_tool_prefix"; then
  6278. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6279. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6281. $as_echo_n "checking for $ac_word... " >&6; }
  6282. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6283. $as_echo_n "(cached) " >&6
  6284. else
  6285. if test -n "$LIPO"; then
  6286. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6287. else
  6288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6289. for as_dir in $PATH
  6290. do
  6291. IFS=$as_save_IFS
  6292. test -z "$as_dir" && as_dir=.
  6293. for ac_exec_ext in '' $ac_executable_extensions; do
  6294. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6295. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6296. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6297. break 2
  6298. fi
  6299. done
  6300. done
  6301. IFS=$as_save_IFS
  6302. fi
  6303. fi
  6304. LIPO=$ac_cv_prog_LIPO
  6305. if test -n "$LIPO"; then
  6306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6307. $as_echo "$LIPO" >&6; }
  6308. else
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6310. $as_echo "no" >&6; }
  6311. fi
  6312. fi
  6313. if test -z "$ac_cv_prog_LIPO"; then
  6314. ac_ct_LIPO=$LIPO
  6315. # Extract the first word of "lipo", so it can be a program name with args.
  6316. set dummy lipo; ac_word=$2
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6318. $as_echo_n "checking for $ac_word... " >&6; }
  6319. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6320. $as_echo_n "(cached) " >&6
  6321. else
  6322. if test -n "$ac_ct_LIPO"; then
  6323. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6324. else
  6325. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6326. for as_dir in $PATH
  6327. do
  6328. IFS=$as_save_IFS
  6329. test -z "$as_dir" && as_dir=.
  6330. for ac_exec_ext in '' $ac_executable_extensions; do
  6331. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6332. ac_cv_prog_ac_ct_LIPO="lipo"
  6333. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6334. break 2
  6335. fi
  6336. done
  6337. done
  6338. IFS=$as_save_IFS
  6339. fi
  6340. fi
  6341. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6342. if test -n "$ac_ct_LIPO"; then
  6343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6344. $as_echo "$ac_ct_LIPO" >&6; }
  6345. else
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6347. $as_echo "no" >&6; }
  6348. fi
  6349. if test "x$ac_ct_LIPO" = x; then
  6350. LIPO=":"
  6351. else
  6352. case $cross_compiling:$ac_tool_warned in
  6353. yes:)
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6355. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6356. ac_tool_warned=yes ;;
  6357. esac
  6358. LIPO=$ac_ct_LIPO
  6359. fi
  6360. else
  6361. LIPO="$ac_cv_prog_LIPO"
  6362. fi
  6363. if test -n "$ac_tool_prefix"; then
  6364. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6365. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6367. $as_echo_n "checking for $ac_word... " >&6; }
  6368. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6369. $as_echo_n "(cached) " >&6
  6370. else
  6371. if test -n "$OTOOL"; then
  6372. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6373. else
  6374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6375. for as_dir in $PATH
  6376. do
  6377. IFS=$as_save_IFS
  6378. test -z "$as_dir" && as_dir=.
  6379. for ac_exec_ext in '' $ac_executable_extensions; do
  6380. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6381. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6382. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6383. break 2
  6384. fi
  6385. done
  6386. done
  6387. IFS=$as_save_IFS
  6388. fi
  6389. fi
  6390. OTOOL=$ac_cv_prog_OTOOL
  6391. if test -n "$OTOOL"; then
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6393. $as_echo "$OTOOL" >&6; }
  6394. else
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6396. $as_echo "no" >&6; }
  6397. fi
  6398. fi
  6399. if test -z "$ac_cv_prog_OTOOL"; then
  6400. ac_ct_OTOOL=$OTOOL
  6401. # Extract the first word of "otool", so it can be a program name with args.
  6402. set dummy otool; ac_word=$2
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6404. $as_echo_n "checking for $ac_word... " >&6; }
  6405. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6406. $as_echo_n "(cached) " >&6
  6407. else
  6408. if test -n "$ac_ct_OTOOL"; then
  6409. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6410. else
  6411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6412. for as_dir in $PATH
  6413. do
  6414. IFS=$as_save_IFS
  6415. test -z "$as_dir" && as_dir=.
  6416. for ac_exec_ext in '' $ac_executable_extensions; do
  6417. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6418. ac_cv_prog_ac_ct_OTOOL="otool"
  6419. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6420. break 2
  6421. fi
  6422. done
  6423. done
  6424. IFS=$as_save_IFS
  6425. fi
  6426. fi
  6427. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6428. if test -n "$ac_ct_OTOOL"; then
  6429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6430. $as_echo "$ac_ct_OTOOL" >&6; }
  6431. else
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6433. $as_echo "no" >&6; }
  6434. fi
  6435. if test "x$ac_ct_OTOOL" = x; then
  6436. OTOOL=":"
  6437. else
  6438. case $cross_compiling:$ac_tool_warned in
  6439. yes:)
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6441. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6442. ac_tool_warned=yes ;;
  6443. esac
  6444. OTOOL=$ac_ct_OTOOL
  6445. fi
  6446. else
  6447. OTOOL="$ac_cv_prog_OTOOL"
  6448. fi
  6449. if test -n "$ac_tool_prefix"; then
  6450. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6451. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6453. $as_echo_n "checking for $ac_word... " >&6; }
  6454. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6455. $as_echo_n "(cached) " >&6
  6456. else
  6457. if test -n "$OTOOL64"; then
  6458. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6459. else
  6460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6461. for as_dir in $PATH
  6462. do
  6463. IFS=$as_save_IFS
  6464. test -z "$as_dir" && as_dir=.
  6465. for ac_exec_ext in '' $ac_executable_extensions; do
  6466. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6467. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6469. break 2
  6470. fi
  6471. done
  6472. done
  6473. IFS=$as_save_IFS
  6474. fi
  6475. fi
  6476. OTOOL64=$ac_cv_prog_OTOOL64
  6477. if test -n "$OTOOL64"; then
  6478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6479. $as_echo "$OTOOL64" >&6; }
  6480. else
  6481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6482. $as_echo "no" >&6; }
  6483. fi
  6484. fi
  6485. if test -z "$ac_cv_prog_OTOOL64"; then
  6486. ac_ct_OTOOL64=$OTOOL64
  6487. # Extract the first word of "otool64", so it can be a program name with args.
  6488. set dummy otool64; ac_word=$2
  6489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6490. $as_echo_n "checking for $ac_word... " >&6; }
  6491. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6492. $as_echo_n "(cached) " >&6
  6493. else
  6494. if test -n "$ac_ct_OTOOL64"; then
  6495. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6496. else
  6497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6498. for as_dir in $PATH
  6499. do
  6500. IFS=$as_save_IFS
  6501. test -z "$as_dir" && as_dir=.
  6502. for ac_exec_ext in '' $ac_executable_extensions; do
  6503. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6504. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6506. break 2
  6507. fi
  6508. done
  6509. done
  6510. IFS=$as_save_IFS
  6511. fi
  6512. fi
  6513. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6514. if test -n "$ac_ct_OTOOL64"; then
  6515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6516. $as_echo "$ac_ct_OTOOL64" >&6; }
  6517. else
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6519. $as_echo "no" >&6; }
  6520. fi
  6521. if test "x$ac_ct_OTOOL64" = x; then
  6522. OTOOL64=":"
  6523. else
  6524. case $cross_compiling:$ac_tool_warned in
  6525. yes:)
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6528. ac_tool_warned=yes ;;
  6529. esac
  6530. OTOOL64=$ac_ct_OTOOL64
  6531. fi
  6532. else
  6533. OTOOL64="$ac_cv_prog_OTOOL64"
  6534. fi
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6536. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6537. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6538. $as_echo_n "(cached) " >&6
  6539. else
  6540. lt_cv_apple_cc_single_mod=no
  6541. if test -z "${LT_MULTI_MODULE}"; then
  6542. # By default we will add the -single_module flag. You can override
  6543. # by either setting the environment variable LT_MULTI_MODULE
  6544. # non-empty at configure time, or by adding -multi_module to the
  6545. # link flags.
  6546. rm -rf libconftest.dylib*
  6547. echo "int foo(void){return 1;}" > conftest.c
  6548. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6549. -dynamiclib -Wl,-single_module conftest.c" >&5
  6550. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6551. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6552. _lt_result=$?
  6553. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6554. lt_cv_apple_cc_single_mod=yes
  6555. else
  6556. cat conftest.err >&5
  6557. fi
  6558. rm -rf libconftest.dylib*
  6559. rm -f conftest.*
  6560. fi
  6561. fi
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6563. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6565. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6566. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6567. $as_echo_n "(cached) " >&6
  6568. else
  6569. lt_cv_ld_exported_symbols_list=no
  6570. save_LDFLAGS=$LDFLAGS
  6571. echo "_main" > conftest.sym
  6572. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6573. if test x$gcc_no_link = xyes; then
  6574. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6575. fi
  6576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6577. /* end confdefs.h. */
  6578. int
  6579. main ()
  6580. {
  6581. ;
  6582. return 0;
  6583. }
  6584. _ACEOF
  6585. if ac_fn_c_try_link "$LINENO"; then :
  6586. lt_cv_ld_exported_symbols_list=yes
  6587. else
  6588. lt_cv_ld_exported_symbols_list=no
  6589. fi
  6590. rm -f core conftest.err conftest.$ac_objext \
  6591. conftest$ac_exeext conftest.$ac_ext
  6592. LDFLAGS="$save_LDFLAGS"
  6593. fi
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6595. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6597. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6598. if test "${lt_cv_ld_force_load+set}" = set; then :
  6599. $as_echo_n "(cached) " >&6
  6600. else
  6601. lt_cv_ld_force_load=no
  6602. cat > conftest.c << _LT_EOF
  6603. int forced_loaded() { return 2;}
  6604. _LT_EOF
  6605. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6606. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6607. echo "$AR cru libconftest.a conftest.o" >&5
  6608. $AR cru libconftest.a conftest.o 2>&5
  6609. cat > conftest.c << _LT_EOF
  6610. int main() { return 0;}
  6611. _LT_EOF
  6612. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6613. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6614. _lt_result=$?
  6615. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6616. lt_cv_ld_force_load=yes
  6617. else
  6618. cat conftest.err >&5
  6619. fi
  6620. rm -f conftest.err libconftest.a conftest conftest.c
  6621. rm -rf conftest.dSYM
  6622. fi
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6624. $as_echo "$lt_cv_ld_force_load" >&6; }
  6625. case $host_os in
  6626. rhapsody* | darwin1.[012])
  6627. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6628. darwin1.*)
  6629. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6630. darwin*) # darwin 5.x on
  6631. # if running on 10.5 or later, the deployment target defaults
  6632. # to the OS version, if on x86, and 10.4, the deployment
  6633. # target defaults to 10.4. Don't you love it?
  6634. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6635. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6636. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6637. 10.[012][,.]*)
  6638. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6639. 10.*)
  6640. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6641. esac
  6642. ;;
  6643. esac
  6644. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6645. _lt_dar_single_mod='$single_module'
  6646. fi
  6647. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6648. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6649. else
  6650. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6651. fi
  6652. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6653. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6654. else
  6655. _lt_dsymutil=
  6656. fi
  6657. ;;
  6658. esac
  6659. ac_ext=c
  6660. ac_cpp='$CPP $CPPFLAGS'
  6661. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6662. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6663. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6665. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6666. # On Suns, sometimes $CPP names a directory.
  6667. if test -n "$CPP" && test -d "$CPP"; then
  6668. CPP=
  6669. fi
  6670. if test -z "$CPP"; then
  6671. if test "${ac_cv_prog_CPP+set}" = set; then :
  6672. $as_echo_n "(cached) " >&6
  6673. else
  6674. # Double quotes because CPP needs to be expanded
  6675. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6676. do
  6677. ac_preproc_ok=false
  6678. for ac_c_preproc_warn_flag in '' yes
  6679. do
  6680. # Use a header file that comes with gcc, so configuring glibc
  6681. # with a fresh cross-compiler works.
  6682. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6683. # <limits.h> exists even on freestanding compilers.
  6684. # On the NeXT, cc -E runs the code through the compiler's parser,
  6685. # not just through cpp. "Syntax error" is here to catch this case.
  6686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6687. /* end confdefs.h. */
  6688. #ifdef __STDC__
  6689. # include <limits.h>
  6690. #else
  6691. # include <assert.h>
  6692. #endif
  6693. Syntax error
  6694. _ACEOF
  6695. if ac_fn_c_try_cpp "$LINENO"; then :
  6696. else
  6697. # Broken: fails on valid input.
  6698. continue
  6699. fi
  6700. rm -f conftest.err conftest.$ac_ext
  6701. # OK, works on sane cases. Now check whether nonexistent headers
  6702. # can be detected and how.
  6703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6704. /* end confdefs.h. */
  6705. #include <ac_nonexistent.h>
  6706. _ACEOF
  6707. if ac_fn_c_try_cpp "$LINENO"; then :
  6708. # Broken: success on invalid input.
  6709. continue
  6710. else
  6711. # Passes both tests.
  6712. ac_preproc_ok=:
  6713. break
  6714. fi
  6715. rm -f conftest.err conftest.$ac_ext
  6716. done
  6717. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6718. rm -f conftest.err conftest.$ac_ext
  6719. if $ac_preproc_ok; then :
  6720. break
  6721. fi
  6722. done
  6723. ac_cv_prog_CPP=$CPP
  6724. fi
  6725. CPP=$ac_cv_prog_CPP
  6726. else
  6727. ac_cv_prog_CPP=$CPP
  6728. fi
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6730. $as_echo "$CPP" >&6; }
  6731. ac_preproc_ok=false
  6732. for ac_c_preproc_warn_flag in '' yes
  6733. do
  6734. # Use a header file that comes with gcc, so configuring glibc
  6735. # with a fresh cross-compiler works.
  6736. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6737. # <limits.h> exists even on freestanding compilers.
  6738. # On the NeXT, cc -E runs the code through the compiler's parser,
  6739. # not just through cpp. "Syntax error" is here to catch this case.
  6740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6741. /* end confdefs.h. */
  6742. #ifdef __STDC__
  6743. # include <limits.h>
  6744. #else
  6745. # include <assert.h>
  6746. #endif
  6747. Syntax error
  6748. _ACEOF
  6749. if ac_fn_c_try_cpp "$LINENO"; then :
  6750. else
  6751. # Broken: fails on valid input.
  6752. continue
  6753. fi
  6754. rm -f conftest.err conftest.$ac_ext
  6755. # OK, works on sane cases. Now check whether nonexistent headers
  6756. # can be detected and how.
  6757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6758. /* end confdefs.h. */
  6759. #include <ac_nonexistent.h>
  6760. _ACEOF
  6761. if ac_fn_c_try_cpp "$LINENO"; then :
  6762. # Broken: success on invalid input.
  6763. continue
  6764. else
  6765. # Passes both tests.
  6766. ac_preproc_ok=:
  6767. break
  6768. fi
  6769. rm -f conftest.err conftest.$ac_ext
  6770. done
  6771. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6772. rm -f conftest.err conftest.$ac_ext
  6773. if $ac_preproc_ok; then :
  6774. else
  6775. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6776. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6777. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6778. See \`config.log' for more details." "$LINENO" 5; }
  6779. fi
  6780. ac_ext=c
  6781. ac_cpp='$CPP $CPPFLAGS'
  6782. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6783. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6784. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6786. $as_echo_n "checking for ANSI C header files... " >&6; }
  6787. if test "${ac_cv_header_stdc+set}" = set; then :
  6788. $as_echo_n "(cached) " >&6
  6789. else
  6790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6791. /* end confdefs.h. */
  6792. #include <stdlib.h>
  6793. #include <stdarg.h>
  6794. #include <string.h>
  6795. #include <float.h>
  6796. int
  6797. main ()
  6798. {
  6799. ;
  6800. return 0;
  6801. }
  6802. _ACEOF
  6803. if ac_fn_c_try_compile "$LINENO"; then :
  6804. ac_cv_header_stdc=yes
  6805. else
  6806. ac_cv_header_stdc=no
  6807. fi
  6808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6809. if test $ac_cv_header_stdc = yes; then
  6810. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6812. /* end confdefs.h. */
  6813. #include <string.h>
  6814. _ACEOF
  6815. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6816. $EGREP "memchr" >/dev/null 2>&1; then :
  6817. else
  6818. ac_cv_header_stdc=no
  6819. fi
  6820. rm -f conftest*
  6821. fi
  6822. if test $ac_cv_header_stdc = yes; then
  6823. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6825. /* end confdefs.h. */
  6826. #include <stdlib.h>
  6827. _ACEOF
  6828. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6829. $EGREP "free" >/dev/null 2>&1; then :
  6830. else
  6831. ac_cv_header_stdc=no
  6832. fi
  6833. rm -f conftest*
  6834. fi
  6835. if test $ac_cv_header_stdc = yes; then
  6836. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6837. if test "$cross_compiling" = yes; then :
  6838. :
  6839. else
  6840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6841. /* end confdefs.h. */
  6842. #include <ctype.h>
  6843. #include <stdlib.h>
  6844. #if ((' ' & 0x0FF) == 0x020)
  6845. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6846. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6847. #else
  6848. # define ISLOWER(c) \
  6849. (('a' <= (c) && (c) <= 'i') \
  6850. || ('j' <= (c) && (c) <= 'r') \
  6851. || ('s' <= (c) && (c) <= 'z'))
  6852. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6853. #endif
  6854. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6855. int
  6856. main ()
  6857. {
  6858. int i;
  6859. for (i = 0; i < 256; i++)
  6860. if (XOR (islower (i), ISLOWER (i))
  6861. || toupper (i) != TOUPPER (i))
  6862. return 2;
  6863. return 0;
  6864. }
  6865. _ACEOF
  6866. if ac_fn_c_try_run "$LINENO"; then :
  6867. else
  6868. ac_cv_header_stdc=no
  6869. fi
  6870. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6871. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6872. fi
  6873. fi
  6874. fi
  6875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6876. $as_echo "$ac_cv_header_stdc" >&6; }
  6877. if test $ac_cv_header_stdc = yes; then
  6878. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6879. fi
  6880. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6881. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6882. inttypes.h stdint.h unistd.h
  6883. do :
  6884. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6885. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6886. "
  6887. eval as_val=\$$as_ac_Header
  6888. if test "x$as_val" = x""yes; then :
  6889. cat >>confdefs.h <<_ACEOF
  6890. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6891. _ACEOF
  6892. fi
  6893. done
  6894. for ac_header in dlfcn.h
  6895. do :
  6896. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6897. "
  6898. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6899. cat >>confdefs.h <<_ACEOF
  6900. #define HAVE_DLFCN_H 1
  6901. _ACEOF
  6902. fi
  6903. done
  6904. # Set options
  6905. enable_dlopen=no
  6906. enable_win32_dll=no
  6907. # Check whether --enable-shared was given.
  6908. if test "${enable_shared+set}" = set; then :
  6909. enableval=$enable_shared; p=${PACKAGE-default}
  6910. case $enableval in
  6911. yes) enable_shared=yes ;;
  6912. no) enable_shared=no ;;
  6913. *)
  6914. enable_shared=no
  6915. # Look at the argument we got. We use all the common list separators.
  6916. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6917. for pkg in $enableval; do
  6918. IFS="$lt_save_ifs"
  6919. if test "X$pkg" = "X$p"; then
  6920. enable_shared=yes
  6921. fi
  6922. done
  6923. IFS="$lt_save_ifs"
  6924. ;;
  6925. esac
  6926. else
  6927. enable_shared=yes
  6928. fi
  6929. # Check whether --enable-static was given.
  6930. if test "${enable_static+set}" = set; then :
  6931. enableval=$enable_static; p=${PACKAGE-default}
  6932. case $enableval in
  6933. yes) enable_static=yes ;;
  6934. no) enable_static=no ;;
  6935. *)
  6936. enable_static=no
  6937. # Look at the argument we got. We use all the common list separators.
  6938. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6939. for pkg in $enableval; do
  6940. IFS="$lt_save_ifs"
  6941. if test "X$pkg" = "X$p"; then
  6942. enable_static=yes
  6943. fi
  6944. done
  6945. IFS="$lt_save_ifs"
  6946. ;;
  6947. esac
  6948. else
  6949. enable_static=yes
  6950. fi
  6951. # Check whether --with-pic was given.
  6952. if test "${with_pic+set}" = set; then :
  6953. withval=$with_pic; pic_mode="$withval"
  6954. else
  6955. pic_mode=default
  6956. fi
  6957. test -z "$pic_mode" && pic_mode=default
  6958. # Check whether --enable-fast-install was given.
  6959. if test "${enable_fast_install+set}" = set; then :
  6960. enableval=$enable_fast_install; p=${PACKAGE-default}
  6961. case $enableval in
  6962. yes) enable_fast_install=yes ;;
  6963. no) enable_fast_install=no ;;
  6964. *)
  6965. enable_fast_install=no
  6966. # Look at the argument we got. We use all the common list separators.
  6967. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6968. for pkg in $enableval; do
  6969. IFS="$lt_save_ifs"
  6970. if test "X$pkg" = "X$p"; then
  6971. enable_fast_install=yes
  6972. fi
  6973. done
  6974. IFS="$lt_save_ifs"
  6975. ;;
  6976. esac
  6977. else
  6978. enable_fast_install=yes
  6979. fi
  6980. # This can be used to rebuild libtool when needed
  6981. LIBTOOL_DEPS="$ltmain"
  6982. # Always use our own libtool.
  6983. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6984. test -z "$LN_S" && LN_S="ln -s"
  6985. if test -n "${ZSH_VERSION+set}" ; then
  6986. setopt NO_GLOB_SUBST
  6987. fi
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6989. $as_echo_n "checking for objdir... " >&6; }
  6990. if test "${lt_cv_objdir+set}" = set; then :
  6991. $as_echo_n "(cached) " >&6
  6992. else
  6993. rm -f .libs 2>/dev/null
  6994. mkdir .libs 2>/dev/null
  6995. if test -d .libs; then
  6996. lt_cv_objdir=.libs
  6997. else
  6998. # MS-DOS does not allow filenames that begin with a dot.
  6999. lt_cv_objdir=_libs
  7000. fi
  7001. rmdir .libs 2>/dev/null
  7002. fi
  7003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7004. $as_echo "$lt_cv_objdir" >&6; }
  7005. objdir=$lt_cv_objdir
  7006. cat >>confdefs.h <<_ACEOF
  7007. #define LT_OBJDIR "$lt_cv_objdir/"
  7008. _ACEOF
  7009. case $host_os in
  7010. aix3*)
  7011. # AIX sometimes has problems with the GCC collect2 program. For some
  7012. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7013. # vanish in a puff of smoke.
  7014. if test "X${COLLECT_NAMES+set}" != Xset; then
  7015. COLLECT_NAMES=
  7016. export COLLECT_NAMES
  7017. fi
  7018. ;;
  7019. esac
  7020. # Global variables:
  7021. ofile=libtool
  7022. can_build_shared=yes
  7023. # All known linkers require a `.a' archive for static linking (except MSVC,
  7024. # which needs '.lib').
  7025. libext=a
  7026. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7027. old_CC="$CC"
  7028. old_CFLAGS="$CFLAGS"
  7029. # Set sane defaults for various variables
  7030. test -z "$CC" && CC=cc
  7031. test -z "$LTCC" && LTCC=$CC
  7032. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7033. test -z "$LD" && LD=ld
  7034. test -z "$ac_objext" && ac_objext=o
  7035. for cc_temp in $compiler""; do
  7036. case $cc_temp in
  7037. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7038. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7039. \-*) ;;
  7040. *) break;;
  7041. esac
  7042. done
  7043. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7044. # Only perform the check for file, if the check method requires it
  7045. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7046. case $deplibs_check_method in
  7047. file_magic*)
  7048. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7050. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7051. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7052. $as_echo_n "(cached) " >&6
  7053. else
  7054. case $MAGIC_CMD in
  7055. [\\/*] | ?:[\\/]*)
  7056. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7057. ;;
  7058. *)
  7059. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7060. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7061. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7062. for ac_dir in $ac_dummy; do
  7063. IFS="$lt_save_ifs"
  7064. test -z "$ac_dir" && ac_dir=.
  7065. if test -f $ac_dir/${ac_tool_prefix}file; then
  7066. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7067. if test -n "$file_magic_test_file"; then
  7068. case $deplibs_check_method in
  7069. "file_magic "*)
  7070. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7071. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7072. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7073. $EGREP "$file_magic_regex" > /dev/null; then
  7074. :
  7075. else
  7076. cat <<_LT_EOF 1>&2
  7077. *** Warning: the command libtool uses to detect shared libraries,
  7078. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7079. *** The result is that libtool may fail to recognize shared libraries
  7080. *** as such. This will affect the creation of libtool libraries that
  7081. *** depend on shared libraries, but programs linked with such libtool
  7082. *** libraries will work regardless of this problem. Nevertheless, you
  7083. *** may want to report the problem to your system manager and/or to
  7084. *** bug-libtool@gnu.org
  7085. _LT_EOF
  7086. fi ;;
  7087. esac
  7088. fi
  7089. break
  7090. fi
  7091. done
  7092. IFS="$lt_save_ifs"
  7093. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7094. ;;
  7095. esac
  7096. fi
  7097. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7098. if test -n "$MAGIC_CMD"; then
  7099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7100. $as_echo "$MAGIC_CMD" >&6; }
  7101. else
  7102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7103. $as_echo "no" >&6; }
  7104. fi
  7105. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7106. if test -n "$ac_tool_prefix"; then
  7107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7108. $as_echo_n "checking for file... " >&6; }
  7109. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7110. $as_echo_n "(cached) " >&6
  7111. else
  7112. case $MAGIC_CMD in
  7113. [\\/*] | ?:[\\/]*)
  7114. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7115. ;;
  7116. *)
  7117. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7118. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7119. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7120. for ac_dir in $ac_dummy; do
  7121. IFS="$lt_save_ifs"
  7122. test -z "$ac_dir" && ac_dir=.
  7123. if test -f $ac_dir/file; then
  7124. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7125. if test -n "$file_magic_test_file"; then
  7126. case $deplibs_check_method in
  7127. "file_magic "*)
  7128. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7129. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7130. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7131. $EGREP "$file_magic_regex" > /dev/null; then
  7132. :
  7133. else
  7134. cat <<_LT_EOF 1>&2
  7135. *** Warning: the command libtool uses to detect shared libraries,
  7136. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7137. *** The result is that libtool may fail to recognize shared libraries
  7138. *** as such. This will affect the creation of libtool libraries that
  7139. *** depend on shared libraries, but programs linked with such libtool
  7140. *** libraries will work regardless of this problem. Nevertheless, you
  7141. *** may want to report the problem to your system manager and/or to
  7142. *** bug-libtool@gnu.org
  7143. _LT_EOF
  7144. fi ;;
  7145. esac
  7146. fi
  7147. break
  7148. fi
  7149. done
  7150. IFS="$lt_save_ifs"
  7151. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7152. ;;
  7153. esac
  7154. fi
  7155. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7156. if test -n "$MAGIC_CMD"; then
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7158. $as_echo "$MAGIC_CMD" >&6; }
  7159. else
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7161. $as_echo "no" >&6; }
  7162. fi
  7163. else
  7164. MAGIC_CMD=:
  7165. fi
  7166. fi
  7167. fi
  7168. ;;
  7169. esac
  7170. # Use C for the default configuration in the libtool script
  7171. lt_save_CC="$CC"
  7172. ac_ext=c
  7173. ac_cpp='$CPP $CPPFLAGS'
  7174. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7175. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7176. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7177. # Source file extension for C test sources.
  7178. ac_ext=c
  7179. # Object file extension for compiled C test sources.
  7180. objext=o
  7181. objext=$objext
  7182. # Code to be used in simple compile tests
  7183. lt_simple_compile_test_code="int some_variable = 0;"
  7184. # Code to be used in simple link tests
  7185. lt_simple_link_test_code='int main(){return(0);}'
  7186. # If no C compiler was specified, use CC.
  7187. LTCC=${LTCC-"$CC"}
  7188. # If no C compiler flags were specified, use CFLAGS.
  7189. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7190. # Allow CC to be a program name with arguments.
  7191. compiler=$CC
  7192. # Save the default compiler, since it gets overwritten when the other
  7193. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7194. compiler_DEFAULT=$CC
  7195. # save warnings/boilerplate of simple test code
  7196. ac_outfile=conftest.$ac_objext
  7197. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7198. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7199. _lt_compiler_boilerplate=`cat conftest.err`
  7200. $RM conftest*
  7201. ac_outfile=conftest.$ac_objext
  7202. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7203. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7204. _lt_linker_boilerplate=`cat conftest.err`
  7205. $RM -r conftest*
  7206. ## CAVEAT EMPTOR:
  7207. ## There is no encapsulation within the following macros, do not change
  7208. ## the running order or otherwise move them around unless you know exactly
  7209. ## what you are doing...
  7210. if test -n "$compiler"; then
  7211. lt_prog_compiler_no_builtin_flag=
  7212. if test "$GCC" = yes; then
  7213. case $cc_basename in
  7214. nvcc*)
  7215. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7216. *)
  7217. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7218. esac
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7220. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7221. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7222. $as_echo_n "(cached) " >&6
  7223. else
  7224. lt_cv_prog_compiler_rtti_exceptions=no
  7225. ac_outfile=conftest.$ac_objext
  7226. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7227. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7228. # Insert the option either (1) after the last *FLAGS variable, or
  7229. # (2) before a word containing "conftest.", or (3) at the end.
  7230. # Note that $ac_compile itself does not contain backslashes and begins
  7231. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7232. # The option is referenced via a variable to avoid confusing sed.
  7233. lt_compile=`echo "$ac_compile" | $SED \
  7234. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7235. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7236. -e 's:$: $lt_compiler_flag:'`
  7237. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7238. (eval "$lt_compile" 2>conftest.err)
  7239. ac_status=$?
  7240. cat conftest.err >&5
  7241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7242. if (exit $ac_status) && test -s "$ac_outfile"; then
  7243. # The compiler can only warn and ignore the option if not recognized
  7244. # So say no if there are warnings other than the usual output.
  7245. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7246. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7247. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7248. lt_cv_prog_compiler_rtti_exceptions=yes
  7249. fi
  7250. fi
  7251. $RM conftest*
  7252. fi
  7253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7254. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7255. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7256. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7257. else
  7258. :
  7259. fi
  7260. fi
  7261. lt_prog_compiler_wl=
  7262. lt_prog_compiler_pic=
  7263. lt_prog_compiler_static=
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7265. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7266. if test "$GCC" = yes; then
  7267. lt_prog_compiler_wl='-Wl,'
  7268. lt_prog_compiler_static='-static'
  7269. case $host_os in
  7270. aix*)
  7271. # All AIX code is PIC.
  7272. if test "$host_cpu" = ia64; then
  7273. # AIX 5 now supports IA64 processor
  7274. lt_prog_compiler_static='-Bstatic'
  7275. fi
  7276. lt_prog_compiler_pic='-fPIC'
  7277. ;;
  7278. amigaos*)
  7279. case $host_cpu in
  7280. powerpc)
  7281. # see comment about AmigaOS4 .so support
  7282. lt_prog_compiler_pic='-fPIC'
  7283. ;;
  7284. m68k)
  7285. # FIXME: we need at least 68020 code to build shared libraries, but
  7286. # adding the `-m68020' flag to GCC prevents building anything better,
  7287. # like `-m68040'.
  7288. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7289. ;;
  7290. esac
  7291. ;;
  7292. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7293. # PIC is the default for these OSes.
  7294. ;;
  7295. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7296. # This hack is so that the source file can tell whether it is being
  7297. # built for inclusion in a dll (and should export symbols for example).
  7298. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7299. # (--disable-auto-import) libraries
  7300. lt_prog_compiler_pic='-DDLL_EXPORT'
  7301. ;;
  7302. darwin* | rhapsody*)
  7303. # PIC is the default on this platform
  7304. # Common symbols not allowed in MH_DYLIB files
  7305. lt_prog_compiler_pic='-fno-common'
  7306. ;;
  7307. haiku*)
  7308. # PIC is the default for Haiku.
  7309. # The "-static" flag exists, but is broken.
  7310. lt_prog_compiler_static=
  7311. ;;
  7312. hpux*)
  7313. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7314. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7315. # sets the default TLS model and affects inlining.
  7316. case $host_cpu in
  7317. hppa*64*)
  7318. # +Z the default
  7319. ;;
  7320. *)
  7321. lt_prog_compiler_pic='-fPIC'
  7322. ;;
  7323. esac
  7324. ;;
  7325. interix[3-9]*)
  7326. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7327. # Instead, we relocate shared libraries at runtime.
  7328. ;;
  7329. msdosdjgpp*)
  7330. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7331. # on systems that don't support them.
  7332. lt_prog_compiler_can_build_shared=no
  7333. enable_shared=no
  7334. ;;
  7335. *nto* | *qnx*)
  7336. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7337. # it will coredump.
  7338. lt_prog_compiler_pic='-fPIC -shared'
  7339. ;;
  7340. sysv4*MP*)
  7341. if test -d /usr/nec; then
  7342. lt_prog_compiler_pic=-Kconform_pic
  7343. fi
  7344. ;;
  7345. *)
  7346. lt_prog_compiler_pic='-fPIC'
  7347. ;;
  7348. esac
  7349. case $cc_basename in
  7350. nvcc*) # Cuda Compiler Driver 2.2
  7351. lt_prog_compiler_wl='-Xlinker '
  7352. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7353. ;;
  7354. esac
  7355. else
  7356. # PORTME Check for flag to pass linker flags through the system compiler.
  7357. case $host_os in
  7358. aix*)
  7359. lt_prog_compiler_wl='-Wl,'
  7360. if test "$host_cpu" = ia64; then
  7361. # AIX 5 now supports IA64 processor
  7362. lt_prog_compiler_static='-Bstatic'
  7363. else
  7364. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7365. fi
  7366. ;;
  7367. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7368. # This hack is so that the source file can tell whether it is being
  7369. # built for inclusion in a dll (and should export symbols for example).
  7370. lt_prog_compiler_pic='-DDLL_EXPORT'
  7371. ;;
  7372. hpux9* | hpux10* | hpux11*)
  7373. lt_prog_compiler_wl='-Wl,'
  7374. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7375. # not for PA HP-UX.
  7376. case $host_cpu in
  7377. hppa*64*|ia64*)
  7378. # +Z the default
  7379. ;;
  7380. *)
  7381. lt_prog_compiler_pic='+Z'
  7382. ;;
  7383. esac
  7384. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7385. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7386. ;;
  7387. irix5* | irix6* | nonstopux*)
  7388. lt_prog_compiler_wl='-Wl,'
  7389. # PIC (with -KPIC) is the default.
  7390. lt_prog_compiler_static='-non_shared'
  7391. ;;
  7392. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7393. case $cc_basename in
  7394. # old Intel for x86_64 which still supported -KPIC.
  7395. ecc*)
  7396. lt_prog_compiler_wl='-Wl,'
  7397. lt_prog_compiler_pic='-KPIC'
  7398. lt_prog_compiler_static='-static'
  7399. ;;
  7400. # icc used to be incompatible with GCC.
  7401. # ICC 10 doesn't accept -KPIC any more.
  7402. icc* | ifort*)
  7403. lt_prog_compiler_wl='-Wl,'
  7404. lt_prog_compiler_pic='-fPIC'
  7405. lt_prog_compiler_static='-static'
  7406. ;;
  7407. # Lahey Fortran 8.1.
  7408. lf95*)
  7409. lt_prog_compiler_wl='-Wl,'
  7410. lt_prog_compiler_pic='--shared'
  7411. lt_prog_compiler_static='--static'
  7412. ;;
  7413. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7414. # Portland Group compilers (*not* the Pentium gcc compiler,
  7415. # which looks to be a dead project)
  7416. lt_prog_compiler_wl='-Wl,'
  7417. lt_prog_compiler_pic='-fpic'
  7418. lt_prog_compiler_static='-Bstatic'
  7419. ;;
  7420. ccc*)
  7421. lt_prog_compiler_wl='-Wl,'
  7422. # All Alpha code is PIC.
  7423. lt_prog_compiler_static='-non_shared'
  7424. ;;
  7425. xl* | bgxl* | bgf* | mpixl*)
  7426. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7427. lt_prog_compiler_wl='-Wl,'
  7428. lt_prog_compiler_pic='-qpic'
  7429. lt_prog_compiler_static='-qstaticlink'
  7430. ;;
  7431. *)
  7432. case `$CC -V 2>&1 | sed 5q` in
  7433. *Sun\ F* | *Sun*Fortran*)
  7434. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7435. lt_prog_compiler_pic='-KPIC'
  7436. lt_prog_compiler_static='-Bstatic'
  7437. lt_prog_compiler_wl=''
  7438. ;;
  7439. *Sun\ C*)
  7440. # Sun C 5.9
  7441. lt_prog_compiler_pic='-KPIC'
  7442. lt_prog_compiler_static='-Bstatic'
  7443. lt_prog_compiler_wl='-Wl,'
  7444. ;;
  7445. esac
  7446. ;;
  7447. esac
  7448. ;;
  7449. newsos6)
  7450. lt_prog_compiler_pic='-KPIC'
  7451. lt_prog_compiler_static='-Bstatic'
  7452. ;;
  7453. *nto* | *qnx*)
  7454. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7455. # it will coredump.
  7456. lt_prog_compiler_pic='-fPIC -shared'
  7457. ;;
  7458. osf3* | osf4* | osf5*)
  7459. lt_prog_compiler_wl='-Wl,'
  7460. # All OSF/1 code is PIC.
  7461. lt_prog_compiler_static='-non_shared'
  7462. ;;
  7463. rdos*)
  7464. lt_prog_compiler_static='-non_shared'
  7465. ;;
  7466. solaris*)
  7467. lt_prog_compiler_pic='-KPIC'
  7468. lt_prog_compiler_static='-Bstatic'
  7469. case $cc_basename in
  7470. f77* | f90* | f95*)
  7471. lt_prog_compiler_wl='-Qoption ld ';;
  7472. *)
  7473. lt_prog_compiler_wl='-Wl,';;
  7474. esac
  7475. ;;
  7476. sunos4*)
  7477. lt_prog_compiler_wl='-Qoption ld '
  7478. lt_prog_compiler_pic='-PIC'
  7479. lt_prog_compiler_static='-Bstatic'
  7480. ;;
  7481. sysv4 | sysv4.2uw2* | sysv4.3*)
  7482. lt_prog_compiler_wl='-Wl,'
  7483. lt_prog_compiler_pic='-KPIC'
  7484. lt_prog_compiler_static='-Bstatic'
  7485. ;;
  7486. sysv4*MP*)
  7487. if test -d /usr/nec ;then
  7488. lt_prog_compiler_pic='-Kconform_pic'
  7489. lt_prog_compiler_static='-Bstatic'
  7490. fi
  7491. ;;
  7492. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7493. lt_prog_compiler_wl='-Wl,'
  7494. lt_prog_compiler_pic='-KPIC'
  7495. lt_prog_compiler_static='-Bstatic'
  7496. ;;
  7497. unicos*)
  7498. lt_prog_compiler_wl='-Wl,'
  7499. lt_prog_compiler_can_build_shared=no
  7500. ;;
  7501. uts4*)
  7502. lt_prog_compiler_pic='-pic'
  7503. lt_prog_compiler_static='-Bstatic'
  7504. ;;
  7505. *)
  7506. lt_prog_compiler_can_build_shared=no
  7507. ;;
  7508. esac
  7509. fi
  7510. case $host_os in
  7511. # For platforms which do not support PIC, -DPIC is meaningless:
  7512. *djgpp*)
  7513. lt_prog_compiler_pic=
  7514. ;;
  7515. *)
  7516. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7517. ;;
  7518. esac
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7520. $as_echo "$lt_prog_compiler_pic" >&6; }
  7521. #
  7522. # Check to make sure the PIC flag actually works.
  7523. #
  7524. if test -n "$lt_prog_compiler_pic"; then
  7525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7526. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7527. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7528. $as_echo_n "(cached) " >&6
  7529. else
  7530. lt_cv_prog_compiler_pic_works=no
  7531. ac_outfile=conftest.$ac_objext
  7532. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7533. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7534. # Insert the option either (1) after the last *FLAGS variable, or
  7535. # (2) before a word containing "conftest.", or (3) at the end.
  7536. # Note that $ac_compile itself does not contain backslashes and begins
  7537. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7538. # The option is referenced via a variable to avoid confusing sed.
  7539. lt_compile=`echo "$ac_compile" | $SED \
  7540. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7541. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7542. -e 's:$: $lt_compiler_flag:'`
  7543. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7544. (eval "$lt_compile" 2>conftest.err)
  7545. ac_status=$?
  7546. cat conftest.err >&5
  7547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7548. if (exit $ac_status) && test -s "$ac_outfile"; then
  7549. # The compiler can only warn and ignore the option if not recognized
  7550. # So say no if there are warnings other than the usual output.
  7551. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7552. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7553. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7554. lt_cv_prog_compiler_pic_works=yes
  7555. fi
  7556. fi
  7557. $RM conftest*
  7558. fi
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7560. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7561. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7562. case $lt_prog_compiler_pic in
  7563. "" | " "*) ;;
  7564. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7565. esac
  7566. else
  7567. lt_prog_compiler_pic=
  7568. lt_prog_compiler_can_build_shared=no
  7569. fi
  7570. fi
  7571. #
  7572. # Check to make sure the static flag actually works.
  7573. #
  7574. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7576. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7577. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7578. $as_echo_n "(cached) " >&6
  7579. else
  7580. lt_cv_prog_compiler_static_works=no
  7581. save_LDFLAGS="$LDFLAGS"
  7582. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7583. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7584. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7585. # The linker can only warn and ignore the option if not recognized
  7586. # So say no if there are warnings
  7587. if test -s conftest.err; then
  7588. # Append any errors to the config.log.
  7589. cat conftest.err 1>&5
  7590. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7591. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7592. if diff conftest.exp conftest.er2 >/dev/null; then
  7593. lt_cv_prog_compiler_static_works=yes
  7594. fi
  7595. else
  7596. lt_cv_prog_compiler_static_works=yes
  7597. fi
  7598. fi
  7599. $RM -r conftest*
  7600. LDFLAGS="$save_LDFLAGS"
  7601. fi
  7602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7603. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7604. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7605. :
  7606. else
  7607. lt_prog_compiler_static=
  7608. fi
  7609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7610. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7611. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7612. $as_echo_n "(cached) " >&6
  7613. else
  7614. lt_cv_prog_compiler_c_o=no
  7615. $RM -r conftest 2>/dev/null
  7616. mkdir conftest
  7617. cd conftest
  7618. mkdir out
  7619. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7620. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7621. # Insert the option either (1) after the last *FLAGS variable, or
  7622. # (2) before a word containing "conftest.", or (3) at the end.
  7623. # Note that $ac_compile itself does not contain backslashes and begins
  7624. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7625. lt_compile=`echo "$ac_compile" | $SED \
  7626. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7627. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7628. -e 's:$: $lt_compiler_flag:'`
  7629. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7630. (eval "$lt_compile" 2>out/conftest.err)
  7631. ac_status=$?
  7632. cat out/conftest.err >&5
  7633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7634. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7635. then
  7636. # The compiler can only warn and ignore the option if not recognized
  7637. # So say no if there are warnings
  7638. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7639. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7640. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7641. lt_cv_prog_compiler_c_o=yes
  7642. fi
  7643. fi
  7644. chmod u+w . 2>&5
  7645. $RM conftest*
  7646. # SGI C++ compiler will create directory out/ii_files/ for
  7647. # template instantiation
  7648. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7649. $RM out/* && rmdir out
  7650. cd ..
  7651. $RM -r conftest
  7652. $RM conftest*
  7653. fi
  7654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7655. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7657. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7658. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7659. $as_echo_n "(cached) " >&6
  7660. else
  7661. lt_cv_prog_compiler_c_o=no
  7662. $RM -r conftest 2>/dev/null
  7663. mkdir conftest
  7664. cd conftest
  7665. mkdir out
  7666. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7667. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7668. # Insert the option either (1) after the last *FLAGS variable, or
  7669. # (2) before a word containing "conftest.", or (3) at the end.
  7670. # Note that $ac_compile itself does not contain backslashes and begins
  7671. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7672. lt_compile=`echo "$ac_compile" | $SED \
  7673. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7674. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7675. -e 's:$: $lt_compiler_flag:'`
  7676. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7677. (eval "$lt_compile" 2>out/conftest.err)
  7678. ac_status=$?
  7679. cat out/conftest.err >&5
  7680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7681. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7682. then
  7683. # The compiler can only warn and ignore the option if not recognized
  7684. # So say no if there are warnings
  7685. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7686. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7687. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7688. lt_cv_prog_compiler_c_o=yes
  7689. fi
  7690. fi
  7691. chmod u+w . 2>&5
  7692. $RM conftest*
  7693. # SGI C++ compiler will create directory out/ii_files/ for
  7694. # template instantiation
  7695. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7696. $RM out/* && rmdir out
  7697. cd ..
  7698. $RM -r conftest
  7699. $RM conftest*
  7700. fi
  7701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7702. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7703. hard_links="nottested"
  7704. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7705. # do not overwrite the value of need_locks provided by the user
  7706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7707. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7708. hard_links=yes
  7709. $RM conftest*
  7710. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7711. touch conftest.a
  7712. ln conftest.a conftest.b 2>&5 || hard_links=no
  7713. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7715. $as_echo "$hard_links" >&6; }
  7716. if test "$hard_links" = no; then
  7717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7718. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7719. need_locks=warn
  7720. fi
  7721. else
  7722. need_locks=no
  7723. fi
  7724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7725. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7726. runpath_var=
  7727. allow_undefined_flag=
  7728. always_export_symbols=no
  7729. archive_cmds=
  7730. archive_expsym_cmds=
  7731. compiler_needs_object=no
  7732. enable_shared_with_static_runtimes=no
  7733. export_dynamic_flag_spec=
  7734. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7735. hardcode_automatic=no
  7736. hardcode_direct=no
  7737. hardcode_direct_absolute=no
  7738. hardcode_libdir_flag_spec=
  7739. hardcode_libdir_flag_spec_ld=
  7740. hardcode_libdir_separator=
  7741. hardcode_minus_L=no
  7742. hardcode_shlibpath_var=unsupported
  7743. inherit_rpath=no
  7744. link_all_deplibs=unknown
  7745. module_cmds=
  7746. module_expsym_cmds=
  7747. old_archive_from_new_cmds=
  7748. old_archive_from_expsyms_cmds=
  7749. thread_safe_flag_spec=
  7750. whole_archive_flag_spec=
  7751. # include_expsyms should be a list of space-separated symbols to be *always*
  7752. # included in the symbol list
  7753. include_expsyms=
  7754. # exclude_expsyms can be an extended regexp of symbols to exclude
  7755. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7756. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7757. # as well as any symbol that contains `d'.
  7758. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7759. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7760. # platforms (ab)use it in PIC code, but their linkers get confused if
  7761. # the symbol is explicitly referenced. Since portable code cannot
  7762. # rely on this symbol name, it's probably fine to never include it in
  7763. # preloaded symbol tables.
  7764. # Exclude shared library initialization/finalization symbols.
  7765. extract_expsyms_cmds=
  7766. case $host_os in
  7767. cygwin* | mingw* | pw32* | cegcc*)
  7768. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7769. # When not using gcc, we currently assume that we are using
  7770. # Microsoft Visual C++.
  7771. if test "$GCC" != yes; then
  7772. with_gnu_ld=no
  7773. fi
  7774. ;;
  7775. interix*)
  7776. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7777. with_gnu_ld=yes
  7778. ;;
  7779. openbsd*)
  7780. with_gnu_ld=no
  7781. ;;
  7782. esac
  7783. ld_shlibs=yes
  7784. # On some targets, GNU ld is compatible enough with the native linker
  7785. # that we're better off using the native interface for both.
  7786. lt_use_gnu_ld_interface=no
  7787. if test "$with_gnu_ld" = yes; then
  7788. case $host_os in
  7789. aix*)
  7790. # The AIX port of GNU ld has always aspired to compatibility
  7791. # with the native linker. However, as the warning in the GNU ld
  7792. # block says, versions before 2.19.5* couldn't really create working
  7793. # shared libraries, regardless of the interface used.
  7794. case `$LD -v 2>&1` in
  7795. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7796. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7797. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7798. *)
  7799. lt_use_gnu_ld_interface=yes
  7800. ;;
  7801. esac
  7802. ;;
  7803. *)
  7804. lt_use_gnu_ld_interface=yes
  7805. ;;
  7806. esac
  7807. fi
  7808. if test "$lt_use_gnu_ld_interface" = yes; then
  7809. # If archive_cmds runs LD, not CC, wlarc should be empty
  7810. wlarc='${wl}'
  7811. # Set some defaults for GNU ld with shared library support. These
  7812. # are reset later if shared libraries are not supported. Putting them
  7813. # here allows them to be overridden if necessary.
  7814. runpath_var=LD_RUN_PATH
  7815. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7816. export_dynamic_flag_spec='${wl}--export-dynamic'
  7817. # ancient GNU ld didn't support --whole-archive et. al.
  7818. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7819. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7820. else
  7821. whole_archive_flag_spec=
  7822. fi
  7823. supports_anon_versioning=no
  7824. case `$LD -v 2>&1` in
  7825. *GNU\ gold*) supports_anon_versioning=yes ;;
  7826. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7827. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7828. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7829. *\ 2.11.*) ;; # other 2.11 versions
  7830. *) supports_anon_versioning=yes ;;
  7831. esac
  7832. # See if GNU ld supports shared libraries.
  7833. case $host_os in
  7834. aix[3-9]*)
  7835. # On AIX/PPC, the GNU linker is very broken
  7836. if test "$host_cpu" != ia64; then
  7837. ld_shlibs=no
  7838. cat <<_LT_EOF 1>&2
  7839. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7840. *** to be unable to reliably create shared libraries on AIX.
  7841. *** Therefore, libtool is disabling shared libraries support. If you
  7842. *** really care for shared libraries, you may want to install binutils
  7843. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7844. *** You will then need to restart the configuration process.
  7845. _LT_EOF
  7846. fi
  7847. ;;
  7848. amigaos*)
  7849. case $host_cpu in
  7850. powerpc)
  7851. # see comment about AmigaOS4 .so support
  7852. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7853. archive_expsym_cmds=''
  7854. ;;
  7855. m68k)
  7856. 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)'
  7857. hardcode_libdir_flag_spec='-L$libdir'
  7858. hardcode_minus_L=yes
  7859. ;;
  7860. esac
  7861. ;;
  7862. beos*)
  7863. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7864. allow_undefined_flag=unsupported
  7865. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7866. # support --undefined. This deserves some investigation. FIXME
  7867. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7868. else
  7869. ld_shlibs=no
  7870. fi
  7871. ;;
  7872. cygwin* | mingw* | pw32* | cegcc*)
  7873. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7874. # as there is no search path for DLLs.
  7875. hardcode_libdir_flag_spec='-L$libdir'
  7876. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7877. allow_undefined_flag=unsupported
  7878. always_export_symbols=no
  7879. enable_shared_with_static_runtimes=yes
  7880. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7881. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7882. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7883. # If the export-symbols file already is a .def file (1st line
  7884. # is EXPORTS), use it as is; otherwise, prepend...
  7885. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7886. cp $export_symbols $output_objdir/$soname.def;
  7887. else
  7888. echo EXPORTS > $output_objdir/$soname.def;
  7889. cat $export_symbols >> $output_objdir/$soname.def;
  7890. fi~
  7891. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7892. else
  7893. ld_shlibs=no
  7894. fi
  7895. ;;
  7896. haiku*)
  7897. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7898. link_all_deplibs=yes
  7899. ;;
  7900. interix[3-9]*)
  7901. hardcode_direct=no
  7902. hardcode_shlibpath_var=no
  7903. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7904. export_dynamic_flag_spec='${wl}-E'
  7905. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7906. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7907. # default) and relocated if they conflict, which is a slow very memory
  7908. # consuming and fragmenting process. To avoid this, we pick a random,
  7909. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7910. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7911. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7912. 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'
  7913. ;;
  7914. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7915. tmp_diet=no
  7916. if test "$host_os" = linux-dietlibc; then
  7917. case $cc_basename in
  7918. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7919. esac
  7920. fi
  7921. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7922. && test "$tmp_diet" = no
  7923. then
  7924. tmp_addflag=' $pic_flag'
  7925. tmp_sharedflag='-shared'
  7926. case $cc_basename,$host_cpu in
  7927. pgcc*) # Portland Group C compiler
  7928. 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'
  7929. tmp_addflag=' $pic_flag'
  7930. ;;
  7931. pgf77* | pgf90* | pgf95* | pgfortran*)
  7932. # Portland Group f77 and f90 compilers
  7933. 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'
  7934. tmp_addflag=' $pic_flag -Mnomain' ;;
  7935. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7936. tmp_addflag=' -i_dynamic' ;;
  7937. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7938. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7939. ifc* | ifort*) # Intel Fortran compiler
  7940. tmp_addflag=' -nofor_main' ;;
  7941. lf95*) # Lahey Fortran 8.1
  7942. whole_archive_flag_spec=
  7943. tmp_sharedflag='--shared' ;;
  7944. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7945. tmp_sharedflag='-qmkshrobj'
  7946. tmp_addflag= ;;
  7947. nvcc*) # Cuda Compiler Driver 2.2
  7948. 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'
  7949. compiler_needs_object=yes
  7950. ;;
  7951. esac
  7952. case `$CC -V 2>&1 | sed 5q` in
  7953. *Sun\ C*) # Sun C 5.9
  7954. 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'
  7955. compiler_needs_object=yes
  7956. tmp_sharedflag='-G' ;;
  7957. *Sun\ F*) # Sun Fortran 8.3
  7958. tmp_sharedflag='-G' ;;
  7959. esac
  7960. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7961. if test "x$supports_anon_versioning" = xyes; then
  7962. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7963. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7964. echo "local: *; };" >> $output_objdir/$libname.ver~
  7965. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7966. fi
  7967. case $cc_basename in
  7968. xlf* | bgf* | bgxlf* | mpixlf*)
  7969. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7970. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7971. hardcode_libdir_flag_spec=
  7972. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7973. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7974. if test "x$supports_anon_versioning" = xyes; then
  7975. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7976. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7977. echo "local: *; };" >> $output_objdir/$libname.ver~
  7978. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7979. fi
  7980. ;;
  7981. esac
  7982. else
  7983. ld_shlibs=no
  7984. fi
  7985. ;;
  7986. netbsd*)
  7987. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7988. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7989. wlarc=
  7990. else
  7991. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7992. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7993. fi
  7994. ;;
  7995. solaris*)
  7996. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7997. ld_shlibs=no
  7998. cat <<_LT_EOF 1>&2
  7999. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8000. *** create shared libraries on Solaris systems. Therefore, libtool
  8001. *** is disabling shared libraries support. We urge you to upgrade GNU
  8002. *** binutils to release 2.9.1 or newer. Another option is to modify
  8003. *** your PATH or compiler configuration so that the native linker is
  8004. *** used, and then restart.
  8005. _LT_EOF
  8006. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8007. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8008. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8009. else
  8010. ld_shlibs=no
  8011. fi
  8012. ;;
  8013. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8014. case `$LD -v 2>&1` in
  8015. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8016. ld_shlibs=no
  8017. cat <<_LT_EOF 1>&2
  8018. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8019. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8020. *** is disabling shared libraries support. We urge you to upgrade GNU
  8021. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8022. *** your PATH or compiler configuration so that the native linker is
  8023. *** used, and then restart.
  8024. _LT_EOF
  8025. ;;
  8026. *)
  8027. # For security reasons, it is highly recommended that you always
  8028. # use absolute paths for naming shared libraries, and exclude the
  8029. # DT_RUNPATH tag from executables and libraries. But doing so
  8030. # requires that you compile everything twice, which is a pain.
  8031. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8032. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8033. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8034. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8035. else
  8036. ld_shlibs=no
  8037. fi
  8038. ;;
  8039. esac
  8040. ;;
  8041. sunos4*)
  8042. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8043. wlarc=
  8044. hardcode_direct=yes
  8045. hardcode_shlibpath_var=no
  8046. ;;
  8047. *)
  8048. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8049. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8050. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8051. else
  8052. ld_shlibs=no
  8053. fi
  8054. ;;
  8055. esac
  8056. if test "$ld_shlibs" = no; then
  8057. runpath_var=
  8058. hardcode_libdir_flag_spec=
  8059. export_dynamic_flag_spec=
  8060. whole_archive_flag_spec=
  8061. fi
  8062. else
  8063. # PORTME fill in a description of your system's linker (not GNU ld)
  8064. case $host_os in
  8065. aix3*)
  8066. allow_undefined_flag=unsupported
  8067. always_export_symbols=yes
  8068. 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'
  8069. # Note: this linker hardcodes the directories in LIBPATH if there
  8070. # are no directories specified by -L.
  8071. hardcode_minus_L=yes
  8072. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8073. # Neither direct hardcoding nor static linking is supported with a
  8074. # broken collect2.
  8075. hardcode_direct=unsupported
  8076. fi
  8077. ;;
  8078. aix[4-9]*)
  8079. if test "$host_cpu" = ia64; then
  8080. # On IA64, the linker does run time linking by default, so we don't
  8081. # have to do anything special.
  8082. aix_use_runtimelinking=no
  8083. exp_sym_flag='-Bexport'
  8084. no_entry_flag=""
  8085. else
  8086. # If we're using GNU nm, then we don't want the "-C" option.
  8087. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8088. # Also, AIX nm treats weak defined symbols like other global
  8089. # defined symbols, whereas GNU nm marks them as "W".
  8090. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8091. 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'
  8092. else
  8093. 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'
  8094. fi
  8095. aix_use_runtimelinking=no
  8096. # Test if we are trying to use run time linking or normal
  8097. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8098. # need to do runtime linking.
  8099. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8100. for ld_flag in $LDFLAGS; do
  8101. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8102. aix_use_runtimelinking=yes
  8103. break
  8104. fi
  8105. done
  8106. ;;
  8107. esac
  8108. exp_sym_flag='-bexport'
  8109. no_entry_flag='-bnoentry'
  8110. fi
  8111. # When large executables or shared objects are built, AIX ld can
  8112. # have problems creating the table of contents. If linking a library
  8113. # or program results in "error TOC overflow" add -mminimal-toc to
  8114. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8115. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8116. archive_cmds=''
  8117. hardcode_direct=yes
  8118. hardcode_direct_absolute=yes
  8119. hardcode_libdir_separator=':'
  8120. link_all_deplibs=yes
  8121. file_list_spec='${wl}-f,'
  8122. if test "$GCC" = yes; then
  8123. case $host_os in aix4.[012]|aix4.[012].*)
  8124. # We only want to do this on AIX 4.2 and lower, the check
  8125. # below for broken collect2 doesn't work under 4.3+
  8126. collect2name=`${CC} -print-prog-name=collect2`
  8127. if test -f "$collect2name" &&
  8128. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8129. then
  8130. # We have reworked collect2
  8131. :
  8132. else
  8133. # We have old collect2
  8134. hardcode_direct=unsupported
  8135. # It fails to find uninstalled libraries when the uninstalled
  8136. # path is not listed in the libpath. Setting hardcode_minus_L
  8137. # to unsupported forces relinking
  8138. hardcode_minus_L=yes
  8139. hardcode_libdir_flag_spec='-L$libdir'
  8140. hardcode_libdir_separator=
  8141. fi
  8142. ;;
  8143. esac
  8144. shared_flag='-shared'
  8145. if test "$aix_use_runtimelinking" = yes; then
  8146. shared_flag="$shared_flag "'${wl}-G'
  8147. fi
  8148. else
  8149. # not using gcc
  8150. if test "$host_cpu" = ia64; then
  8151. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8152. # chokes on -Wl,-G. The following line is correct:
  8153. shared_flag='-G'
  8154. else
  8155. if test "$aix_use_runtimelinking" = yes; then
  8156. shared_flag='${wl}-G'
  8157. else
  8158. shared_flag='${wl}-bM:SRE'
  8159. fi
  8160. fi
  8161. fi
  8162. export_dynamic_flag_spec='${wl}-bexpall'
  8163. # It seems that -bexpall does not export symbols beginning with
  8164. # underscore (_), so it is better to generate a list of symbols to export.
  8165. always_export_symbols=yes
  8166. if test "$aix_use_runtimelinking" = yes; then
  8167. # Warning - without using the other runtime loading flags (-brtl),
  8168. # -berok will link without error, but may produce a broken library.
  8169. allow_undefined_flag='-berok'
  8170. # Determine the default libpath from the value encoded in an
  8171. # empty executable.
  8172. if test x$gcc_no_link = xyes; then
  8173. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8174. fi
  8175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8176. /* end confdefs.h. */
  8177. int
  8178. main ()
  8179. {
  8180. ;
  8181. return 0;
  8182. }
  8183. _ACEOF
  8184. if ac_fn_c_try_link "$LINENO"; then :
  8185. lt_aix_libpath_sed='
  8186. /Import File Strings/,/^$/ {
  8187. /^0/ {
  8188. s/^0 *\(.*\)$/\1/
  8189. p
  8190. }
  8191. }'
  8192. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8193. # Check for a 64-bit object if we didn't find anything.
  8194. if test -z "$aix_libpath"; then
  8195. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8196. fi
  8197. fi
  8198. rm -f core conftest.err conftest.$ac_objext \
  8199. conftest$ac_exeext conftest.$ac_ext
  8200. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8201. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8202. 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"
  8203. else
  8204. if test "$host_cpu" = ia64; then
  8205. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8206. allow_undefined_flag="-z nodefs"
  8207. 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"
  8208. else
  8209. # Determine the default libpath from the value encoded in an
  8210. # empty executable.
  8211. if test x$gcc_no_link = xyes; then
  8212. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8213. fi
  8214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8215. /* end confdefs.h. */
  8216. int
  8217. main ()
  8218. {
  8219. ;
  8220. return 0;
  8221. }
  8222. _ACEOF
  8223. if ac_fn_c_try_link "$LINENO"; then :
  8224. lt_aix_libpath_sed='
  8225. /Import File Strings/,/^$/ {
  8226. /^0/ {
  8227. s/^0 *\(.*\)$/\1/
  8228. p
  8229. }
  8230. }'
  8231. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8232. # Check for a 64-bit object if we didn't find anything.
  8233. if test -z "$aix_libpath"; then
  8234. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8235. fi
  8236. fi
  8237. rm -f core conftest.err conftest.$ac_objext \
  8238. conftest$ac_exeext conftest.$ac_ext
  8239. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8240. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8241. # Warning - without using the other run time loading flags,
  8242. # -berok will link without error, but may produce a broken library.
  8243. no_undefined_flag=' ${wl}-bernotok'
  8244. allow_undefined_flag=' ${wl}-berok'
  8245. if test "$with_gnu_ld" = yes; then
  8246. # We only use this code for GNU lds that support --whole-archive.
  8247. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8248. else
  8249. # Exported symbols can be pulled into shared objects from archives
  8250. whole_archive_flag_spec='$convenience'
  8251. fi
  8252. archive_cmds_need_lc=yes
  8253. # This is similar to how AIX traditionally builds its shared libraries.
  8254. 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'
  8255. fi
  8256. fi
  8257. ;;
  8258. amigaos*)
  8259. case $host_cpu in
  8260. powerpc)
  8261. # see comment about AmigaOS4 .so support
  8262. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8263. archive_expsym_cmds=''
  8264. ;;
  8265. m68k)
  8266. 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)'
  8267. hardcode_libdir_flag_spec='-L$libdir'
  8268. hardcode_minus_L=yes
  8269. ;;
  8270. esac
  8271. ;;
  8272. bsdi[45]*)
  8273. export_dynamic_flag_spec=-rdynamic
  8274. ;;
  8275. cygwin* | mingw* | pw32* | cegcc*)
  8276. # When not using gcc, we currently assume that we are using
  8277. # Microsoft Visual C++.
  8278. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8279. # no search path for DLLs.
  8280. hardcode_libdir_flag_spec=' '
  8281. allow_undefined_flag=unsupported
  8282. # Tell ltmain to make .lib files, not .a files.
  8283. libext=lib
  8284. # Tell ltmain to make .dll files, not .so files.
  8285. shrext_cmds=".dll"
  8286. # FIXME: Setting linknames here is a bad hack.
  8287. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8288. # The linker will automatically build a .lib file if we build a DLL.
  8289. old_archive_from_new_cmds='true'
  8290. # FIXME: Should let the user specify the lib program.
  8291. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8292. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8293. enable_shared_with_static_runtimes=yes
  8294. ;;
  8295. darwin* | rhapsody*)
  8296. archive_cmds_need_lc=no
  8297. hardcode_direct=no
  8298. hardcode_automatic=yes
  8299. hardcode_shlibpath_var=unsupported
  8300. if test "$lt_cv_ld_force_load" = "yes"; then
  8301. 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\"`'
  8302. else
  8303. whole_archive_flag_spec=''
  8304. fi
  8305. link_all_deplibs=yes
  8306. allow_undefined_flag="$_lt_dar_allow_undefined"
  8307. case $cc_basename in
  8308. ifort*) _lt_dar_can_shared=yes ;;
  8309. *) _lt_dar_can_shared=$GCC ;;
  8310. esac
  8311. if test "$_lt_dar_can_shared" = "yes"; then
  8312. output_verbose_link_cmd=func_echo_all
  8313. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8314. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8315. 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}"
  8316. 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}"
  8317. else
  8318. ld_shlibs=no
  8319. fi
  8320. ;;
  8321. dgux*)
  8322. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8323. hardcode_libdir_flag_spec='-L$libdir'
  8324. hardcode_shlibpath_var=no
  8325. ;;
  8326. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8327. # support. Future versions do this automatically, but an explicit c++rt0.o
  8328. # does not break anything, and helps significantly (at the cost of a little
  8329. # extra space).
  8330. freebsd2.2*)
  8331. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8332. hardcode_libdir_flag_spec='-R$libdir'
  8333. hardcode_direct=yes
  8334. hardcode_shlibpath_var=no
  8335. ;;
  8336. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8337. freebsd2.*)
  8338. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8339. hardcode_direct=yes
  8340. hardcode_minus_L=yes
  8341. hardcode_shlibpath_var=no
  8342. ;;
  8343. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8344. freebsd* | dragonfly*)
  8345. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8346. hardcode_libdir_flag_spec='-R$libdir'
  8347. hardcode_direct=yes
  8348. hardcode_shlibpath_var=no
  8349. ;;
  8350. hpux9*)
  8351. if test "$GCC" = yes; then
  8352. 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'
  8353. else
  8354. 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'
  8355. fi
  8356. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8357. hardcode_libdir_separator=:
  8358. hardcode_direct=yes
  8359. # hardcode_minus_L: Not really in the search PATH,
  8360. # but as the default location of the library.
  8361. hardcode_minus_L=yes
  8362. export_dynamic_flag_spec='${wl}-E'
  8363. ;;
  8364. hpux10*)
  8365. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8366. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8367. else
  8368. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8369. fi
  8370. if test "$with_gnu_ld" = no; then
  8371. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8372. hardcode_libdir_flag_spec_ld='+b $libdir'
  8373. hardcode_libdir_separator=:
  8374. hardcode_direct=yes
  8375. hardcode_direct_absolute=yes
  8376. export_dynamic_flag_spec='${wl}-E'
  8377. # hardcode_minus_L: Not really in the search PATH,
  8378. # but as the default location of the library.
  8379. hardcode_minus_L=yes
  8380. fi
  8381. ;;
  8382. hpux11*)
  8383. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8384. case $host_cpu in
  8385. hppa*64*)
  8386. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8387. ;;
  8388. ia64*)
  8389. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8390. ;;
  8391. *)
  8392. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8393. ;;
  8394. esac
  8395. else
  8396. case $host_cpu in
  8397. hppa*64*)
  8398. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8399. ;;
  8400. ia64*)
  8401. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8402. ;;
  8403. *)
  8404. # Older versions of the 11.00 compiler do not understand -b yet
  8405. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8407. $as_echo_n "checking if $CC understands -b... " >&6; }
  8408. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8409. $as_echo_n "(cached) " >&6
  8410. else
  8411. lt_cv_prog_compiler__b=no
  8412. save_LDFLAGS="$LDFLAGS"
  8413. LDFLAGS="$LDFLAGS -b"
  8414. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8415. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8416. # The linker can only warn and ignore the option if not recognized
  8417. # So say no if there are warnings
  8418. if test -s conftest.err; then
  8419. # Append any errors to the config.log.
  8420. cat conftest.err 1>&5
  8421. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8422. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8423. if diff conftest.exp conftest.er2 >/dev/null; then
  8424. lt_cv_prog_compiler__b=yes
  8425. fi
  8426. else
  8427. lt_cv_prog_compiler__b=yes
  8428. fi
  8429. fi
  8430. $RM -r conftest*
  8431. LDFLAGS="$save_LDFLAGS"
  8432. fi
  8433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8434. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8435. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8436. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8437. else
  8438. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8439. fi
  8440. ;;
  8441. esac
  8442. fi
  8443. if test "$with_gnu_ld" = no; then
  8444. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8445. hardcode_libdir_separator=:
  8446. case $host_cpu in
  8447. hppa*64*|ia64*)
  8448. hardcode_direct=no
  8449. hardcode_shlibpath_var=no
  8450. ;;
  8451. *)
  8452. hardcode_direct=yes
  8453. hardcode_direct_absolute=yes
  8454. export_dynamic_flag_spec='${wl}-E'
  8455. # hardcode_minus_L: Not really in the search PATH,
  8456. # but as the default location of the library.
  8457. hardcode_minus_L=yes
  8458. ;;
  8459. esac
  8460. fi
  8461. ;;
  8462. irix5* | irix6* | nonstopux*)
  8463. if test "$GCC" = yes; then
  8464. 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'
  8465. # Try to use the -exported_symbol ld option, if it does not
  8466. # work, assume that -exports_file does not work either and
  8467. # implicitly export all symbols.
  8468. save_LDFLAGS="$LDFLAGS"
  8469. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8470. if test x$gcc_no_link = xyes; then
  8471. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8472. fi
  8473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8474. /* end confdefs.h. */
  8475. int foo(void) {}
  8476. _ACEOF
  8477. if ac_fn_c_try_link "$LINENO"; then :
  8478. 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'
  8479. fi
  8480. rm -f core conftest.err conftest.$ac_objext \
  8481. conftest$ac_exeext conftest.$ac_ext
  8482. LDFLAGS="$save_LDFLAGS"
  8483. else
  8484. 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'
  8485. 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'
  8486. fi
  8487. archive_cmds_need_lc='no'
  8488. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8489. hardcode_libdir_separator=:
  8490. inherit_rpath=yes
  8491. link_all_deplibs=yes
  8492. ;;
  8493. netbsd*)
  8494. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8495. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8496. else
  8497. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8498. fi
  8499. hardcode_libdir_flag_spec='-R$libdir'
  8500. hardcode_direct=yes
  8501. hardcode_shlibpath_var=no
  8502. ;;
  8503. newsos6)
  8504. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8505. hardcode_direct=yes
  8506. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8507. hardcode_libdir_separator=:
  8508. hardcode_shlibpath_var=no
  8509. ;;
  8510. *nto* | *qnx*)
  8511. ;;
  8512. openbsd*)
  8513. if test -f /usr/libexec/ld.so; then
  8514. hardcode_direct=yes
  8515. hardcode_shlibpath_var=no
  8516. hardcode_direct_absolute=yes
  8517. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8518. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8519. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8520. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8521. export_dynamic_flag_spec='${wl}-E'
  8522. else
  8523. case $host_os in
  8524. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8525. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8526. hardcode_libdir_flag_spec='-R$libdir'
  8527. ;;
  8528. *)
  8529. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8530. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8531. ;;
  8532. esac
  8533. fi
  8534. else
  8535. ld_shlibs=no
  8536. fi
  8537. ;;
  8538. os2*)
  8539. hardcode_libdir_flag_spec='-L$libdir'
  8540. hardcode_minus_L=yes
  8541. allow_undefined_flag=unsupported
  8542. 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'
  8543. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8544. ;;
  8545. osf3*)
  8546. if test "$GCC" = yes; then
  8547. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8548. 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'
  8549. else
  8550. allow_undefined_flag=' -expect_unresolved \*'
  8551. 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'
  8552. fi
  8553. archive_cmds_need_lc='no'
  8554. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8555. hardcode_libdir_separator=:
  8556. ;;
  8557. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8558. if test "$GCC" = yes; then
  8559. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8560. 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'
  8561. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8562. else
  8563. allow_undefined_flag=' -expect_unresolved \*'
  8564. 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'
  8565. 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~
  8566. $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'
  8567. # Both c and cxx compiler support -rpath directly
  8568. hardcode_libdir_flag_spec='-rpath $libdir'
  8569. fi
  8570. archive_cmds_need_lc='no'
  8571. hardcode_libdir_separator=:
  8572. ;;
  8573. solaris*)
  8574. no_undefined_flag=' -z defs'
  8575. if test "$GCC" = yes; then
  8576. wlarc='${wl}'
  8577. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8578. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8579. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8580. else
  8581. case `$CC -V 2>&1` in
  8582. *"Compilers 5.0"*)
  8583. wlarc=''
  8584. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8585. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8586. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8587. ;;
  8588. *)
  8589. wlarc='${wl}'
  8590. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8591. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8592. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8593. ;;
  8594. esac
  8595. fi
  8596. hardcode_libdir_flag_spec='-R$libdir'
  8597. hardcode_shlibpath_var=no
  8598. case $host_os in
  8599. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8600. *)
  8601. # The compiler driver will combine and reorder linker options,
  8602. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8603. # but is careful enough not to reorder.
  8604. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8605. if test "$GCC" = yes; then
  8606. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8607. else
  8608. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8609. fi
  8610. ;;
  8611. esac
  8612. link_all_deplibs=yes
  8613. ;;
  8614. sunos4*)
  8615. if test "x$host_vendor" = xsequent; then
  8616. # Use $CC to link under sequent, because it throws in some extra .o
  8617. # files that make .init and .fini sections work.
  8618. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8619. else
  8620. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8621. fi
  8622. hardcode_libdir_flag_spec='-L$libdir'
  8623. hardcode_direct=yes
  8624. hardcode_minus_L=yes
  8625. hardcode_shlibpath_var=no
  8626. ;;
  8627. sysv4)
  8628. case $host_vendor in
  8629. sni)
  8630. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8631. hardcode_direct=yes # is this really true???
  8632. ;;
  8633. siemens)
  8634. ## LD is ld it makes a PLAMLIB
  8635. ## CC just makes a GrossModule.
  8636. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8637. reload_cmds='$CC -r -o $output$reload_objs'
  8638. hardcode_direct=no
  8639. ;;
  8640. motorola)
  8641. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8642. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8643. ;;
  8644. esac
  8645. runpath_var='LD_RUN_PATH'
  8646. hardcode_shlibpath_var=no
  8647. ;;
  8648. sysv4.3*)
  8649. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8650. hardcode_shlibpath_var=no
  8651. export_dynamic_flag_spec='-Bexport'
  8652. ;;
  8653. sysv4*MP*)
  8654. if test -d /usr/nec; then
  8655. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8656. hardcode_shlibpath_var=no
  8657. runpath_var=LD_RUN_PATH
  8658. hardcode_runpath_var=yes
  8659. ld_shlibs=yes
  8660. fi
  8661. ;;
  8662. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8663. no_undefined_flag='${wl}-z,text'
  8664. archive_cmds_need_lc=no
  8665. hardcode_shlibpath_var=no
  8666. runpath_var='LD_RUN_PATH'
  8667. if test "$GCC" = yes; then
  8668. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8669. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8670. else
  8671. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8672. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8673. fi
  8674. ;;
  8675. sysv5* | sco3.2v5* | sco5v6*)
  8676. # Note: We can NOT use -z defs as we might desire, because we do not
  8677. # link with -lc, and that would cause any symbols used from libc to
  8678. # always be unresolved, which means just about no library would
  8679. # ever link correctly. If we're not using GNU ld we use -z text
  8680. # though, which does catch some bad symbols but isn't as heavy-handed
  8681. # as -z defs.
  8682. no_undefined_flag='${wl}-z,text'
  8683. allow_undefined_flag='${wl}-z,nodefs'
  8684. archive_cmds_need_lc=no
  8685. hardcode_shlibpath_var=no
  8686. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8687. hardcode_libdir_separator=':'
  8688. link_all_deplibs=yes
  8689. export_dynamic_flag_spec='${wl}-Bexport'
  8690. runpath_var='LD_RUN_PATH'
  8691. if test "$GCC" = yes; then
  8692. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8693. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8694. else
  8695. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8696. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8697. fi
  8698. ;;
  8699. uts4*)
  8700. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8701. hardcode_libdir_flag_spec='-L$libdir'
  8702. hardcode_shlibpath_var=no
  8703. ;;
  8704. *)
  8705. ld_shlibs=no
  8706. ;;
  8707. esac
  8708. if test x$host_vendor = xsni; then
  8709. case $host in
  8710. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8711. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8712. ;;
  8713. esac
  8714. fi
  8715. fi
  8716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8717. $as_echo "$ld_shlibs" >&6; }
  8718. test "$ld_shlibs" = no && can_build_shared=no
  8719. with_gnu_ld=$with_gnu_ld
  8720. #
  8721. # Do we need to explicitly link libc?
  8722. #
  8723. case "x$archive_cmds_need_lc" in
  8724. x|xyes)
  8725. # Assume -lc should be added
  8726. archive_cmds_need_lc=yes
  8727. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8728. case $archive_cmds in
  8729. *'~'*)
  8730. # FIXME: we may have to deal with multi-command sequences.
  8731. ;;
  8732. '$CC '*)
  8733. # Test whether the compiler implicitly links with -lc since on some
  8734. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8735. # to ld, don't add -lc before -lgcc.
  8736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8737. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8738. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8739. $as_echo_n "(cached) " >&6
  8740. else
  8741. $RM conftest*
  8742. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8743. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8744. (eval $ac_compile) 2>&5
  8745. ac_status=$?
  8746. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8747. test $ac_status = 0; } 2>conftest.err; then
  8748. soname=conftest
  8749. lib=conftest
  8750. libobjs=conftest.$ac_objext
  8751. deplibs=
  8752. wl=$lt_prog_compiler_wl
  8753. pic_flag=$lt_prog_compiler_pic
  8754. compiler_flags=-v
  8755. linker_flags=-v
  8756. verstring=
  8757. output_objdir=.
  8758. libname=conftest
  8759. lt_save_allow_undefined_flag=$allow_undefined_flag
  8760. allow_undefined_flag=
  8761. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8762. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8763. ac_status=$?
  8764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8765. test $ac_status = 0; }
  8766. then
  8767. lt_cv_archive_cmds_need_lc=no
  8768. else
  8769. lt_cv_archive_cmds_need_lc=yes
  8770. fi
  8771. allow_undefined_flag=$lt_save_allow_undefined_flag
  8772. else
  8773. cat conftest.err 1>&5
  8774. fi
  8775. $RM conftest*
  8776. fi
  8777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8778. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8779. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8780. ;;
  8781. esac
  8782. fi
  8783. ;;
  8784. esac
  8785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8786. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8787. if test "$GCC" = yes; then
  8788. case $host_os in
  8789. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8790. *) lt_awk_arg="/^libraries:/" ;;
  8791. esac
  8792. case $host_os in
  8793. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8794. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8795. esac
  8796. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8797. case $lt_search_path_spec in
  8798. *\;*)
  8799. # if the path contains ";" then we assume it to be the separator
  8800. # otherwise default to the standard path separator (i.e. ":") - it is
  8801. # assumed that no part of a normal pathname contains ";" but that should
  8802. # okay in the real world where ";" in dirpaths is itself problematic.
  8803. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8804. ;;
  8805. *)
  8806. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8807. ;;
  8808. esac
  8809. # Ok, now we have the path, separated by spaces, we can step through it
  8810. # and add multilib dir if necessary.
  8811. lt_tmp_lt_search_path_spec=
  8812. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8813. for lt_sys_path in $lt_search_path_spec; do
  8814. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8815. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8816. else
  8817. test -d "$lt_sys_path" && \
  8818. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8819. fi
  8820. done
  8821. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8822. BEGIN {RS=" "; FS="/|\n";} {
  8823. lt_foo="";
  8824. lt_count=0;
  8825. for (lt_i = NF; lt_i > 0; lt_i--) {
  8826. if ($lt_i != "" && $lt_i != ".") {
  8827. if ($lt_i == "..") {
  8828. lt_count++;
  8829. } else {
  8830. if (lt_count == 0) {
  8831. lt_foo="/" $lt_i lt_foo;
  8832. } else {
  8833. lt_count--;
  8834. }
  8835. }
  8836. }
  8837. }
  8838. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8839. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8840. }'`
  8841. # AWK program above erroneously prepends '/' to C:/dos/paths
  8842. # for these hosts.
  8843. case $host_os in
  8844. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8845. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8846. esac
  8847. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8848. else
  8849. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8850. fi
  8851. library_names_spec=
  8852. libname_spec='lib$name'
  8853. soname_spec=
  8854. shrext_cmds=".so"
  8855. postinstall_cmds=
  8856. postuninstall_cmds=
  8857. finish_cmds=
  8858. finish_eval=
  8859. shlibpath_var=
  8860. shlibpath_overrides_runpath=unknown
  8861. version_type=none
  8862. dynamic_linker="$host_os ld.so"
  8863. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8864. need_lib_prefix=unknown
  8865. hardcode_into_libs=no
  8866. # when you set need_version to no, make sure it does not cause -set_version
  8867. # flags to be left without arguments
  8868. need_version=unknown
  8869. case $host_os in
  8870. aix3*)
  8871. version_type=linux
  8872. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8873. shlibpath_var=LIBPATH
  8874. # AIX 3 has no versioning support, so we append a major version to the name.
  8875. soname_spec='${libname}${release}${shared_ext}$major'
  8876. ;;
  8877. aix[4-9]*)
  8878. version_type=linux
  8879. need_lib_prefix=no
  8880. need_version=no
  8881. hardcode_into_libs=yes
  8882. if test "$host_cpu" = ia64; then
  8883. # AIX 5 supports IA64
  8884. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8885. shlibpath_var=LD_LIBRARY_PATH
  8886. else
  8887. # With GCC up to 2.95.x, collect2 would create an import file
  8888. # for dependence libraries. The import file would start with
  8889. # the line `#! .'. This would cause the generated library to
  8890. # depend on `.', always an invalid library. This was fixed in
  8891. # development snapshots of GCC prior to 3.0.
  8892. case $host_os in
  8893. aix4 | aix4.[01] | aix4.[01].*)
  8894. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8895. echo ' yes '
  8896. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8897. :
  8898. else
  8899. can_build_shared=no
  8900. fi
  8901. ;;
  8902. esac
  8903. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8904. # soname into executable. Probably we can add versioning support to
  8905. # collect2, so additional links can be useful in future.
  8906. if test "$aix_use_runtimelinking" = yes; then
  8907. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8908. # instead of lib<name>.a to let people know that these are not
  8909. # typical AIX shared libraries.
  8910. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8911. else
  8912. # We preserve .a as extension for shared libraries through AIX4.2
  8913. # and later when we are not doing run time linking.
  8914. library_names_spec='${libname}${release}.a $libname.a'
  8915. soname_spec='${libname}${release}${shared_ext}$major'
  8916. fi
  8917. shlibpath_var=LIBPATH
  8918. fi
  8919. ;;
  8920. amigaos*)
  8921. case $host_cpu in
  8922. powerpc)
  8923. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8924. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8926. ;;
  8927. m68k)
  8928. library_names_spec='$libname.ixlibrary $libname.a'
  8929. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8930. 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'
  8931. ;;
  8932. esac
  8933. ;;
  8934. beos*)
  8935. library_names_spec='${libname}${shared_ext}'
  8936. dynamic_linker="$host_os ld.so"
  8937. shlibpath_var=LIBRARY_PATH
  8938. ;;
  8939. bsdi[45]*)
  8940. version_type=linux
  8941. need_version=no
  8942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8943. soname_spec='${libname}${release}${shared_ext}$major'
  8944. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8945. shlibpath_var=LD_LIBRARY_PATH
  8946. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8947. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8948. # the default ld.so.conf also contains /usr/contrib/lib and
  8949. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8950. # libtool to hard-code these into programs
  8951. ;;
  8952. cygwin* | mingw* | pw32* | cegcc*)
  8953. version_type=windows
  8954. shrext_cmds=".dll"
  8955. need_version=no
  8956. need_lib_prefix=no
  8957. case $GCC,$host_os in
  8958. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8959. library_names_spec='$libname.dll.a'
  8960. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8961. postinstall_cmds='base_file=`basename \${file}`~
  8962. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8963. dldir=$destdir/`dirname \$dlpath`~
  8964. test -d \$dldir || mkdir -p \$dldir~
  8965. $install_prog $dir/$dlname \$dldir/$dlname~
  8966. chmod a+x \$dldir/$dlname~
  8967. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8968. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8969. fi'
  8970. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8971. dlpath=$dir/\$dldll~
  8972. $RM \$dlpath'
  8973. shlibpath_overrides_runpath=yes
  8974. case $host_os in
  8975. cygwin*)
  8976. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8977. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8978. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8979. ;;
  8980. mingw* | cegcc*)
  8981. # MinGW DLLs use traditional 'lib' prefix
  8982. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8983. ;;
  8984. pw32*)
  8985. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8986. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8987. ;;
  8988. esac
  8989. ;;
  8990. *)
  8991. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8992. ;;
  8993. esac
  8994. dynamic_linker='Win32 ld.exe'
  8995. # FIXME: first we should search . and the directory the executable is in
  8996. shlibpath_var=PATH
  8997. ;;
  8998. darwin* | rhapsody*)
  8999. dynamic_linker="$host_os dyld"
  9000. version_type=darwin
  9001. need_lib_prefix=no
  9002. need_version=no
  9003. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9004. soname_spec='${libname}${release}${major}$shared_ext'
  9005. shlibpath_overrides_runpath=yes
  9006. shlibpath_var=DYLD_LIBRARY_PATH
  9007. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9008. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9009. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9010. ;;
  9011. dgux*)
  9012. version_type=linux
  9013. need_lib_prefix=no
  9014. need_version=no
  9015. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9016. soname_spec='${libname}${release}${shared_ext}$major'
  9017. shlibpath_var=LD_LIBRARY_PATH
  9018. ;;
  9019. freebsd* | dragonfly*)
  9020. # DragonFly does not have aout. When/if they implement a new
  9021. # versioning mechanism, adjust this.
  9022. if test -x /usr/bin/objformat; then
  9023. objformat=`/usr/bin/objformat`
  9024. else
  9025. case $host_os in
  9026. freebsd[23].*) objformat=aout ;;
  9027. *) objformat=elf ;;
  9028. esac
  9029. fi
  9030. version_type=freebsd-$objformat
  9031. case $version_type in
  9032. freebsd-elf*)
  9033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9034. need_version=no
  9035. need_lib_prefix=no
  9036. ;;
  9037. freebsd-*)
  9038. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9039. need_version=yes
  9040. ;;
  9041. esac
  9042. shlibpath_var=LD_LIBRARY_PATH
  9043. case $host_os in
  9044. freebsd2.*)
  9045. shlibpath_overrides_runpath=yes
  9046. ;;
  9047. freebsd3.[01]* | freebsdelf3.[01]*)
  9048. shlibpath_overrides_runpath=yes
  9049. hardcode_into_libs=yes
  9050. ;;
  9051. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9052. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9053. shlibpath_overrides_runpath=no
  9054. hardcode_into_libs=yes
  9055. ;;
  9056. *) # from 4.6 on, and DragonFly
  9057. shlibpath_overrides_runpath=yes
  9058. hardcode_into_libs=yes
  9059. ;;
  9060. esac
  9061. ;;
  9062. gnu*)
  9063. version_type=linux
  9064. need_lib_prefix=no
  9065. need_version=no
  9066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9067. soname_spec='${libname}${release}${shared_ext}$major'
  9068. shlibpath_var=LD_LIBRARY_PATH
  9069. hardcode_into_libs=yes
  9070. ;;
  9071. haiku*)
  9072. version_type=linux
  9073. need_lib_prefix=no
  9074. need_version=no
  9075. dynamic_linker="$host_os runtime_loader"
  9076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9077. soname_spec='${libname}${release}${shared_ext}$major'
  9078. shlibpath_var=LIBRARY_PATH
  9079. shlibpath_overrides_runpath=yes
  9080. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9081. hardcode_into_libs=yes
  9082. ;;
  9083. hpux9* | hpux10* | hpux11*)
  9084. # Give a soname corresponding to the major version so that dld.sl refuses to
  9085. # link against other versions.
  9086. version_type=sunos
  9087. need_lib_prefix=no
  9088. need_version=no
  9089. case $host_cpu in
  9090. ia64*)
  9091. shrext_cmds='.so'
  9092. hardcode_into_libs=yes
  9093. dynamic_linker="$host_os dld.so"
  9094. shlibpath_var=LD_LIBRARY_PATH
  9095. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9097. soname_spec='${libname}${release}${shared_ext}$major'
  9098. if test "X$HPUX_IA64_MODE" = X32; then
  9099. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9100. else
  9101. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9102. fi
  9103. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9104. ;;
  9105. hppa*64*)
  9106. shrext_cmds='.sl'
  9107. hardcode_into_libs=yes
  9108. dynamic_linker="$host_os dld.sl"
  9109. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9110. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9111. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9112. soname_spec='${libname}${release}${shared_ext}$major'
  9113. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9114. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9115. ;;
  9116. *)
  9117. shrext_cmds='.sl'
  9118. dynamic_linker="$host_os dld.sl"
  9119. shlibpath_var=SHLIB_PATH
  9120. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9122. soname_spec='${libname}${release}${shared_ext}$major'
  9123. ;;
  9124. esac
  9125. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9126. postinstall_cmds='chmod 555 $lib'
  9127. # or fails outright, so override atomically:
  9128. install_override_mode=555
  9129. ;;
  9130. interix[3-9]*)
  9131. version_type=linux
  9132. need_lib_prefix=no
  9133. need_version=no
  9134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9135. soname_spec='${libname}${release}${shared_ext}$major'
  9136. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9137. shlibpath_var=LD_LIBRARY_PATH
  9138. shlibpath_overrides_runpath=no
  9139. hardcode_into_libs=yes
  9140. ;;
  9141. irix5* | irix6* | nonstopux*)
  9142. case $host_os in
  9143. nonstopux*) version_type=nonstopux ;;
  9144. *)
  9145. if test "$lt_cv_prog_gnu_ld" = yes; then
  9146. version_type=linux
  9147. else
  9148. version_type=irix
  9149. fi ;;
  9150. esac
  9151. need_lib_prefix=no
  9152. need_version=no
  9153. soname_spec='${libname}${release}${shared_ext}$major'
  9154. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9155. case $host_os in
  9156. irix5* | nonstopux*)
  9157. libsuff= shlibsuff=
  9158. ;;
  9159. *)
  9160. case $LD in # libtool.m4 will add one of these switches to LD
  9161. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9162. libsuff= shlibsuff= libmagic=32-bit;;
  9163. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9164. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9165. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9166. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9167. *) libsuff= shlibsuff= libmagic=never-match;;
  9168. esac
  9169. ;;
  9170. esac
  9171. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9172. shlibpath_overrides_runpath=no
  9173. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9174. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9175. hardcode_into_libs=yes
  9176. ;;
  9177. # No shared lib support for Linux oldld, aout, or coff.
  9178. linux*oldld* | linux*aout* | linux*coff*)
  9179. dynamic_linker=no
  9180. ;;
  9181. # This must be Linux ELF.
  9182. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9183. version_type=linux
  9184. need_lib_prefix=no
  9185. need_version=no
  9186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9187. soname_spec='${libname}${release}${shared_ext}$major'
  9188. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9189. shlibpath_var=LD_LIBRARY_PATH
  9190. shlibpath_overrides_runpath=no
  9191. # Some binutils ld are patched to set DT_RUNPATH
  9192. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9193. $as_echo_n "(cached) " >&6
  9194. else
  9195. lt_cv_shlibpath_overrides_runpath=no
  9196. save_LDFLAGS=$LDFLAGS
  9197. save_libdir=$libdir
  9198. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9199. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9200. if test x$gcc_no_link = xyes; then
  9201. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9202. fi
  9203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9204. /* end confdefs.h. */
  9205. int
  9206. main ()
  9207. {
  9208. ;
  9209. return 0;
  9210. }
  9211. _ACEOF
  9212. if ac_fn_c_try_link "$LINENO"; then :
  9213. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9214. lt_cv_shlibpath_overrides_runpath=yes
  9215. fi
  9216. fi
  9217. rm -f core conftest.err conftest.$ac_objext \
  9218. conftest$ac_exeext conftest.$ac_ext
  9219. LDFLAGS=$save_LDFLAGS
  9220. libdir=$save_libdir
  9221. fi
  9222. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9223. # This implies no fast_install, which is unacceptable.
  9224. # Some rework will be needed to allow for fast_install
  9225. # before this can be enabled.
  9226. hardcode_into_libs=yes
  9227. # Append ld.so.conf contents to the search path
  9228. if test -f /etc/ld.so.conf; then
  9229. 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' ' '`
  9230. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9231. fi
  9232. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9233. # powerpc, because MkLinux only supported shared libraries with the
  9234. # GNU dynamic linker. Since this was broken with cross compilers,
  9235. # most powerpc-linux boxes support dynamic linking these days and
  9236. # people can always --disable-shared, the test was removed, and we
  9237. # assume the GNU/Linux dynamic linker is in use.
  9238. dynamic_linker='GNU/Linux ld.so'
  9239. ;;
  9240. netbsd*)
  9241. version_type=sunos
  9242. need_lib_prefix=no
  9243. need_version=no
  9244. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9246. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9247. dynamic_linker='NetBSD (a.out) ld.so'
  9248. else
  9249. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9250. soname_spec='${libname}${release}${shared_ext}$major'
  9251. dynamic_linker='NetBSD ld.elf_so'
  9252. fi
  9253. shlibpath_var=LD_LIBRARY_PATH
  9254. shlibpath_overrides_runpath=yes
  9255. hardcode_into_libs=yes
  9256. ;;
  9257. newsos6)
  9258. version_type=linux
  9259. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9260. shlibpath_var=LD_LIBRARY_PATH
  9261. shlibpath_overrides_runpath=yes
  9262. ;;
  9263. *nto* | *qnx*)
  9264. version_type=qnx
  9265. need_lib_prefix=no
  9266. need_version=no
  9267. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9268. soname_spec='${libname}${release}${shared_ext}$major'
  9269. shlibpath_var=LD_LIBRARY_PATH
  9270. shlibpath_overrides_runpath=no
  9271. hardcode_into_libs=yes
  9272. dynamic_linker='ldqnx.so'
  9273. ;;
  9274. openbsd*)
  9275. version_type=sunos
  9276. sys_lib_dlsearch_path_spec="/usr/lib"
  9277. need_lib_prefix=no
  9278. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9279. case $host_os in
  9280. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9281. *) need_version=no ;;
  9282. esac
  9283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9284. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9285. shlibpath_var=LD_LIBRARY_PATH
  9286. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9287. case $host_os in
  9288. openbsd2.[89] | openbsd2.[89].*)
  9289. shlibpath_overrides_runpath=no
  9290. ;;
  9291. *)
  9292. shlibpath_overrides_runpath=yes
  9293. ;;
  9294. esac
  9295. else
  9296. shlibpath_overrides_runpath=yes
  9297. fi
  9298. ;;
  9299. os2*)
  9300. libname_spec='$name'
  9301. shrext_cmds=".dll"
  9302. need_lib_prefix=no
  9303. library_names_spec='$libname${shared_ext} $libname.a'
  9304. dynamic_linker='OS/2 ld.exe'
  9305. shlibpath_var=LIBPATH
  9306. ;;
  9307. osf3* | osf4* | osf5*)
  9308. version_type=osf
  9309. need_lib_prefix=no
  9310. need_version=no
  9311. soname_spec='${libname}${release}${shared_ext}$major'
  9312. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9313. shlibpath_var=LD_LIBRARY_PATH
  9314. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9315. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9316. ;;
  9317. rdos*)
  9318. dynamic_linker=no
  9319. ;;
  9320. solaris*)
  9321. version_type=linux
  9322. need_lib_prefix=no
  9323. need_version=no
  9324. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9325. soname_spec='${libname}${release}${shared_ext}$major'
  9326. shlibpath_var=LD_LIBRARY_PATH
  9327. shlibpath_overrides_runpath=yes
  9328. hardcode_into_libs=yes
  9329. # ldd complains unless libraries are executable
  9330. postinstall_cmds='chmod +x $lib'
  9331. ;;
  9332. sunos4*)
  9333. version_type=sunos
  9334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9335. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9336. shlibpath_var=LD_LIBRARY_PATH
  9337. shlibpath_overrides_runpath=yes
  9338. if test "$with_gnu_ld" = yes; then
  9339. need_lib_prefix=no
  9340. fi
  9341. need_version=yes
  9342. ;;
  9343. sysv4 | sysv4.3*)
  9344. version_type=linux
  9345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9346. soname_spec='${libname}${release}${shared_ext}$major'
  9347. shlibpath_var=LD_LIBRARY_PATH
  9348. case $host_vendor in
  9349. sni)
  9350. shlibpath_overrides_runpath=no
  9351. need_lib_prefix=no
  9352. runpath_var=LD_RUN_PATH
  9353. ;;
  9354. siemens)
  9355. need_lib_prefix=no
  9356. ;;
  9357. motorola)
  9358. need_lib_prefix=no
  9359. need_version=no
  9360. shlibpath_overrides_runpath=no
  9361. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9362. ;;
  9363. esac
  9364. ;;
  9365. sysv4*MP*)
  9366. if test -d /usr/nec ;then
  9367. version_type=linux
  9368. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9369. soname_spec='$libname${shared_ext}.$major'
  9370. shlibpath_var=LD_LIBRARY_PATH
  9371. fi
  9372. ;;
  9373. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9374. version_type=freebsd-elf
  9375. need_lib_prefix=no
  9376. need_version=no
  9377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9378. soname_spec='${libname}${release}${shared_ext}$major'
  9379. shlibpath_var=LD_LIBRARY_PATH
  9380. shlibpath_overrides_runpath=yes
  9381. hardcode_into_libs=yes
  9382. if test "$with_gnu_ld" = yes; then
  9383. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9384. else
  9385. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9386. case $host_os in
  9387. sco3.2v5*)
  9388. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9389. ;;
  9390. esac
  9391. fi
  9392. sys_lib_dlsearch_path_spec='/usr/lib'
  9393. ;;
  9394. tpf*)
  9395. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9396. version_type=linux
  9397. need_lib_prefix=no
  9398. need_version=no
  9399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9400. shlibpath_var=LD_LIBRARY_PATH
  9401. shlibpath_overrides_runpath=no
  9402. hardcode_into_libs=yes
  9403. ;;
  9404. uts4*)
  9405. version_type=linux
  9406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9407. soname_spec='${libname}${release}${shared_ext}$major'
  9408. shlibpath_var=LD_LIBRARY_PATH
  9409. ;;
  9410. *)
  9411. dynamic_linker=no
  9412. ;;
  9413. esac
  9414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9415. $as_echo "$dynamic_linker" >&6; }
  9416. test "$dynamic_linker" = no && can_build_shared=no
  9417. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9418. if test "$GCC" = yes; then
  9419. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9420. fi
  9421. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9422. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9423. fi
  9424. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9425. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9426. fi
  9427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9428. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9429. hardcode_action=
  9430. if test -n "$hardcode_libdir_flag_spec" ||
  9431. test -n "$runpath_var" ||
  9432. test "X$hardcode_automatic" = "Xyes" ; then
  9433. # We can hardcode non-existent directories.
  9434. if test "$hardcode_direct" != no &&
  9435. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9436. # have to relink, otherwise we might link with an installed library
  9437. # when we should be linking with a yet-to-be-installed one
  9438. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9439. test "$hardcode_minus_L" != no; then
  9440. # Linking always hardcodes the temporary library directory.
  9441. hardcode_action=relink
  9442. else
  9443. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9444. hardcode_action=immediate
  9445. fi
  9446. else
  9447. # We cannot hardcode anything, or else we can only hardcode existing
  9448. # directories.
  9449. hardcode_action=unsupported
  9450. fi
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9452. $as_echo "$hardcode_action" >&6; }
  9453. if test "$hardcode_action" = relink ||
  9454. test "$inherit_rpath" = yes; then
  9455. # Fast installation is not supported
  9456. enable_fast_install=no
  9457. elif test "$shlibpath_overrides_runpath" = yes ||
  9458. test "$enable_shared" = no; then
  9459. # Fast installation is not necessary
  9460. enable_fast_install=needless
  9461. fi
  9462. if test "x$enable_dlopen" != xyes; then
  9463. enable_dlopen=unknown
  9464. enable_dlopen_self=unknown
  9465. enable_dlopen_self_static=unknown
  9466. else
  9467. lt_cv_dlopen=no
  9468. lt_cv_dlopen_libs=
  9469. case $host_os in
  9470. beos*)
  9471. lt_cv_dlopen="load_add_on"
  9472. lt_cv_dlopen_libs=
  9473. lt_cv_dlopen_self=yes
  9474. ;;
  9475. mingw* | pw32* | cegcc*)
  9476. lt_cv_dlopen="LoadLibrary"
  9477. lt_cv_dlopen_libs=
  9478. ;;
  9479. cygwin*)
  9480. lt_cv_dlopen="dlopen"
  9481. lt_cv_dlopen_libs=
  9482. ;;
  9483. darwin*)
  9484. # if libdl is installed we need to link against it
  9485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9486. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9487. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9488. $as_echo_n "(cached) " >&6
  9489. else
  9490. ac_check_lib_save_LIBS=$LIBS
  9491. LIBS="-ldl $LIBS"
  9492. if test x$gcc_no_link = xyes; then
  9493. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9494. fi
  9495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9496. /* end confdefs.h. */
  9497. /* Override any GCC internal prototype to avoid an error.
  9498. Use char because int might match the return type of a GCC
  9499. builtin and then its argument prototype would still apply. */
  9500. #ifdef __cplusplus
  9501. extern "C"
  9502. #endif
  9503. char dlopen ();
  9504. int
  9505. main ()
  9506. {
  9507. return dlopen ();
  9508. ;
  9509. return 0;
  9510. }
  9511. _ACEOF
  9512. if ac_fn_c_try_link "$LINENO"; then :
  9513. ac_cv_lib_dl_dlopen=yes
  9514. else
  9515. ac_cv_lib_dl_dlopen=no
  9516. fi
  9517. rm -f core conftest.err conftest.$ac_objext \
  9518. conftest$ac_exeext conftest.$ac_ext
  9519. LIBS=$ac_check_lib_save_LIBS
  9520. fi
  9521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9522. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9523. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9524. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9525. else
  9526. lt_cv_dlopen="dyld"
  9527. lt_cv_dlopen_libs=
  9528. lt_cv_dlopen_self=yes
  9529. fi
  9530. ;;
  9531. *)
  9532. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9533. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9534. lt_cv_dlopen="shl_load"
  9535. else
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9537. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9538. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9539. $as_echo_n "(cached) " >&6
  9540. else
  9541. ac_check_lib_save_LIBS=$LIBS
  9542. LIBS="-ldld $LIBS"
  9543. if test x$gcc_no_link = xyes; then
  9544. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9545. fi
  9546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9547. /* end confdefs.h. */
  9548. /* Override any GCC internal prototype to avoid an error.
  9549. Use char because int might match the return type of a GCC
  9550. builtin and then its argument prototype would still apply. */
  9551. #ifdef __cplusplus
  9552. extern "C"
  9553. #endif
  9554. char shl_load ();
  9555. int
  9556. main ()
  9557. {
  9558. return shl_load ();
  9559. ;
  9560. return 0;
  9561. }
  9562. _ACEOF
  9563. if ac_fn_c_try_link "$LINENO"; then :
  9564. ac_cv_lib_dld_shl_load=yes
  9565. else
  9566. ac_cv_lib_dld_shl_load=no
  9567. fi
  9568. rm -f core conftest.err conftest.$ac_objext \
  9569. conftest$ac_exeext conftest.$ac_ext
  9570. LIBS=$ac_check_lib_save_LIBS
  9571. fi
  9572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9573. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9574. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9575. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9576. else
  9577. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9578. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9579. lt_cv_dlopen="dlopen"
  9580. else
  9581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9582. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9583. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9584. $as_echo_n "(cached) " >&6
  9585. else
  9586. ac_check_lib_save_LIBS=$LIBS
  9587. LIBS="-ldl $LIBS"
  9588. if test x$gcc_no_link = xyes; then
  9589. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9590. fi
  9591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9592. /* end confdefs.h. */
  9593. /* Override any GCC internal prototype to avoid an error.
  9594. Use char because int might match the return type of a GCC
  9595. builtin and then its argument prototype would still apply. */
  9596. #ifdef __cplusplus
  9597. extern "C"
  9598. #endif
  9599. char dlopen ();
  9600. int
  9601. main ()
  9602. {
  9603. return dlopen ();
  9604. ;
  9605. return 0;
  9606. }
  9607. _ACEOF
  9608. if ac_fn_c_try_link "$LINENO"; then :
  9609. ac_cv_lib_dl_dlopen=yes
  9610. else
  9611. ac_cv_lib_dl_dlopen=no
  9612. fi
  9613. rm -f core conftest.err conftest.$ac_objext \
  9614. conftest$ac_exeext conftest.$ac_ext
  9615. LIBS=$ac_check_lib_save_LIBS
  9616. fi
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9618. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9619. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9620. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9621. else
  9622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9623. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9624. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9625. $as_echo_n "(cached) " >&6
  9626. else
  9627. ac_check_lib_save_LIBS=$LIBS
  9628. LIBS="-lsvld $LIBS"
  9629. if test x$gcc_no_link = xyes; then
  9630. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9631. fi
  9632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9633. /* end confdefs.h. */
  9634. /* Override any GCC internal prototype to avoid an error.
  9635. Use char because int might match the return type of a GCC
  9636. builtin and then its argument prototype would still apply. */
  9637. #ifdef __cplusplus
  9638. extern "C"
  9639. #endif
  9640. char dlopen ();
  9641. int
  9642. main ()
  9643. {
  9644. return dlopen ();
  9645. ;
  9646. return 0;
  9647. }
  9648. _ACEOF
  9649. if ac_fn_c_try_link "$LINENO"; then :
  9650. ac_cv_lib_svld_dlopen=yes
  9651. else
  9652. ac_cv_lib_svld_dlopen=no
  9653. fi
  9654. rm -f core conftest.err conftest.$ac_objext \
  9655. conftest$ac_exeext conftest.$ac_ext
  9656. LIBS=$ac_check_lib_save_LIBS
  9657. fi
  9658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9659. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9660. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9661. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9662. else
  9663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9664. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9665. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9666. $as_echo_n "(cached) " >&6
  9667. else
  9668. ac_check_lib_save_LIBS=$LIBS
  9669. LIBS="-ldld $LIBS"
  9670. if test x$gcc_no_link = xyes; then
  9671. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9672. fi
  9673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9674. /* end confdefs.h. */
  9675. /* Override any GCC internal prototype to avoid an error.
  9676. Use char because int might match the return type of a GCC
  9677. builtin and then its argument prototype would still apply. */
  9678. #ifdef __cplusplus
  9679. extern "C"
  9680. #endif
  9681. char dld_link ();
  9682. int
  9683. main ()
  9684. {
  9685. return dld_link ();
  9686. ;
  9687. return 0;
  9688. }
  9689. _ACEOF
  9690. if ac_fn_c_try_link "$LINENO"; then :
  9691. ac_cv_lib_dld_dld_link=yes
  9692. else
  9693. ac_cv_lib_dld_dld_link=no
  9694. fi
  9695. rm -f core conftest.err conftest.$ac_objext \
  9696. conftest$ac_exeext conftest.$ac_ext
  9697. LIBS=$ac_check_lib_save_LIBS
  9698. fi
  9699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9700. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9701. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9702. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9703. fi
  9704. fi
  9705. fi
  9706. fi
  9707. fi
  9708. fi
  9709. ;;
  9710. esac
  9711. if test "x$lt_cv_dlopen" != xno; then
  9712. enable_dlopen=yes
  9713. else
  9714. enable_dlopen=no
  9715. fi
  9716. case $lt_cv_dlopen in
  9717. dlopen)
  9718. save_CPPFLAGS="$CPPFLAGS"
  9719. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9720. save_LDFLAGS="$LDFLAGS"
  9721. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9722. save_LIBS="$LIBS"
  9723. LIBS="$lt_cv_dlopen_libs $LIBS"
  9724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9725. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9726. if test "${lt_cv_dlopen_self+set}" = set; then :
  9727. $as_echo_n "(cached) " >&6
  9728. else
  9729. if test "$cross_compiling" = yes; then :
  9730. lt_cv_dlopen_self=cross
  9731. else
  9732. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9733. lt_status=$lt_dlunknown
  9734. cat > conftest.$ac_ext <<_LT_EOF
  9735. #line 11321 "configure"
  9736. #include "confdefs.h"
  9737. #if HAVE_DLFCN_H
  9738. #include <dlfcn.h>
  9739. #endif
  9740. #include <stdio.h>
  9741. #ifdef RTLD_GLOBAL
  9742. # define LT_DLGLOBAL RTLD_GLOBAL
  9743. #else
  9744. # ifdef DL_GLOBAL
  9745. # define LT_DLGLOBAL DL_GLOBAL
  9746. # else
  9747. # define LT_DLGLOBAL 0
  9748. # endif
  9749. #endif
  9750. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9751. find out it does not work in some platform. */
  9752. #ifndef LT_DLLAZY_OR_NOW
  9753. # ifdef RTLD_LAZY
  9754. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9755. # else
  9756. # ifdef DL_LAZY
  9757. # define LT_DLLAZY_OR_NOW DL_LAZY
  9758. # else
  9759. # ifdef RTLD_NOW
  9760. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9761. # else
  9762. # ifdef DL_NOW
  9763. # define LT_DLLAZY_OR_NOW DL_NOW
  9764. # else
  9765. # define LT_DLLAZY_OR_NOW 0
  9766. # endif
  9767. # endif
  9768. # endif
  9769. # endif
  9770. #endif
  9771. /* When -fvisbility=hidden is used, assume the code has been annotated
  9772. correspondingly for the symbols needed. */
  9773. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9774. void fnord () __attribute__((visibility("default")));
  9775. #endif
  9776. void fnord () { int i=42; }
  9777. int main ()
  9778. {
  9779. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9780. int status = $lt_dlunknown;
  9781. if (self)
  9782. {
  9783. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9784. else
  9785. {
  9786. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9787. else puts (dlerror ());
  9788. }
  9789. /* dlclose (self); */
  9790. }
  9791. else
  9792. puts (dlerror ());
  9793. return status;
  9794. }
  9795. _LT_EOF
  9796. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9797. (eval $ac_link) 2>&5
  9798. ac_status=$?
  9799. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9800. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9801. (./conftest; exit; ) >&5 2>/dev/null
  9802. lt_status=$?
  9803. case x$lt_status in
  9804. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9805. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9806. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9807. esac
  9808. else :
  9809. # compilation failed
  9810. lt_cv_dlopen_self=no
  9811. fi
  9812. fi
  9813. rm -fr conftest*
  9814. fi
  9815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9816. $as_echo "$lt_cv_dlopen_self" >&6; }
  9817. if test "x$lt_cv_dlopen_self" = xyes; then
  9818. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9820. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9821. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9822. $as_echo_n "(cached) " >&6
  9823. else
  9824. if test "$cross_compiling" = yes; then :
  9825. lt_cv_dlopen_self_static=cross
  9826. else
  9827. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9828. lt_status=$lt_dlunknown
  9829. cat > conftest.$ac_ext <<_LT_EOF
  9830. #line 11427 "configure"
  9831. #include "confdefs.h"
  9832. #if HAVE_DLFCN_H
  9833. #include <dlfcn.h>
  9834. #endif
  9835. #include <stdio.h>
  9836. #ifdef RTLD_GLOBAL
  9837. # define LT_DLGLOBAL RTLD_GLOBAL
  9838. #else
  9839. # ifdef DL_GLOBAL
  9840. # define LT_DLGLOBAL DL_GLOBAL
  9841. # else
  9842. # define LT_DLGLOBAL 0
  9843. # endif
  9844. #endif
  9845. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9846. find out it does not work in some platform. */
  9847. #ifndef LT_DLLAZY_OR_NOW
  9848. # ifdef RTLD_LAZY
  9849. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9850. # else
  9851. # ifdef DL_LAZY
  9852. # define LT_DLLAZY_OR_NOW DL_LAZY
  9853. # else
  9854. # ifdef RTLD_NOW
  9855. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9856. # else
  9857. # ifdef DL_NOW
  9858. # define LT_DLLAZY_OR_NOW DL_NOW
  9859. # else
  9860. # define LT_DLLAZY_OR_NOW 0
  9861. # endif
  9862. # endif
  9863. # endif
  9864. # endif
  9865. #endif
  9866. /* When -fvisbility=hidden is used, assume the code has been annotated
  9867. correspondingly for the symbols needed. */
  9868. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9869. void fnord () __attribute__((visibility("default")));
  9870. #endif
  9871. void fnord () { int i=42; }
  9872. int main ()
  9873. {
  9874. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9875. int status = $lt_dlunknown;
  9876. if (self)
  9877. {
  9878. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9879. else
  9880. {
  9881. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9882. else puts (dlerror ());
  9883. }
  9884. /* dlclose (self); */
  9885. }
  9886. else
  9887. puts (dlerror ());
  9888. return status;
  9889. }
  9890. _LT_EOF
  9891. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9892. (eval $ac_link) 2>&5
  9893. ac_status=$?
  9894. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9895. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9896. (./conftest; exit; ) >&5 2>/dev/null
  9897. lt_status=$?
  9898. case x$lt_status in
  9899. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9900. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9901. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9902. esac
  9903. else :
  9904. # compilation failed
  9905. lt_cv_dlopen_self_static=no
  9906. fi
  9907. fi
  9908. rm -fr conftest*
  9909. fi
  9910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9911. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9912. fi
  9913. CPPFLAGS="$save_CPPFLAGS"
  9914. LDFLAGS="$save_LDFLAGS"
  9915. LIBS="$save_LIBS"
  9916. ;;
  9917. esac
  9918. case $lt_cv_dlopen_self in
  9919. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9920. *) enable_dlopen_self=unknown ;;
  9921. esac
  9922. case $lt_cv_dlopen_self_static in
  9923. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9924. *) enable_dlopen_self_static=unknown ;;
  9925. esac
  9926. fi
  9927. striplib=
  9928. old_striplib=
  9929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9930. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9931. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9932. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9933. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9935. $as_echo "yes" >&6; }
  9936. else
  9937. # FIXME - insert some real tests, host_os isn't really good enough
  9938. case $host_os in
  9939. darwin*)
  9940. if test -n "$STRIP" ; then
  9941. striplib="$STRIP -x"
  9942. old_striplib="$STRIP -S"
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9944. $as_echo "yes" >&6; }
  9945. else
  9946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9947. $as_echo "no" >&6; }
  9948. fi
  9949. ;;
  9950. *)
  9951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9952. $as_echo "no" >&6; }
  9953. ;;
  9954. esac
  9955. fi
  9956. # Report which library types will actually be built
  9957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9958. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9960. $as_echo "$can_build_shared" >&6; }
  9961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9962. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9963. test "$can_build_shared" = "no" && enable_shared=no
  9964. # On AIX, shared libraries and static libraries use the same namespace, and
  9965. # are all built from PIC.
  9966. case $host_os in
  9967. aix3*)
  9968. test "$enable_shared" = yes && enable_static=no
  9969. if test -n "$RANLIB"; then
  9970. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9971. postinstall_cmds='$RANLIB $lib'
  9972. fi
  9973. ;;
  9974. aix[4-9]*)
  9975. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9976. test "$enable_shared" = yes && enable_static=no
  9977. fi
  9978. ;;
  9979. esac
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9981. $as_echo "$enable_shared" >&6; }
  9982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9983. $as_echo_n "checking whether to build static libraries... " >&6; }
  9984. # Make sure either enable_shared or enable_static is yes.
  9985. test "$enable_shared" = yes || enable_static=yes
  9986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9987. $as_echo "$enable_static" >&6; }
  9988. fi
  9989. ac_ext=c
  9990. ac_cpp='$CPP $CPPFLAGS'
  9991. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9992. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9993. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9994. CC="$lt_save_CC"
  9995. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9996. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9997. (test "X$CXX" != "Xg++"))) ; then
  9998. ac_ext=cpp
  9999. ac_cpp='$CXXCPP $CPPFLAGS'
  10000. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10001. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10002. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10004. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10005. if test -z "$CXXCPP"; then
  10006. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  10007. $as_echo_n "(cached) " >&6
  10008. else
  10009. # Double quotes because CXXCPP needs to be expanded
  10010. for CXXCPP in "$CXX -E" "/lib/cpp"
  10011. do
  10012. ac_preproc_ok=false
  10013. for ac_cxx_preproc_warn_flag in '' yes
  10014. do
  10015. # Use a header file that comes with gcc, so configuring glibc
  10016. # with a fresh cross-compiler works.
  10017. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10018. # <limits.h> exists even on freestanding compilers.
  10019. # On the NeXT, cc -E runs the code through the compiler's parser,
  10020. # not just through cpp. "Syntax error" is here to catch this case.
  10021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10022. /* end confdefs.h. */
  10023. #ifdef __STDC__
  10024. # include <limits.h>
  10025. #else
  10026. # include <assert.h>
  10027. #endif
  10028. Syntax error
  10029. _ACEOF
  10030. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10031. else
  10032. # Broken: fails on valid input.
  10033. continue
  10034. fi
  10035. rm -f conftest.err conftest.$ac_ext
  10036. # OK, works on sane cases. Now check whether nonexistent headers
  10037. # can be detected and how.
  10038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10039. /* end confdefs.h. */
  10040. #include <ac_nonexistent.h>
  10041. _ACEOF
  10042. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10043. # Broken: success on invalid input.
  10044. continue
  10045. else
  10046. # Passes both tests.
  10047. ac_preproc_ok=:
  10048. break
  10049. fi
  10050. rm -f conftest.err conftest.$ac_ext
  10051. done
  10052. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10053. rm -f conftest.err conftest.$ac_ext
  10054. if $ac_preproc_ok; then :
  10055. break
  10056. fi
  10057. done
  10058. ac_cv_prog_CXXCPP=$CXXCPP
  10059. fi
  10060. CXXCPP=$ac_cv_prog_CXXCPP
  10061. else
  10062. ac_cv_prog_CXXCPP=$CXXCPP
  10063. fi
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10065. $as_echo "$CXXCPP" >&6; }
  10066. ac_preproc_ok=false
  10067. for ac_cxx_preproc_warn_flag in '' yes
  10068. do
  10069. # Use a header file that comes with gcc, so configuring glibc
  10070. # with a fresh cross-compiler works.
  10071. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10072. # <limits.h> exists even on freestanding compilers.
  10073. # On the NeXT, cc -E runs the code through the compiler's parser,
  10074. # not just through cpp. "Syntax error" is here to catch this case.
  10075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10076. /* end confdefs.h. */
  10077. #ifdef __STDC__
  10078. # include <limits.h>
  10079. #else
  10080. # include <assert.h>
  10081. #endif
  10082. Syntax error
  10083. _ACEOF
  10084. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10085. else
  10086. # Broken: fails on valid input.
  10087. continue
  10088. fi
  10089. rm -f conftest.err conftest.$ac_ext
  10090. # OK, works on sane cases. Now check whether nonexistent headers
  10091. # can be detected and how.
  10092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10093. /* end confdefs.h. */
  10094. #include <ac_nonexistent.h>
  10095. _ACEOF
  10096. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10097. # Broken: success on invalid input.
  10098. continue
  10099. else
  10100. # Passes both tests.
  10101. ac_preproc_ok=:
  10102. break
  10103. fi
  10104. rm -f conftest.err conftest.$ac_ext
  10105. done
  10106. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10107. rm -f conftest.err conftest.$ac_ext
  10108. if $ac_preproc_ok; then :
  10109. else
  10110. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10111. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10112. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  10113. See \`config.log' for more details." "$LINENO" 5; }
  10114. fi
  10115. ac_ext=c
  10116. ac_cpp='$CPP $CPPFLAGS'
  10117. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10118. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10119. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10120. else
  10121. _lt_caught_CXX_error=yes
  10122. fi
  10123. ac_ext=cpp
  10124. ac_cpp='$CXXCPP $CPPFLAGS'
  10125. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10126. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10127. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10128. archive_cmds_need_lc_CXX=no
  10129. allow_undefined_flag_CXX=
  10130. always_export_symbols_CXX=no
  10131. archive_expsym_cmds_CXX=
  10132. compiler_needs_object_CXX=no
  10133. export_dynamic_flag_spec_CXX=
  10134. hardcode_direct_CXX=no
  10135. hardcode_direct_absolute_CXX=no
  10136. hardcode_libdir_flag_spec_CXX=
  10137. hardcode_libdir_flag_spec_ld_CXX=
  10138. hardcode_libdir_separator_CXX=
  10139. hardcode_minus_L_CXX=no
  10140. hardcode_shlibpath_var_CXX=unsupported
  10141. hardcode_automatic_CXX=no
  10142. inherit_rpath_CXX=no
  10143. module_cmds_CXX=
  10144. module_expsym_cmds_CXX=
  10145. link_all_deplibs_CXX=unknown
  10146. old_archive_cmds_CXX=$old_archive_cmds
  10147. reload_flag_CXX=$reload_flag
  10148. reload_cmds_CXX=$reload_cmds
  10149. no_undefined_flag_CXX=
  10150. whole_archive_flag_spec_CXX=
  10151. enable_shared_with_static_runtimes_CXX=no
  10152. # Source file extension for C++ test sources.
  10153. ac_ext=cpp
  10154. # Object file extension for compiled C++ test sources.
  10155. objext=o
  10156. objext_CXX=$objext
  10157. # No sense in running all these tests if we already determined that
  10158. # the CXX compiler isn't working. Some variables (like enable_shared)
  10159. # are currently assumed to apply to all compilers on this platform,
  10160. # and will be corrupted by setting them based on a non-working compiler.
  10161. if test "$_lt_caught_CXX_error" != yes; then
  10162. # Code to be used in simple compile tests
  10163. lt_simple_compile_test_code="int some_variable = 0;"
  10164. # Code to be used in simple link tests
  10165. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10166. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10167. # If no C compiler was specified, use CC.
  10168. LTCC=${LTCC-"$CC"}
  10169. # If no C compiler flags were specified, use CFLAGS.
  10170. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10171. # Allow CC to be a program name with arguments.
  10172. compiler=$CC
  10173. # save warnings/boilerplate of simple test code
  10174. ac_outfile=conftest.$ac_objext
  10175. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10176. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10177. _lt_compiler_boilerplate=`cat conftest.err`
  10178. $RM conftest*
  10179. ac_outfile=conftest.$ac_objext
  10180. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10181. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10182. _lt_linker_boilerplate=`cat conftest.err`
  10183. $RM -r conftest*
  10184. # Allow CC to be a program name with arguments.
  10185. lt_save_CC=$CC
  10186. lt_save_LD=$LD
  10187. lt_save_GCC=$GCC
  10188. GCC=$GXX
  10189. lt_save_with_gnu_ld=$with_gnu_ld
  10190. lt_save_path_LD=$lt_cv_path_LD
  10191. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10192. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10193. else
  10194. $as_unset lt_cv_prog_gnu_ld
  10195. fi
  10196. if test -n "${lt_cv_path_LDCXX+set}"; then
  10197. lt_cv_path_LD=$lt_cv_path_LDCXX
  10198. else
  10199. $as_unset lt_cv_path_LD
  10200. fi
  10201. test -z "${LDCXX+set}" || LD=$LDCXX
  10202. CC=${CXX-"c++"}
  10203. compiler=$CC
  10204. compiler_CXX=$CC
  10205. for cc_temp in $compiler""; do
  10206. case $cc_temp in
  10207. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10208. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10209. \-*) ;;
  10210. *) break;;
  10211. esac
  10212. done
  10213. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10214. if test -n "$compiler"; then
  10215. # We don't want -fno-exception when compiling C++ code, so set the
  10216. # no_builtin_flag separately
  10217. if test "$GXX" = yes; then
  10218. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10219. else
  10220. lt_prog_compiler_no_builtin_flag_CXX=
  10221. fi
  10222. if test "$GXX" = yes; then
  10223. # Set up default GNU C++ configuration
  10224. # Check whether --with-gnu-ld was given.
  10225. if test "${with_gnu_ld+set}" = set; then :
  10226. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10227. else
  10228. with_gnu_ld=no
  10229. fi
  10230. ac_prog=ld
  10231. if test "$GCC" = yes; then
  10232. # Check if gcc -print-prog-name=ld gives a path.
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10234. $as_echo_n "checking for ld used by $CC... " >&6; }
  10235. case $host in
  10236. *-*-mingw*)
  10237. # gcc leaves a trailing carriage return which upsets mingw
  10238. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10239. *)
  10240. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10241. esac
  10242. case $ac_prog in
  10243. # Accept absolute paths.
  10244. [\\/]* | ?:[\\/]*)
  10245. re_direlt='/[^/][^/]*/\.\./'
  10246. # Canonicalize the pathname of ld
  10247. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10248. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10249. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10250. done
  10251. test -z "$LD" && LD="$ac_prog"
  10252. ;;
  10253. "")
  10254. # If it fails, then pretend we aren't using GCC.
  10255. ac_prog=ld
  10256. ;;
  10257. *)
  10258. # If it is relative, then search for the first ld in PATH.
  10259. with_gnu_ld=unknown
  10260. ;;
  10261. esac
  10262. elif test "$with_gnu_ld" = yes; then
  10263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10264. $as_echo_n "checking for GNU ld... " >&6; }
  10265. else
  10266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10267. $as_echo_n "checking for non-GNU ld... " >&6; }
  10268. fi
  10269. if test "${lt_cv_path_LD+set}" = set; then :
  10270. $as_echo_n "(cached) " >&6
  10271. else
  10272. if test -z "$LD"; then
  10273. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10274. for ac_dir in $PATH; do
  10275. IFS="$lt_save_ifs"
  10276. test -z "$ac_dir" && ac_dir=.
  10277. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10278. lt_cv_path_LD="$ac_dir/$ac_prog"
  10279. # Check to see if the program is GNU ld. I'd rather use --version,
  10280. # but apparently some variants of GNU ld only accept -v.
  10281. # Break only if it was the GNU/non-GNU ld that we prefer.
  10282. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10283. *GNU* | *'with BFD'*)
  10284. test "$with_gnu_ld" != no && break
  10285. ;;
  10286. *)
  10287. test "$with_gnu_ld" != yes && break
  10288. ;;
  10289. esac
  10290. fi
  10291. done
  10292. IFS="$lt_save_ifs"
  10293. else
  10294. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10295. fi
  10296. fi
  10297. LD="$lt_cv_path_LD"
  10298. if test -n "$LD"; then
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10300. $as_echo "$LD" >&6; }
  10301. else
  10302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10303. $as_echo "no" >&6; }
  10304. fi
  10305. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10307. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10308. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10309. $as_echo_n "(cached) " >&6
  10310. else
  10311. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10312. case `$LD -v 2>&1 </dev/null` in
  10313. *GNU* | *'with BFD'*)
  10314. lt_cv_prog_gnu_ld=yes
  10315. ;;
  10316. *)
  10317. lt_cv_prog_gnu_ld=no
  10318. ;;
  10319. esac
  10320. fi
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10322. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10323. with_gnu_ld=$lt_cv_prog_gnu_ld
  10324. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10325. # archiving commands below assume that GNU ld is being used.
  10326. if test "$with_gnu_ld" = yes; then
  10327. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10328. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10329. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10330. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10331. # If archive_cmds runs LD, not CC, wlarc should be empty
  10332. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10333. # investigate it a little bit more. (MM)
  10334. wlarc='${wl}'
  10335. # ancient GNU ld didn't support --whole-archive et. al.
  10336. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10337. $GREP 'no-whole-archive' > /dev/null; then
  10338. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10339. else
  10340. whole_archive_flag_spec_CXX=
  10341. fi
  10342. else
  10343. with_gnu_ld=no
  10344. wlarc=
  10345. # A generic and very simple default shared library creation
  10346. # command for GNU C++ for the case where it uses the native
  10347. # linker, instead of GNU ld. If possible, this setting should
  10348. # overridden to take advantage of the native linker features on
  10349. # the platform it is being used on.
  10350. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10351. fi
  10352. # Commands to make compiler produce verbose output that lists
  10353. # what "hidden" libraries, object files and flags are used when
  10354. # linking a shared library.
  10355. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10356. else
  10357. GXX=no
  10358. with_gnu_ld=no
  10359. wlarc=
  10360. fi
  10361. # PORTME: fill in a description of your system's C++ link characteristics
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10363. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10364. ld_shlibs_CXX=yes
  10365. case $host_os in
  10366. aix3*)
  10367. # FIXME: insert proper C++ library support
  10368. ld_shlibs_CXX=no
  10369. ;;
  10370. aix[4-9]*)
  10371. if test "$host_cpu" = ia64; then
  10372. # On IA64, the linker does run time linking by default, so we don't
  10373. # have to do anything special.
  10374. aix_use_runtimelinking=no
  10375. exp_sym_flag='-Bexport'
  10376. no_entry_flag=""
  10377. else
  10378. aix_use_runtimelinking=no
  10379. # Test if we are trying to use run time linking or normal
  10380. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10381. # need to do runtime linking.
  10382. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10383. for ld_flag in $LDFLAGS; do
  10384. case $ld_flag in
  10385. *-brtl*)
  10386. aix_use_runtimelinking=yes
  10387. break
  10388. ;;
  10389. esac
  10390. done
  10391. ;;
  10392. esac
  10393. exp_sym_flag='-bexport'
  10394. no_entry_flag='-bnoentry'
  10395. fi
  10396. # When large executables or shared objects are built, AIX ld can
  10397. # have problems creating the table of contents. If linking a library
  10398. # or program results in "error TOC overflow" add -mminimal-toc to
  10399. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10400. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10401. archive_cmds_CXX=''
  10402. hardcode_direct_CXX=yes
  10403. hardcode_direct_absolute_CXX=yes
  10404. hardcode_libdir_separator_CXX=':'
  10405. link_all_deplibs_CXX=yes
  10406. file_list_spec_CXX='${wl}-f,'
  10407. if test "$GXX" = yes; then
  10408. case $host_os in aix4.[012]|aix4.[012].*)
  10409. # We only want to do this on AIX 4.2 and lower, the check
  10410. # below for broken collect2 doesn't work under 4.3+
  10411. collect2name=`${CC} -print-prog-name=collect2`
  10412. if test -f "$collect2name" &&
  10413. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10414. then
  10415. # We have reworked collect2
  10416. :
  10417. else
  10418. # We have old collect2
  10419. hardcode_direct_CXX=unsupported
  10420. # It fails to find uninstalled libraries when the uninstalled
  10421. # path is not listed in the libpath. Setting hardcode_minus_L
  10422. # to unsupported forces relinking
  10423. hardcode_minus_L_CXX=yes
  10424. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10425. hardcode_libdir_separator_CXX=
  10426. fi
  10427. esac
  10428. shared_flag='-shared'
  10429. if test "$aix_use_runtimelinking" = yes; then
  10430. shared_flag="$shared_flag "'${wl}-G'
  10431. fi
  10432. else
  10433. # not using gcc
  10434. if test "$host_cpu" = ia64; then
  10435. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10436. # chokes on -Wl,-G. The following line is correct:
  10437. shared_flag='-G'
  10438. else
  10439. if test "$aix_use_runtimelinking" = yes; then
  10440. shared_flag='${wl}-G'
  10441. else
  10442. shared_flag='${wl}-bM:SRE'
  10443. fi
  10444. fi
  10445. fi
  10446. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10447. # It seems that -bexpall does not export symbols beginning with
  10448. # underscore (_), so it is better to generate a list of symbols to
  10449. # export.
  10450. always_export_symbols_CXX=yes
  10451. if test "$aix_use_runtimelinking" = yes; then
  10452. # Warning - without using the other runtime loading flags (-brtl),
  10453. # -berok will link without error, but may produce a broken library.
  10454. allow_undefined_flag_CXX='-berok'
  10455. # Determine the default libpath from the value encoded in an empty
  10456. # executable.
  10457. if test x$gcc_no_link = xyes; then
  10458. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10459. fi
  10460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10461. /* end confdefs.h. */
  10462. int
  10463. main ()
  10464. {
  10465. ;
  10466. return 0;
  10467. }
  10468. _ACEOF
  10469. if ac_fn_cxx_try_link "$LINENO"; then :
  10470. lt_aix_libpath_sed='
  10471. /Import File Strings/,/^$/ {
  10472. /^0/ {
  10473. s/^0 *\(.*\)$/\1/
  10474. p
  10475. }
  10476. }'
  10477. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10478. # Check for a 64-bit object if we didn't find anything.
  10479. if test -z "$aix_libpath"; then
  10480. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10481. fi
  10482. fi
  10483. rm -f core conftest.err conftest.$ac_objext \
  10484. conftest$ac_exeext conftest.$ac_ext
  10485. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10486. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10487. archive_expsym_cmds_CXX='$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"
  10488. else
  10489. if test "$host_cpu" = ia64; then
  10490. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10491. allow_undefined_flag_CXX="-z nodefs"
  10492. archive_expsym_cmds_CXX="\$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"
  10493. else
  10494. # Determine the default libpath from the value encoded in an
  10495. # empty executable.
  10496. if test x$gcc_no_link = xyes; then
  10497. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  10498. fi
  10499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10500. /* end confdefs.h. */
  10501. int
  10502. main ()
  10503. {
  10504. ;
  10505. return 0;
  10506. }
  10507. _ACEOF
  10508. if ac_fn_cxx_try_link "$LINENO"; then :
  10509. lt_aix_libpath_sed='
  10510. /Import File Strings/,/^$/ {
  10511. /^0/ {
  10512. s/^0 *\(.*\)$/\1/
  10513. p
  10514. }
  10515. }'
  10516. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10517. # Check for a 64-bit object if we didn't find anything.
  10518. if test -z "$aix_libpath"; then
  10519. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10520. fi
  10521. fi
  10522. rm -f core conftest.err conftest.$ac_objext \
  10523. conftest$ac_exeext conftest.$ac_ext
  10524. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10525. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10526. # Warning - without using the other run time loading flags,
  10527. # -berok will link without error, but may produce a broken library.
  10528. no_undefined_flag_CXX=' ${wl}-bernotok'
  10529. allow_undefined_flag_CXX=' ${wl}-berok'
  10530. if test "$with_gnu_ld" = yes; then
  10531. # We only use this code for GNU lds that support --whole-archive.
  10532. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10533. else
  10534. # Exported symbols can be pulled into shared objects from archives
  10535. whole_archive_flag_spec_CXX='$convenience'
  10536. fi
  10537. archive_cmds_need_lc_CXX=yes
  10538. # This is similar to how AIX traditionally builds its shared
  10539. # libraries.
  10540. archive_expsym_cmds_CXX="\$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'
  10541. fi
  10542. fi
  10543. ;;
  10544. beos*)
  10545. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10546. allow_undefined_flag_CXX=unsupported
  10547. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10548. # support --undefined. This deserves some investigation. FIXME
  10549. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10550. else
  10551. ld_shlibs_CXX=no
  10552. fi
  10553. ;;
  10554. chorus*)
  10555. case $cc_basename in
  10556. *)
  10557. # FIXME: insert proper C++ library support
  10558. ld_shlibs_CXX=no
  10559. ;;
  10560. esac
  10561. ;;
  10562. cygwin* | mingw* | pw32* | cegcc*)
  10563. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10564. # as there is no search path for DLLs.
  10565. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10566. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10567. allow_undefined_flag_CXX=unsupported
  10568. always_export_symbols_CXX=no
  10569. enable_shared_with_static_runtimes_CXX=yes
  10570. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10571. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10572. # If the export-symbols file already is a .def file (1st line
  10573. # is EXPORTS), use it as is; otherwise, prepend...
  10574. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10575. cp $export_symbols $output_objdir/$soname.def;
  10576. else
  10577. echo EXPORTS > $output_objdir/$soname.def;
  10578. cat $export_symbols >> $output_objdir/$soname.def;
  10579. fi~
  10580. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10581. else
  10582. ld_shlibs_CXX=no
  10583. fi
  10584. ;;
  10585. darwin* | rhapsody*)
  10586. archive_cmds_need_lc_CXX=no
  10587. hardcode_direct_CXX=no
  10588. hardcode_automatic_CXX=yes
  10589. hardcode_shlibpath_var_CXX=unsupported
  10590. if test "$lt_cv_ld_force_load" = "yes"; then
  10591. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  10592. else
  10593. whole_archive_flag_spec_CXX=''
  10594. fi
  10595. link_all_deplibs_CXX=yes
  10596. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10597. case $cc_basename in
  10598. ifort*) _lt_dar_can_shared=yes ;;
  10599. *) _lt_dar_can_shared=$GCC ;;
  10600. esac
  10601. if test "$_lt_dar_can_shared" = "yes"; then
  10602. output_verbose_link_cmd=func_echo_all
  10603. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10604. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10605. archive_expsym_cmds_CXX="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}"
  10606. module_expsym_cmds_CXX="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}"
  10607. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10608. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  10609. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  10610. fi
  10611. else
  10612. ld_shlibs_CXX=no
  10613. fi
  10614. ;;
  10615. dgux*)
  10616. case $cc_basename in
  10617. ec++*)
  10618. # FIXME: insert proper C++ library support
  10619. ld_shlibs_CXX=no
  10620. ;;
  10621. ghcx*)
  10622. # Green Hills C++ Compiler
  10623. # FIXME: insert proper C++ library support
  10624. ld_shlibs_CXX=no
  10625. ;;
  10626. *)
  10627. # FIXME: insert proper C++ library support
  10628. ld_shlibs_CXX=no
  10629. ;;
  10630. esac
  10631. ;;
  10632. freebsd2.*)
  10633. # C++ shared libraries reported to be fairly broken before
  10634. # switch to ELF
  10635. ld_shlibs_CXX=no
  10636. ;;
  10637. freebsd-elf*)
  10638. archive_cmds_need_lc_CXX=no
  10639. ;;
  10640. freebsd* | dragonfly*)
  10641. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10642. # conventions
  10643. ld_shlibs_CXX=yes
  10644. ;;
  10645. gnu*)
  10646. ;;
  10647. haiku*)
  10648. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10649. link_all_deplibs_CXX=yes
  10650. ;;
  10651. hpux9*)
  10652. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10653. hardcode_libdir_separator_CXX=:
  10654. export_dynamic_flag_spec_CXX='${wl}-E'
  10655. hardcode_direct_CXX=yes
  10656. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10657. # but as the default
  10658. # location of the library.
  10659. case $cc_basename in
  10660. CC*)
  10661. # FIXME: insert proper C++ library support
  10662. ld_shlibs_CXX=no
  10663. ;;
  10664. aCC*)
  10665. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10666. # Commands to make compiler produce verbose output that lists
  10667. # what "hidden" libraries, object files and flags are used when
  10668. # linking a shared library.
  10669. #
  10670. # There doesn't appear to be a way to prevent this compiler from
  10671. # explicitly linking system object files so we need to strip them
  10672. # from the output so that they don't get included in the library
  10673. # dependencies.
  10674. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10675. ;;
  10676. *)
  10677. if test "$GXX" = yes; then
  10678. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10679. else
  10680. # FIXME: insert proper C++ library support
  10681. ld_shlibs_CXX=no
  10682. fi
  10683. ;;
  10684. esac
  10685. ;;
  10686. hpux10*|hpux11*)
  10687. if test $with_gnu_ld = no; then
  10688. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10689. hardcode_libdir_separator_CXX=:
  10690. case $host_cpu in
  10691. hppa*64*|ia64*)
  10692. ;;
  10693. *)
  10694. export_dynamic_flag_spec_CXX='${wl}-E'
  10695. ;;
  10696. esac
  10697. fi
  10698. case $host_cpu in
  10699. hppa*64*|ia64*)
  10700. hardcode_direct_CXX=no
  10701. hardcode_shlibpath_var_CXX=no
  10702. ;;
  10703. *)
  10704. hardcode_direct_CXX=yes
  10705. hardcode_direct_absolute_CXX=yes
  10706. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10707. # but as the default
  10708. # location of the library.
  10709. ;;
  10710. esac
  10711. case $cc_basename in
  10712. CC*)
  10713. # FIXME: insert proper C++ library support
  10714. ld_shlibs_CXX=no
  10715. ;;
  10716. aCC*)
  10717. case $host_cpu in
  10718. hppa*64*)
  10719. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10720. ;;
  10721. ia64*)
  10722. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10723. ;;
  10724. *)
  10725. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10726. ;;
  10727. esac
  10728. # Commands to make compiler produce verbose output that lists
  10729. # what "hidden" libraries, object files and flags are used when
  10730. # linking a shared library.
  10731. #
  10732. # There doesn't appear to be a way to prevent this compiler from
  10733. # explicitly linking system object files so we need to strip them
  10734. # from the output so that they don't get included in the library
  10735. # dependencies.
  10736. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10737. ;;
  10738. *)
  10739. if test "$GXX" = yes; then
  10740. if test $with_gnu_ld = no; then
  10741. case $host_cpu in
  10742. hppa*64*)
  10743. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10744. ;;
  10745. ia64*)
  10746. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10747. ;;
  10748. *)
  10749. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10750. ;;
  10751. esac
  10752. fi
  10753. else
  10754. # FIXME: insert proper C++ library support
  10755. ld_shlibs_CXX=no
  10756. fi
  10757. ;;
  10758. esac
  10759. ;;
  10760. interix[3-9]*)
  10761. hardcode_direct_CXX=no
  10762. hardcode_shlibpath_var_CXX=no
  10763. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10764. export_dynamic_flag_spec_CXX='${wl}-E'
  10765. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10766. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10767. # default) and relocated if they conflict, which is a slow very memory
  10768. # consuming and fragmenting process. To avoid this, we pick a random,
  10769. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10770. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10771. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10772. archive_expsym_cmds_CXX='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'
  10773. ;;
  10774. irix5* | irix6*)
  10775. case $cc_basename in
  10776. CC*)
  10777. # SGI C++
  10778. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  10779. # Archives containing C++ object files must be created using
  10780. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10781. # necessary to make sure instantiated templates are included
  10782. # in the archive.
  10783. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10784. ;;
  10785. *)
  10786. if test "$GXX" = yes; then
  10787. if test "$with_gnu_ld" = no; then
  10788. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
  10789. else
  10790. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  10791. fi
  10792. fi
  10793. link_all_deplibs_CXX=yes
  10794. ;;
  10795. esac
  10796. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10797. hardcode_libdir_separator_CXX=:
  10798. inherit_rpath_CXX=yes
  10799. ;;
  10800. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10801. case $cc_basename in
  10802. KCC*)
  10803. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10804. # KCC will only create a shared library if the output file
  10805. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10806. # to its proper name (with version) after linking.
  10807. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10808. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10809. # Commands to make compiler produce verbose output that lists
  10810. # what "hidden" libraries, object files and flags are used when
  10811. # linking a shared library.
  10812. #
  10813. # There doesn't appear to be a way to prevent this compiler from
  10814. # explicitly linking system object files so we need to strip them
  10815. # from the output so that they don't get included in the library
  10816. # dependencies.
  10817. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10818. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10819. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10820. # Archives containing C++ object files must be created using
  10821. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10822. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10823. ;;
  10824. icpc* | ecpc* )
  10825. # Intel C++
  10826. with_gnu_ld=yes
  10827. # version 8.0 and above of icpc choke on multiply defined symbols
  10828. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10829. # earlier do not add the objects themselves.
  10830. case `$CC -V 2>&1` in
  10831. *"Version 7."*)
  10832. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10833. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10834. ;;
  10835. *) # Version 8.0 or newer
  10836. tmp_idyn=
  10837. case $host_cpu in
  10838. ia64*) tmp_idyn=' -i_dynamic';;
  10839. esac
  10840. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10841. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10842. ;;
  10843. esac
  10844. archive_cmds_need_lc_CXX=no
  10845. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10846. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10847. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10848. ;;
  10849. pgCC* | pgcpp*)
  10850. # Portland Group C++ compiler
  10851. case `$CC -V` in
  10852. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10853. prelink_cmds_CXX='tpldir=Template.dir~
  10854. rm -rf $tpldir~
  10855. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10856. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10857. old_archive_cmds_CXX='tpldir=Template.dir~
  10858. rm -rf $tpldir~
  10859. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10860. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10861. $RANLIB $oldlib'
  10862. archive_cmds_CXX='tpldir=Template.dir~
  10863. rm -rf $tpldir~
  10864. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10865. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10866. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10867. rm -rf $tpldir~
  10868. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10869. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10870. ;;
  10871. *) # Version 6 and above use weak symbols
  10872. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10873. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10874. ;;
  10875. esac
  10876. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10877. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10878. whole_archive_flag_spec_CXX='${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'
  10879. ;;
  10880. cxx*)
  10881. # Compaq C++
  10882. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10883. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  10884. runpath_var=LD_RUN_PATH
  10885. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10886. hardcode_libdir_separator_CXX=:
  10887. # Commands to make compiler produce verbose output that lists
  10888. # what "hidden" libraries, object files and flags are used when
  10889. # linking a shared library.
  10890. #
  10891. # There doesn't appear to be a way to prevent this compiler from
  10892. # explicitly linking system object files so we need to strip them
  10893. # from the output so that they don't get included in the library
  10894. # dependencies.
  10895. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  10896. ;;
  10897. xl* | mpixl* | bgxl*)
  10898. # IBM XL 8.0 on PPC, with GNU ld
  10899. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10900. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10901. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10902. if test "x$supports_anon_versioning" = xyes; then
  10903. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10904. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10905. echo "local: *; };" >> $output_objdir/$libname.ver~
  10906. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10907. fi
  10908. ;;
  10909. *)
  10910. case `$CC -V 2>&1 | sed 5q` in
  10911. *Sun\ C*)
  10912. # Sun C++ 5.9
  10913. no_undefined_flag_CXX=' -zdefs'
  10914. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10915. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  10916. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10917. whole_archive_flag_spec_CXX='${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'
  10918. compiler_needs_object_CXX=yes
  10919. # Not sure whether something based on
  10920. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10921. # would be better.
  10922. output_verbose_link_cmd='func_echo_all'
  10923. # Archives containing C++ object files must be created using
  10924. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10925. # necessary to make sure instantiated templates are included
  10926. # in the archive.
  10927. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10928. ;;
  10929. esac
  10930. ;;
  10931. esac
  10932. ;;
  10933. lynxos*)
  10934. # FIXME: insert proper C++ library support
  10935. ld_shlibs_CXX=no
  10936. ;;
  10937. m88k*)
  10938. # FIXME: insert proper C++ library support
  10939. ld_shlibs_CXX=no
  10940. ;;
  10941. mvs*)
  10942. case $cc_basename in
  10943. cxx*)
  10944. # FIXME: insert proper C++ library support
  10945. ld_shlibs_CXX=no
  10946. ;;
  10947. *)
  10948. # FIXME: insert proper C++ library support
  10949. ld_shlibs_CXX=no
  10950. ;;
  10951. esac
  10952. ;;
  10953. netbsd*)
  10954. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10955. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10956. wlarc=
  10957. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10958. hardcode_direct_CXX=yes
  10959. hardcode_shlibpath_var_CXX=no
  10960. fi
  10961. # Workaround some broken pre-1.5 toolchains
  10962. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10963. ;;
  10964. *nto* | *qnx*)
  10965. ld_shlibs_CXX=yes
  10966. ;;
  10967. openbsd2*)
  10968. # C++ shared libraries are fairly broken
  10969. ld_shlibs_CXX=no
  10970. ;;
  10971. openbsd*)
  10972. if test -f /usr/libexec/ld.so; then
  10973. hardcode_direct_CXX=yes
  10974. hardcode_shlibpath_var_CXX=no
  10975. hardcode_direct_absolute_CXX=yes
  10976. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10977. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10978. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10979. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10980. export_dynamic_flag_spec_CXX='${wl}-E'
  10981. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10982. fi
  10983. output_verbose_link_cmd=func_echo_all
  10984. else
  10985. ld_shlibs_CXX=no
  10986. fi
  10987. ;;
  10988. osf3* | osf4* | osf5*)
  10989. case $cc_basename in
  10990. KCC*)
  10991. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10992. # KCC will only create a shared library if the output file
  10993. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10994. # to its proper name (with version) after linking.
  10995. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10996. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10997. hardcode_libdir_separator_CXX=:
  10998. # Archives containing C++ object files must be created using
  10999. # the KAI C++ compiler.
  11000. case $host in
  11001. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11002. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11003. esac
  11004. ;;
  11005. RCC*)
  11006. # Rational C++ 2.4.1
  11007. # FIXME: insert proper C++ library support
  11008. ld_shlibs_CXX=no
  11009. ;;
  11010. cxx*)
  11011. case $host in
  11012. osf3*)
  11013. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11014. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11015. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11016. ;;
  11017. *)
  11018. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11019. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11020. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11021. echo "-hidden">> $lib.exp~
  11022. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11023. $RM $lib.exp'
  11024. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11025. ;;
  11026. esac
  11027. hardcode_libdir_separator_CXX=:
  11028. # Commands to make compiler produce verbose output that lists
  11029. # what "hidden" libraries, object files and flags are used when
  11030. # linking a shared library.
  11031. #
  11032. # There doesn't appear to be a way to prevent this compiler from
  11033. # explicitly linking system object files so we need to strip them
  11034. # from the output so that they don't get included in the library
  11035. # dependencies.
  11036. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11037. ;;
  11038. *)
  11039. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11040. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11041. case $host in
  11042. osf3*)
  11043. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  11044. ;;
  11045. *)
  11046. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  11047. ;;
  11048. esac
  11049. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11050. hardcode_libdir_separator_CXX=:
  11051. # Commands to make compiler produce verbose output that lists
  11052. # what "hidden" libraries, object files and flags are used when
  11053. # linking a shared library.
  11054. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11055. else
  11056. # FIXME: insert proper C++ library support
  11057. ld_shlibs_CXX=no
  11058. fi
  11059. ;;
  11060. esac
  11061. ;;
  11062. psos*)
  11063. # FIXME: insert proper C++ library support
  11064. ld_shlibs_CXX=no
  11065. ;;
  11066. sunos4*)
  11067. case $cc_basename in
  11068. CC*)
  11069. # Sun C++ 4.x
  11070. # FIXME: insert proper C++ library support
  11071. ld_shlibs_CXX=no
  11072. ;;
  11073. lcc*)
  11074. # Lucid
  11075. # FIXME: insert proper C++ library support
  11076. ld_shlibs_CXX=no
  11077. ;;
  11078. *)
  11079. # FIXME: insert proper C++ library support
  11080. ld_shlibs_CXX=no
  11081. ;;
  11082. esac
  11083. ;;
  11084. solaris*)
  11085. case $cc_basename in
  11086. CC*)
  11087. # Sun C++ 4.2, 5.x and Centerline C++
  11088. archive_cmds_need_lc_CXX=yes
  11089. no_undefined_flag_CXX=' -zdefs'
  11090. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11091. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11092. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11093. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11094. hardcode_shlibpath_var_CXX=no
  11095. case $host_os in
  11096. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11097. *)
  11098. # The compiler driver will combine and reorder linker options,
  11099. # but understands `-z linker_flag'.
  11100. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11101. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11102. ;;
  11103. esac
  11104. link_all_deplibs_CXX=yes
  11105. output_verbose_link_cmd='func_echo_all'
  11106. # Archives containing C++ object files must be created using
  11107. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11108. # necessary to make sure instantiated templates are included
  11109. # in the archive.
  11110. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11111. ;;
  11112. gcx*)
  11113. # Green Hills C++ Compiler
  11114. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11115. # The C++ compiler must be used to create the archive.
  11116. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11117. ;;
  11118. *)
  11119. # GNU C++ compiler with Solaris linker
  11120. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11121. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11122. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11123. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11124. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11125. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11126. # Commands to make compiler produce verbose output that lists
  11127. # what "hidden" libraries, object files and flags are used when
  11128. # linking a shared library.
  11129. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11130. else
  11131. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11132. # platform.
  11133. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11134. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11135. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11136. # Commands to make compiler produce verbose output that lists
  11137. # what "hidden" libraries, object files and flags are used when
  11138. # linking a shared library.
  11139. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11140. fi
  11141. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11142. case $host_os in
  11143. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11144. *)
  11145. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11146. ;;
  11147. esac
  11148. fi
  11149. ;;
  11150. esac
  11151. ;;
  11152. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11153. no_undefined_flag_CXX='${wl}-z,text'
  11154. archive_cmds_need_lc_CXX=no
  11155. hardcode_shlibpath_var_CXX=no
  11156. runpath_var='LD_RUN_PATH'
  11157. case $cc_basename in
  11158. CC*)
  11159. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11160. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11161. ;;
  11162. *)
  11163. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11164. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11165. ;;
  11166. esac
  11167. ;;
  11168. sysv5* | sco3.2v5* | sco5v6*)
  11169. # Note: We can NOT use -z defs as we might desire, because we do not
  11170. # link with -lc, and that would cause any symbols used from libc to
  11171. # always be unresolved, which means just about no library would
  11172. # ever link correctly. If we're not using GNU ld we use -z text
  11173. # though, which does catch some bad symbols but isn't as heavy-handed
  11174. # as -z defs.
  11175. no_undefined_flag_CXX='${wl}-z,text'
  11176. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11177. archive_cmds_need_lc_CXX=no
  11178. hardcode_shlibpath_var_CXX=no
  11179. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11180. hardcode_libdir_separator_CXX=':'
  11181. link_all_deplibs_CXX=yes
  11182. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11183. runpath_var='LD_RUN_PATH'
  11184. case $cc_basename in
  11185. CC*)
  11186. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11187. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11188. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11189. '"$old_archive_cmds_CXX"
  11190. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11191. '"$reload_cmds_CXX"
  11192. ;;
  11193. *)
  11194. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11195. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11196. ;;
  11197. esac
  11198. ;;
  11199. tandem*)
  11200. case $cc_basename in
  11201. NCC*)
  11202. # NonStop-UX NCC 3.20
  11203. # FIXME: insert proper C++ library support
  11204. ld_shlibs_CXX=no
  11205. ;;
  11206. *)
  11207. # FIXME: insert proper C++ library support
  11208. ld_shlibs_CXX=no
  11209. ;;
  11210. esac
  11211. ;;
  11212. vxworks*)
  11213. # FIXME: insert proper C++ library support
  11214. ld_shlibs_CXX=no
  11215. ;;
  11216. *)
  11217. # FIXME: insert proper C++ library support
  11218. ld_shlibs_CXX=no
  11219. ;;
  11220. esac
  11221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11222. $as_echo "$ld_shlibs_CXX" >&6; }
  11223. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11224. GCC_CXX="$GXX"
  11225. LD_CXX="$LD"
  11226. ## CAVEAT EMPTOR:
  11227. ## There is no encapsulation within the following macros, do not change
  11228. ## the running order or otherwise move them around unless you know exactly
  11229. ## what you are doing...
  11230. # Dependencies to place before and after the object being linked:
  11231. predep_objects_CXX=
  11232. postdep_objects_CXX=
  11233. predeps_CXX=
  11234. postdeps_CXX=
  11235. compiler_lib_search_path_CXX=
  11236. cat > conftest.$ac_ext <<_LT_EOF
  11237. class Foo
  11238. {
  11239. public:
  11240. Foo (void) { a = 0; }
  11241. private:
  11242. int a;
  11243. };
  11244. _LT_EOF
  11245. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11246. (eval $ac_compile) 2>&5
  11247. ac_status=$?
  11248. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11249. test $ac_status = 0; }; then
  11250. # Parse the compiler output and extract the necessary
  11251. # objects, libraries and library flags.
  11252. # Sentinel used to keep track of whether or not we are before
  11253. # the conftest object file.
  11254. pre_test_object_deps_done=no
  11255. for p in `eval "$output_verbose_link_cmd"`; do
  11256. case $p in
  11257. -L* | -R* | -l*)
  11258. # Some compilers place space between "-{L,R}" and the path.
  11259. # Remove the space.
  11260. if test $p = "-L" ||
  11261. test $p = "-R"; then
  11262. prev=$p
  11263. continue
  11264. else
  11265. prev=
  11266. fi
  11267. if test "$pre_test_object_deps_done" = no; then
  11268. case $p in
  11269. -L* | -R*)
  11270. # Internal compiler library paths should come after those
  11271. # provided the user. The postdeps already come after the
  11272. # user supplied libs so there is no need to process them.
  11273. if test -z "$compiler_lib_search_path_CXX"; then
  11274. compiler_lib_search_path_CXX="${prev}${p}"
  11275. else
  11276. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11277. fi
  11278. ;;
  11279. # The "-l" case would never come before the object being
  11280. # linked, so don't bother handling this case.
  11281. esac
  11282. else
  11283. if test -z "$postdeps_CXX"; then
  11284. postdeps_CXX="${prev}${p}"
  11285. else
  11286. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11287. fi
  11288. fi
  11289. ;;
  11290. *.$objext)
  11291. # This assumes that the test object file only shows up
  11292. # once in the compiler output.
  11293. if test "$p" = "conftest.$objext"; then
  11294. pre_test_object_deps_done=yes
  11295. continue
  11296. fi
  11297. if test "$pre_test_object_deps_done" = no; then
  11298. if test -z "$predep_objects_CXX"; then
  11299. predep_objects_CXX="$p"
  11300. else
  11301. predep_objects_CXX="$predep_objects_CXX $p"
  11302. fi
  11303. else
  11304. if test -z "$postdep_objects_CXX"; then
  11305. postdep_objects_CXX="$p"
  11306. else
  11307. postdep_objects_CXX="$postdep_objects_CXX $p"
  11308. fi
  11309. fi
  11310. ;;
  11311. *) ;; # Ignore the rest.
  11312. esac
  11313. done
  11314. # Clean up.
  11315. rm -f a.out a.exe
  11316. else
  11317. echo "libtool.m4: error: problem compiling CXX test program"
  11318. fi
  11319. $RM -f confest.$objext
  11320. # PORTME: override above test on systems where it is broken
  11321. case $host_os in
  11322. interix[3-9]*)
  11323. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11324. # hack all around it, let's just trust "g++" to DTRT.
  11325. predep_objects_CXX=
  11326. postdep_objects_CXX=
  11327. postdeps_CXX=
  11328. ;;
  11329. linux*)
  11330. case `$CC -V 2>&1 | sed 5q` in
  11331. *Sun\ C*)
  11332. # Sun C++ 5.9
  11333. # The more standards-conforming stlport4 library is
  11334. # incompatible with the Cstd library. Avoid specifying
  11335. # it if it's in CXXFLAGS. Ignore libCrun as
  11336. # -library=stlport4 depends on it.
  11337. case " $CXX $CXXFLAGS " in
  11338. *" -library=stlport4 "*)
  11339. solaris_use_stlport4=yes
  11340. ;;
  11341. esac
  11342. if test "$solaris_use_stlport4" != yes; then
  11343. postdeps_CXX='-library=Cstd -library=Crun'
  11344. fi
  11345. ;;
  11346. esac
  11347. ;;
  11348. solaris*)
  11349. case $cc_basename in
  11350. CC*)
  11351. # The more standards-conforming stlport4 library is
  11352. # incompatible with the Cstd library. Avoid specifying
  11353. # it if it's in CXXFLAGS. Ignore libCrun as
  11354. # -library=stlport4 depends on it.
  11355. case " $CXX $CXXFLAGS " in
  11356. *" -library=stlport4 "*)
  11357. solaris_use_stlport4=yes
  11358. ;;
  11359. esac
  11360. # Adding this requires a known-good setup of shared libraries for
  11361. # Sun compiler versions before 5.6, else PIC objects from an old
  11362. # archive will be linked into the output, leading to subtle bugs.
  11363. if test "$solaris_use_stlport4" != yes; then
  11364. postdeps_CXX='-library=Cstd -library=Crun'
  11365. fi
  11366. ;;
  11367. esac
  11368. ;;
  11369. esac
  11370. case " $postdeps_CXX " in
  11371. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11372. esac
  11373. compiler_lib_search_dirs_CXX=
  11374. if test -n "${compiler_lib_search_path_CXX}"; then
  11375. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11376. fi
  11377. lt_prog_compiler_wl_CXX=
  11378. lt_prog_compiler_pic_CXX=
  11379. lt_prog_compiler_static_CXX=
  11380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11381. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11382. # C++ specific cases for pic, static, wl, etc.
  11383. if test "$GXX" = yes; then
  11384. lt_prog_compiler_wl_CXX='-Wl,'
  11385. lt_prog_compiler_static_CXX='-static'
  11386. case $host_os in
  11387. aix*)
  11388. # All AIX code is PIC.
  11389. if test "$host_cpu" = ia64; then
  11390. # AIX 5 now supports IA64 processor
  11391. lt_prog_compiler_static_CXX='-Bstatic'
  11392. fi
  11393. lt_prog_compiler_pic_CXX='-fPIC'
  11394. ;;
  11395. amigaos*)
  11396. case $host_cpu in
  11397. powerpc)
  11398. # see comment about AmigaOS4 .so support
  11399. lt_prog_compiler_pic_CXX='-fPIC'
  11400. ;;
  11401. m68k)
  11402. # FIXME: we need at least 68020 code to build shared libraries, but
  11403. # adding the `-m68020' flag to GCC prevents building anything better,
  11404. # like `-m68040'.
  11405. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11406. ;;
  11407. esac
  11408. ;;
  11409. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11410. # PIC is the default for these OSes.
  11411. ;;
  11412. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11413. # This hack is so that the source file can tell whether it is being
  11414. # built for inclusion in a dll (and should export symbols for example).
  11415. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11416. # (--disable-auto-import) libraries
  11417. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11418. ;;
  11419. darwin* | rhapsody*)
  11420. # PIC is the default on this platform
  11421. # Common symbols not allowed in MH_DYLIB files
  11422. lt_prog_compiler_pic_CXX='-fno-common'
  11423. ;;
  11424. *djgpp*)
  11425. # DJGPP does not support shared libraries at all
  11426. lt_prog_compiler_pic_CXX=
  11427. ;;
  11428. haiku*)
  11429. # PIC is the default for Haiku.
  11430. # The "-static" flag exists, but is broken.
  11431. lt_prog_compiler_static_CXX=
  11432. ;;
  11433. interix[3-9]*)
  11434. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11435. # Instead, we relocate shared libraries at runtime.
  11436. ;;
  11437. sysv4*MP*)
  11438. if test -d /usr/nec; then
  11439. lt_prog_compiler_pic_CXX=-Kconform_pic
  11440. fi
  11441. ;;
  11442. hpux*)
  11443. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11444. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11445. # sets the default TLS model and affects inlining.
  11446. case $host_cpu in
  11447. hppa*64*)
  11448. ;;
  11449. *)
  11450. lt_prog_compiler_pic_CXX='-fPIC'
  11451. ;;
  11452. esac
  11453. ;;
  11454. *qnx* | *nto*)
  11455. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11456. # it will coredump.
  11457. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11458. ;;
  11459. *)
  11460. lt_prog_compiler_pic_CXX='-fPIC'
  11461. ;;
  11462. esac
  11463. else
  11464. case $host_os in
  11465. aix[4-9]*)
  11466. # All AIX code is PIC.
  11467. if test "$host_cpu" = ia64; then
  11468. # AIX 5 now supports IA64 processor
  11469. lt_prog_compiler_static_CXX='-Bstatic'
  11470. else
  11471. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11472. fi
  11473. ;;
  11474. chorus*)
  11475. case $cc_basename in
  11476. cxch68*)
  11477. # Green Hills C++ Compiler
  11478. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  11479. ;;
  11480. esac
  11481. ;;
  11482. dgux*)
  11483. case $cc_basename in
  11484. ec++*)
  11485. lt_prog_compiler_pic_CXX='-KPIC'
  11486. ;;
  11487. ghcx*)
  11488. # Green Hills C++ Compiler
  11489. lt_prog_compiler_pic_CXX='-pic'
  11490. ;;
  11491. *)
  11492. ;;
  11493. esac
  11494. ;;
  11495. freebsd* | dragonfly*)
  11496. # FreeBSD uses GNU C++
  11497. ;;
  11498. hpux9* | hpux10* | hpux11*)
  11499. case $cc_basename in
  11500. CC*)
  11501. lt_prog_compiler_wl_CXX='-Wl,'
  11502. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11503. if test "$host_cpu" != ia64; then
  11504. lt_prog_compiler_pic_CXX='+Z'
  11505. fi
  11506. ;;
  11507. aCC*)
  11508. lt_prog_compiler_wl_CXX='-Wl,'
  11509. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11510. case $host_cpu in
  11511. hppa*64*|ia64*)
  11512. # +Z the default
  11513. ;;
  11514. *)
  11515. lt_prog_compiler_pic_CXX='+Z'
  11516. ;;
  11517. esac
  11518. ;;
  11519. *)
  11520. ;;
  11521. esac
  11522. ;;
  11523. interix*)
  11524. # This is c89, which is MS Visual C++ (no shared libs)
  11525. # Anyone wants to do a port?
  11526. ;;
  11527. irix5* | irix6* | nonstopux*)
  11528. case $cc_basename in
  11529. CC*)
  11530. lt_prog_compiler_wl_CXX='-Wl,'
  11531. lt_prog_compiler_static_CXX='-non_shared'
  11532. # CC pic flag -KPIC is the default.
  11533. ;;
  11534. *)
  11535. ;;
  11536. esac
  11537. ;;
  11538. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11539. case $cc_basename in
  11540. KCC*)
  11541. # KAI C++ Compiler
  11542. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11543. lt_prog_compiler_pic_CXX='-fPIC'
  11544. ;;
  11545. ecpc* )
  11546. # old Intel C++ for x86_64 which still supported -KPIC.
  11547. lt_prog_compiler_wl_CXX='-Wl,'
  11548. lt_prog_compiler_pic_CXX='-KPIC'
  11549. lt_prog_compiler_static_CXX='-static'
  11550. ;;
  11551. icpc* )
  11552. # Intel C++, used to be incompatible with GCC.
  11553. # ICC 10 doesn't accept -KPIC any more.
  11554. lt_prog_compiler_wl_CXX='-Wl,'
  11555. lt_prog_compiler_pic_CXX='-fPIC'
  11556. lt_prog_compiler_static_CXX='-static'
  11557. ;;
  11558. pgCC* | pgcpp*)
  11559. # Portland Group C++ compiler
  11560. lt_prog_compiler_wl_CXX='-Wl,'
  11561. lt_prog_compiler_pic_CXX='-fpic'
  11562. lt_prog_compiler_static_CXX='-Bstatic'
  11563. ;;
  11564. cxx*)
  11565. # Compaq C++
  11566. # Make sure the PIC flag is empty. It appears that all Alpha
  11567. # Linux and Compaq Tru64 Unix objects are PIC.
  11568. lt_prog_compiler_pic_CXX=
  11569. lt_prog_compiler_static_CXX='-non_shared'
  11570. ;;
  11571. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11572. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11573. lt_prog_compiler_wl_CXX='-Wl,'
  11574. lt_prog_compiler_pic_CXX='-qpic'
  11575. lt_prog_compiler_static_CXX='-qstaticlink'
  11576. ;;
  11577. *)
  11578. case `$CC -V 2>&1 | sed 5q` in
  11579. *Sun\ C*)
  11580. # Sun C++ 5.9
  11581. lt_prog_compiler_pic_CXX='-KPIC'
  11582. lt_prog_compiler_static_CXX='-Bstatic'
  11583. lt_prog_compiler_wl_CXX='-Qoption ld '
  11584. ;;
  11585. esac
  11586. ;;
  11587. esac
  11588. ;;
  11589. lynxos*)
  11590. ;;
  11591. m88k*)
  11592. ;;
  11593. mvs*)
  11594. case $cc_basename in
  11595. cxx*)
  11596. lt_prog_compiler_pic_CXX='-W c,exportall'
  11597. ;;
  11598. *)
  11599. ;;
  11600. esac
  11601. ;;
  11602. netbsd*)
  11603. ;;
  11604. *qnx* | *nto*)
  11605. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11606. # it will coredump.
  11607. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11608. ;;
  11609. osf3* | osf4* | osf5*)
  11610. case $cc_basename in
  11611. KCC*)
  11612. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11613. ;;
  11614. RCC*)
  11615. # Rational C++ 2.4.1
  11616. lt_prog_compiler_pic_CXX='-pic'
  11617. ;;
  11618. cxx*)
  11619. # Digital/Compaq C++
  11620. lt_prog_compiler_wl_CXX='-Wl,'
  11621. # Make sure the PIC flag is empty. It appears that all Alpha
  11622. # Linux and Compaq Tru64 Unix objects are PIC.
  11623. lt_prog_compiler_pic_CXX=
  11624. lt_prog_compiler_static_CXX='-non_shared'
  11625. ;;
  11626. *)
  11627. ;;
  11628. esac
  11629. ;;
  11630. psos*)
  11631. ;;
  11632. solaris*)
  11633. case $cc_basename in
  11634. CC*)
  11635. # Sun C++ 4.2, 5.x and Centerline C++
  11636. lt_prog_compiler_pic_CXX='-KPIC'
  11637. lt_prog_compiler_static_CXX='-Bstatic'
  11638. lt_prog_compiler_wl_CXX='-Qoption ld '
  11639. ;;
  11640. gcx*)
  11641. # Green Hills C++ Compiler
  11642. lt_prog_compiler_pic_CXX='-PIC'
  11643. ;;
  11644. *)
  11645. ;;
  11646. esac
  11647. ;;
  11648. sunos4*)
  11649. case $cc_basename in
  11650. CC*)
  11651. # Sun C++ 4.x
  11652. lt_prog_compiler_pic_CXX='-pic'
  11653. lt_prog_compiler_static_CXX='-Bstatic'
  11654. ;;
  11655. lcc*)
  11656. # Lucid
  11657. lt_prog_compiler_pic_CXX='-pic'
  11658. ;;
  11659. *)
  11660. ;;
  11661. esac
  11662. ;;
  11663. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11664. case $cc_basename in
  11665. CC*)
  11666. lt_prog_compiler_wl_CXX='-Wl,'
  11667. lt_prog_compiler_pic_CXX='-KPIC'
  11668. lt_prog_compiler_static_CXX='-Bstatic'
  11669. ;;
  11670. esac
  11671. ;;
  11672. tandem*)
  11673. case $cc_basename in
  11674. NCC*)
  11675. # NonStop-UX NCC 3.20
  11676. lt_prog_compiler_pic_CXX='-KPIC'
  11677. ;;
  11678. *)
  11679. ;;
  11680. esac
  11681. ;;
  11682. vxworks*)
  11683. ;;
  11684. *)
  11685. lt_prog_compiler_can_build_shared_CXX=no
  11686. ;;
  11687. esac
  11688. fi
  11689. case $host_os in
  11690. # For platforms which do not support PIC, -DPIC is meaningless:
  11691. *djgpp*)
  11692. lt_prog_compiler_pic_CXX=
  11693. ;;
  11694. *)
  11695. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11696. ;;
  11697. esac
  11698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11699. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11700. #
  11701. # Check to make sure the PIC flag actually works.
  11702. #
  11703. if test -n "$lt_prog_compiler_pic_CXX"; then
  11704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11705. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11706. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11707. $as_echo_n "(cached) " >&6
  11708. else
  11709. lt_cv_prog_compiler_pic_works_CXX=no
  11710. ac_outfile=conftest.$ac_objext
  11711. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11712. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11713. # Insert the option either (1) after the last *FLAGS variable, or
  11714. # (2) before a word containing "conftest.", or (3) at the end.
  11715. # Note that $ac_compile itself does not contain backslashes and begins
  11716. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11717. # The option is referenced via a variable to avoid confusing sed.
  11718. lt_compile=`echo "$ac_compile" | $SED \
  11719. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11720. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11721. -e 's:$: $lt_compiler_flag:'`
  11722. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11723. (eval "$lt_compile" 2>conftest.err)
  11724. ac_status=$?
  11725. cat conftest.err >&5
  11726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11727. if (exit $ac_status) && test -s "$ac_outfile"; then
  11728. # The compiler can only warn and ignore the option if not recognized
  11729. # So say no if there are warnings other than the usual output.
  11730. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11731. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11732. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11733. lt_cv_prog_compiler_pic_works_CXX=yes
  11734. fi
  11735. fi
  11736. $RM conftest*
  11737. fi
  11738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11739. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11740. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11741. case $lt_prog_compiler_pic_CXX in
  11742. "" | " "*) ;;
  11743. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11744. esac
  11745. else
  11746. lt_prog_compiler_pic_CXX=
  11747. lt_prog_compiler_can_build_shared_CXX=no
  11748. fi
  11749. fi
  11750. #
  11751. # Check to make sure the static flag actually works.
  11752. #
  11753. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11755. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11756. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11757. $as_echo_n "(cached) " >&6
  11758. else
  11759. lt_cv_prog_compiler_static_works_CXX=no
  11760. save_LDFLAGS="$LDFLAGS"
  11761. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11762. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11763. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11764. # The linker can only warn and ignore the option if not recognized
  11765. # So say no if there are warnings
  11766. if test -s conftest.err; then
  11767. # Append any errors to the config.log.
  11768. cat conftest.err 1>&5
  11769. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11770. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11771. if diff conftest.exp conftest.er2 >/dev/null; then
  11772. lt_cv_prog_compiler_static_works_CXX=yes
  11773. fi
  11774. else
  11775. lt_cv_prog_compiler_static_works_CXX=yes
  11776. fi
  11777. fi
  11778. $RM -r conftest*
  11779. LDFLAGS="$save_LDFLAGS"
  11780. fi
  11781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11782. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11783. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11784. :
  11785. else
  11786. lt_prog_compiler_static_CXX=
  11787. fi
  11788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11789. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11790. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11791. $as_echo_n "(cached) " >&6
  11792. else
  11793. lt_cv_prog_compiler_c_o_CXX=no
  11794. $RM -r conftest 2>/dev/null
  11795. mkdir conftest
  11796. cd conftest
  11797. mkdir out
  11798. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11799. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11800. # Insert the option either (1) after the last *FLAGS variable, or
  11801. # (2) before a word containing "conftest.", or (3) at the end.
  11802. # Note that $ac_compile itself does not contain backslashes and begins
  11803. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11804. lt_compile=`echo "$ac_compile" | $SED \
  11805. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11806. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11807. -e 's:$: $lt_compiler_flag:'`
  11808. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11809. (eval "$lt_compile" 2>out/conftest.err)
  11810. ac_status=$?
  11811. cat out/conftest.err >&5
  11812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11813. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11814. then
  11815. # The compiler can only warn and ignore the option if not recognized
  11816. # So say no if there are warnings
  11817. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11818. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11819. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11820. lt_cv_prog_compiler_c_o_CXX=yes
  11821. fi
  11822. fi
  11823. chmod u+w . 2>&5
  11824. $RM conftest*
  11825. # SGI C++ compiler will create directory out/ii_files/ for
  11826. # template instantiation
  11827. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11828. $RM out/* && rmdir out
  11829. cd ..
  11830. $RM -r conftest
  11831. $RM conftest*
  11832. fi
  11833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11834. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11836. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11837. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11838. $as_echo_n "(cached) " >&6
  11839. else
  11840. lt_cv_prog_compiler_c_o_CXX=no
  11841. $RM -r conftest 2>/dev/null
  11842. mkdir conftest
  11843. cd conftest
  11844. mkdir out
  11845. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11846. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11847. # Insert the option either (1) after the last *FLAGS variable, or
  11848. # (2) before a word containing "conftest.", or (3) at the end.
  11849. # Note that $ac_compile itself does not contain backslashes and begins
  11850. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11851. lt_compile=`echo "$ac_compile" | $SED \
  11852. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11853. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11854. -e 's:$: $lt_compiler_flag:'`
  11855. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11856. (eval "$lt_compile" 2>out/conftest.err)
  11857. ac_status=$?
  11858. cat out/conftest.err >&5
  11859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11860. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11861. then
  11862. # The compiler can only warn and ignore the option if not recognized
  11863. # So say no if there are warnings
  11864. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11865. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11866. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11867. lt_cv_prog_compiler_c_o_CXX=yes
  11868. fi
  11869. fi
  11870. chmod u+w . 2>&5
  11871. $RM conftest*
  11872. # SGI C++ compiler will create directory out/ii_files/ for
  11873. # template instantiation
  11874. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11875. $RM out/* && rmdir out
  11876. cd ..
  11877. $RM -r conftest
  11878. $RM conftest*
  11879. fi
  11880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11881. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11882. hard_links="nottested"
  11883. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11884. # do not overwrite the value of need_locks provided by the user
  11885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11886. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11887. hard_links=yes
  11888. $RM conftest*
  11889. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11890. touch conftest.a
  11891. ln conftest.a conftest.b 2>&5 || hard_links=no
  11892. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11894. $as_echo "$hard_links" >&6; }
  11895. if test "$hard_links" = no; then
  11896. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11897. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11898. need_locks=warn
  11899. fi
  11900. else
  11901. need_locks=no
  11902. fi
  11903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11904. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11905. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11906. case $host_os in
  11907. aix[4-9]*)
  11908. # If we're using GNU nm, then we don't want the "-C" option.
  11909. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11910. # Also, AIX nm treats weak defined symbols like other global defined
  11911. # symbols, whereas GNU nm marks them as "W".
  11912. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11913. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11914. else
  11915. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11916. fi
  11917. ;;
  11918. pw32*)
  11919. export_symbols_cmds_CXX="$ltdll_cmds"
  11920. ;;
  11921. cygwin* | mingw* | cegcc*)
  11922. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11923. ;;
  11924. *)
  11925. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11926. ;;
  11927. esac
  11928. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11930. $as_echo "$ld_shlibs_CXX" >&6; }
  11931. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11932. with_gnu_ld_CXX=$with_gnu_ld
  11933. #
  11934. # Do we need to explicitly link libc?
  11935. #
  11936. case "x$archive_cmds_need_lc_CXX" in
  11937. x|xyes)
  11938. # Assume -lc should be added
  11939. archive_cmds_need_lc_CXX=yes
  11940. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11941. case $archive_cmds_CXX in
  11942. *'~'*)
  11943. # FIXME: we may have to deal with multi-command sequences.
  11944. ;;
  11945. '$CC '*)
  11946. # Test whether the compiler implicitly links with -lc since on some
  11947. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11948. # to ld, don't add -lc before -lgcc.
  11949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11950. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11951. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  11952. $as_echo_n "(cached) " >&6
  11953. else
  11954. $RM conftest*
  11955. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11956. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11957. (eval $ac_compile) 2>&5
  11958. ac_status=$?
  11959. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11960. test $ac_status = 0; } 2>conftest.err; then
  11961. soname=conftest
  11962. lib=conftest
  11963. libobjs=conftest.$ac_objext
  11964. deplibs=
  11965. wl=$lt_prog_compiler_wl_CXX
  11966. pic_flag=$lt_prog_compiler_pic_CXX
  11967. compiler_flags=-v
  11968. linker_flags=-v
  11969. verstring=
  11970. output_objdir=.
  11971. libname=conftest
  11972. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11973. allow_undefined_flag_CXX=
  11974. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11975. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11976. ac_status=$?
  11977. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11978. test $ac_status = 0; }
  11979. then
  11980. lt_cv_archive_cmds_need_lc_CXX=no
  11981. else
  11982. lt_cv_archive_cmds_need_lc_CXX=yes
  11983. fi
  11984. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11985. else
  11986. cat conftest.err 1>&5
  11987. fi
  11988. $RM conftest*
  11989. fi
  11990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  11991. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  11992. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  11993. ;;
  11994. esac
  11995. fi
  11996. ;;
  11997. esac
  11998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11999. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12000. library_names_spec=
  12001. libname_spec='lib$name'
  12002. soname_spec=
  12003. shrext_cmds=".so"
  12004. postinstall_cmds=
  12005. postuninstall_cmds=
  12006. finish_cmds=
  12007. finish_eval=
  12008. shlibpath_var=
  12009. shlibpath_overrides_runpath=unknown
  12010. version_type=none
  12011. dynamic_linker="$host_os ld.so"
  12012. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12013. need_lib_prefix=unknown
  12014. hardcode_into_libs=no
  12015. # when you set need_version to no, make sure it does not cause -set_version
  12016. # flags to be left without arguments
  12017. need_version=unknown
  12018. case $host_os in
  12019. aix3*)
  12020. version_type=linux
  12021. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12022. shlibpath_var=LIBPATH
  12023. # AIX 3 has no versioning support, so we append a major version to the name.
  12024. soname_spec='${libname}${release}${shared_ext}$major'
  12025. ;;
  12026. aix[4-9]*)
  12027. version_type=linux
  12028. need_lib_prefix=no
  12029. need_version=no
  12030. hardcode_into_libs=yes
  12031. if test "$host_cpu" = ia64; then
  12032. # AIX 5 supports IA64
  12033. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12034. shlibpath_var=LD_LIBRARY_PATH
  12035. else
  12036. # With GCC up to 2.95.x, collect2 would create an import file
  12037. # for dependence libraries. The import file would start with
  12038. # the line `#! .'. This would cause the generated library to
  12039. # depend on `.', always an invalid library. This was fixed in
  12040. # development snapshots of GCC prior to 3.0.
  12041. case $host_os in
  12042. aix4 | aix4.[01] | aix4.[01].*)
  12043. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12044. echo ' yes '
  12045. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12046. :
  12047. else
  12048. can_build_shared=no
  12049. fi
  12050. ;;
  12051. esac
  12052. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12053. # soname into executable. Probably we can add versioning support to
  12054. # collect2, so additional links can be useful in future.
  12055. if test "$aix_use_runtimelinking" = yes; then
  12056. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12057. # instead of lib<name>.a to let people know that these are not
  12058. # typical AIX shared libraries.
  12059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12060. else
  12061. # We preserve .a as extension for shared libraries through AIX4.2
  12062. # and later when we are not doing run time linking.
  12063. library_names_spec='${libname}${release}.a $libname.a'
  12064. soname_spec='${libname}${release}${shared_ext}$major'
  12065. fi
  12066. shlibpath_var=LIBPATH
  12067. fi
  12068. ;;
  12069. amigaos*)
  12070. case $host_cpu in
  12071. powerpc)
  12072. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12073. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12075. ;;
  12076. m68k)
  12077. library_names_spec='$libname.ixlibrary $libname.a'
  12078. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12079. 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'
  12080. ;;
  12081. esac
  12082. ;;
  12083. beos*)
  12084. library_names_spec='${libname}${shared_ext}'
  12085. dynamic_linker="$host_os ld.so"
  12086. shlibpath_var=LIBRARY_PATH
  12087. ;;
  12088. bsdi[45]*)
  12089. version_type=linux
  12090. need_version=no
  12091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12092. soname_spec='${libname}${release}${shared_ext}$major'
  12093. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12094. shlibpath_var=LD_LIBRARY_PATH
  12095. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12096. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12097. # the default ld.so.conf also contains /usr/contrib/lib and
  12098. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12099. # libtool to hard-code these into programs
  12100. ;;
  12101. cygwin* | mingw* | pw32* | cegcc*)
  12102. version_type=windows
  12103. shrext_cmds=".dll"
  12104. need_version=no
  12105. need_lib_prefix=no
  12106. case $GCC,$host_os in
  12107. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12108. library_names_spec='$libname.dll.a'
  12109. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12110. postinstall_cmds='base_file=`basename \${file}`~
  12111. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12112. dldir=$destdir/`dirname \$dlpath`~
  12113. test -d \$dldir || mkdir -p \$dldir~
  12114. $install_prog $dir/$dlname \$dldir/$dlname~
  12115. chmod a+x \$dldir/$dlname~
  12116. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12117. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12118. fi'
  12119. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12120. dlpath=$dir/\$dldll~
  12121. $RM \$dlpath'
  12122. shlibpath_overrides_runpath=yes
  12123. case $host_os in
  12124. cygwin*)
  12125. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12126. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12127. ;;
  12128. mingw* | cegcc*)
  12129. # MinGW DLLs use traditional 'lib' prefix
  12130. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12131. ;;
  12132. pw32*)
  12133. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12134. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12135. ;;
  12136. esac
  12137. ;;
  12138. *)
  12139. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12140. ;;
  12141. esac
  12142. dynamic_linker='Win32 ld.exe'
  12143. # FIXME: first we should search . and the directory the executable is in
  12144. shlibpath_var=PATH
  12145. ;;
  12146. darwin* | rhapsody*)
  12147. dynamic_linker="$host_os dyld"
  12148. version_type=darwin
  12149. need_lib_prefix=no
  12150. need_version=no
  12151. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12152. soname_spec='${libname}${release}${major}$shared_ext'
  12153. shlibpath_overrides_runpath=yes
  12154. shlibpath_var=DYLD_LIBRARY_PATH
  12155. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12156. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12157. ;;
  12158. dgux*)
  12159. version_type=linux
  12160. need_lib_prefix=no
  12161. need_version=no
  12162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12163. soname_spec='${libname}${release}${shared_ext}$major'
  12164. shlibpath_var=LD_LIBRARY_PATH
  12165. ;;
  12166. freebsd* | dragonfly*)
  12167. # DragonFly does not have aout. When/if they implement a new
  12168. # versioning mechanism, adjust this.
  12169. if test -x /usr/bin/objformat; then
  12170. objformat=`/usr/bin/objformat`
  12171. else
  12172. case $host_os in
  12173. freebsd[23].*) objformat=aout ;;
  12174. *) objformat=elf ;;
  12175. esac
  12176. fi
  12177. version_type=freebsd-$objformat
  12178. case $version_type in
  12179. freebsd-elf*)
  12180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12181. need_version=no
  12182. need_lib_prefix=no
  12183. ;;
  12184. freebsd-*)
  12185. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12186. need_version=yes
  12187. ;;
  12188. esac
  12189. shlibpath_var=LD_LIBRARY_PATH
  12190. case $host_os in
  12191. freebsd2.*)
  12192. shlibpath_overrides_runpath=yes
  12193. ;;
  12194. freebsd3.[01]* | freebsdelf3.[01]*)
  12195. shlibpath_overrides_runpath=yes
  12196. hardcode_into_libs=yes
  12197. ;;
  12198. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12199. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12200. shlibpath_overrides_runpath=no
  12201. hardcode_into_libs=yes
  12202. ;;
  12203. *) # from 4.6 on, and DragonFly
  12204. shlibpath_overrides_runpath=yes
  12205. hardcode_into_libs=yes
  12206. ;;
  12207. esac
  12208. ;;
  12209. gnu*)
  12210. version_type=linux
  12211. need_lib_prefix=no
  12212. need_version=no
  12213. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12214. soname_spec='${libname}${release}${shared_ext}$major'
  12215. shlibpath_var=LD_LIBRARY_PATH
  12216. hardcode_into_libs=yes
  12217. ;;
  12218. haiku*)
  12219. version_type=linux
  12220. need_lib_prefix=no
  12221. need_version=no
  12222. dynamic_linker="$host_os runtime_loader"
  12223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12224. soname_spec='${libname}${release}${shared_ext}$major'
  12225. shlibpath_var=LIBRARY_PATH
  12226. shlibpath_overrides_runpath=yes
  12227. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  12228. hardcode_into_libs=yes
  12229. ;;
  12230. hpux9* | hpux10* | hpux11*)
  12231. # Give a soname corresponding to the major version so that dld.sl refuses to
  12232. # link against other versions.
  12233. version_type=sunos
  12234. need_lib_prefix=no
  12235. need_version=no
  12236. case $host_cpu in
  12237. ia64*)
  12238. shrext_cmds='.so'
  12239. hardcode_into_libs=yes
  12240. dynamic_linker="$host_os dld.so"
  12241. shlibpath_var=LD_LIBRARY_PATH
  12242. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12244. soname_spec='${libname}${release}${shared_ext}$major'
  12245. if test "X$HPUX_IA64_MODE" = X32; then
  12246. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12247. else
  12248. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12249. fi
  12250. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12251. ;;
  12252. hppa*64*)
  12253. shrext_cmds='.sl'
  12254. hardcode_into_libs=yes
  12255. dynamic_linker="$host_os dld.sl"
  12256. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12257. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12259. soname_spec='${libname}${release}${shared_ext}$major'
  12260. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12261. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12262. ;;
  12263. *)
  12264. shrext_cmds='.sl'
  12265. dynamic_linker="$host_os dld.sl"
  12266. shlibpath_var=SHLIB_PATH
  12267. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12269. soname_spec='${libname}${release}${shared_ext}$major'
  12270. ;;
  12271. esac
  12272. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12273. postinstall_cmds='chmod 555 $lib'
  12274. # or fails outright, so override atomically:
  12275. install_override_mode=555
  12276. ;;
  12277. interix[3-9]*)
  12278. version_type=linux
  12279. need_lib_prefix=no
  12280. need_version=no
  12281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12282. soname_spec='${libname}${release}${shared_ext}$major'
  12283. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12284. shlibpath_var=LD_LIBRARY_PATH
  12285. shlibpath_overrides_runpath=no
  12286. hardcode_into_libs=yes
  12287. ;;
  12288. irix5* | irix6* | nonstopux*)
  12289. case $host_os in
  12290. nonstopux*) version_type=nonstopux ;;
  12291. *)
  12292. if test "$lt_cv_prog_gnu_ld" = yes; then
  12293. version_type=linux
  12294. else
  12295. version_type=irix
  12296. fi ;;
  12297. esac
  12298. need_lib_prefix=no
  12299. need_version=no
  12300. soname_spec='${libname}${release}${shared_ext}$major'
  12301. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12302. case $host_os in
  12303. irix5* | nonstopux*)
  12304. libsuff= shlibsuff=
  12305. ;;
  12306. *)
  12307. case $LD in # libtool.m4 will add one of these switches to LD
  12308. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12309. libsuff= shlibsuff= libmagic=32-bit;;
  12310. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12311. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12312. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12313. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12314. *) libsuff= shlibsuff= libmagic=never-match;;
  12315. esac
  12316. ;;
  12317. esac
  12318. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12319. shlibpath_overrides_runpath=no
  12320. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12321. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12322. hardcode_into_libs=yes
  12323. ;;
  12324. # No shared lib support for Linux oldld, aout, or coff.
  12325. linux*oldld* | linux*aout* | linux*coff*)
  12326. dynamic_linker=no
  12327. ;;
  12328. # This must be Linux ELF.
  12329. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12330. version_type=linux
  12331. need_lib_prefix=no
  12332. need_version=no
  12333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12334. soname_spec='${libname}${release}${shared_ext}$major'
  12335. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12336. shlibpath_var=LD_LIBRARY_PATH
  12337. shlibpath_overrides_runpath=no
  12338. # Some binutils ld are patched to set DT_RUNPATH
  12339. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  12340. $as_echo_n "(cached) " >&6
  12341. else
  12342. lt_cv_shlibpath_overrides_runpath=no
  12343. save_LDFLAGS=$LDFLAGS
  12344. save_libdir=$libdir
  12345. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12346. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12347. if test x$gcc_no_link = xyes; then
  12348. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  12349. fi
  12350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12351. /* end confdefs.h. */
  12352. int
  12353. main ()
  12354. {
  12355. ;
  12356. return 0;
  12357. }
  12358. _ACEOF
  12359. if ac_fn_cxx_try_link "$LINENO"; then :
  12360. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12361. lt_cv_shlibpath_overrides_runpath=yes
  12362. fi
  12363. fi
  12364. rm -f core conftest.err conftest.$ac_objext \
  12365. conftest$ac_exeext conftest.$ac_ext
  12366. LDFLAGS=$save_LDFLAGS
  12367. libdir=$save_libdir
  12368. fi
  12369. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12370. # This implies no fast_install, which is unacceptable.
  12371. # Some rework will be needed to allow for fast_install
  12372. # before this can be enabled.
  12373. hardcode_into_libs=yes
  12374. # Append ld.so.conf contents to the search path
  12375. if test -f /etc/ld.so.conf; then
  12376. 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' ' '`
  12377. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12378. fi
  12379. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12380. # powerpc, because MkLinux only supported shared libraries with the
  12381. # GNU dynamic linker. Since this was broken with cross compilers,
  12382. # most powerpc-linux boxes support dynamic linking these days and
  12383. # people can always --disable-shared, the test was removed, and we
  12384. # assume the GNU/Linux dynamic linker is in use.
  12385. dynamic_linker='GNU/Linux ld.so'
  12386. ;;
  12387. netbsd*)
  12388. version_type=sunos
  12389. need_lib_prefix=no
  12390. need_version=no
  12391. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12393. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12394. dynamic_linker='NetBSD (a.out) ld.so'
  12395. else
  12396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12397. soname_spec='${libname}${release}${shared_ext}$major'
  12398. dynamic_linker='NetBSD ld.elf_so'
  12399. fi
  12400. shlibpath_var=LD_LIBRARY_PATH
  12401. shlibpath_overrides_runpath=yes
  12402. hardcode_into_libs=yes
  12403. ;;
  12404. newsos6)
  12405. version_type=linux
  12406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12407. shlibpath_var=LD_LIBRARY_PATH
  12408. shlibpath_overrides_runpath=yes
  12409. ;;
  12410. *nto* | *qnx*)
  12411. version_type=qnx
  12412. need_lib_prefix=no
  12413. need_version=no
  12414. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12415. soname_spec='${libname}${release}${shared_ext}$major'
  12416. shlibpath_var=LD_LIBRARY_PATH
  12417. shlibpath_overrides_runpath=no
  12418. hardcode_into_libs=yes
  12419. dynamic_linker='ldqnx.so'
  12420. ;;
  12421. openbsd*)
  12422. version_type=sunos
  12423. sys_lib_dlsearch_path_spec="/usr/lib"
  12424. need_lib_prefix=no
  12425. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12426. case $host_os in
  12427. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12428. *) need_version=no ;;
  12429. esac
  12430. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12431. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12432. shlibpath_var=LD_LIBRARY_PATH
  12433. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12434. case $host_os in
  12435. openbsd2.[89] | openbsd2.[89].*)
  12436. shlibpath_overrides_runpath=no
  12437. ;;
  12438. *)
  12439. shlibpath_overrides_runpath=yes
  12440. ;;
  12441. esac
  12442. else
  12443. shlibpath_overrides_runpath=yes
  12444. fi
  12445. ;;
  12446. os2*)
  12447. libname_spec='$name'
  12448. shrext_cmds=".dll"
  12449. need_lib_prefix=no
  12450. library_names_spec='$libname${shared_ext} $libname.a'
  12451. dynamic_linker='OS/2 ld.exe'
  12452. shlibpath_var=LIBPATH
  12453. ;;
  12454. osf3* | osf4* | osf5*)
  12455. version_type=osf
  12456. need_lib_prefix=no
  12457. need_version=no
  12458. soname_spec='${libname}${release}${shared_ext}$major'
  12459. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12460. shlibpath_var=LD_LIBRARY_PATH
  12461. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12462. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12463. ;;
  12464. rdos*)
  12465. dynamic_linker=no
  12466. ;;
  12467. solaris*)
  12468. version_type=linux
  12469. need_lib_prefix=no
  12470. need_version=no
  12471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12472. soname_spec='${libname}${release}${shared_ext}$major'
  12473. shlibpath_var=LD_LIBRARY_PATH
  12474. shlibpath_overrides_runpath=yes
  12475. hardcode_into_libs=yes
  12476. # ldd complains unless libraries are executable
  12477. postinstall_cmds='chmod +x $lib'
  12478. ;;
  12479. sunos4*)
  12480. version_type=sunos
  12481. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12482. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12483. shlibpath_var=LD_LIBRARY_PATH
  12484. shlibpath_overrides_runpath=yes
  12485. if test "$with_gnu_ld" = yes; then
  12486. need_lib_prefix=no
  12487. fi
  12488. need_version=yes
  12489. ;;
  12490. sysv4 | sysv4.3*)
  12491. version_type=linux
  12492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12493. soname_spec='${libname}${release}${shared_ext}$major'
  12494. shlibpath_var=LD_LIBRARY_PATH
  12495. case $host_vendor in
  12496. sni)
  12497. shlibpath_overrides_runpath=no
  12498. need_lib_prefix=no
  12499. runpath_var=LD_RUN_PATH
  12500. ;;
  12501. siemens)
  12502. need_lib_prefix=no
  12503. ;;
  12504. motorola)
  12505. need_lib_prefix=no
  12506. need_version=no
  12507. shlibpath_overrides_runpath=no
  12508. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12509. ;;
  12510. esac
  12511. ;;
  12512. sysv4*MP*)
  12513. if test -d /usr/nec ;then
  12514. version_type=linux
  12515. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12516. soname_spec='$libname${shared_ext}.$major'
  12517. shlibpath_var=LD_LIBRARY_PATH
  12518. fi
  12519. ;;
  12520. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12521. version_type=freebsd-elf
  12522. need_lib_prefix=no
  12523. need_version=no
  12524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12525. soname_spec='${libname}${release}${shared_ext}$major'
  12526. shlibpath_var=LD_LIBRARY_PATH
  12527. shlibpath_overrides_runpath=yes
  12528. hardcode_into_libs=yes
  12529. if test "$with_gnu_ld" = yes; then
  12530. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12531. else
  12532. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12533. case $host_os in
  12534. sco3.2v5*)
  12535. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12536. ;;
  12537. esac
  12538. fi
  12539. sys_lib_dlsearch_path_spec='/usr/lib'
  12540. ;;
  12541. tpf*)
  12542. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12543. version_type=linux
  12544. need_lib_prefix=no
  12545. need_version=no
  12546. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12547. shlibpath_var=LD_LIBRARY_PATH
  12548. shlibpath_overrides_runpath=no
  12549. hardcode_into_libs=yes
  12550. ;;
  12551. uts4*)
  12552. version_type=linux
  12553. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12554. soname_spec='${libname}${release}${shared_ext}$major'
  12555. shlibpath_var=LD_LIBRARY_PATH
  12556. ;;
  12557. *)
  12558. dynamic_linker=no
  12559. ;;
  12560. esac
  12561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12562. $as_echo "$dynamic_linker" >&6; }
  12563. test "$dynamic_linker" = no && can_build_shared=no
  12564. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12565. if test "$GCC" = yes; then
  12566. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12567. fi
  12568. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12569. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12570. fi
  12571. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12572. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12573. fi
  12574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12575. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12576. hardcode_action_CXX=
  12577. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12578. test -n "$runpath_var_CXX" ||
  12579. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12580. # We can hardcode non-existent directories.
  12581. if test "$hardcode_direct_CXX" != no &&
  12582. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12583. # have to relink, otherwise we might link with an installed library
  12584. # when we should be linking with a yet-to-be-installed one
  12585. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12586. test "$hardcode_minus_L_CXX" != no; then
  12587. # Linking always hardcodes the temporary library directory.
  12588. hardcode_action_CXX=relink
  12589. else
  12590. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12591. hardcode_action_CXX=immediate
  12592. fi
  12593. else
  12594. # We cannot hardcode anything, or else we can only hardcode existing
  12595. # directories.
  12596. hardcode_action_CXX=unsupported
  12597. fi
  12598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12599. $as_echo "$hardcode_action_CXX" >&6; }
  12600. if test "$hardcode_action_CXX" = relink ||
  12601. test "$inherit_rpath_CXX" = yes; then
  12602. # Fast installation is not supported
  12603. enable_fast_install=no
  12604. elif test "$shlibpath_overrides_runpath" = yes ||
  12605. test "$enable_shared" = no; then
  12606. # Fast installation is not necessary
  12607. enable_fast_install=needless
  12608. fi
  12609. fi # test -n "$compiler"
  12610. CC=$lt_save_CC
  12611. LDCXX=$LD
  12612. LD=$lt_save_LD
  12613. GCC=$lt_save_GCC
  12614. with_gnu_ld=$lt_save_with_gnu_ld
  12615. lt_cv_path_LDCXX=$lt_cv_path_LD
  12616. lt_cv_path_LD=$lt_save_path_LD
  12617. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12618. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12619. fi # test "$_lt_caught_CXX_error" != yes
  12620. ac_ext=c
  12621. ac_cpp='$CPP $CPPFLAGS'
  12622. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12623. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12624. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12625. ac_config_commands="$ac_config_commands libtool"
  12626. # Only expand once:
  12627. # Check whether --with-target-subdir was given.
  12628. if test "${with_target_subdir+set}" = set; then :
  12629. withval=$with_target_subdir;
  12630. fi
  12631. # Check whether --with-cross-host was given.
  12632. if test "${with_cross_host+set}" = set; then :
  12633. withval=$with_cross_host;
  12634. fi
  12635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
  12636. $as_echo_n "checking for thread model used by GCC... " >&6; }
  12637. THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
  12638. if test -z "$THREADS"; then
  12639. THREADS=no
  12640. fi
  12641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
  12642. $as_echo "$THREADS" >&6; }
  12643. # Check whether --enable-parallel-mark was given.
  12644. if test "${enable_parallel_mark+set}" = set; then :
  12645. enableval=$enable_parallel_mark; case "$THREADS" in
  12646. no | none | single)
  12647. as_fn_error "Parallel mark requires --enable-threads=x spec" "$LINENO" 5
  12648. ;;
  12649. esac
  12650. fi
  12651. AM_CPPFLAGS="-I`cd $srcdir && ${PWDCMD-pwd}`/include"
  12652. THREADCFLAGS=
  12653. THREADLIBS=
  12654. case "$THREADS" in
  12655. no | none | single)
  12656. THREADS=none
  12657. ;;
  12658. posix | pthreads)
  12659. THREADS=posix
  12660. THREADLIBS=-lpthread
  12661. case "$host" in
  12662. x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
  12663. $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
  12664. $as_echo "#define _REENTRANT 1" >>confdefs.h
  12665. if test "${enable_parallel_mark}" = yes; then
  12666. $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
  12667. fi
  12668. $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
  12669. ;;
  12670. *-*-linux*)
  12671. $as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
  12672. $as_echo "#define _REENTRANT 1" >>confdefs.h
  12673. ;;
  12674. *-*-aix*)
  12675. $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
  12676. $as_echo "#define _REENTRANT 1" >>confdefs.h
  12677. ;;
  12678. *-*-hpux11*)
  12679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
  12680. $as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
  12681. $as_echo "#define GC_HPUX_THREADS 1" >>confdefs.h
  12682. $as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
  12683. if test "${enable_parallel_mark}" = yes; then
  12684. $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
  12685. fi
  12686. $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
  12687. THREADLIBS="-lpthread -lrt"
  12688. # HPUX needs REENTRANT for the _r calls.
  12689. $as_echo "#define _REENTRANT 1" >>confdefs.h
  12690. ;;
  12691. *-*-hpux10*)
  12692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
  12693. $as_echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
  12694. ;;
  12695. *-*-kfreebsd*-gnu)
  12696. $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
  12697. THREADCFLAGS=-pthread
  12698. THREADLIBS=-pthread
  12699. $as_echo "#define _REENTRANT 1" >>confdefs.h
  12700. if test "${enable_parallel_mark}" = yes; then
  12701. $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
  12702. fi
  12703. $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
  12704. $as_echo "#define USE_COMPILER_TLS 1" >>confdefs.h
  12705. ;;
  12706. *-*-gnu*)
  12707. $as_echo "#define GC_GNU_THREADS 1" >>confdefs.h
  12708. $as_echo "#define _REENTRANT 1" >>confdefs.h
  12709. $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
  12710. ;;
  12711. *-*-freebsd*)
  12712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
  12713. $as_echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
  12714. $as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
  12715. THREADCFLAGS=-pthread
  12716. THREADLIBS=-pthread
  12717. ;;
  12718. *-*-solaris2.8*)
  12719. $as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
  12720. # Need to use alternate thread library, otherwise gctest hangs
  12721. # on Solaris 8.
  12722. multi_os_directory=`$CC -print-multi-os-directory`
  12723. THREADLIBS="-L/usr/lib/lwp/$multi_os_directory \
  12724. -R/usr/lib/lwp/$multi_os_directory -lpthread -lthread -lrt"
  12725. ;;
  12726. *-*-solaris2*)
  12727. $as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
  12728. # The alternate thread library was only introduced in Solaris 8 and
  12729. # became the default in Solaris 9, so no need for the special code
  12730. # above otherwise.
  12731. # nanosleep, sched_yield, and sem_* only live in librt before
  12732. # Solaris 11.
  12733. THREADLIBS="-lpthread -lrt"
  12734. ;;
  12735. *-*-irix*)
  12736. $as_echo "#define GC_IRIX_THREADS 1" >>confdefs.h
  12737. ;;
  12738. *-*-cygwin*)
  12739. $as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
  12740. ;;
  12741. *-*-darwin*)
  12742. $as_echo "#define GC_DARWIN_THREADS 1" >>confdefs.h
  12743. $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
  12744. if test "${enable_parallel_mark}" = yes; then
  12745. $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
  12746. fi
  12747. ;;
  12748. *-*-osf*)
  12749. $as_echo "#define GC_OSF1_THREADS 1" >>confdefs.h
  12750. if test "${enable_parallel_mark}" = yes; then
  12751. $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
  12752. $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
  12753. # May want to enable it in other cases, too.
  12754. # Measurements havent yet been done.
  12755. fi
  12756. THREADCFLAGS=-pthread
  12757. THREADLIBS="-lpthread -lrt"
  12758. ;;
  12759. esac
  12760. ;;
  12761. win32)
  12762. $as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
  12763. ;;
  12764. aix)
  12765. THREADS=posix
  12766. THREADLIBS=-lpthread
  12767. $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
  12768. $as_echo "#define _REENTRANT 1" >>confdefs.h
  12769. ;;
  12770. dce | vxworks)
  12771. as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
  12772. ;;
  12773. *)
  12774. as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
  12775. ;;
  12776. esac
  12777. case "$host" in
  12778. powerpc-*-darwin*)
  12779. powerpc_darwin=true
  12780. ;;
  12781. esac
  12782. if test x$powerpc_darwin = xtrue; then
  12783. POWERPC_DARWIN_TRUE=
  12784. POWERPC_DARWIN_FALSE='#'
  12785. else
  12786. POWERPC_DARWIN_TRUE='#'
  12787. POWERPC_DARWIN_FALSE=
  12788. fi
  12789. # Darwin needs a few extra special tests to deal with variation in the
  12790. # system headers.
  12791. case "$host" in
  12792. powerpc*-*-darwin*)
  12793. ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "r0" "ac_cv_member_ppc_thread_state_t_r0" "#include <mach/thread_status.h>
  12794. "
  12795. if test "x$ac_cv_member_ppc_thread_state_t_r0" = x""yes; then :
  12796. $as_echo "#define HAS_PPC_THREAD_STATE_R0 1" >>confdefs.h
  12797. fi
  12798. ac_fn_c_check_member "$LINENO" "ppc_thread_state_t" "__r0" "ac_cv_member_ppc_thread_state_t___r0" "#include <mach/thread_status.h>
  12799. "
  12800. if test "x$ac_cv_member_ppc_thread_state_t___r0" = x""yes; then :
  12801. $as_echo "#define HAS_PPC_THREAD_STATE___R0 1" >>confdefs.h
  12802. fi
  12803. ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "r0" "ac_cv_member_ppc_thread_state64_t_r0" "#include <mach/thread_status.h>
  12804. "
  12805. if test "x$ac_cv_member_ppc_thread_state64_t_r0" = x""yes; then :
  12806. $as_echo "#define HAS_PPC_THREAD_STATE64_R0 1" >>confdefs.h
  12807. fi
  12808. ac_fn_c_check_member "$LINENO" "ppc_thread_state64_t" "__r0" "ac_cv_member_ppc_thread_state64_t___r0" "#include <mach/thread_status.h>
  12809. "
  12810. if test "x$ac_cv_member_ppc_thread_state64_t___r0" = x""yes; then :
  12811. $as_echo "#define HAS_PPC_THREAD_STATE64___R0 1" >>confdefs.h
  12812. fi
  12813. ;;
  12814. i?86*-*-darwin*)
  12815. ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "eax" "ac_cv_member_x86_thread_state32_t_eax" "#include <sys/cdefs.h>
  12816. #include <mach/thread_status.h>
  12817. "
  12818. if test "x$ac_cv_member_x86_thread_state32_t_eax" = x""yes; then :
  12819. $as_echo "#define HAS_X86_THREAD_STATE32_EAX 1" >>confdefs.h
  12820. fi
  12821. ac_fn_c_check_member "$LINENO" "x86_thread_state32_t" "__eax" "ac_cv_member_x86_thread_state32_t___eax" "#include <sys/cdefs.h>
  12822. #include <mach/thread_status.h>
  12823. "
  12824. if test "x$ac_cv_member_x86_thread_state32_t___eax" = x""yes; then :
  12825. $as_echo "#define HAS_X86_THREAD_STATE32___EAX 1" >>confdefs.h
  12826. fi
  12827. ;;
  12828. x86_64-*-darwin*)
  12829. ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "rax" "ac_cv_member_x86_thread_state64_t_rax" "#include <sys/cdefs.h>
  12830. #include <mach/thread_status.h>
  12831. "
  12832. if test "x$ac_cv_member_x86_thread_state64_t_rax" = x""yes; then :
  12833. $as_echo "#define HAS_X86_THREAD_STATE64_RAX 1" >>confdefs.h
  12834. fi
  12835. ac_fn_c_check_member "$LINENO" "x86_thread_state64_t" "__rax" "ac_cv_member_x86_thread_state64_t___rax" "#include <sys/cdefs.h>
  12836. #include <mach/thread_status.h>
  12837. "
  12838. if test "x$ac_cv_member_x86_thread_state64_t___rax" = x""yes; then :
  12839. $as_echo "#define HAS_X86_THREAD_STATE64___RAX 1" >>confdefs.h
  12840. fi
  12841. ;;
  12842. *) ;;
  12843. esac
  12844. case "$host" in
  12845. # While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64
  12846. # and unnecessary everywhere.
  12847. mips-sgi-irix6*) ;;
  12848. # We never want libdl on darwin. It is a fake libdl that just ends up making
  12849. # dyld calls anyway
  12850. *-*-darwin*) ;;
  12851. *)
  12852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  12853. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  12854. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  12855. $as_echo_n "(cached) " >&6
  12856. else
  12857. ac_check_lib_save_LIBS=$LIBS
  12858. LIBS="-ldl $LIBS"
  12859. if test x$gcc_no_link = xyes; then
  12860. as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  12861. fi
  12862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12863. /* end confdefs.h. */
  12864. /* Override any GCC internal prototype to avoid an error.
  12865. Use char because int might match the return type of a GCC
  12866. builtin and then its argument prototype would still apply. */
  12867. #ifdef __cplusplus
  12868. extern "C"
  12869. #endif
  12870. char dlopen ();
  12871. int
  12872. main ()
  12873. {
  12874. return dlopen ();
  12875. ;
  12876. return 0;
  12877. }
  12878. _ACEOF
  12879. if ac_fn_c_try_link "$LINENO"; then :
  12880. ac_cv_lib_dl_dlopen=yes
  12881. else
  12882. ac_cv_lib_dl_dlopen=no
  12883. fi
  12884. rm -f core conftest.err conftest.$ac_objext \
  12885. conftest$ac_exeext conftest.$ac_ext
  12886. LIBS=$ac_check_lib_save_LIBS
  12887. fi
  12888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  12889. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  12890. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  12891. EXTRA_TEST_LIBS="$EXTRA_TEST_LIBS -ldl"
  12892. fi
  12893. ;;
  12894. esac
  12895. # extra LD Flags which are required for targets
  12896. case "${host}" in
  12897. *-*-darwin*)
  12898. extra_ldflags_libgc=-Wl,-single_module
  12899. ;;
  12900. esac
  12901. target_all=libgcjgc.la
  12902. TARGET_ECOS="no"
  12903. # Check whether --with-ecos was given.
  12904. if test "${with_ecos+set}" = set; then :
  12905. withval=$with_ecos; TARGET_ECOS="$with_ecos"
  12906. fi
  12907. addobjs=
  12908. addlibs=
  12909. addincludes=
  12910. addtests=
  12911. case "$TARGET_ECOS" in
  12912. no)
  12913. ;;
  12914. *)
  12915. $as_echo "#define ECOS 1" >>confdefs.h
  12916. AM_CPPFLAGS="${AM_CPPFLAGS} -I${TARGET_ECOS}/include"
  12917. addobjs="$addobjs ecos.lo"
  12918. ;;
  12919. esac
  12920. if test "${enable_cplusplus}" = yes; then
  12921. addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
  12922. addtests="$addtests test_cpp"
  12923. fi
  12924. if test "${enable_cplusplus}" = yes; then
  12925. CPLUSPLUS_TRUE=
  12926. CPLUSPLUS_FALSE='#'
  12927. else
  12928. CPLUSPLUS_TRUE='#'
  12929. CPLUSPLUS_FALSE=
  12930. fi
  12931. # Configuration of shared libraries
  12932. #
  12933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  12934. $as_echo_n "checking whether to build shared libraries... " >&6; }
  12935. # Check whether --enable-shared was given.
  12936. if test "${enable_shared+set}" = set; then :
  12937. enableval=$enable_shared; p=${PACKAGE-default}
  12938. case $enableval in
  12939. yes) enable_shared=yes ;;
  12940. no) enable_shared=no ;;
  12941. *)
  12942. enable_shared=no
  12943. # Look at the argument we got. We use all the common list separators.
  12944. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12945. for pkg in $enableval; do
  12946. IFS="$lt_save_ifs"
  12947. if test "X$pkg" = "X$p"; then
  12948. enable_shared=yes
  12949. fi
  12950. done
  12951. IFS="$lt_save_ifs"
  12952. ;;
  12953. esac
  12954. else
  12955. enable_shared=yes
  12956. fi
  12957. case "$host" in
  12958. alpha-*-openbsd*)
  12959. enable_shared=no
  12960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12961. $as_echo "no" >&6; }
  12962. ;;
  12963. *)
  12964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12965. $as_echo "yes" >&6; }
  12966. ;;
  12967. esac
  12968. # Checks for pthreads functions
  12969. #
  12970. oldLIBS="$LIBS"
  12971. LIBS="$LIBS $THREADLIBS"
  12972. for ac_func in pthread_getattr_np
  12973. do :
  12974. ac_fn_c_check_func "$LINENO" "pthread_getattr_np" "ac_cv_func_pthread_getattr_np"
  12975. if test "x$ac_cv_func_pthread_getattr_np" = x""yes; then :
  12976. cat >>confdefs.h <<_ACEOF
  12977. #define HAVE_PTHREAD_GETATTR_NP 1
  12978. _ACEOF
  12979. fi
  12980. done
  12981. for ac_func in pthread_get_stackaddr_np
  12982. do :
  12983. ac_fn_c_check_func "$LINENO" "pthread_get_stackaddr_np" "ac_cv_func_pthread_get_stackaddr_np"
  12984. if test "x$ac_cv_func_pthread_get_stackaddr_np" = x""yes; then :
  12985. cat >>confdefs.h <<_ACEOF
  12986. #define HAVE_PTHREAD_GET_STACKADDR_NP 1
  12987. _ACEOF
  12988. fi
  12989. done
  12990. LIBS="$oldLIBS"
  12991. # Configuration of machine-dependent code
  12992. #
  12993. # Set NO_EXECUTE_PERMISSION by default because gcj already uses
  12994. # ffi_closure_{alloc,free} which takes care of allocating trampolines
  12995. # in executable memory.
  12996. #
  12997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which machine-dependent code should be used" >&5
  12998. $as_echo_n "checking which machine-dependent code should be used... " >&6; }
  12999. machdep=
  13000. case "$host" in
  13001. alpha*-*-openbsd*)
  13002. machdep="alpha_mach_dep.lo"
  13003. if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
  13004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
  13005. $as_echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
  13006. fi
  13007. ;;
  13008. alpha*-*-linux*)
  13009. machdep="alpha_mach_dep.lo"
  13010. ;;
  13011. i?86-*-solaris2.[89] | i?86-*-solaris2.1? | x86_64-*-solaris2.1?)
  13012. $as_echo "#define SOLARIS25_PROC_VDB_BUG_FIXED 1" >>confdefs.h
  13013. ;;
  13014. mipstx39-*-elf*)
  13015. machdep="mips_ultrix_mach_dep.lo"
  13016. $as_echo "#define STACKBASE __stackbase" >>confdefs.h
  13017. $as_echo "#define DATASTART_IS_ETEXT 1" >>confdefs.h
  13018. ;;
  13019. mips-dec-ultrix*)
  13020. machdep="mips_ultrix_mach-dep.lo"
  13021. ;;
  13022. mips-nec-sysv*|mips-unknown-sysv*)
  13023. ;;
  13024. mips*-*-linux*)
  13025. ;;
  13026. mips-*-*)
  13027. machdep="mips_sgi_mach_dep.lo"
  13028. ;;
  13029. sparc-*-netbsd*)
  13030. machdep="sparc_netbsd_mach_dep.lo"
  13031. ;;
  13032. sparc-sun-solaris2.3)
  13033. machdep="sparc_mach_dep.lo"
  13034. $as_echo "#define SUNOS53_SHARED_LIB 1" >>confdefs.h
  13035. ;;
  13036. sparc*-sun-solaris2.*)
  13037. machdep="sparc_mach_dep.lo"
  13038. ;;
  13039. ia64-*-*)
  13040. machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
  13041. ;;
  13042. esac
  13043. $as_echo "#define NO_EXECUTE_PERMISSION 1" >>confdefs.h
  13044. if test x"$machdep" = x; then
  13045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $machdep" >&5
  13046. $as_echo "$machdep" >&6; }
  13047. machdep="mach_dep.lo"
  13048. fi
  13049. addobjs="$addobjs $machdep"
  13050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC optimization should be disabled" >&5
  13051. $as_echo_n "checking whether GCC optimization should be disabled... " >&6; }
  13052. O0_CFLAGS=
  13053. case "$host" in
  13054. *aix*) test "$GCC" = yes && O0_CFLAGS=-O0 ;;
  13055. *) ;;
  13056. esac
  13057. if test x"$O0_CFLAGS" != x; then
  13058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13059. $as_echo "yes" >&6; }
  13060. else
  13061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13062. $as_echo "no" >&6; }
  13063. fi
  13064. $as_echo "#define SILENT 1" >>confdefs.h
  13065. $as_echo "#define NO_SIGNALS 1" >>confdefs.h
  13066. $as_echo "#define ALL_INTERIOR_POINTERS 1" >>confdefs.h
  13067. $as_echo "#define JAVA_FINALIZATION 1" >>confdefs.h
  13068. $as_echo "#define GC_GCJ_SUPPORT 1" >>confdefs.h
  13069. $as_echo "#define ATOMIC_UNCOLLECTABLE 1" >>confdefs.h
  13070. # Check whether --enable-gc-debug was given.
  13071. if test "${enable_gc_debug+set}" = set; then :
  13072. enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
  13073. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&5
  13074. $as_echo "$as_me: WARNING: \"Must define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
  13075. $as_echo "#define KEEP_BACK_PTRS 1" >>confdefs.h
  13076. $as_echo "#define DBG_HDRS_ALL 1" >>confdefs.h
  13077. case $host in
  13078. ia64-*-linux* )
  13079. $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
  13080. ;;
  13081. x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
  13082. $as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
  13083. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
  13084. $as_echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
  13085. $as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
  13086. ;;
  13087. esac
  13088. fi
  13089. fi
  13090. if test "${gc_use_mmap}" = "yes"; then
  13091. $as_echo "#define USE_MMAP 1" >>confdefs.h
  13092. fi
  13093. if test -n "$with_cross_host" &&
  13094. test x"$with_cross_host" != x"no"; then
  13095. toolexecdir='$(exec_prefix)/$(target_noncanonical)'
  13096. toolexeclibdir='$(toolexecdir)/lib'
  13097. else
  13098. toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
  13099. toolexeclibdir='$(libdir)'
  13100. fi
  13101. multi_os_directory=`$CC -print-multi-os-directory`
  13102. case $multi_os_directory in
  13103. .) ;; # Avoid trailing /.
  13104. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  13105. esac
  13106. if test "${multilib}" = "yes"; then
  13107. multilib_arg="--enable-multilib"
  13108. else
  13109. multilib_arg=
  13110. fi
  13111. ac_config_headers="$ac_config_headers include/gc_config.h include/gc_ext_config.h"
  13112. ac_config_files="$ac_config_files Makefile include/Makefile testsuite/Makefile threads.mk"
  13113. cat >confcache <<\_ACEOF
  13114. # This file is a shell script that caches the results of configure
  13115. # tests run on this system so they can be shared between configure
  13116. # scripts and configure runs, see configure's option --config-cache.
  13117. # It is not useful on other systems. If it contains results you don't
  13118. # want to keep, you may remove or edit it.
  13119. #
  13120. # config.status only pays attention to the cache file if you give it
  13121. # the --recheck option to rerun configure.
  13122. #
  13123. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13124. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13125. # following values.
  13126. _ACEOF
  13127. # The following way of writing the cache mishandles newlines in values,
  13128. # but we know of no workaround that is simple, portable, and efficient.
  13129. # So, we kill variables containing newlines.
  13130. # Ultrix sh set writes to stderr and can't be redirected directly,
  13131. # and sets the high bit in the cache file unless we assign to the vars.
  13132. (
  13133. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13134. eval ac_val=\$$ac_var
  13135. case $ac_val in #(
  13136. *${as_nl}*)
  13137. case $ac_var in #(
  13138. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13139. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13140. esac
  13141. case $ac_var in #(
  13142. _ | IFS | as_nl) ;; #(
  13143. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13144. *) { eval $ac_var=; unset $ac_var;} ;;
  13145. esac ;;
  13146. esac
  13147. done
  13148. (set) 2>&1 |
  13149. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13150. *${as_nl}ac_space=\ *)
  13151. # `set' does not quote correctly, so add quotes: double-quote
  13152. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13153. sed -n \
  13154. "s/'/'\\\\''/g;
  13155. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13156. ;; #(
  13157. *)
  13158. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13159. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13160. ;;
  13161. esac |
  13162. sort
  13163. ) |
  13164. sed '
  13165. /^ac_cv_env_/b end
  13166. t clear
  13167. :clear
  13168. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13169. t end
  13170. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13171. :end' >>confcache
  13172. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13173. if test -w "$cache_file"; then
  13174. test "x$cache_file" != "x/dev/null" &&
  13175. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13176. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13177. cat confcache >$cache_file
  13178. else
  13179. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13180. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13181. fi
  13182. fi
  13183. rm -f confcache
  13184. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13185. # Let make expand exec_prefix.
  13186. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13187. DEFS=-DHAVE_CONFIG_H
  13188. ac_libobjs=
  13189. ac_ltlibobjs=
  13190. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13191. # 1. Remove the extension, and $U if already installed.
  13192. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13193. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13194. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13195. # will be set to the directory where LIBOBJS objects are built.
  13196. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13197. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13198. done
  13199. LIBOBJS=$ac_libobjs
  13200. LTLIBOBJS=$ac_ltlibobjs
  13201. if test -n "$EXEEXT"; then
  13202. am__EXEEXT_TRUE=
  13203. am__EXEEXT_FALSE='#'
  13204. else
  13205. am__EXEEXT_TRUE='#'
  13206. am__EXEEXT_FALSE=
  13207. fi
  13208. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13209. as_fn_error "conditional \"AMDEP\" was never defined.
  13210. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13211. fi
  13212. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13213. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13214. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13215. fi
  13216. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13217. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  13218. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13219. fi
  13220. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13221. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  13222. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13223. fi
  13224. if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
  13225. as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
  13226. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13227. fi
  13228. if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
  13229. as_fn_error "conditional \"CPLUSPLUS\" was never defined.
  13230. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13231. fi
  13232. : ${CONFIG_STATUS=./config.status}
  13233. ac_write_fail=0
  13234. ac_clean_files_save=$ac_clean_files
  13235. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13236. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13237. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13238. as_write_fail=0
  13239. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13240. #! $SHELL
  13241. # Generated by $as_me.
  13242. # Run this file to recreate the current configuration.
  13243. # Compiler output produced by configure, useful for debugging
  13244. # configure, is in config.log if it exists.
  13245. debug=false
  13246. ac_cs_recheck=false
  13247. ac_cs_silent=false
  13248. SHELL=\${CONFIG_SHELL-$SHELL}
  13249. export SHELL
  13250. _ASEOF
  13251. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13252. ## -------------------- ##
  13253. ## M4sh Initialization. ##
  13254. ## -------------------- ##
  13255. # Be more Bourne compatible
  13256. DUALCASE=1; export DUALCASE # for MKS sh
  13257. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13258. emulate sh
  13259. NULLCMD=:
  13260. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13261. # is contrary to our usage. Disable this feature.
  13262. alias -g '${1+"$@"}'='"$@"'
  13263. setopt NO_GLOB_SUBST
  13264. else
  13265. case `(set -o) 2>/dev/null` in #(
  13266. *posix*) :
  13267. set -o posix ;; #(
  13268. *) :
  13269. ;;
  13270. esac
  13271. fi
  13272. as_nl='
  13273. '
  13274. export as_nl
  13275. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13276. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13277. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13278. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13279. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13280. # but without wasting forks for bash or zsh.
  13281. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13282. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13283. as_echo='print -r --'
  13284. as_echo_n='print -rn --'
  13285. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13286. as_echo='printf %s\n'
  13287. as_echo_n='printf %s'
  13288. else
  13289. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13290. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13291. as_echo_n='/usr/ucb/echo -n'
  13292. else
  13293. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13294. as_echo_n_body='eval
  13295. arg=$1;
  13296. case $arg in #(
  13297. *"$as_nl"*)
  13298. expr "X$arg" : "X\\(.*\\)$as_nl";
  13299. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13300. esac;
  13301. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13302. '
  13303. export as_echo_n_body
  13304. as_echo_n='sh -c $as_echo_n_body as_echo'
  13305. fi
  13306. export as_echo_body
  13307. as_echo='sh -c $as_echo_body as_echo'
  13308. fi
  13309. # The user is always right.
  13310. if test "${PATH_SEPARATOR+set}" != set; then
  13311. PATH_SEPARATOR=:
  13312. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13313. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13314. PATH_SEPARATOR=';'
  13315. }
  13316. fi
  13317. # IFS
  13318. # We need space, tab and new line, in precisely that order. Quoting is
  13319. # there to prevent editors from complaining about space-tab.
  13320. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13321. # splitting by setting IFS to empty value.)
  13322. IFS=" "" $as_nl"
  13323. # Find who we are. Look in the path if we contain no directory separator.
  13324. case $0 in #((
  13325. *[\\/]* ) as_myself=$0 ;;
  13326. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13327. for as_dir in $PATH
  13328. do
  13329. IFS=$as_save_IFS
  13330. test -z "$as_dir" && as_dir=.
  13331. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13332. done
  13333. IFS=$as_save_IFS
  13334. ;;
  13335. esac
  13336. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13337. # in which case we are not to be found in the path.
  13338. if test "x$as_myself" = x; then
  13339. as_myself=$0
  13340. fi
  13341. if test ! -f "$as_myself"; then
  13342. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13343. exit 1
  13344. fi
  13345. # Unset variables that we do not need and which cause bugs (e.g. in
  13346. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13347. # suppresses any "Segmentation fault" message there. '((' could
  13348. # trigger a bug in pdksh 5.2.14.
  13349. for as_var in BASH_ENV ENV MAIL MAILPATH
  13350. do eval test x\${$as_var+set} = xset \
  13351. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13352. done
  13353. PS1='$ '
  13354. PS2='> '
  13355. PS4='+ '
  13356. # NLS nuisances.
  13357. LC_ALL=C
  13358. export LC_ALL
  13359. LANGUAGE=C
  13360. export LANGUAGE
  13361. # CDPATH.
  13362. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13363. # as_fn_error ERROR [LINENO LOG_FD]
  13364. # ---------------------------------
  13365. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13366. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13367. # script with status $?, using 1 if that was 0.
  13368. as_fn_error ()
  13369. {
  13370. as_status=$?; test $as_status -eq 0 && as_status=1
  13371. if test "$3"; then
  13372. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13373. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13374. fi
  13375. $as_echo "$as_me: error: $1" >&2
  13376. as_fn_exit $as_status
  13377. } # as_fn_error
  13378. # as_fn_set_status STATUS
  13379. # -----------------------
  13380. # Set $? to STATUS, without forking.
  13381. as_fn_set_status ()
  13382. {
  13383. return $1
  13384. } # as_fn_set_status
  13385. # as_fn_exit STATUS
  13386. # -----------------
  13387. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13388. as_fn_exit ()
  13389. {
  13390. set +e
  13391. as_fn_set_status $1
  13392. exit $1
  13393. } # as_fn_exit
  13394. # as_fn_unset VAR
  13395. # ---------------
  13396. # Portably unset VAR.
  13397. as_fn_unset ()
  13398. {
  13399. { eval $1=; unset $1;}
  13400. }
  13401. as_unset=as_fn_unset
  13402. # as_fn_append VAR VALUE
  13403. # ----------------------
  13404. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13405. # advantage of any shell optimizations that allow amortized linear growth over
  13406. # repeated appends, instead of the typical quadratic growth present in naive
  13407. # implementations.
  13408. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13409. eval 'as_fn_append ()
  13410. {
  13411. eval $1+=\$2
  13412. }'
  13413. else
  13414. as_fn_append ()
  13415. {
  13416. eval $1=\$$1\$2
  13417. }
  13418. fi # as_fn_append
  13419. # as_fn_arith ARG...
  13420. # ------------------
  13421. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13422. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13423. # must be portable across $(()) and expr.
  13424. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13425. eval 'as_fn_arith ()
  13426. {
  13427. as_val=$(( $* ))
  13428. }'
  13429. else
  13430. as_fn_arith ()
  13431. {
  13432. as_val=`expr "$@" || test $? -eq 1`
  13433. }
  13434. fi # as_fn_arith
  13435. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13436. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13437. as_expr=expr
  13438. else
  13439. as_expr=false
  13440. fi
  13441. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13442. as_basename=basename
  13443. else
  13444. as_basename=false
  13445. fi
  13446. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13447. as_dirname=dirname
  13448. else
  13449. as_dirname=false
  13450. fi
  13451. as_me=`$as_basename -- "$0" ||
  13452. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13453. X"$0" : 'X\(//\)$' \| \
  13454. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13455. $as_echo X/"$0" |
  13456. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13457. s//\1/
  13458. q
  13459. }
  13460. /^X\/\(\/\/\)$/{
  13461. s//\1/
  13462. q
  13463. }
  13464. /^X\/\(\/\).*/{
  13465. s//\1/
  13466. q
  13467. }
  13468. s/.*/./; q'`
  13469. # Avoid depending upon Character Ranges.
  13470. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13471. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13472. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13473. as_cr_digits='0123456789'
  13474. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13475. ECHO_C= ECHO_N= ECHO_T=
  13476. case `echo -n x` in #(((((
  13477. -n*)
  13478. case `echo 'xy\c'` in
  13479. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13480. xy) ECHO_C='\c';;
  13481. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13482. ECHO_T=' ';;
  13483. esac;;
  13484. *)
  13485. ECHO_N='-n';;
  13486. esac
  13487. rm -f conf$$ conf$$.exe conf$$.file
  13488. if test -d conf$$.dir; then
  13489. rm -f conf$$.dir/conf$$.file
  13490. else
  13491. rm -f conf$$.dir
  13492. mkdir conf$$.dir 2>/dev/null
  13493. fi
  13494. if (echo >conf$$.file) 2>/dev/null; then
  13495. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13496. as_ln_s='ln -s'
  13497. # ... but there are two gotchas:
  13498. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13499. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13500. # In both cases, we have to default to `cp -p'.
  13501. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13502. as_ln_s='cp -p'
  13503. elif ln conf$$.file conf$$ 2>/dev/null; then
  13504. as_ln_s=ln
  13505. else
  13506. as_ln_s='cp -p'
  13507. fi
  13508. else
  13509. as_ln_s='cp -p'
  13510. fi
  13511. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13512. rmdir conf$$.dir 2>/dev/null
  13513. # as_fn_mkdir_p
  13514. # -------------
  13515. # Create "$as_dir" as a directory, including parents if necessary.
  13516. as_fn_mkdir_p ()
  13517. {
  13518. case $as_dir in #(
  13519. -*) as_dir=./$as_dir;;
  13520. esac
  13521. test -d "$as_dir" || eval $as_mkdir_p || {
  13522. as_dirs=
  13523. while :; do
  13524. case $as_dir in #(
  13525. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13526. *) as_qdir=$as_dir;;
  13527. esac
  13528. as_dirs="'$as_qdir' $as_dirs"
  13529. as_dir=`$as_dirname -- "$as_dir" ||
  13530. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13531. X"$as_dir" : 'X\(//\)[^/]' \| \
  13532. X"$as_dir" : 'X\(//\)$' \| \
  13533. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13534. $as_echo X"$as_dir" |
  13535. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13536. s//\1/
  13537. q
  13538. }
  13539. /^X\(\/\/\)[^/].*/{
  13540. s//\1/
  13541. q
  13542. }
  13543. /^X\(\/\/\)$/{
  13544. s//\1/
  13545. q
  13546. }
  13547. /^X\(\/\).*/{
  13548. s//\1/
  13549. q
  13550. }
  13551. s/.*/./; q'`
  13552. test -d "$as_dir" && break
  13553. done
  13554. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13555. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13556. } # as_fn_mkdir_p
  13557. if mkdir -p . 2>/dev/null; then
  13558. as_mkdir_p='mkdir -p "$as_dir"'
  13559. else
  13560. test -d ./-p && rmdir ./-p
  13561. as_mkdir_p=false
  13562. fi
  13563. if test -x / >/dev/null 2>&1; then
  13564. as_test_x='test -x'
  13565. else
  13566. if ls -dL / >/dev/null 2>&1; then
  13567. as_ls_L_option=L
  13568. else
  13569. as_ls_L_option=
  13570. fi
  13571. as_test_x='
  13572. eval sh -c '\''
  13573. if test -d "$1"; then
  13574. test -d "$1/.";
  13575. else
  13576. case $1 in #(
  13577. -*)set "./$1";;
  13578. esac;
  13579. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13580. ???[sx]*):;;*)false;;esac;fi
  13581. '\'' sh
  13582. '
  13583. fi
  13584. as_executable_p=$as_test_x
  13585. # Sed expression to map a string onto a valid CPP name.
  13586. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13587. # Sed expression to map a string onto a valid variable name.
  13588. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13589. exec 6>&1
  13590. ## ----------------------------------- ##
  13591. ## Main body of $CONFIG_STATUS script. ##
  13592. ## ----------------------------------- ##
  13593. _ASEOF
  13594. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13595. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13596. # Save the log message, to keep $0 and so on meaningful, and to
  13597. # report actual input values of CONFIG_FILES etc. instead of their
  13598. # values after options handling.
  13599. ac_log="
  13600. This file was extended by $as_me, which was
  13601. generated by GNU Autoconf 2.64. Invocation command line was
  13602. CONFIG_FILES = $CONFIG_FILES
  13603. CONFIG_HEADERS = $CONFIG_HEADERS
  13604. CONFIG_LINKS = $CONFIG_LINKS
  13605. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13606. $ $0 $@
  13607. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13608. "
  13609. _ACEOF
  13610. case $ac_config_files in *"
  13611. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13612. esac
  13613. case $ac_config_headers in *"
  13614. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13615. esac
  13616. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13617. # Files that config.status was made for.
  13618. config_files="$ac_config_files"
  13619. config_headers="$ac_config_headers"
  13620. config_commands="$ac_config_commands"
  13621. _ACEOF
  13622. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13623. ac_cs_usage="\
  13624. \`$as_me' instantiates files and other configuration actions
  13625. from templates according to the current configuration. Unless the files
  13626. and actions are specified as TAGs, all are instantiated by default.
  13627. Usage: $0 [OPTION]... [TAG]...
  13628. -h, --help print this help, then exit
  13629. -V, --version print version number and configuration settings, then exit
  13630. -q, --quiet, --silent
  13631. do not print progress messages
  13632. -d, --debug don't remove temporary files
  13633. --recheck update $as_me by reconfiguring in the same conditions
  13634. --file=FILE[:TEMPLATE]
  13635. instantiate the configuration file FILE
  13636. --header=FILE[:TEMPLATE]
  13637. instantiate the configuration header FILE
  13638. Configuration files:
  13639. $config_files
  13640. Configuration headers:
  13641. $config_headers
  13642. Configuration commands:
  13643. $config_commands
  13644. Report bugs to the package provider."
  13645. _ACEOF
  13646. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13647. ac_cs_version="\\
  13648. config.status
  13649. configured by $0, generated by GNU Autoconf 2.64,
  13650. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13651. Copyright (C) 2009 Free Software Foundation, Inc.
  13652. This config.status script is free software; the Free Software Foundation
  13653. gives unlimited permission to copy, distribute and modify it."
  13654. ac_pwd='$ac_pwd'
  13655. srcdir='$srcdir'
  13656. INSTALL='$INSTALL'
  13657. MKDIR_P='$MKDIR_P'
  13658. AWK='$AWK'
  13659. test -n "\$AWK" || AWK=awk
  13660. _ACEOF
  13661. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13662. # The default lists apply if the user does not specify any file.
  13663. ac_need_defaults=:
  13664. while test $# != 0
  13665. do
  13666. case $1 in
  13667. --*=*)
  13668. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13669. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13670. ac_shift=:
  13671. ;;
  13672. *)
  13673. ac_option=$1
  13674. ac_optarg=$2
  13675. ac_shift=shift
  13676. ;;
  13677. esac
  13678. case $ac_option in
  13679. # Handling of the options.
  13680. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13681. ac_cs_recheck=: ;;
  13682. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13683. $as_echo "$ac_cs_version"; exit ;;
  13684. --debug | --debu | --deb | --de | --d | -d )
  13685. debug=: ;;
  13686. --file | --fil | --fi | --f )
  13687. $ac_shift
  13688. case $ac_optarg in
  13689. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13690. esac
  13691. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13692. ac_need_defaults=false;;
  13693. --header | --heade | --head | --hea )
  13694. $ac_shift
  13695. case $ac_optarg in
  13696. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13697. esac
  13698. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13699. ac_need_defaults=false;;
  13700. --he | --h)
  13701. # Conflict between --help and --header
  13702. as_fn_error "ambiguous option: \`$1'
  13703. Try \`$0 --help' for more information.";;
  13704. --help | --hel | -h )
  13705. $as_echo "$ac_cs_usage"; exit ;;
  13706. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13707. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13708. ac_cs_silent=: ;;
  13709. # This is an error.
  13710. -*) as_fn_error "unrecognized option: \`$1'
  13711. Try \`$0 --help' for more information." ;;
  13712. *) as_fn_append ac_config_targets " $1"
  13713. ac_need_defaults=false ;;
  13714. esac
  13715. shift
  13716. done
  13717. ac_configure_extra_args=
  13718. if $ac_cs_silent; then
  13719. exec 6>/dev/null
  13720. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13721. fi
  13722. _ACEOF
  13723. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13724. if \$ac_cs_recheck; then
  13725. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13726. shift
  13727. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13728. CONFIG_SHELL='$SHELL'
  13729. export CONFIG_SHELL
  13730. exec "\$@"
  13731. fi
  13732. _ACEOF
  13733. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13734. exec 5>>config.log
  13735. {
  13736. echo
  13737. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13738. ## Running $as_me. ##
  13739. _ASBOX
  13740. $as_echo "$ac_log"
  13741. } >&5
  13742. _ACEOF
  13743. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13744. #
  13745. # INIT-COMMANDS
  13746. #
  13747. srcdir="$srcdir"
  13748. host="$host"
  13749. target="$target"
  13750. with_multisubdir="$with_multisubdir"
  13751. with_multisrctop="$with_multisrctop"
  13752. with_target_subdir="$with_target_subdir"
  13753. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  13754. multi_basedir="$multi_basedir"
  13755. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13756. CC="$CC"
  13757. CXX="$CXX"
  13758. GFORTRAN="$GFORTRAN"
  13759. GCJ="$GCJ"
  13760. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13761. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13762. # if CDPATH is set.
  13763. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13764. sed_quote_subst='$sed_quote_subst'
  13765. double_quote_subst='$double_quote_subst'
  13766. delay_variable_subst='$delay_variable_subst'
  13767. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13768. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13769. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13770. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13771. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13772. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13773. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13774. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13775. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13776. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13777. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13778. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13779. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13780. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13781. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13782. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13783. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13784. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13785. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13786. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13787. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13788. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13789. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13790. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13791. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13792. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13793. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13794. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13795. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13796. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13797. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13798. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13799. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13800. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13801. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13802. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13803. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13804. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13805. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13806. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13807. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13808. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13809. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13810. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13811. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13812. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13813. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13814. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13815. 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"`'
  13816. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13817. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13818. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13819. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13820. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13821. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13822. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13823. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13824. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13825. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13826. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13827. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13828. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13829. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13830. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13831. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13832. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13833. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13834. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13835. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13836. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13837. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13838. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13839. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13840. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13841. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13842. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13843. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13844. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13845. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13846. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13847. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  13848. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13849. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13850. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13851. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13852. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13853. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13854. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13855. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13856. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  13857. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13858. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13859. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13860. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13861. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13862. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13863. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13864. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13865. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13866. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13867. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13868. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13869. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13870. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13871. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13872. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13873. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13874. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13875. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13876. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13877. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13878. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13879. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13880. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13881. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13882. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13883. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13884. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13885. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13886. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13887. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  13888. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  13889. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  13890. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  13891. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  13892. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  13893. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  13894. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13895. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13896. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13897. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  13898. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  13899. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13900. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  13901. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  13902. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  13903. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  13904. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  13905. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  13906. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13907. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13908. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  13909. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13910. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13911. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13912. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13913. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13914. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13915. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13916. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13917. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  13918. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13919. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  13920. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  13921. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  13922. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  13923. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  13924. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  13925. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  13926. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  13927. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  13928. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  13929. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  13930. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13931. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13932. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  13933. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  13934. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  13935. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  13936. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  13937. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13938. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  13939. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  13940. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  13941. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  13942. LTCC='$LTCC'
  13943. LTCFLAGS='$LTCFLAGS'
  13944. compiler='$compiler_DEFAULT'
  13945. # A function that is used when there is no print builtin or printf.
  13946. func_fallback_echo ()
  13947. {
  13948. eval 'cat <<_LTECHO_EOF
  13949. \$1
  13950. _LTECHO_EOF'
  13951. }
  13952. # Quote evaled strings.
  13953. for var in SHELL \
  13954. ECHO \
  13955. SED \
  13956. GREP \
  13957. EGREP \
  13958. FGREP \
  13959. LD \
  13960. NM \
  13961. LN_S \
  13962. lt_SP2NL \
  13963. lt_NL2SP \
  13964. reload_flag \
  13965. OBJDUMP \
  13966. deplibs_check_method \
  13967. file_magic_cmd \
  13968. AR \
  13969. AR_FLAGS \
  13970. STRIP \
  13971. RANLIB \
  13972. CC \
  13973. CFLAGS \
  13974. compiler \
  13975. lt_cv_sys_global_symbol_pipe \
  13976. lt_cv_sys_global_symbol_to_cdecl \
  13977. lt_cv_sys_global_symbol_to_c_name_address \
  13978. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13979. lt_prog_compiler_no_builtin_flag \
  13980. lt_prog_compiler_wl \
  13981. lt_prog_compiler_pic \
  13982. lt_prog_compiler_static \
  13983. lt_cv_prog_compiler_c_o \
  13984. need_locks \
  13985. DSYMUTIL \
  13986. NMEDIT \
  13987. LIPO \
  13988. OTOOL \
  13989. OTOOL64 \
  13990. shrext_cmds \
  13991. export_dynamic_flag_spec \
  13992. whole_archive_flag_spec \
  13993. compiler_needs_object \
  13994. with_gnu_ld \
  13995. allow_undefined_flag \
  13996. no_undefined_flag \
  13997. hardcode_libdir_flag_spec \
  13998. hardcode_libdir_flag_spec_ld \
  13999. hardcode_libdir_separator \
  14000. fix_srcfile_path \
  14001. exclude_expsyms \
  14002. include_expsyms \
  14003. file_list_spec \
  14004. variables_saved_for_relink \
  14005. libname_spec \
  14006. library_names_spec \
  14007. soname_spec \
  14008. install_override_mode \
  14009. finish_eval \
  14010. old_striplib \
  14011. striplib \
  14012. compiler_lib_search_dirs \
  14013. predep_objects \
  14014. postdep_objects \
  14015. predeps \
  14016. postdeps \
  14017. compiler_lib_search_path \
  14018. LD_CXX \
  14019. reload_flag_CXX \
  14020. compiler_CXX \
  14021. lt_prog_compiler_no_builtin_flag_CXX \
  14022. lt_prog_compiler_wl_CXX \
  14023. lt_prog_compiler_pic_CXX \
  14024. lt_prog_compiler_static_CXX \
  14025. lt_cv_prog_compiler_c_o_CXX \
  14026. export_dynamic_flag_spec_CXX \
  14027. whole_archive_flag_spec_CXX \
  14028. compiler_needs_object_CXX \
  14029. with_gnu_ld_CXX \
  14030. allow_undefined_flag_CXX \
  14031. no_undefined_flag_CXX \
  14032. hardcode_libdir_flag_spec_CXX \
  14033. hardcode_libdir_flag_spec_ld_CXX \
  14034. hardcode_libdir_separator_CXX \
  14035. fix_srcfile_path_CXX \
  14036. exclude_expsyms_CXX \
  14037. include_expsyms_CXX \
  14038. file_list_spec_CXX \
  14039. compiler_lib_search_dirs_CXX \
  14040. predep_objects_CXX \
  14041. postdep_objects_CXX \
  14042. predeps_CXX \
  14043. postdeps_CXX \
  14044. compiler_lib_search_path_CXX; do
  14045. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14046. *[\\\\\\\`\\"\\\$]*)
  14047. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14048. ;;
  14049. *)
  14050. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14051. ;;
  14052. esac
  14053. done
  14054. # Double-quote double-evaled strings.
  14055. for var in reload_cmds \
  14056. old_postinstall_cmds \
  14057. old_postuninstall_cmds \
  14058. old_archive_cmds \
  14059. extract_expsyms_cmds \
  14060. old_archive_from_new_cmds \
  14061. old_archive_from_expsyms_cmds \
  14062. archive_cmds \
  14063. archive_expsym_cmds \
  14064. module_cmds \
  14065. module_expsym_cmds \
  14066. export_symbols_cmds \
  14067. prelink_cmds \
  14068. postinstall_cmds \
  14069. postuninstall_cmds \
  14070. finish_cmds \
  14071. sys_lib_search_path_spec \
  14072. sys_lib_dlsearch_path_spec \
  14073. reload_cmds_CXX \
  14074. old_archive_cmds_CXX \
  14075. old_archive_from_new_cmds_CXX \
  14076. old_archive_from_expsyms_cmds_CXX \
  14077. archive_cmds_CXX \
  14078. archive_expsym_cmds_CXX \
  14079. module_cmds_CXX \
  14080. module_expsym_cmds_CXX \
  14081. export_symbols_cmds_CXX \
  14082. prelink_cmds_CXX; do
  14083. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14084. *[\\\\\\\`\\"\\\$]*)
  14085. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14086. ;;
  14087. *)
  14088. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14089. ;;
  14090. esac
  14091. done
  14092. ac_aux_dir='$ac_aux_dir'
  14093. xsi_shell='$xsi_shell'
  14094. lt_shell_append='$lt_shell_append'
  14095. # See if we are running on zsh, and set the options which allow our
  14096. # commands through without removal of \ escapes INIT.
  14097. if test -n "\${ZSH_VERSION+set}" ; then
  14098. setopt NO_GLOB_SUBST
  14099. fi
  14100. PACKAGE='$PACKAGE'
  14101. VERSION='$VERSION'
  14102. TIMESTAMP='$TIMESTAMP'
  14103. RM='$RM'
  14104. ofile='$ofile'
  14105. _ACEOF
  14106. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14107. # Handling of arguments.
  14108. for ac_config_target in $ac_config_targets
  14109. do
  14110. case $ac_config_target in
  14111. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  14112. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14113. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14114. "include/gc_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/gc_config.h" ;;
  14115. "include/gc_ext_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/gc_ext_config.h" ;;
  14116. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14117. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  14118. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  14119. "threads.mk") CONFIG_FILES="$CONFIG_FILES threads.mk" ;;
  14120. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14121. esac
  14122. done
  14123. # If the user did not use the arguments to specify the items to instantiate,
  14124. # then the envvar interface is used. Set only those that are not.
  14125. # We use the long form for the default assignment because of an extremely
  14126. # bizarre bug on SunOS 4.1.3.
  14127. if $ac_need_defaults; then
  14128. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14129. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14130. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14131. fi
  14132. # Have a temporary directory for convenience. Make it in the build tree
  14133. # simply because there is no reason against having it here, and in addition,
  14134. # creating and moving files from /tmp can sometimes cause problems.
  14135. # Hook for its removal unless debugging.
  14136. # Note that there is a small window in which the directory will not be cleaned:
  14137. # after its creation but before its name has been assigned to `$tmp'.
  14138. $debug ||
  14139. {
  14140. tmp=
  14141. trap 'exit_status=$?
  14142. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14143. ' 0
  14144. trap 'as_fn_exit 1' 1 2 13 15
  14145. }
  14146. # Create a (secure) tmp directory for tmp files.
  14147. {
  14148. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14149. test -n "$tmp" && test -d "$tmp"
  14150. } ||
  14151. {
  14152. tmp=./conf$$-$RANDOM
  14153. (umask 077 && mkdir "$tmp")
  14154. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14155. # Set up the scripts for CONFIG_FILES section.
  14156. # No need to generate them if there are no CONFIG_FILES.
  14157. # This happens for instance with `./config.status config.h'.
  14158. if test -n "$CONFIG_FILES"; then
  14159. ac_cr=`echo X | tr X '\015'`
  14160. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14161. # But we know of no other shell where ac_cr would be empty at this
  14162. # point, so we can use a bashism as a fallback.
  14163. if test "x$ac_cr" = x; then
  14164. eval ac_cr=\$\'\\r\'
  14165. fi
  14166. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14167. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14168. ac_cs_awk_cr='\r'
  14169. else
  14170. ac_cs_awk_cr=$ac_cr
  14171. fi
  14172. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14173. _ACEOF
  14174. {
  14175. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14176. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14177. echo "_ACEOF"
  14178. } >conf$$subs.sh ||
  14179. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14180. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14181. ac_delim='%!_!# '
  14182. for ac_last_try in false false false false false :; do
  14183. . ./conf$$subs.sh ||
  14184. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14185. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14186. if test $ac_delim_n = $ac_delim_num; then
  14187. break
  14188. elif $ac_last_try; then
  14189. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14190. else
  14191. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14192. fi
  14193. done
  14194. rm -f conf$$subs.sh
  14195. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14196. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14197. _ACEOF
  14198. sed -n '
  14199. h
  14200. s/^/S["/; s/!.*/"]=/
  14201. p
  14202. g
  14203. s/^[^!]*!//
  14204. :repl
  14205. t repl
  14206. s/'"$ac_delim"'$//
  14207. t delim
  14208. :nl
  14209. h
  14210. s/\(.\{148\}\).*/\1/
  14211. t more1
  14212. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14213. p
  14214. n
  14215. b repl
  14216. :more1
  14217. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14218. p
  14219. g
  14220. s/.\{148\}//
  14221. t nl
  14222. :delim
  14223. h
  14224. s/\(.\{148\}\).*/\1/
  14225. t more2
  14226. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14227. p
  14228. b
  14229. :more2
  14230. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14231. p
  14232. g
  14233. s/.\{148\}//
  14234. t delim
  14235. ' <conf$$subs.awk | sed '
  14236. /^[^""]/{
  14237. N
  14238. s/\n//
  14239. }
  14240. ' >>$CONFIG_STATUS || ac_write_fail=1
  14241. rm -f conf$$subs.awk
  14242. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14243. _ACAWK
  14244. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14245. for (key in S) S_is_set[key] = 1
  14246. FS = ""
  14247. }
  14248. {
  14249. line = $ 0
  14250. nfields = split(line, field, "@")
  14251. substed = 0
  14252. len = length(field[1])
  14253. for (i = 2; i < nfields; i++) {
  14254. key = field[i]
  14255. keylen = length(key)
  14256. if (S_is_set[key]) {
  14257. value = S[key]
  14258. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14259. len += length(value) + length(field[++i])
  14260. substed = 1
  14261. } else
  14262. len += 1 + keylen
  14263. }
  14264. print line
  14265. }
  14266. _ACAWK
  14267. _ACEOF
  14268. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14269. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14270. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14271. else
  14272. cat
  14273. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14274. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14275. _ACEOF
  14276. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14277. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14278. # trailing colons and then remove the whole line if VPATH becomes empty
  14279. # (actually we leave an empty line to preserve line numbers).
  14280. if test "x$srcdir" = x.; then
  14281. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14282. s/:*\$(srcdir):*/:/
  14283. s/:*\${srcdir}:*/:/
  14284. s/:*@srcdir@:*/:/
  14285. s/^\([^=]*=[ ]*\):*/\1/
  14286. s/:*$//
  14287. s/^[^=]*=[ ]*$//
  14288. }'
  14289. fi
  14290. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14291. fi # test -n "$CONFIG_FILES"
  14292. # Set up the scripts for CONFIG_HEADERS section.
  14293. # No need to generate them if there are no CONFIG_HEADERS.
  14294. # This happens for instance with `./config.status Makefile'.
  14295. if test -n "$CONFIG_HEADERS"; then
  14296. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14297. BEGIN {
  14298. _ACEOF
  14299. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14300. # here-document in config.status, that substitutes the proper values into
  14301. # config.h.in to produce config.h.
  14302. # Create a delimiter string that does not exist in confdefs.h, to ease
  14303. # handling of long lines.
  14304. ac_delim='%!_!# '
  14305. for ac_last_try in false false :; do
  14306. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14307. if test -z "$ac_t"; then
  14308. break
  14309. elif $ac_last_try; then
  14310. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14311. else
  14312. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14313. fi
  14314. done
  14315. # For the awk script, D is an array of macro values keyed by name,
  14316. # likewise P contains macro parameters if any. Preserve backslash
  14317. # newline sequences.
  14318. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14319. sed -n '
  14320. s/.\{148\}/&'"$ac_delim"'/g
  14321. t rset
  14322. :rset
  14323. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14324. t def
  14325. d
  14326. :def
  14327. s/\\$//
  14328. t bsnl
  14329. s/["\\]/\\&/g
  14330. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14331. D["\1"]=" \3"/p
  14332. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14333. d
  14334. :bsnl
  14335. s/["\\]/\\&/g
  14336. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14337. D["\1"]=" \3\\\\\\n"\\/p
  14338. t cont
  14339. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14340. t cont
  14341. d
  14342. :cont
  14343. n
  14344. s/.\{148\}/&'"$ac_delim"'/g
  14345. t clear
  14346. :clear
  14347. s/\\$//
  14348. t bsnlc
  14349. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14350. d
  14351. :bsnlc
  14352. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14353. b cont
  14354. ' <confdefs.h | sed '
  14355. s/'"$ac_delim"'/"\\\
  14356. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14357. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14358. for (key in D) D_is_set[key] = 1
  14359. FS = ""
  14360. }
  14361. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14362. line = \$ 0
  14363. split(line, arg, " ")
  14364. if (arg[1] == "#") {
  14365. defundef = arg[2]
  14366. mac1 = arg[3]
  14367. } else {
  14368. defundef = substr(arg[1], 2)
  14369. mac1 = arg[2]
  14370. }
  14371. split(mac1, mac2, "(") #)
  14372. macro = mac2[1]
  14373. prefix = substr(line, 1, index(line, defundef) - 1)
  14374. if (D_is_set[macro]) {
  14375. # Preserve the white space surrounding the "#".
  14376. print prefix "define", macro P[macro] D[macro]
  14377. next
  14378. } else {
  14379. # Replace #undef with comments. This is necessary, for example,
  14380. # in the case of _POSIX_SOURCE, which is predefined and required
  14381. # on some systems where configure will not decide to define it.
  14382. if (defundef == "undef") {
  14383. print "/*", prefix defundef, macro, "*/"
  14384. next
  14385. }
  14386. }
  14387. }
  14388. { print }
  14389. _ACAWK
  14390. _ACEOF
  14391. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14392. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14393. fi # test -n "$CONFIG_HEADERS"
  14394. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14395. shift
  14396. for ac_tag
  14397. do
  14398. case $ac_tag in
  14399. :[FHLC]) ac_mode=$ac_tag; continue;;
  14400. esac
  14401. case $ac_mode$ac_tag in
  14402. :[FHL]*:*);;
  14403. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14404. :[FH]-) ac_tag=-:-;;
  14405. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14406. esac
  14407. ac_save_IFS=$IFS
  14408. IFS=:
  14409. set x $ac_tag
  14410. IFS=$ac_save_IFS
  14411. shift
  14412. ac_file=$1
  14413. shift
  14414. case $ac_mode in
  14415. :L) ac_source=$1;;
  14416. :[FH])
  14417. ac_file_inputs=
  14418. for ac_f
  14419. do
  14420. case $ac_f in
  14421. -) ac_f="$tmp/stdin";;
  14422. *) # Look for the file first in the build tree, then in the source tree
  14423. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14424. # because $ac_f cannot contain `:'.
  14425. test -f "$ac_f" ||
  14426. case $ac_f in
  14427. [\\/$]*) false;;
  14428. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14429. esac ||
  14430. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14431. esac
  14432. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14433. as_fn_append ac_file_inputs " '$ac_f'"
  14434. done
  14435. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14436. # use $as_me), people would be surprised to read:
  14437. # /* config.h. Generated by config.status. */
  14438. configure_input='Generated from '`
  14439. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14440. `' by configure.'
  14441. if test x"$ac_file" != x-; then
  14442. configure_input="$ac_file. $configure_input"
  14443. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14444. $as_echo "$as_me: creating $ac_file" >&6;}
  14445. fi
  14446. # Neutralize special characters interpreted by sed in replacement strings.
  14447. case $configure_input in #(
  14448. *\&* | *\|* | *\\* )
  14449. ac_sed_conf_input=`$as_echo "$configure_input" |
  14450. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14451. *) ac_sed_conf_input=$configure_input;;
  14452. esac
  14453. case $ac_tag in
  14454. *:-:* | *:-) cat >"$tmp/stdin" \
  14455. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14456. esac
  14457. ;;
  14458. esac
  14459. ac_dir=`$as_dirname -- "$ac_file" ||
  14460. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14461. X"$ac_file" : 'X\(//\)[^/]' \| \
  14462. X"$ac_file" : 'X\(//\)$' \| \
  14463. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14464. $as_echo X"$ac_file" |
  14465. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14466. s//\1/
  14467. q
  14468. }
  14469. /^X\(\/\/\)[^/].*/{
  14470. s//\1/
  14471. q
  14472. }
  14473. /^X\(\/\/\)$/{
  14474. s//\1/
  14475. q
  14476. }
  14477. /^X\(\/\).*/{
  14478. s//\1/
  14479. q
  14480. }
  14481. s/.*/./; q'`
  14482. as_dir="$ac_dir"; as_fn_mkdir_p
  14483. ac_builddir=.
  14484. case "$ac_dir" in
  14485. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14486. *)
  14487. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14488. # A ".." for each directory in $ac_dir_suffix.
  14489. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14490. case $ac_top_builddir_sub in
  14491. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14492. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14493. esac ;;
  14494. esac
  14495. ac_abs_top_builddir=$ac_pwd
  14496. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14497. # for backward compatibility:
  14498. ac_top_builddir=$ac_top_build_prefix
  14499. case $srcdir in
  14500. .) # We are building in place.
  14501. ac_srcdir=.
  14502. ac_top_srcdir=$ac_top_builddir_sub
  14503. ac_abs_top_srcdir=$ac_pwd ;;
  14504. [\\/]* | ?:[\\/]* ) # Absolute name.
  14505. ac_srcdir=$srcdir$ac_dir_suffix;
  14506. ac_top_srcdir=$srcdir
  14507. ac_abs_top_srcdir=$srcdir ;;
  14508. *) # Relative name.
  14509. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14510. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14511. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14512. esac
  14513. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14514. case $ac_mode in
  14515. :F)
  14516. #
  14517. # CONFIG_FILE
  14518. #
  14519. case $INSTALL in
  14520. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14521. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14522. esac
  14523. ac_MKDIR_P=$MKDIR_P
  14524. case $MKDIR_P in
  14525. [\\/$]* | ?:[\\/]* ) ;;
  14526. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14527. esac
  14528. _ACEOF
  14529. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14530. # If the template does not know about datarootdir, expand it.
  14531. # FIXME: This hack should be removed a few years after 2.60.
  14532. ac_datarootdir_hack=; ac_datarootdir_seen=
  14533. ac_sed_dataroot='
  14534. /datarootdir/ {
  14535. p
  14536. q
  14537. }
  14538. /@datadir@/p
  14539. /@docdir@/p
  14540. /@infodir@/p
  14541. /@localedir@/p
  14542. /@mandir@/p'
  14543. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14544. *datarootdir*) ac_datarootdir_seen=yes;;
  14545. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14546. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14547. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14548. _ACEOF
  14549. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14550. ac_datarootdir_hack='
  14551. s&@datadir@&$datadir&g
  14552. s&@docdir@&$docdir&g
  14553. s&@infodir@&$infodir&g
  14554. s&@localedir@&$localedir&g
  14555. s&@mandir@&$mandir&g
  14556. s&\\\${datarootdir}&$datarootdir&g' ;;
  14557. esac
  14558. _ACEOF
  14559. # Neutralize VPATH when `$srcdir' = `.'.
  14560. # Shell code in configure.ac might set extrasub.
  14561. # FIXME: do we really want to maintain this feature?
  14562. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14563. ac_sed_extra="$ac_vpsub
  14564. $extrasub
  14565. _ACEOF
  14566. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14567. :t
  14568. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14569. s|@configure_input@|$ac_sed_conf_input|;t t
  14570. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14571. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14572. s&@srcdir@&$ac_srcdir&;t t
  14573. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14574. s&@top_srcdir@&$ac_top_srcdir&;t t
  14575. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14576. s&@builddir@&$ac_builddir&;t t
  14577. s&@abs_builddir@&$ac_abs_builddir&;t t
  14578. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14579. s&@INSTALL@&$ac_INSTALL&;t t
  14580. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14581. $ac_datarootdir_hack
  14582. "
  14583. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14584. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14585. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14586. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14587. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14589. which seems to be undefined. Please make sure it is defined." >&5
  14590. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14591. which seems to be undefined. Please make sure it is defined." >&2;}
  14592. rm -f "$tmp/stdin"
  14593. case $ac_file in
  14594. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14595. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14596. esac \
  14597. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14598. ;;
  14599. :H)
  14600. #
  14601. # CONFIG_HEADER
  14602. #
  14603. if test x"$ac_file" != x-; then
  14604. {
  14605. $as_echo "/* $configure_input */" \
  14606. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14607. } >"$tmp/config.h" \
  14608. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14609. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14610. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14611. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14612. else
  14613. rm -f "$ac_file"
  14614. mv "$tmp/config.h" "$ac_file" \
  14615. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14616. fi
  14617. else
  14618. $as_echo "/* $configure_input */" \
  14619. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14620. || as_fn_error "could not create -" "$LINENO" 5
  14621. fi
  14622. # Compute "$ac_file"'s index in $config_headers.
  14623. _am_arg="$ac_file"
  14624. _am_stamp_count=1
  14625. for _am_header in $config_headers :; do
  14626. case $_am_header in
  14627. $_am_arg | $_am_arg:* )
  14628. break ;;
  14629. * )
  14630. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14631. esac
  14632. done
  14633. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14634. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14635. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14636. X"$_am_arg" : 'X\(//\)$' \| \
  14637. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14638. $as_echo X"$_am_arg" |
  14639. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14640. s//\1/
  14641. q
  14642. }
  14643. /^X\(\/\/\)[^/].*/{
  14644. s//\1/
  14645. q
  14646. }
  14647. /^X\(\/\/\)$/{
  14648. s//\1/
  14649. q
  14650. }
  14651. /^X\(\/\).*/{
  14652. s//\1/
  14653. q
  14654. }
  14655. s/.*/./; q'`/stamp-h$_am_stamp_count
  14656. ;;
  14657. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14658. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14659. ;;
  14660. esac
  14661. case $ac_file$ac_mode in
  14662. "default-1":C)
  14663. # Only add multilib support code if we just rebuilt the top-level
  14664. # Makefile.
  14665. case " $CONFIG_FILES " in
  14666. *" Makefile "*)
  14667. ac_file=Makefile . ${multi_basedir}/config-ml.in
  14668. ;;
  14669. esac ;;
  14670. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14671. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14672. # are listed without --file. Let's play safe and only enable the eval
  14673. # if we detect the quoting.
  14674. case $CONFIG_FILES in
  14675. *\'*) eval set x "$CONFIG_FILES" ;;
  14676. *) set x $CONFIG_FILES ;;
  14677. esac
  14678. shift
  14679. for mf
  14680. do
  14681. # Strip MF so we end up with the name of the file.
  14682. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14683. # Check whether this is an Automake generated Makefile or not.
  14684. # We used to match only the files named `Makefile.in', but
  14685. # some people rename them; so instead we look at the file content.
  14686. # Grep'ing the first line is not enough: some people post-process
  14687. # each Makefile.in and add a new line on top of each file to say so.
  14688. # Grep'ing the whole file is not good either: AIX grep has a line
  14689. # limit of 2048, but all sed's we know have understand at least 4000.
  14690. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14691. dirpart=`$as_dirname -- "$mf" ||
  14692. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14693. X"$mf" : 'X\(//\)[^/]' \| \
  14694. X"$mf" : 'X\(//\)$' \| \
  14695. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14696. $as_echo X"$mf" |
  14697. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14698. s//\1/
  14699. q
  14700. }
  14701. /^X\(\/\/\)[^/].*/{
  14702. s//\1/
  14703. q
  14704. }
  14705. /^X\(\/\/\)$/{
  14706. s//\1/
  14707. q
  14708. }
  14709. /^X\(\/\).*/{
  14710. s//\1/
  14711. q
  14712. }
  14713. s/.*/./; q'`
  14714. else
  14715. continue
  14716. fi
  14717. # Extract the definition of DEPDIR, am__include, and am__quote
  14718. # from the Makefile without running `make'.
  14719. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14720. test -z "$DEPDIR" && continue
  14721. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14722. test -z "am__include" && continue
  14723. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14724. # When using ansi2knr, U may be empty or an underscore; expand it
  14725. U=`sed -n 's/^U = //p' < "$mf"`
  14726. # Find all dependency output files, they are included files with
  14727. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14728. # simplest approach to changing $(DEPDIR) to its actual value in the
  14729. # expansion.
  14730. for file in `sed -n "
  14731. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14732. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14733. # Make sure the directory exists.
  14734. test -f "$dirpart/$file" && continue
  14735. fdir=`$as_dirname -- "$file" ||
  14736. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14737. X"$file" : 'X\(//\)[^/]' \| \
  14738. X"$file" : 'X\(//\)$' \| \
  14739. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14740. $as_echo X"$file" |
  14741. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14742. s//\1/
  14743. q
  14744. }
  14745. /^X\(\/\/\)[^/].*/{
  14746. s//\1/
  14747. q
  14748. }
  14749. /^X\(\/\/\)$/{
  14750. s//\1/
  14751. q
  14752. }
  14753. /^X\(\/\).*/{
  14754. s//\1/
  14755. q
  14756. }
  14757. s/.*/./; q'`
  14758. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14759. # echo "creating $dirpart/$file"
  14760. echo '# dummy' > "$dirpart/$file"
  14761. done
  14762. done
  14763. }
  14764. ;;
  14765. "libtool":C)
  14766. # See if we are running on zsh, and set the options which allow our
  14767. # commands through without removal of \ escapes.
  14768. if test -n "${ZSH_VERSION+set}" ; then
  14769. setopt NO_GLOB_SUBST
  14770. fi
  14771. cfgfile="${ofile}T"
  14772. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14773. $RM "$cfgfile"
  14774. cat <<_LT_EOF >> "$cfgfile"
  14775. #! $SHELL
  14776. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14777. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14778. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14779. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14780. #
  14781. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14782. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14783. # Written by Gordon Matzigkeit, 1996
  14784. #
  14785. # This file is part of GNU Libtool.
  14786. #
  14787. # GNU Libtool is free software; you can redistribute it and/or
  14788. # modify it under the terms of the GNU General Public License as
  14789. # published by the Free Software Foundation; either version 2 of
  14790. # the License, or (at your option) any later version.
  14791. #
  14792. # As a special exception to the GNU General Public License,
  14793. # if you distribute this file as part of a program or library that
  14794. # is built using GNU Libtool, you may include this file under the
  14795. # same distribution terms that you use for the rest of that program.
  14796. #
  14797. # GNU Libtool is distributed in the hope that it will be useful,
  14798. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14799. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14800. # GNU General Public License for more details.
  14801. #
  14802. # You should have received a copy of the GNU General Public License
  14803. # along with GNU Libtool; see the file COPYING. If not, a copy
  14804. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14805. # obtained by writing to the Free Software Foundation, Inc.,
  14806. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14807. # The names of the tagged configurations supported by this script.
  14808. available_tags="CXX "
  14809. # ### BEGIN LIBTOOL CONFIG
  14810. # Which release of libtool.m4 was used?
  14811. macro_version=$macro_version
  14812. macro_revision=$macro_revision
  14813. # Whether or not to build shared libraries.
  14814. build_libtool_libs=$enable_shared
  14815. # Whether or not to build static libraries.
  14816. build_old_libs=$enable_static
  14817. # What type of objects to build.
  14818. pic_mode=$pic_mode
  14819. # Whether or not to optimize for fast installation.
  14820. fast_install=$enable_fast_install
  14821. # Shell to use when invoking shell scripts.
  14822. SHELL=$lt_SHELL
  14823. # An echo program that protects backslashes.
  14824. ECHO=$lt_ECHO
  14825. # The host system.
  14826. host_alias=$host_alias
  14827. host=$host
  14828. host_os=$host_os
  14829. # The build system.
  14830. build_alias=$build_alias
  14831. build=$build
  14832. build_os=$build_os
  14833. # A sed program that does not truncate output.
  14834. SED=$lt_SED
  14835. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14836. Xsed="\$SED -e 1s/^X//"
  14837. # A grep program that handles long lines.
  14838. GREP=$lt_GREP
  14839. # An ERE matcher.
  14840. EGREP=$lt_EGREP
  14841. # A literal string matcher.
  14842. FGREP=$lt_FGREP
  14843. # A BSD- or MS-compatible name lister.
  14844. NM=$lt_NM
  14845. # Whether we need soft or hard links.
  14846. LN_S=$lt_LN_S
  14847. # What is the maximum length of a command?
  14848. max_cmd_len=$max_cmd_len
  14849. # Object file suffix (normally "o").
  14850. objext=$ac_objext
  14851. # Executable file suffix (normally "").
  14852. exeext=$exeext
  14853. # whether the shell understands "unset".
  14854. lt_unset=$lt_unset
  14855. # turn spaces into newlines.
  14856. SP2NL=$lt_lt_SP2NL
  14857. # turn newlines into spaces.
  14858. NL2SP=$lt_lt_NL2SP
  14859. # An object symbol dumper.
  14860. OBJDUMP=$lt_OBJDUMP
  14861. # Method to check whether dependent libraries are shared objects.
  14862. deplibs_check_method=$lt_deplibs_check_method
  14863. # Command to use when deplibs_check_method == "file_magic".
  14864. file_magic_cmd=$lt_file_magic_cmd
  14865. # The archiver.
  14866. AR=$lt_AR
  14867. AR_FLAGS=$lt_AR_FLAGS
  14868. # A symbol stripping program.
  14869. STRIP=$lt_STRIP
  14870. # Commands used to install an old-style archive.
  14871. RANLIB=$lt_RANLIB
  14872. old_postinstall_cmds=$lt_old_postinstall_cmds
  14873. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14874. # Whether to use a lock for old archive extraction.
  14875. lock_old_archive_extraction=$lock_old_archive_extraction
  14876. # A C compiler.
  14877. LTCC=$lt_CC
  14878. # LTCC compiler flags.
  14879. LTCFLAGS=$lt_CFLAGS
  14880. # Take the output of nm and produce a listing of raw symbols and C names.
  14881. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14882. # Transform the output of nm in a proper C declaration.
  14883. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14884. # Transform the output of nm in a C name address pair.
  14885. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14886. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14887. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14888. # The name of the directory that contains temporary libtool files.
  14889. objdir=$objdir
  14890. # Used to examine libraries when file_magic_cmd begins with "file".
  14891. MAGIC_CMD=$MAGIC_CMD
  14892. # Must we lock files when doing compilation?
  14893. need_locks=$lt_need_locks
  14894. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14895. DSYMUTIL=$lt_DSYMUTIL
  14896. # Tool to change global to local symbols on Mac OS X.
  14897. NMEDIT=$lt_NMEDIT
  14898. # Tool to manipulate fat objects and archives on Mac OS X.
  14899. LIPO=$lt_LIPO
  14900. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14901. OTOOL=$lt_OTOOL
  14902. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14903. OTOOL64=$lt_OTOOL64
  14904. # Old archive suffix (normally "a").
  14905. libext=$libext
  14906. # Shared library suffix (normally ".so").
  14907. shrext_cmds=$lt_shrext_cmds
  14908. # The commands to extract the exported symbol list from a shared archive.
  14909. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14910. # Variables whose values should be saved in libtool wrapper scripts and
  14911. # restored at link time.
  14912. variables_saved_for_relink=$lt_variables_saved_for_relink
  14913. # Do we need the "lib" prefix for modules?
  14914. need_lib_prefix=$need_lib_prefix
  14915. # Do we need a version for libraries?
  14916. need_version=$need_version
  14917. # Library versioning type.
  14918. version_type=$version_type
  14919. # Shared library runtime path variable.
  14920. runpath_var=$runpath_var
  14921. # Shared library path variable.
  14922. shlibpath_var=$shlibpath_var
  14923. # Is shlibpath searched before the hard-coded library search path?
  14924. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14925. # Format of library name prefix.
  14926. libname_spec=$lt_libname_spec
  14927. # List of archive names. First name is the real one, the rest are links.
  14928. # The last name is the one that the linker finds with -lNAME
  14929. library_names_spec=$lt_library_names_spec
  14930. # The coded name of the library, if different from the real name.
  14931. soname_spec=$lt_soname_spec
  14932. # Permission mode override for installation of shared libraries.
  14933. install_override_mode=$lt_install_override_mode
  14934. # Command to use after installation of a shared archive.
  14935. postinstall_cmds=$lt_postinstall_cmds
  14936. # Command to use after uninstallation of a shared archive.
  14937. postuninstall_cmds=$lt_postuninstall_cmds
  14938. # Commands used to finish a libtool library installation in a directory.
  14939. finish_cmds=$lt_finish_cmds
  14940. # As "finish_cmds", except a single script fragment to be evaled but
  14941. # not shown.
  14942. finish_eval=$lt_finish_eval
  14943. # Whether we should hardcode library paths into libraries.
  14944. hardcode_into_libs=$hardcode_into_libs
  14945. # Compile-time system search path for libraries.
  14946. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14947. # Run-time system search path for libraries.
  14948. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14949. # Whether dlopen is supported.
  14950. dlopen_support=$enable_dlopen
  14951. # Whether dlopen of programs is supported.
  14952. dlopen_self=$enable_dlopen_self
  14953. # Whether dlopen of statically linked programs is supported.
  14954. dlopen_self_static=$enable_dlopen_self_static
  14955. # Commands to strip libraries.
  14956. old_striplib=$lt_old_striplib
  14957. striplib=$lt_striplib
  14958. # The linker used to build libraries.
  14959. LD=$lt_LD
  14960. # How to create reloadable object files.
  14961. reload_flag=$lt_reload_flag
  14962. reload_cmds=$lt_reload_cmds
  14963. # Commands used to build an old-style archive.
  14964. old_archive_cmds=$lt_old_archive_cmds
  14965. # A language specific compiler.
  14966. CC=$lt_compiler
  14967. # Is the compiler the GNU compiler?
  14968. with_gcc=$GCC
  14969. # Compiler flag to turn off builtin functions.
  14970. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14971. # How to pass a linker flag through the compiler.
  14972. wl=$lt_lt_prog_compiler_wl
  14973. # Additional compiler flags for building library objects.
  14974. pic_flag=$lt_lt_prog_compiler_pic
  14975. # Compiler flag to prevent dynamic linking.
  14976. link_static_flag=$lt_lt_prog_compiler_static
  14977. # Does compiler simultaneously support -c and -o options?
  14978. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14979. # Whether or not to add -lc for building shared libraries.
  14980. build_libtool_need_lc=$archive_cmds_need_lc
  14981. # Whether or not to disallow shared libs when runtime libs are static.
  14982. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14983. # Compiler flag to allow reflexive dlopens.
  14984. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14985. # Compiler flag to generate shared objects directly from archives.
  14986. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14987. # Whether the compiler copes with passing no objects directly.
  14988. compiler_needs_object=$lt_compiler_needs_object
  14989. # Create an old-style archive from a shared archive.
  14990. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14991. # Create a temporary old-style archive to link instead of a shared archive.
  14992. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14993. # Commands used to build a shared archive.
  14994. archive_cmds=$lt_archive_cmds
  14995. archive_expsym_cmds=$lt_archive_expsym_cmds
  14996. # Commands used to build a loadable module if different from building
  14997. # a shared archive.
  14998. module_cmds=$lt_module_cmds
  14999. module_expsym_cmds=$lt_module_expsym_cmds
  15000. # Whether we are building with GNU ld or not.
  15001. with_gnu_ld=$lt_with_gnu_ld
  15002. # Flag that allows shared libraries with undefined symbols to be built.
  15003. allow_undefined_flag=$lt_allow_undefined_flag
  15004. # Flag that enforces no undefined symbols.
  15005. no_undefined_flag=$lt_no_undefined_flag
  15006. # Flag to hardcode \$libdir into a binary during linking.
  15007. # This must work even if \$libdir does not exist
  15008. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15009. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15010. # during linking. This must work even if \$libdir does not exist.
  15011. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15012. # Whether we need a single "-rpath" flag with a separated argument.
  15013. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15014. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15015. # DIR into the resulting binary.
  15016. hardcode_direct=$hardcode_direct
  15017. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15018. # DIR into the resulting binary and the resulting library dependency is
  15019. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15020. # library is relocated.
  15021. hardcode_direct_absolute=$hardcode_direct_absolute
  15022. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15023. # into the resulting binary.
  15024. hardcode_minus_L=$hardcode_minus_L
  15025. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15026. # into the resulting binary.
  15027. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15028. # Set to "yes" if building a shared library automatically hardcodes DIR
  15029. # into the library and all subsequent libraries and executables linked
  15030. # against it.
  15031. hardcode_automatic=$hardcode_automatic
  15032. # Set to yes if linker adds runtime paths of dependent libraries
  15033. # to runtime path list.
  15034. inherit_rpath=$inherit_rpath
  15035. # Whether libtool must link a program against all its dependency libraries.
  15036. link_all_deplibs=$link_all_deplibs
  15037. # Fix the shell variable \$srcfile for the compiler.
  15038. fix_srcfile_path=$lt_fix_srcfile_path
  15039. # Set to "yes" if exported symbols are required.
  15040. always_export_symbols=$always_export_symbols
  15041. # The commands to list exported symbols.
  15042. export_symbols_cmds=$lt_export_symbols_cmds
  15043. # Symbols that should not be listed in the preloaded symbols.
  15044. exclude_expsyms=$lt_exclude_expsyms
  15045. # Symbols that must always be exported.
  15046. include_expsyms=$lt_include_expsyms
  15047. # Commands necessary for linking programs (against libraries) with templates.
  15048. prelink_cmds=$lt_prelink_cmds
  15049. # Specify filename containing input files.
  15050. file_list_spec=$lt_file_list_spec
  15051. # How to hardcode a shared library path into an executable.
  15052. hardcode_action=$hardcode_action
  15053. # The directories searched by this compiler when creating a shared library.
  15054. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15055. # Dependencies to place before and after the objects being linked to
  15056. # create a shared library.
  15057. predep_objects=$lt_predep_objects
  15058. postdep_objects=$lt_postdep_objects
  15059. predeps=$lt_predeps
  15060. postdeps=$lt_postdeps
  15061. # The library search path used internally by the compiler when linking
  15062. # a shared library.
  15063. compiler_lib_search_path=$lt_compiler_lib_search_path
  15064. # ### END LIBTOOL CONFIG
  15065. _LT_EOF
  15066. case $host_os in
  15067. aix3*)
  15068. cat <<\_LT_EOF >> "$cfgfile"
  15069. # AIX sometimes has problems with the GCC collect2 program. For some
  15070. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15071. # vanish in a puff of smoke.
  15072. if test "X${COLLECT_NAMES+set}" != Xset; then
  15073. COLLECT_NAMES=
  15074. export COLLECT_NAMES
  15075. fi
  15076. _LT_EOF
  15077. ;;
  15078. esac
  15079. ltmain="$ac_aux_dir/ltmain.sh"
  15080. # We use sed instead of cat because bash on DJGPP gets confused if
  15081. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15082. # text mode, it properly converts lines to CR/LF. This bash problem
  15083. # is reportedly fixed, but why not run on old versions too?
  15084. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15085. || (rm -f "$cfgfile"; exit 1)
  15086. case $xsi_shell in
  15087. yes)
  15088. cat << \_LT_EOF >> "$cfgfile"
  15089. # func_dirname file append nondir_replacement
  15090. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15091. # otherwise set result to NONDIR_REPLACEMENT.
  15092. func_dirname ()
  15093. {
  15094. case ${1} in
  15095. */*) func_dirname_result="${1%/*}${2}" ;;
  15096. * ) func_dirname_result="${3}" ;;
  15097. esac
  15098. }
  15099. # func_basename file
  15100. func_basename ()
  15101. {
  15102. func_basename_result="${1##*/}"
  15103. }
  15104. # func_dirname_and_basename file append nondir_replacement
  15105. # perform func_basename and func_dirname in a single function
  15106. # call:
  15107. # dirname: Compute the dirname of FILE. If nonempty,
  15108. # add APPEND to the result, otherwise set result
  15109. # to NONDIR_REPLACEMENT.
  15110. # value returned in "$func_dirname_result"
  15111. # basename: Compute filename of FILE.
  15112. # value retuned in "$func_basename_result"
  15113. # Implementation must be kept synchronized with func_dirname
  15114. # and func_basename. For efficiency, we do not delegate to
  15115. # those functions but instead duplicate the functionality here.
  15116. func_dirname_and_basename ()
  15117. {
  15118. case ${1} in
  15119. */*) func_dirname_result="${1%/*}${2}" ;;
  15120. * ) func_dirname_result="${3}" ;;
  15121. esac
  15122. func_basename_result="${1##*/}"
  15123. }
  15124. # func_stripname prefix suffix name
  15125. # strip PREFIX and SUFFIX off of NAME.
  15126. # PREFIX and SUFFIX must not contain globbing or regex special
  15127. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15128. # dot (in which case that matches only a dot).
  15129. func_stripname ()
  15130. {
  15131. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15132. # positional parameters, so assign one to ordinary parameter first.
  15133. func_stripname_result=${3}
  15134. func_stripname_result=${func_stripname_result#"${1}"}
  15135. func_stripname_result=${func_stripname_result%"${2}"}
  15136. }
  15137. # func_opt_split
  15138. func_opt_split ()
  15139. {
  15140. func_opt_split_opt=${1%%=*}
  15141. func_opt_split_arg=${1#*=}
  15142. }
  15143. # func_lo2o object
  15144. func_lo2o ()
  15145. {
  15146. case ${1} in
  15147. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15148. *) func_lo2o_result=${1} ;;
  15149. esac
  15150. }
  15151. # func_xform libobj-or-source
  15152. func_xform ()
  15153. {
  15154. func_xform_result=${1%.*}.lo
  15155. }
  15156. # func_arith arithmetic-term...
  15157. func_arith ()
  15158. {
  15159. func_arith_result=$(( $* ))
  15160. }
  15161. # func_len string
  15162. # STRING may not start with a hyphen.
  15163. func_len ()
  15164. {
  15165. func_len_result=${#1}
  15166. }
  15167. _LT_EOF
  15168. ;;
  15169. *) # Bourne compatible functions.
  15170. cat << \_LT_EOF >> "$cfgfile"
  15171. # func_dirname file append nondir_replacement
  15172. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15173. # otherwise set result to NONDIR_REPLACEMENT.
  15174. func_dirname ()
  15175. {
  15176. # Extract subdirectory from the argument.
  15177. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  15178. if test "X$func_dirname_result" = "X${1}"; then
  15179. func_dirname_result="${3}"
  15180. else
  15181. func_dirname_result="$func_dirname_result${2}"
  15182. fi
  15183. }
  15184. # func_basename file
  15185. func_basename ()
  15186. {
  15187. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  15188. }
  15189. # func_stripname prefix suffix name
  15190. # strip PREFIX and SUFFIX off of NAME.
  15191. # PREFIX and SUFFIX must not contain globbing or regex special
  15192. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15193. # dot (in which case that matches only a dot).
  15194. # func_strip_suffix prefix name
  15195. func_stripname ()
  15196. {
  15197. case ${2} in
  15198. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  15199. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  15200. esac
  15201. }
  15202. # sed scripts:
  15203. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15204. my_sed_long_arg='1s/^-[^=]*=//'
  15205. # func_opt_split
  15206. func_opt_split ()
  15207. {
  15208. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  15209. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  15210. }
  15211. # func_lo2o object
  15212. func_lo2o ()
  15213. {
  15214. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  15215. }
  15216. # func_xform libobj-or-source
  15217. func_xform ()
  15218. {
  15219. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  15220. }
  15221. # func_arith arithmetic-term...
  15222. func_arith ()
  15223. {
  15224. func_arith_result=`expr "$@"`
  15225. }
  15226. # func_len string
  15227. # STRING may not start with a hyphen.
  15228. func_len ()
  15229. {
  15230. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15231. }
  15232. _LT_EOF
  15233. esac
  15234. case $lt_shell_append in
  15235. yes)
  15236. cat << \_LT_EOF >> "$cfgfile"
  15237. # func_append var value
  15238. # Append VALUE to the end of shell variable VAR.
  15239. func_append ()
  15240. {
  15241. eval "$1+=\$2"
  15242. }
  15243. _LT_EOF
  15244. ;;
  15245. *)
  15246. cat << \_LT_EOF >> "$cfgfile"
  15247. # func_append var value
  15248. # Append VALUE to the end of shell variable VAR.
  15249. func_append ()
  15250. {
  15251. eval "$1=\$$1\$2"
  15252. }
  15253. _LT_EOF
  15254. ;;
  15255. esac
  15256. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15257. || (rm -f "$cfgfile"; exit 1)
  15258. mv -f "$cfgfile" "$ofile" ||
  15259. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15260. chmod +x "$ofile"
  15261. cat <<_LT_EOF >> "$ofile"
  15262. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15263. # The linker used to build libraries.
  15264. LD=$lt_LD_CXX
  15265. # How to create reloadable object files.
  15266. reload_flag=$lt_reload_flag_CXX
  15267. reload_cmds=$lt_reload_cmds_CXX
  15268. # Commands used to build an old-style archive.
  15269. old_archive_cmds=$lt_old_archive_cmds_CXX
  15270. # A language specific compiler.
  15271. CC=$lt_compiler_CXX
  15272. # Is the compiler the GNU compiler?
  15273. with_gcc=$GCC_CXX
  15274. # Compiler flag to turn off builtin functions.
  15275. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15276. # How to pass a linker flag through the compiler.
  15277. wl=$lt_lt_prog_compiler_wl_CXX
  15278. # Additional compiler flags for building library objects.
  15279. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15280. # Compiler flag to prevent dynamic linking.
  15281. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15282. # Does compiler simultaneously support -c and -o options?
  15283. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15284. # Whether or not to add -lc for building shared libraries.
  15285. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15286. # Whether or not to disallow shared libs when runtime libs are static.
  15287. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15288. # Compiler flag to allow reflexive dlopens.
  15289. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15290. # Compiler flag to generate shared objects directly from archives.
  15291. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15292. # Whether the compiler copes with passing no objects directly.
  15293. compiler_needs_object=$lt_compiler_needs_object_CXX
  15294. # Create an old-style archive from a shared archive.
  15295. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15296. # Create a temporary old-style archive to link instead of a shared archive.
  15297. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15298. # Commands used to build a shared archive.
  15299. archive_cmds=$lt_archive_cmds_CXX
  15300. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15301. # Commands used to build a loadable module if different from building
  15302. # a shared archive.
  15303. module_cmds=$lt_module_cmds_CXX
  15304. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15305. # Whether we are building with GNU ld or not.
  15306. with_gnu_ld=$lt_with_gnu_ld_CXX
  15307. # Flag that allows shared libraries with undefined symbols to be built.
  15308. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15309. # Flag that enforces no undefined symbols.
  15310. no_undefined_flag=$lt_no_undefined_flag_CXX
  15311. # Flag to hardcode \$libdir into a binary during linking.
  15312. # This must work even if \$libdir does not exist
  15313. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15314. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15315. # during linking. This must work even if \$libdir does not exist.
  15316. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15317. # Whether we need a single "-rpath" flag with a separated argument.
  15318. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15319. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15320. # DIR into the resulting binary.
  15321. hardcode_direct=$hardcode_direct_CXX
  15322. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15323. # DIR into the resulting binary and the resulting library dependency is
  15324. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15325. # library is relocated.
  15326. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15327. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15328. # into the resulting binary.
  15329. hardcode_minus_L=$hardcode_minus_L_CXX
  15330. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15331. # into the resulting binary.
  15332. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15333. # Set to "yes" if building a shared library automatically hardcodes DIR
  15334. # into the library and all subsequent libraries and executables linked
  15335. # against it.
  15336. hardcode_automatic=$hardcode_automatic_CXX
  15337. # Set to yes if linker adds runtime paths of dependent libraries
  15338. # to runtime path list.
  15339. inherit_rpath=$inherit_rpath_CXX
  15340. # Whether libtool must link a program against all its dependency libraries.
  15341. link_all_deplibs=$link_all_deplibs_CXX
  15342. # Fix the shell variable \$srcfile for the compiler.
  15343. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  15344. # Set to "yes" if exported symbols are required.
  15345. always_export_symbols=$always_export_symbols_CXX
  15346. # The commands to list exported symbols.
  15347. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15348. # Symbols that should not be listed in the preloaded symbols.
  15349. exclude_expsyms=$lt_exclude_expsyms_CXX
  15350. # Symbols that must always be exported.
  15351. include_expsyms=$lt_include_expsyms_CXX
  15352. # Commands necessary for linking programs (against libraries) with templates.
  15353. prelink_cmds=$lt_prelink_cmds_CXX
  15354. # Specify filename containing input files.
  15355. file_list_spec=$lt_file_list_spec_CXX
  15356. # How to hardcode a shared library path into an executable.
  15357. hardcode_action=$hardcode_action_CXX
  15358. # The directories searched by this compiler when creating a shared library.
  15359. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15360. # Dependencies to place before and after the objects being linked to
  15361. # create a shared library.
  15362. predep_objects=$lt_predep_objects_CXX
  15363. postdep_objects=$lt_postdep_objects_CXX
  15364. predeps=$lt_predeps_CXX
  15365. postdeps=$lt_postdeps_CXX
  15366. # The library search path used internally by the compiler when linking
  15367. # a shared library.
  15368. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15369. # ### END LIBTOOL TAG CONFIG: CXX
  15370. _LT_EOF
  15371. ;;
  15372. esac
  15373. done # for ac_tag
  15374. as_fn_exit 0
  15375. _ACEOF
  15376. ac_clean_files=$ac_clean_files_save
  15377. test $ac_write_fail = 0 ||
  15378. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15379. # configure is writing to config.log, and then calls config.status.
  15380. # config.status does its own redirection, appending to config.log.
  15381. # Unfortunately, on DOS this fails, as config.log is still kept open
  15382. # by configure, so config.status won't be able to write to it; its
  15383. # output is simply discarded. So we exec the FD to /dev/null,
  15384. # effectively closing config.log, so it can be properly (re)opened and
  15385. # appended to by config.status. When coming back to configure, we
  15386. # need to make the FD available again.
  15387. if test "$no_create" != yes; then
  15388. ac_cs_success=:
  15389. ac_config_status_args=
  15390. test "$silent" = yes &&
  15391. ac_config_status_args="$ac_config_status_args --quiet"
  15392. exec 5>/dev/null
  15393. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15394. exec 5>>config.log
  15395. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15396. # would make configure fail if this is the last instruction.
  15397. $ac_cs_success || as_fn_exit $?
  15398. fi
  15399. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15400. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15401. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15402. fi