configure 544 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for GNU Vtable Verification Runtime Library 1.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  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. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='GNU Vtable Verification Runtime Library'
  539. PACKAGE_TARNAME='libvtv'
  540. PACKAGE_VERSION='1.0'
  541. PACKAGE_STRING='GNU Vtable Verification Runtime Library 1.0'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL='http://www.gnu.org/software/libvtv/'
  544. ac_unique_file="vtv_rts.h"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. get_gcc_base_ver
  585. VTV_NO_OBSTACK_FALSE
  586. VTV_NO_OBSTACK_TRUE
  587. VTV_CYGMIN_FALSE
  588. VTV_CYGMIN_TRUE
  589. XCFLAGS
  590. libtool_VERSION
  591. enable_static
  592. enable_shared
  593. lt_host_flags
  594. CXXCPP
  595. OTOOL64
  596. OTOOL
  597. LIPO
  598. NMEDIT
  599. DSYMUTIL
  600. OBJDUMP
  601. LN_S
  602. NM
  603. ac_ct_DUMPBIN
  604. DUMPBIN
  605. LD
  606. FGREP
  607. SED
  608. LIBTOOL
  609. RANLIB
  610. AR
  611. AS
  612. CCASFLAGS
  613. CCAS
  614. am__fastdepCXX_FALSE
  615. am__fastdepCXX_TRUE
  616. CXXDEPMODE
  617. ac_ct_CXX
  618. CXXFLAGS
  619. CXX
  620. toolexeclibdir
  621. toolexecdir
  622. toplevel_srcdir
  623. toplevel_builddir
  624. libvtv_srcdir
  625. libvtv_builddir
  626. MAINT
  627. MAINTAINER_MODE_FALSE
  628. MAINTAINER_MODE_TRUE
  629. AM_BACKSLASH
  630. AM_DEFAULT_VERBOSITY
  631. AM_DEFAULT_V
  632. AM_V
  633. am__fastdepCC_FALSE
  634. am__fastdepCC_TRUE
  635. CCDEPMODE
  636. am__nodep
  637. AMDEPBACKSLASH
  638. AMDEP_FALSE
  639. AMDEP_TRUE
  640. am__quote
  641. am__include
  642. DEPDIR
  643. am__untar
  644. am__tar
  645. AMTAR
  646. am__leading_dot
  647. SET_MAKE
  648. AWK
  649. mkdir_p
  650. MKDIR_P
  651. INSTALL_STRIP_PROGRAM
  652. STRIP
  653. install_sh
  654. MAKEINFO
  655. AUTOHEADER
  656. AUTOMAKE
  657. AUTOCONF
  658. ACLOCAL
  659. VERSION
  660. PACKAGE
  661. CYGPATH_W
  662. am__isrc
  663. INSTALL_DATA
  664. INSTALL_SCRIPT
  665. INSTALL_PROGRAM
  666. ENABLE_VTABLE_VERIFY_FALSE
  667. ENABLE_VTABLE_VERIFY_TRUE
  668. EGREP
  669. GREP
  670. CPP
  671. OBJEXT
  672. EXEEXT
  673. ac_ct_CC
  674. CPPFLAGS
  675. LDFLAGS
  676. CFLAGS
  677. CC
  678. LIBSTDCXX_RAW_CXX_LDFLAGS
  679. LIBSTDCXX_RAW_CXX_CXXFLAGS
  680. target_noncanonical
  681. target_os
  682. target_vendor
  683. target_cpu
  684. target
  685. host_os
  686. host_vendor
  687. host_cpu
  688. host
  689. build_os
  690. build_vendor
  691. build_cpu
  692. build
  693. multi_basedir
  694. target_alias
  695. host_alias
  696. build_alias
  697. LIBS
  698. ECHO_T
  699. ECHO_N
  700. ECHO_C
  701. DEFS
  702. mandir
  703. localedir
  704. libdir
  705. psdir
  706. pdfdir
  707. dvidir
  708. htmldir
  709. infodir
  710. docdir
  711. oldincludedir
  712. includedir
  713. localstatedir
  714. sharedstatedir
  715. sysconfdir
  716. datadir
  717. datarootdir
  718. libexecdir
  719. sbindir
  720. bindir
  721. program_transform_name
  722. prefix
  723. exec_prefix
  724. PACKAGE_URL
  725. PACKAGE_BUGREPORT
  726. PACKAGE_STRING
  727. PACKAGE_VERSION
  728. PACKAGE_TARNAME
  729. PACKAGE_NAME
  730. PATH_SEPARATOR
  731. SHELL'
  732. ac_subst_files=''
  733. ac_user_opts='
  734. enable_option_checking
  735. enable_multilib
  736. enable_version_specific_runtime_libs
  737. enable_vtable_verify
  738. enable_dependency_tracking
  739. enable_silent_rules
  740. enable_maintainer_mode
  741. with_toolexeclibdir
  742. enable_shared
  743. enable_static
  744. with_pic
  745. enable_fast_install
  746. with_gnu_ld
  747. enable_libtool_lock
  748. enable_cet
  749. with_gcc_major_version_only
  750. '
  751. ac_precious_vars='build_alias
  752. host_alias
  753. target_alias
  754. CC
  755. CFLAGS
  756. LDFLAGS
  757. LIBS
  758. CPPFLAGS
  759. CPP
  760. CXXCPP'
  761. # Initialize some variables set by options.
  762. ac_init_help=
  763. ac_init_version=false
  764. ac_unrecognized_opts=
  765. ac_unrecognized_sep=
  766. # The variables have the same names as the options, with
  767. # dashes changed to underlines.
  768. cache_file=/dev/null
  769. exec_prefix=NONE
  770. no_create=
  771. no_recursion=
  772. prefix=NONE
  773. program_prefix=NONE
  774. program_suffix=NONE
  775. program_transform_name=s,x,x,
  776. silent=
  777. site=
  778. srcdir=
  779. verbose=
  780. x_includes=NONE
  781. x_libraries=NONE
  782. # Installation directory options.
  783. # These are left unexpanded so users can "make install exec_prefix=/foo"
  784. # and all the variables that are supposed to be based on exec_prefix
  785. # by default will actually change.
  786. # Use braces instead of parens because sh, perl, etc. also accept them.
  787. # (The list follows the same order as the GNU Coding Standards.)
  788. bindir='${exec_prefix}/bin'
  789. sbindir='${exec_prefix}/sbin'
  790. libexecdir='${exec_prefix}/libexec'
  791. datarootdir='${prefix}/share'
  792. datadir='${datarootdir}'
  793. sysconfdir='${prefix}/etc'
  794. sharedstatedir='${prefix}/com'
  795. localstatedir='${prefix}/var'
  796. includedir='${prefix}/include'
  797. oldincludedir='/usr/include'
  798. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  799. infodir='${datarootdir}/info'
  800. htmldir='${docdir}'
  801. dvidir='${docdir}'
  802. pdfdir='${docdir}'
  803. psdir='${docdir}'
  804. libdir='${exec_prefix}/lib'
  805. localedir='${datarootdir}/locale'
  806. mandir='${datarootdir}/man'
  807. ac_prev=
  808. ac_dashdash=
  809. for ac_option
  810. do
  811. # If the previous option needs an argument, assign it.
  812. if test -n "$ac_prev"; then
  813. eval $ac_prev=\$ac_option
  814. ac_prev=
  815. continue
  816. fi
  817. case $ac_option in
  818. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  819. *=) ac_optarg= ;;
  820. *) ac_optarg=yes ;;
  821. esac
  822. # Accept the important Cygnus configure options, so we can diagnose typos.
  823. case $ac_dashdash$ac_option in
  824. --)
  825. ac_dashdash=yes ;;
  826. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  827. ac_prev=bindir ;;
  828. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  829. bindir=$ac_optarg ;;
  830. -build | --build | --buil | --bui | --bu)
  831. ac_prev=build_alias ;;
  832. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  833. build_alias=$ac_optarg ;;
  834. -cache-file | --cache-file | --cache-fil | --cache-fi \
  835. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  836. ac_prev=cache_file ;;
  837. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  838. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  839. cache_file=$ac_optarg ;;
  840. --config-cache | -C)
  841. cache_file=config.cache ;;
  842. -datadir | --datadir | --datadi | --datad)
  843. ac_prev=datadir ;;
  844. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  845. datadir=$ac_optarg ;;
  846. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  847. | --dataroo | --dataro | --datar)
  848. ac_prev=datarootdir ;;
  849. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  850. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  851. datarootdir=$ac_optarg ;;
  852. -disable-* | --disable-*)
  853. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  854. # Reject names that are not valid shell variable names.
  855. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  856. as_fn_error $? "invalid feature name: $ac_useropt"
  857. ac_useropt_orig=$ac_useropt
  858. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  859. case $ac_user_opts in
  860. *"
  861. "enable_$ac_useropt"
  862. "*) ;;
  863. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  864. ac_unrecognized_sep=', ';;
  865. esac
  866. eval enable_$ac_useropt=no ;;
  867. -docdir | --docdir | --docdi | --doc | --do)
  868. ac_prev=docdir ;;
  869. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  870. docdir=$ac_optarg ;;
  871. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  872. ac_prev=dvidir ;;
  873. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  874. dvidir=$ac_optarg ;;
  875. -enable-* | --enable-*)
  876. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  877. # Reject names that are not valid shell variable names.
  878. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  879. as_fn_error $? "invalid feature name: $ac_useropt"
  880. ac_useropt_orig=$ac_useropt
  881. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  882. case $ac_user_opts in
  883. *"
  884. "enable_$ac_useropt"
  885. "*) ;;
  886. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  887. ac_unrecognized_sep=', ';;
  888. esac
  889. eval enable_$ac_useropt=\$ac_optarg ;;
  890. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  891. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  892. | --exec | --exe | --ex)
  893. ac_prev=exec_prefix ;;
  894. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  895. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  896. | --exec=* | --exe=* | --ex=*)
  897. exec_prefix=$ac_optarg ;;
  898. -gas | --gas | --ga | --g)
  899. # Obsolete; use --with-gas.
  900. with_gas=yes ;;
  901. -help | --help | --hel | --he | -h)
  902. ac_init_help=long ;;
  903. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  904. ac_init_help=recursive ;;
  905. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  906. ac_init_help=short ;;
  907. -host | --host | --hos | --ho)
  908. ac_prev=host_alias ;;
  909. -host=* | --host=* | --hos=* | --ho=*)
  910. host_alias=$ac_optarg ;;
  911. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  912. ac_prev=htmldir ;;
  913. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  914. | --ht=*)
  915. htmldir=$ac_optarg ;;
  916. -includedir | --includedir | --includedi | --included | --include \
  917. | --includ | --inclu | --incl | --inc)
  918. ac_prev=includedir ;;
  919. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  920. | --includ=* | --inclu=* | --incl=* | --inc=*)
  921. includedir=$ac_optarg ;;
  922. -infodir | --infodir | --infodi | --infod | --info | --inf)
  923. ac_prev=infodir ;;
  924. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  925. infodir=$ac_optarg ;;
  926. -libdir | --libdir | --libdi | --libd)
  927. ac_prev=libdir ;;
  928. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  929. libdir=$ac_optarg ;;
  930. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  931. | --libexe | --libex | --libe)
  932. ac_prev=libexecdir ;;
  933. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  934. | --libexe=* | --libex=* | --libe=*)
  935. libexecdir=$ac_optarg ;;
  936. -localedir | --localedir | --localedi | --localed | --locale)
  937. ac_prev=localedir ;;
  938. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  939. localedir=$ac_optarg ;;
  940. -localstatedir | --localstatedir | --localstatedi | --localstated \
  941. | --localstate | --localstat | --localsta | --localst | --locals)
  942. ac_prev=localstatedir ;;
  943. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  944. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  945. localstatedir=$ac_optarg ;;
  946. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  947. ac_prev=mandir ;;
  948. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  949. mandir=$ac_optarg ;;
  950. -nfp | --nfp | --nf)
  951. # Obsolete; use --without-fp.
  952. with_fp=no ;;
  953. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  954. | --no-cr | --no-c | -n)
  955. no_create=yes ;;
  956. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  957. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  958. no_recursion=yes ;;
  959. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  960. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  961. | --oldin | --oldi | --old | --ol | --o)
  962. ac_prev=oldincludedir ;;
  963. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  964. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  965. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  966. oldincludedir=$ac_optarg ;;
  967. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  968. ac_prev=prefix ;;
  969. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  970. prefix=$ac_optarg ;;
  971. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  972. | --program-pre | --program-pr | --program-p)
  973. ac_prev=program_prefix ;;
  974. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  975. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  976. program_prefix=$ac_optarg ;;
  977. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  978. | --program-suf | --program-su | --program-s)
  979. ac_prev=program_suffix ;;
  980. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  981. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  982. program_suffix=$ac_optarg ;;
  983. -program-transform-name | --program-transform-name \
  984. | --program-transform-nam | --program-transform-na \
  985. | --program-transform-n | --program-transform- \
  986. | --program-transform | --program-transfor \
  987. | --program-transfo | --program-transf \
  988. | --program-trans | --program-tran \
  989. | --progr-tra | --program-tr | --program-t)
  990. ac_prev=program_transform_name ;;
  991. -program-transform-name=* | --program-transform-name=* \
  992. | --program-transform-nam=* | --program-transform-na=* \
  993. | --program-transform-n=* | --program-transform-=* \
  994. | --program-transform=* | --program-transfor=* \
  995. | --program-transfo=* | --program-transf=* \
  996. | --program-trans=* | --program-tran=* \
  997. | --progr-tra=* | --program-tr=* | --program-t=*)
  998. program_transform_name=$ac_optarg ;;
  999. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1000. ac_prev=pdfdir ;;
  1001. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1002. pdfdir=$ac_optarg ;;
  1003. -psdir | --psdir | --psdi | --psd | --ps)
  1004. ac_prev=psdir ;;
  1005. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1006. psdir=$ac_optarg ;;
  1007. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1008. | -silent | --silent | --silen | --sile | --sil)
  1009. silent=yes ;;
  1010. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1011. ac_prev=sbindir ;;
  1012. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1013. | --sbi=* | --sb=*)
  1014. sbindir=$ac_optarg ;;
  1015. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1016. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1017. | --sharedst | --shareds | --shared | --share | --shar \
  1018. | --sha | --sh)
  1019. ac_prev=sharedstatedir ;;
  1020. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1021. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1022. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1023. | --sha=* | --sh=*)
  1024. sharedstatedir=$ac_optarg ;;
  1025. -site | --site | --sit)
  1026. ac_prev=site ;;
  1027. -site=* | --site=* | --sit=*)
  1028. site=$ac_optarg ;;
  1029. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1030. ac_prev=srcdir ;;
  1031. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1032. srcdir=$ac_optarg ;;
  1033. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1034. | --syscon | --sysco | --sysc | --sys | --sy)
  1035. ac_prev=sysconfdir ;;
  1036. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1037. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1038. sysconfdir=$ac_optarg ;;
  1039. -target | --target | --targe | --targ | --tar | --ta | --t)
  1040. ac_prev=target_alias ;;
  1041. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1042. target_alias=$ac_optarg ;;
  1043. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1044. verbose=yes ;;
  1045. -version | --version | --versio | --versi | --vers | -V)
  1046. ac_init_version=: ;;
  1047. -with-* | --with-*)
  1048. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1049. # Reject names that are not valid shell variable names.
  1050. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1051. as_fn_error $? "invalid package name: $ac_useropt"
  1052. ac_useropt_orig=$ac_useropt
  1053. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1054. case $ac_user_opts in
  1055. *"
  1056. "with_$ac_useropt"
  1057. "*) ;;
  1058. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1059. ac_unrecognized_sep=', ';;
  1060. esac
  1061. eval with_$ac_useropt=\$ac_optarg ;;
  1062. -without-* | --without-*)
  1063. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1064. # Reject names that are not valid shell variable names.
  1065. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1066. as_fn_error $? "invalid package name: $ac_useropt"
  1067. ac_useropt_orig=$ac_useropt
  1068. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1069. case $ac_user_opts in
  1070. *"
  1071. "with_$ac_useropt"
  1072. "*) ;;
  1073. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1074. ac_unrecognized_sep=', ';;
  1075. esac
  1076. eval with_$ac_useropt=no ;;
  1077. --x)
  1078. # Obsolete; use --with-x.
  1079. with_x=yes ;;
  1080. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1081. | --x-incl | --x-inc | --x-in | --x-i)
  1082. ac_prev=x_includes ;;
  1083. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1084. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1085. x_includes=$ac_optarg ;;
  1086. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1087. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1088. ac_prev=x_libraries ;;
  1089. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1090. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1091. x_libraries=$ac_optarg ;;
  1092. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1093. Try \`$0 --help' for more information"
  1094. ;;
  1095. *=*)
  1096. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1097. # Reject names that are not valid shell variable names.
  1098. case $ac_envvar in #(
  1099. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1100. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1101. esac
  1102. eval $ac_envvar=\$ac_optarg
  1103. export $ac_envvar ;;
  1104. *)
  1105. # FIXME: should be removed in autoconf 3.0.
  1106. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1107. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1108. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1109. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1110. ;;
  1111. esac
  1112. done
  1113. if test -n "$ac_prev"; then
  1114. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1115. as_fn_error $? "missing argument to $ac_option"
  1116. fi
  1117. if test -n "$ac_unrecognized_opts"; then
  1118. case $enable_option_checking in
  1119. no) ;;
  1120. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1121. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1122. esac
  1123. fi
  1124. # Check all directory arguments for consistency.
  1125. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1126. datadir sysconfdir sharedstatedir localstatedir includedir \
  1127. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1128. libdir localedir mandir
  1129. do
  1130. eval ac_val=\$$ac_var
  1131. # Remove trailing slashes.
  1132. case $ac_val in
  1133. */ )
  1134. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1135. eval $ac_var=\$ac_val;;
  1136. esac
  1137. # Be sure to have absolute directory names.
  1138. case $ac_val in
  1139. [\\/$]* | ?:[\\/]* ) continue;;
  1140. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1141. esac
  1142. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1143. done
  1144. # There might be people who depend on the old broken behavior: `$host'
  1145. # used to hold the argument of --host etc.
  1146. # FIXME: To remove some day.
  1147. build=$build_alias
  1148. host=$host_alias
  1149. target=$target_alias
  1150. # FIXME: To remove some day.
  1151. if test "x$host_alias" != x; then
  1152. if test "x$build_alias" = x; then
  1153. cross_compiling=maybe
  1154. elif test "x$build_alias" != "x$host_alias"; then
  1155. cross_compiling=yes
  1156. fi
  1157. fi
  1158. ac_tool_prefix=
  1159. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1160. test "$silent" = yes && exec 6>/dev/null
  1161. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1162. ac_ls_di=`ls -di .` &&
  1163. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1164. as_fn_error $? "working directory cannot be determined"
  1165. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1166. as_fn_error $? "pwd does not report name of working directory"
  1167. # Find the source files, if location was not specified.
  1168. if test -z "$srcdir"; then
  1169. ac_srcdir_defaulted=yes
  1170. # Try the directory containing this script, then the parent directory.
  1171. ac_confdir=`$as_dirname -- "$as_myself" ||
  1172. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1173. X"$as_myself" : 'X\(//\)[^/]' \| \
  1174. X"$as_myself" : 'X\(//\)$' \| \
  1175. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1176. $as_echo X"$as_myself" |
  1177. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1178. s//\1/
  1179. q
  1180. }
  1181. /^X\(\/\/\)[^/].*/{
  1182. s//\1/
  1183. q
  1184. }
  1185. /^X\(\/\/\)$/{
  1186. s//\1/
  1187. q
  1188. }
  1189. /^X\(\/\).*/{
  1190. s//\1/
  1191. q
  1192. }
  1193. s/.*/./; q'`
  1194. srcdir=$ac_confdir
  1195. if test ! -r "$srcdir/$ac_unique_file"; then
  1196. srcdir=..
  1197. fi
  1198. else
  1199. ac_srcdir_defaulted=no
  1200. fi
  1201. if test ! -r "$srcdir/$ac_unique_file"; then
  1202. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1203. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1204. fi
  1205. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1206. ac_abs_confdir=`(
  1207. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1208. pwd)`
  1209. # When building in place, set srcdir=.
  1210. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1211. srcdir=.
  1212. fi
  1213. # Remove unnecessary trailing slashes from srcdir.
  1214. # Double slashes in file names in object file debugging info
  1215. # mess up M-x gdb in Emacs.
  1216. case $srcdir in
  1217. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1218. esac
  1219. for ac_var in $ac_precious_vars; do
  1220. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1221. eval ac_env_${ac_var}_value=\$${ac_var}
  1222. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1223. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1224. done
  1225. #
  1226. # Report the --help message.
  1227. #
  1228. if test "$ac_init_help" = "long"; then
  1229. # Omit some internal or obsolete options to make the list less imposing.
  1230. # This message is too long to be a string in the A/UX 3.1 sh.
  1231. cat <<_ACEOF
  1232. \`configure' configures GNU Vtable Verification Runtime Library 1.0 to adapt to many kinds of systems.
  1233. Usage: $0 [OPTION]... [VAR=VALUE]...
  1234. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1235. VAR=VALUE. See below for descriptions of some of the useful variables.
  1236. Defaults for the options are specified in brackets.
  1237. Configuration:
  1238. -h, --help display this help and exit
  1239. --help=short display options specific to this package
  1240. --help=recursive display the short help of all the included packages
  1241. -V, --version display version information and exit
  1242. -q, --quiet, --silent do not print \`checking ...' messages
  1243. --cache-file=FILE cache test results in FILE [disabled]
  1244. -C, --config-cache alias for \`--cache-file=config.cache'
  1245. -n, --no-create do not create output files
  1246. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1247. Installation directories:
  1248. --prefix=PREFIX install architecture-independent files in PREFIX
  1249. [$ac_default_prefix]
  1250. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1251. [PREFIX]
  1252. By default, \`make install' will install all the files in
  1253. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1254. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1255. for instance \`--prefix=\$HOME'.
  1256. For better control, use the options below.
  1257. Fine tuning of the installation directories:
  1258. --bindir=DIR user executables [EPREFIX/bin]
  1259. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1260. --libexecdir=DIR program executables [EPREFIX/libexec]
  1261. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1262. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1263. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1264. --libdir=DIR object code libraries [EPREFIX/lib]
  1265. --includedir=DIR C header files [PREFIX/include]
  1266. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1267. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1268. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1269. --infodir=DIR info documentation [DATAROOTDIR/info]
  1270. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1271. --mandir=DIR man documentation [DATAROOTDIR/man]
  1272. --docdir=DIR documentation root [DATAROOTDIR/doc/libvtv]
  1273. --htmldir=DIR html documentation [DOCDIR]
  1274. --dvidir=DIR dvi documentation [DOCDIR]
  1275. --pdfdir=DIR pdf documentation [DOCDIR]
  1276. --psdir=DIR ps documentation [DOCDIR]
  1277. _ACEOF
  1278. cat <<\_ACEOF
  1279. Program names:
  1280. --program-prefix=PREFIX prepend PREFIX to installed program names
  1281. --program-suffix=SUFFIX append SUFFIX to installed program names
  1282. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1283. System types:
  1284. --build=BUILD configure for building on BUILD [guessed]
  1285. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1286. --target=TARGET configure for building compilers for TARGET [HOST]
  1287. _ACEOF
  1288. fi
  1289. if test -n "$ac_init_help"; then
  1290. case $ac_init_help in
  1291. short | recursive ) echo "Configuration of GNU Vtable Verification Runtime Library 1.0:";;
  1292. esac
  1293. cat <<\_ACEOF
  1294. Optional Features:
  1295. --disable-option-checking ignore unrecognized --enable/--with options
  1296. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1297. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1298. --enable-multilib build many library versions (default)
  1299. --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
  1300. --enable-vtable-verify Enable vtable verification feature
  1301. --enable-dependency-tracking
  1302. do not reject slow dependency extractors
  1303. --disable-dependency-tracking
  1304. speeds up one-time build
  1305. --enable-silent-rules less verbose build output (undo: "make V=1")
  1306. --disable-silent-rules verbose build output (undo: "make V=0")
  1307. --enable-maintainer-mode
  1308. enable make rules and dependencies not useful (and
  1309. sometimes confusing) to the casual installer
  1310. --enable-shared[=PKGS] build shared libraries [default=yes]
  1311. --enable-static[=PKGS] build static libraries [default=yes]
  1312. --enable-fast-install[=PKGS]
  1313. optimize for fast installation [default=yes]
  1314. --disable-libtool-lock avoid locking (might break parallel builds)
  1315. --enable-cet enable Intel CET in target libraries [default=auto]
  1316. Optional Packages:
  1317. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1318. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1319. --with-toolexeclibdir=DIR
  1320. install libraries built with a cross compiler within
  1321. DIR
  1322. --with-pic try to use only PIC/non-PIC objects [default=use
  1323. both]
  1324. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1325. --with-gcc-major-version-only
  1326. use only GCC major number in filesystem paths
  1327. Some influential environment variables:
  1328. CC C compiler command
  1329. CFLAGS C compiler flags
  1330. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1331. nonstandard directory <lib dir>
  1332. LIBS libraries to pass to the linker, e.g. -l<library>
  1333. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1334. you have headers in a nonstandard directory <include dir>
  1335. CPP C preprocessor
  1336. CXX C++ compiler command
  1337. CXXFLAGS C++ compiler flags
  1338. CXXCPP C++ preprocessor
  1339. Use these variables to override the choices made by `configure' or to help
  1340. it to find libraries and programs with nonstandard names/locations.
  1341. Report bugs to the package provider.
  1342. GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
  1343. General help using GNU software: <http://www.gnu.org/gethelp/>.
  1344. _ACEOF
  1345. ac_status=$?
  1346. fi
  1347. if test "$ac_init_help" = "recursive"; then
  1348. # If there are subdirs, report their specific --help.
  1349. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1350. test -d "$ac_dir" ||
  1351. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1352. continue
  1353. ac_builddir=.
  1354. case "$ac_dir" in
  1355. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1356. *)
  1357. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1358. # A ".." for each directory in $ac_dir_suffix.
  1359. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1360. case $ac_top_builddir_sub in
  1361. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1362. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1363. esac ;;
  1364. esac
  1365. ac_abs_top_builddir=$ac_pwd
  1366. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1367. # for backward compatibility:
  1368. ac_top_builddir=$ac_top_build_prefix
  1369. case $srcdir in
  1370. .) # We are building in place.
  1371. ac_srcdir=.
  1372. ac_top_srcdir=$ac_top_builddir_sub
  1373. ac_abs_top_srcdir=$ac_pwd ;;
  1374. [\\/]* | ?:[\\/]* ) # Absolute name.
  1375. ac_srcdir=$srcdir$ac_dir_suffix;
  1376. ac_top_srcdir=$srcdir
  1377. ac_abs_top_srcdir=$srcdir ;;
  1378. *) # Relative name.
  1379. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1380. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1381. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1382. esac
  1383. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1384. cd "$ac_dir" || { ac_status=$?; continue; }
  1385. # Check for guested configure.
  1386. if test -f "$ac_srcdir/configure.gnu"; then
  1387. echo &&
  1388. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1389. elif test -f "$ac_srcdir/configure"; then
  1390. echo &&
  1391. $SHELL "$ac_srcdir/configure" --help=recursive
  1392. else
  1393. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1394. fi || ac_status=$?
  1395. cd "$ac_pwd" || { ac_status=$?; break; }
  1396. done
  1397. fi
  1398. test -n "$ac_init_help" && exit $ac_status
  1399. if $ac_init_version; then
  1400. cat <<\_ACEOF
  1401. GNU Vtable Verification Runtime Library configure 1.0
  1402. generated by GNU Autoconf 2.69
  1403. Copyright (C) 2012 Free Software Foundation, Inc.
  1404. This configure script is free software; the Free Software Foundation
  1405. gives unlimited permission to copy, distribute and modify it.
  1406. _ACEOF
  1407. exit
  1408. fi
  1409. ## ------------------------ ##
  1410. ## Autoconf initialization. ##
  1411. ## ------------------------ ##
  1412. # ac_fn_c_try_compile LINENO
  1413. # --------------------------
  1414. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1415. ac_fn_c_try_compile ()
  1416. {
  1417. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1418. rm -f conftest.$ac_objext
  1419. if { { ac_try="$ac_compile"
  1420. case "(($ac_try" in
  1421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1422. *) ac_try_echo=$ac_try;;
  1423. esac
  1424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1425. $as_echo "$ac_try_echo"; } >&5
  1426. (eval "$ac_compile") 2>conftest.err
  1427. ac_status=$?
  1428. if test -s conftest.err; then
  1429. grep -v '^ *+' conftest.err >conftest.er1
  1430. cat conftest.er1 >&5
  1431. mv -f conftest.er1 conftest.err
  1432. fi
  1433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1434. test $ac_status = 0; } && {
  1435. test -z "$ac_c_werror_flag" ||
  1436. test ! -s conftest.err
  1437. } && test -s conftest.$ac_objext; then :
  1438. ac_retval=0
  1439. else
  1440. $as_echo "$as_me: failed program was:" >&5
  1441. sed 's/^/| /' conftest.$ac_ext >&5
  1442. ac_retval=1
  1443. fi
  1444. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1445. as_fn_set_status $ac_retval
  1446. } # ac_fn_c_try_compile
  1447. # ac_fn_c_try_cpp LINENO
  1448. # ----------------------
  1449. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1450. ac_fn_c_try_cpp ()
  1451. {
  1452. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1453. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1454. case "(($ac_try" in
  1455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1456. *) ac_try_echo=$ac_try;;
  1457. esac
  1458. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1459. $as_echo "$ac_try_echo"; } >&5
  1460. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1461. ac_status=$?
  1462. if test -s conftest.err; then
  1463. grep -v '^ *+' conftest.err >conftest.er1
  1464. cat conftest.er1 >&5
  1465. mv -f conftest.er1 conftest.err
  1466. fi
  1467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1468. test $ac_status = 0; } > conftest.i && {
  1469. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1470. test ! -s conftest.err
  1471. }; then :
  1472. ac_retval=0
  1473. else
  1474. $as_echo "$as_me: failed program was:" >&5
  1475. sed 's/^/| /' conftest.$ac_ext >&5
  1476. ac_retval=1
  1477. fi
  1478. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1479. as_fn_set_status $ac_retval
  1480. } # ac_fn_c_try_cpp
  1481. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1482. # -------------------------------------------------------
  1483. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1484. # the include files in INCLUDES and setting the cache variable VAR
  1485. # accordingly.
  1486. ac_fn_c_check_header_mongrel ()
  1487. {
  1488. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1489. if eval \${$3+:} false; then :
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1491. $as_echo_n "checking for $2... " >&6; }
  1492. if eval \${$3+:} false; then :
  1493. $as_echo_n "(cached) " >&6
  1494. fi
  1495. eval ac_res=\$$3
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1497. $as_echo "$ac_res" >&6; }
  1498. else
  1499. # Is the header compilable?
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1501. $as_echo_n "checking $2 usability... " >&6; }
  1502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1503. /* end confdefs.h. */
  1504. $4
  1505. #include <$2>
  1506. _ACEOF
  1507. if ac_fn_c_try_compile "$LINENO"; then :
  1508. ac_header_compiler=yes
  1509. else
  1510. ac_header_compiler=no
  1511. fi
  1512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1514. $as_echo "$ac_header_compiler" >&6; }
  1515. # Is the header present?
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1517. $as_echo_n "checking $2 presence... " >&6; }
  1518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1519. /* end confdefs.h. */
  1520. #include <$2>
  1521. _ACEOF
  1522. if ac_fn_c_try_cpp "$LINENO"; then :
  1523. ac_header_preproc=yes
  1524. else
  1525. ac_header_preproc=no
  1526. fi
  1527. rm -f conftest.err conftest.i conftest.$ac_ext
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1529. $as_echo "$ac_header_preproc" >&6; }
  1530. # So? What about this header?
  1531. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1532. yes:no: )
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1534. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1536. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1537. ;;
  1538. no:yes:* )
  1539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1540. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1542. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1544. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1546. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1548. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1549. ;;
  1550. esac
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1552. $as_echo_n "checking for $2... " >&6; }
  1553. if eval \${$3+:} false; then :
  1554. $as_echo_n "(cached) " >&6
  1555. else
  1556. eval "$3=\$ac_header_compiler"
  1557. fi
  1558. eval ac_res=\$$3
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1560. $as_echo "$ac_res" >&6; }
  1561. fi
  1562. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1563. } # ac_fn_c_check_header_mongrel
  1564. # ac_fn_c_try_run LINENO
  1565. # ----------------------
  1566. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1567. # that executables *can* be run.
  1568. ac_fn_c_try_run ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. if { { ac_try="$ac_link"
  1572. case "(($ac_try" in
  1573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1574. *) ac_try_echo=$ac_try;;
  1575. esac
  1576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1577. $as_echo "$ac_try_echo"; } >&5
  1578. (eval "$ac_link") 2>&5
  1579. ac_status=$?
  1580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1581. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1582. { { case "(($ac_try" in
  1583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1584. *) ac_try_echo=$ac_try;;
  1585. esac
  1586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1587. $as_echo "$ac_try_echo"; } >&5
  1588. (eval "$ac_try") 2>&5
  1589. ac_status=$?
  1590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1591. test $ac_status = 0; }; }; then :
  1592. ac_retval=0
  1593. else
  1594. $as_echo "$as_me: program exited with status $ac_status" >&5
  1595. $as_echo "$as_me: failed program was:" >&5
  1596. sed 's/^/| /' conftest.$ac_ext >&5
  1597. ac_retval=$ac_status
  1598. fi
  1599. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1600. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1601. as_fn_set_status $ac_retval
  1602. } # ac_fn_c_try_run
  1603. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1604. # -------------------------------------------------------
  1605. # Tests whether HEADER exists and can be compiled using the include files in
  1606. # INCLUDES, setting the cache variable VAR accordingly.
  1607. ac_fn_c_check_header_compile ()
  1608. {
  1609. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1611. $as_echo_n "checking for $2... " >&6; }
  1612. if eval \${$3+:} false; then :
  1613. $as_echo_n "(cached) " >&6
  1614. else
  1615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1616. /* end confdefs.h. */
  1617. $4
  1618. #include <$2>
  1619. _ACEOF
  1620. if ac_fn_c_try_compile "$LINENO"; then :
  1621. eval "$3=yes"
  1622. else
  1623. eval "$3=no"
  1624. fi
  1625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1626. fi
  1627. eval ac_res=\$$3
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1629. $as_echo "$ac_res" >&6; }
  1630. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1631. } # ac_fn_c_check_header_compile
  1632. # ac_fn_c_try_link LINENO
  1633. # -----------------------
  1634. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1635. ac_fn_c_try_link ()
  1636. {
  1637. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1638. rm -f conftest.$ac_objext conftest$ac_exeext
  1639. if { { ac_try="$ac_link"
  1640. case "(($ac_try" in
  1641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1642. *) ac_try_echo=$ac_try;;
  1643. esac
  1644. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1645. $as_echo "$ac_try_echo"; } >&5
  1646. (eval "$ac_link") 2>conftest.err
  1647. ac_status=$?
  1648. if test -s conftest.err; then
  1649. grep -v '^ *+' conftest.err >conftest.er1
  1650. cat conftest.er1 >&5
  1651. mv -f conftest.er1 conftest.err
  1652. fi
  1653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1654. test $ac_status = 0; } && {
  1655. test -z "$ac_c_werror_flag" ||
  1656. test ! -s conftest.err
  1657. } && test -s conftest$ac_exeext && {
  1658. test "$cross_compiling" = yes ||
  1659. test -x conftest$ac_exeext
  1660. }; then :
  1661. ac_retval=0
  1662. else
  1663. $as_echo "$as_me: failed program was:" >&5
  1664. sed 's/^/| /' conftest.$ac_ext >&5
  1665. ac_retval=1
  1666. fi
  1667. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1668. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1669. # interfere with the next link command; also delete a directory that is
  1670. # left behind by Apple's compiler. We do this before executing the actions.
  1671. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1672. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1673. as_fn_set_status $ac_retval
  1674. } # ac_fn_c_try_link
  1675. # ac_fn_c_check_func LINENO FUNC VAR
  1676. # ----------------------------------
  1677. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1678. ac_fn_c_check_func ()
  1679. {
  1680. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1682. $as_echo_n "checking for $2... " >&6; }
  1683. if eval \${$3+:} false; then :
  1684. $as_echo_n "(cached) " >&6
  1685. else
  1686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1687. /* end confdefs.h. */
  1688. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1689. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1690. #define $2 innocuous_$2
  1691. /* System header to define __stub macros and hopefully few prototypes,
  1692. which can conflict with char $2 (); below.
  1693. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1694. <limits.h> exists even on freestanding compilers. */
  1695. #ifdef __STDC__
  1696. # include <limits.h>
  1697. #else
  1698. # include <assert.h>
  1699. #endif
  1700. #undef $2
  1701. /* Override any GCC internal prototype to avoid an error.
  1702. Use char because int might match the return type of a GCC
  1703. builtin and then its argument prototype would still apply. */
  1704. #ifdef __cplusplus
  1705. extern "C"
  1706. #endif
  1707. char $2 ();
  1708. /* The GNU C library defines this for functions which it implements
  1709. to always fail with ENOSYS. Some functions are actually named
  1710. something starting with __ and the normal name is an alias. */
  1711. #if defined __stub_$2 || defined __stub___$2
  1712. choke me
  1713. #endif
  1714. int
  1715. main ()
  1716. {
  1717. return $2 ();
  1718. ;
  1719. return 0;
  1720. }
  1721. _ACEOF
  1722. if ac_fn_c_try_link "$LINENO"; then :
  1723. eval "$3=yes"
  1724. else
  1725. eval "$3=no"
  1726. fi
  1727. rm -f core conftest.err conftest.$ac_objext \
  1728. conftest$ac_exeext conftest.$ac_ext
  1729. fi
  1730. eval ac_res=\$$3
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1732. $as_echo "$ac_res" >&6; }
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. } # ac_fn_c_check_func
  1735. # ac_fn_cxx_try_compile LINENO
  1736. # ----------------------------
  1737. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1738. ac_fn_cxx_try_compile ()
  1739. {
  1740. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1741. rm -f conftest.$ac_objext
  1742. if { { ac_try="$ac_compile"
  1743. case "(($ac_try" in
  1744. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1745. *) ac_try_echo=$ac_try;;
  1746. esac
  1747. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1748. $as_echo "$ac_try_echo"; } >&5
  1749. (eval "$ac_compile") 2>conftest.err
  1750. ac_status=$?
  1751. if test -s conftest.err; then
  1752. grep -v '^ *+' conftest.err >conftest.er1
  1753. cat conftest.er1 >&5
  1754. mv -f conftest.er1 conftest.err
  1755. fi
  1756. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1757. test $ac_status = 0; } && {
  1758. test -z "$ac_cxx_werror_flag" ||
  1759. test ! -s conftest.err
  1760. } && test -s conftest.$ac_objext; then :
  1761. ac_retval=0
  1762. else
  1763. $as_echo "$as_me: failed program was:" >&5
  1764. sed 's/^/| /' conftest.$ac_ext >&5
  1765. ac_retval=1
  1766. fi
  1767. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1768. as_fn_set_status $ac_retval
  1769. } # ac_fn_cxx_try_compile
  1770. # ac_fn_cxx_try_cpp LINENO
  1771. # ------------------------
  1772. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1773. ac_fn_cxx_try_cpp ()
  1774. {
  1775. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1776. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1777. case "(($ac_try" in
  1778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1779. *) ac_try_echo=$ac_try;;
  1780. esac
  1781. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1782. $as_echo "$ac_try_echo"; } >&5
  1783. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1784. ac_status=$?
  1785. if test -s conftest.err; then
  1786. grep -v '^ *+' conftest.err >conftest.er1
  1787. cat conftest.er1 >&5
  1788. mv -f conftest.er1 conftest.err
  1789. fi
  1790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1791. test $ac_status = 0; } > conftest.i && {
  1792. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1793. test ! -s conftest.err
  1794. }; then :
  1795. ac_retval=0
  1796. else
  1797. $as_echo "$as_me: failed program was:" >&5
  1798. sed 's/^/| /' conftest.$ac_ext >&5
  1799. ac_retval=1
  1800. fi
  1801. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1802. as_fn_set_status $ac_retval
  1803. } # ac_fn_cxx_try_cpp
  1804. # ac_fn_cxx_try_link LINENO
  1805. # -------------------------
  1806. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1807. ac_fn_cxx_try_link ()
  1808. {
  1809. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1810. rm -f conftest.$ac_objext conftest$ac_exeext
  1811. if { { ac_try="$ac_link"
  1812. case "(($ac_try" in
  1813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1814. *) ac_try_echo=$ac_try;;
  1815. esac
  1816. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1817. $as_echo "$ac_try_echo"; } >&5
  1818. (eval "$ac_link") 2>conftest.err
  1819. ac_status=$?
  1820. if test -s conftest.err; then
  1821. grep -v '^ *+' conftest.err >conftest.er1
  1822. cat conftest.er1 >&5
  1823. mv -f conftest.er1 conftest.err
  1824. fi
  1825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1826. test $ac_status = 0; } && {
  1827. test -z "$ac_cxx_werror_flag" ||
  1828. test ! -s conftest.err
  1829. } && test -s conftest$ac_exeext && {
  1830. test "$cross_compiling" = yes ||
  1831. test -x conftest$ac_exeext
  1832. }; then :
  1833. ac_retval=0
  1834. else
  1835. $as_echo "$as_me: failed program was:" >&5
  1836. sed 's/^/| /' conftest.$ac_ext >&5
  1837. ac_retval=1
  1838. fi
  1839. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1840. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1841. # interfere with the next link command; also delete a directory that is
  1842. # left behind by Apple's compiler. We do this before executing the actions.
  1843. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1844. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1845. as_fn_set_status $ac_retval
  1846. } # ac_fn_cxx_try_link
  1847. cat >config.log <<_ACEOF
  1848. This file contains any messages produced by compilers while
  1849. running configure, to aid debugging if configure makes a mistake.
  1850. It was created by GNU Vtable Verification Runtime Library $as_me 1.0, which was
  1851. generated by GNU Autoconf 2.69. Invocation command line was
  1852. $ $0 $@
  1853. _ACEOF
  1854. exec 5>>config.log
  1855. {
  1856. cat <<_ASUNAME
  1857. ## --------- ##
  1858. ## Platform. ##
  1859. ## --------- ##
  1860. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1861. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1862. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1863. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1864. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1865. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1866. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1867. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1868. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1869. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1870. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1871. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1872. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1873. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1874. _ASUNAME
  1875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1876. for as_dir in $PATH
  1877. do
  1878. IFS=$as_save_IFS
  1879. test -z "$as_dir" && as_dir=.
  1880. $as_echo "PATH: $as_dir"
  1881. done
  1882. IFS=$as_save_IFS
  1883. } >&5
  1884. cat >&5 <<_ACEOF
  1885. ## ----------- ##
  1886. ## Core tests. ##
  1887. ## ----------- ##
  1888. _ACEOF
  1889. # Keep a trace of the command line.
  1890. # Strip out --no-create and --no-recursion so they do not pile up.
  1891. # Strip out --silent because we don't want to record it for future runs.
  1892. # Also quote any args containing shell meta-characters.
  1893. # Make two passes to allow for proper duplicate-argument suppression.
  1894. ac_configure_args=
  1895. ac_configure_args0=
  1896. ac_configure_args1=
  1897. ac_must_keep_next=false
  1898. for ac_pass in 1 2
  1899. do
  1900. for ac_arg
  1901. do
  1902. case $ac_arg in
  1903. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1904. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1905. | -silent | --silent | --silen | --sile | --sil)
  1906. continue ;;
  1907. *\'*)
  1908. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1909. esac
  1910. case $ac_pass in
  1911. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1912. 2)
  1913. as_fn_append ac_configure_args1 " '$ac_arg'"
  1914. if test $ac_must_keep_next = true; then
  1915. ac_must_keep_next=false # Got value, back to normal.
  1916. else
  1917. case $ac_arg in
  1918. *=* | --config-cache | -C | -disable-* | --disable-* \
  1919. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1920. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1921. | -with-* | --with-* | -without-* | --without-* | --x)
  1922. case "$ac_configure_args0 " in
  1923. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1924. esac
  1925. ;;
  1926. -* ) ac_must_keep_next=true ;;
  1927. esac
  1928. fi
  1929. as_fn_append ac_configure_args " '$ac_arg'"
  1930. ;;
  1931. esac
  1932. done
  1933. done
  1934. { ac_configure_args0=; unset ac_configure_args0;}
  1935. { ac_configure_args1=; unset ac_configure_args1;}
  1936. # When interrupted or exit'd, cleanup temporary files, and complete
  1937. # config.log. We remove comments because anyway the quotes in there
  1938. # would cause problems or look ugly.
  1939. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1940. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1941. trap 'exit_status=$?
  1942. # Save into config.log some information that might help in debugging.
  1943. {
  1944. echo
  1945. $as_echo "## ---------------- ##
  1946. ## Cache variables. ##
  1947. ## ---------------- ##"
  1948. echo
  1949. # The following way of writing the cache mishandles newlines in values,
  1950. (
  1951. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1952. eval ac_val=\$$ac_var
  1953. case $ac_val in #(
  1954. *${as_nl}*)
  1955. case $ac_var in #(
  1956. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1957. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1958. esac
  1959. case $ac_var in #(
  1960. _ | IFS | as_nl) ;; #(
  1961. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1962. *) { eval $ac_var=; unset $ac_var;} ;;
  1963. esac ;;
  1964. esac
  1965. done
  1966. (set) 2>&1 |
  1967. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1968. *${as_nl}ac_space=\ *)
  1969. sed -n \
  1970. "s/'\''/'\''\\\\'\'''\''/g;
  1971. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1972. ;; #(
  1973. *)
  1974. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1975. ;;
  1976. esac |
  1977. sort
  1978. )
  1979. echo
  1980. $as_echo "## ----------------- ##
  1981. ## Output variables. ##
  1982. ## ----------------- ##"
  1983. echo
  1984. for ac_var in $ac_subst_vars
  1985. do
  1986. eval ac_val=\$$ac_var
  1987. case $ac_val in
  1988. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1989. esac
  1990. $as_echo "$ac_var='\''$ac_val'\''"
  1991. done | sort
  1992. echo
  1993. if test -n "$ac_subst_files"; then
  1994. $as_echo "## ------------------- ##
  1995. ## File substitutions. ##
  1996. ## ------------------- ##"
  1997. echo
  1998. for ac_var in $ac_subst_files
  1999. do
  2000. eval ac_val=\$$ac_var
  2001. case $ac_val in
  2002. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2003. esac
  2004. $as_echo "$ac_var='\''$ac_val'\''"
  2005. done | sort
  2006. echo
  2007. fi
  2008. if test -s confdefs.h; then
  2009. $as_echo "## ----------- ##
  2010. ## confdefs.h. ##
  2011. ## ----------- ##"
  2012. echo
  2013. cat confdefs.h
  2014. echo
  2015. fi
  2016. test "$ac_signal" != 0 &&
  2017. $as_echo "$as_me: caught signal $ac_signal"
  2018. $as_echo "$as_me: exit $exit_status"
  2019. } >&5
  2020. rm -f core *.core core.conftest.* &&
  2021. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2022. exit $exit_status
  2023. ' 0
  2024. for ac_signal in 1 2 13 15; do
  2025. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2026. done
  2027. ac_signal=0
  2028. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2029. rm -f -r conftest* confdefs.h
  2030. $as_echo "/* confdefs.h */" > confdefs.h
  2031. # Predefined preprocessor variables.
  2032. cat >>confdefs.h <<_ACEOF
  2033. #define PACKAGE_NAME "$PACKAGE_NAME"
  2034. _ACEOF
  2035. cat >>confdefs.h <<_ACEOF
  2036. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2037. _ACEOF
  2038. cat >>confdefs.h <<_ACEOF
  2039. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2040. _ACEOF
  2041. cat >>confdefs.h <<_ACEOF
  2042. #define PACKAGE_STRING "$PACKAGE_STRING"
  2043. _ACEOF
  2044. cat >>confdefs.h <<_ACEOF
  2045. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2046. _ACEOF
  2047. cat >>confdefs.h <<_ACEOF
  2048. #define PACKAGE_URL "$PACKAGE_URL"
  2049. _ACEOF
  2050. # Let the site file select an alternate cache file if it wants to.
  2051. # Prefer an explicitly selected file to automatically selected ones.
  2052. ac_site_file1=NONE
  2053. ac_site_file2=NONE
  2054. if test -n "$CONFIG_SITE"; then
  2055. # We do not want a PATH search for config.site.
  2056. case $CONFIG_SITE in #((
  2057. -*) ac_site_file1=./$CONFIG_SITE;;
  2058. */*) ac_site_file1=$CONFIG_SITE;;
  2059. *) ac_site_file1=./$CONFIG_SITE;;
  2060. esac
  2061. elif test "x$prefix" != xNONE; then
  2062. ac_site_file1=$prefix/share/config.site
  2063. ac_site_file2=$prefix/etc/config.site
  2064. else
  2065. ac_site_file1=$ac_default_prefix/share/config.site
  2066. ac_site_file2=$ac_default_prefix/etc/config.site
  2067. fi
  2068. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2069. do
  2070. test "x$ac_site_file" = xNONE && continue
  2071. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2073. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2074. sed 's/^/| /' "$ac_site_file" >&5
  2075. . "$ac_site_file" \
  2076. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2077. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2078. as_fn_error $? "failed to load site script $ac_site_file
  2079. See \`config.log' for more details" "$LINENO" 5; }
  2080. fi
  2081. done
  2082. if test -r "$cache_file"; then
  2083. # Some versions of bash will fail to source /dev/null (special files
  2084. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2085. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2087. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2088. case $cache_file in
  2089. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2090. *) . "./$cache_file";;
  2091. esac
  2092. fi
  2093. else
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2095. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2096. >$cache_file
  2097. fi
  2098. # Check that the precious variables saved in the cache have kept the same
  2099. # value.
  2100. ac_cache_corrupted=false
  2101. for ac_var in $ac_precious_vars; do
  2102. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2103. eval ac_new_set=\$ac_env_${ac_var}_set
  2104. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2105. eval ac_new_val=\$ac_env_${ac_var}_value
  2106. case $ac_old_set,$ac_new_set in
  2107. set,)
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2109. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2110. ac_cache_corrupted=: ;;
  2111. ,set)
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2113. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2114. ac_cache_corrupted=: ;;
  2115. ,);;
  2116. *)
  2117. if test "x$ac_old_val" != "x$ac_new_val"; then
  2118. # differences in whitespace do not lead to failure.
  2119. ac_old_val_w=`echo x $ac_old_val`
  2120. ac_new_val_w=`echo x $ac_new_val`
  2121. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2122. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2123. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2124. ac_cache_corrupted=:
  2125. else
  2126. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2127. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2128. eval $ac_var=\$ac_old_val
  2129. fi
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2131. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2133. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2134. fi;;
  2135. esac
  2136. # Pass precious variables to config.status.
  2137. if test "$ac_new_set" = set; then
  2138. case $ac_new_val in
  2139. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2140. *) ac_arg=$ac_var=$ac_new_val ;;
  2141. esac
  2142. case " $ac_configure_args " in
  2143. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2144. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2145. esac
  2146. fi
  2147. done
  2148. if $ac_cache_corrupted; then
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2150. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2151. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2152. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2153. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2154. fi
  2155. ## -------------------- ##
  2156. ## Main body of script. ##
  2157. ## -------------------- ##
  2158. ac_ext=c
  2159. ac_cpp='$CPP $CPPFLAGS'
  2160. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2161. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2162. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2163. #AC_INIT(package-unused, version-unused, libvtv)
  2164. # Default to --enable-multilib
  2165. # Check whether --enable-multilib was given.
  2166. if test "${enable_multilib+set}" = set; then :
  2167. enableval=$enable_multilib; case "$enableval" in
  2168. yes) multilib=yes ;;
  2169. no) multilib=no ;;
  2170. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2171. esac
  2172. else
  2173. multilib=yes
  2174. fi
  2175. # We may get other options which we leave undocumented:
  2176. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2177. # See config-ml.in if you want the gory details.
  2178. if test "$srcdir" = "."; then
  2179. if test "$with_target_subdir" != "."; then
  2180. multi_basedir="$srcdir/$with_multisrctop../.."
  2181. else
  2182. multi_basedir="$srcdir/$with_multisrctop.."
  2183. fi
  2184. else
  2185. multi_basedir="$srcdir/.."
  2186. fi
  2187. # Even if the default multilib is not a cross compilation,
  2188. # it may be that some of the other multilibs are.
  2189. if test $cross_compiling = no && test $multilib = yes \
  2190. && test "x${with_multisubdir}" != x ; then
  2191. cross_compiling=maybe
  2192. fi
  2193. ac_config_commands="$ac_config_commands default-1"
  2194. # -------
  2195. # Options
  2196. # -------
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2198. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2199. # Check whether --enable-version-specific-runtime-libs was given.
  2200. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2201. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  2202. yes) version_specific_libs=yes ;;
  2203. no) version_specific_libs=no ;;
  2204. *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  2205. esac
  2206. else
  2207. version_specific_libs=no
  2208. fi
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  2210. $as_echo "$version_specific_libs" >&6; }
  2211. # Do not delete or change the following two lines. For why, see
  2212. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  2213. ac_aux_dir=
  2214. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2215. if test -f "$ac_dir/install-sh"; then
  2216. ac_aux_dir=$ac_dir
  2217. ac_install_sh="$ac_aux_dir/install-sh -c"
  2218. break
  2219. elif test -f "$ac_dir/install.sh"; then
  2220. ac_aux_dir=$ac_dir
  2221. ac_install_sh="$ac_aux_dir/install.sh -c"
  2222. break
  2223. elif test -f "$ac_dir/shtool"; then
  2224. ac_aux_dir=$ac_dir
  2225. ac_install_sh="$ac_aux_dir/shtool install -c"
  2226. break
  2227. fi
  2228. done
  2229. if test -z "$ac_aux_dir"; then
  2230. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2231. fi
  2232. # These three variables are undocumented and unsupported,
  2233. # and are intended to be withdrawn in a future Autoconf release.
  2234. # They can cause serious problems if a builder's source tree is in a directory
  2235. # whose full name contains unusual characters.
  2236. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2237. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2238. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2239. # Make sure we can run config.sub.
  2240. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2241. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2243. $as_echo_n "checking build system type... " >&6; }
  2244. if ${ac_cv_build+:} false; then :
  2245. $as_echo_n "(cached) " >&6
  2246. else
  2247. ac_build_alias=$build_alias
  2248. test "x$ac_build_alias" = x &&
  2249. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2250. test "x$ac_build_alias" = x &&
  2251. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2252. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2253. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2254. fi
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2256. $as_echo "$ac_cv_build" >&6; }
  2257. case $ac_cv_build in
  2258. *-*-*) ;;
  2259. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2260. esac
  2261. build=$ac_cv_build
  2262. ac_save_IFS=$IFS; IFS='-'
  2263. set x $ac_cv_build
  2264. shift
  2265. build_cpu=$1
  2266. build_vendor=$2
  2267. shift; shift
  2268. # Remember, the first character of IFS is used to create $*,
  2269. # except with old shells:
  2270. build_os=$*
  2271. IFS=$ac_save_IFS
  2272. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2274. $as_echo_n "checking host system type... " >&6; }
  2275. if ${ac_cv_host+:} false; then :
  2276. $as_echo_n "(cached) " >&6
  2277. else
  2278. if test "x$host_alias" = x; then
  2279. ac_cv_host=$ac_cv_build
  2280. else
  2281. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2282. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2283. fi
  2284. fi
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2286. $as_echo "$ac_cv_host" >&6; }
  2287. case $ac_cv_host in
  2288. *-*-*) ;;
  2289. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2290. esac
  2291. host=$ac_cv_host
  2292. ac_save_IFS=$IFS; IFS='-'
  2293. set x $ac_cv_host
  2294. shift
  2295. host_cpu=$1
  2296. host_vendor=$2
  2297. shift; shift
  2298. # Remember, the first character of IFS is used to create $*,
  2299. # except with old shells:
  2300. host_os=$*
  2301. IFS=$ac_save_IFS
  2302. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2304. $as_echo_n "checking target system type... " >&6; }
  2305. if ${ac_cv_target+:} false; then :
  2306. $as_echo_n "(cached) " >&6
  2307. else
  2308. if test "x$target_alias" = x; then
  2309. ac_cv_target=$ac_cv_host
  2310. else
  2311. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2312. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2313. fi
  2314. fi
  2315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2316. $as_echo "$ac_cv_target" >&6; }
  2317. case $ac_cv_target in
  2318. *-*-*) ;;
  2319. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2320. esac
  2321. target=$ac_cv_target
  2322. ac_save_IFS=$IFS; IFS='-'
  2323. set x $ac_cv_target
  2324. shift
  2325. target_cpu=$1
  2326. target_vendor=$2
  2327. shift; shift
  2328. # Remember, the first character of IFS is used to create $*,
  2329. # except with old shells:
  2330. target_os=$*
  2331. IFS=$ac_save_IFS
  2332. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2333. # The aliases save the names the user supplied, while $host etc.
  2334. # will get canonicalized.
  2335. test -n "$target_alias" &&
  2336. test "$program_prefix$program_suffix$program_transform_name" = \
  2337. NONENONEs,x,x, &&
  2338. program_prefix=${target_alias}-
  2339. target_alias=${target_alias-$host_alias}
  2340. case ${build_alias} in
  2341. "") build_noncanonical=${build} ;;
  2342. *) build_noncanonical=${build_alias} ;;
  2343. esac
  2344. case ${host_alias} in
  2345. "") host_noncanonical=${build_noncanonical} ;;
  2346. *) host_noncanonical=${host_alias} ;;
  2347. esac
  2348. case ${target_alias} in
  2349. "") target_noncanonical=${host_noncanonical} ;;
  2350. *) target_noncanonical=${target_alias} ;;
  2351. esac
  2352. LIBSTDCXX_RAW_CXX_CXXFLAGS="\
  2353. -I\$(top_builddir)/../libstdc++-v3/include \
  2354. -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
  2355. -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
  2356. LIBSTDCXX_RAW_CXX_LDFLAGS="\
  2357. \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
  2358. # Expand $ac_aux_dir to an absolute path.
  2359. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2360. ac_ext=c
  2361. ac_cpp='$CPP $CPPFLAGS'
  2362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2365. if test -n "$ac_tool_prefix"; then
  2366. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2367. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2369. $as_echo_n "checking for $ac_word... " >&6; }
  2370. if ${ac_cv_prog_CC+:} false; then :
  2371. $as_echo_n "(cached) " >&6
  2372. else
  2373. if test -n "$CC"; then
  2374. ac_cv_prog_CC="$CC" # Let the user override the test.
  2375. else
  2376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2377. for as_dir in $PATH
  2378. do
  2379. IFS=$as_save_IFS
  2380. test -z "$as_dir" && as_dir=.
  2381. for ac_exec_ext in '' $ac_executable_extensions; do
  2382. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2383. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2384. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2385. break 2
  2386. fi
  2387. done
  2388. done
  2389. IFS=$as_save_IFS
  2390. fi
  2391. fi
  2392. CC=$ac_cv_prog_CC
  2393. if test -n "$CC"; then
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2395. $as_echo "$CC" >&6; }
  2396. else
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2398. $as_echo "no" >&6; }
  2399. fi
  2400. fi
  2401. if test -z "$ac_cv_prog_CC"; then
  2402. ac_ct_CC=$CC
  2403. # Extract the first word of "gcc", so it can be a program name with args.
  2404. set dummy gcc; ac_word=$2
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2406. $as_echo_n "checking for $ac_word... " >&6; }
  2407. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2408. $as_echo_n "(cached) " >&6
  2409. else
  2410. if test -n "$ac_ct_CC"; then
  2411. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2412. else
  2413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2414. for as_dir in $PATH
  2415. do
  2416. IFS=$as_save_IFS
  2417. test -z "$as_dir" && as_dir=.
  2418. for ac_exec_ext in '' $ac_executable_extensions; do
  2419. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2420. ac_cv_prog_ac_ct_CC="gcc"
  2421. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2422. break 2
  2423. fi
  2424. done
  2425. done
  2426. IFS=$as_save_IFS
  2427. fi
  2428. fi
  2429. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2430. if test -n "$ac_ct_CC"; then
  2431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2432. $as_echo "$ac_ct_CC" >&6; }
  2433. else
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2435. $as_echo "no" >&6; }
  2436. fi
  2437. if test "x$ac_ct_CC" = x; then
  2438. CC=""
  2439. else
  2440. case $cross_compiling:$ac_tool_warned in
  2441. yes:)
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2443. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2444. ac_tool_warned=yes ;;
  2445. esac
  2446. CC=$ac_ct_CC
  2447. fi
  2448. else
  2449. CC="$ac_cv_prog_CC"
  2450. fi
  2451. if test -z "$CC"; then
  2452. if test -n "$ac_tool_prefix"; then
  2453. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2454. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2456. $as_echo_n "checking for $ac_word... " >&6; }
  2457. if ${ac_cv_prog_CC+:} false; then :
  2458. $as_echo_n "(cached) " >&6
  2459. else
  2460. if test -n "$CC"; then
  2461. ac_cv_prog_CC="$CC" # Let the user override the test.
  2462. else
  2463. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2464. for as_dir in $PATH
  2465. do
  2466. IFS=$as_save_IFS
  2467. test -z "$as_dir" && as_dir=.
  2468. for ac_exec_ext in '' $ac_executable_extensions; do
  2469. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2470. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2471. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2472. break 2
  2473. fi
  2474. done
  2475. done
  2476. IFS=$as_save_IFS
  2477. fi
  2478. fi
  2479. CC=$ac_cv_prog_CC
  2480. if test -n "$CC"; then
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2482. $as_echo "$CC" >&6; }
  2483. else
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2485. $as_echo "no" >&6; }
  2486. fi
  2487. fi
  2488. fi
  2489. if test -z "$CC"; then
  2490. # Extract the first word of "cc", so it can be a program name with args.
  2491. set dummy cc; ac_word=$2
  2492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2493. $as_echo_n "checking for $ac_word... " >&6; }
  2494. if ${ac_cv_prog_CC+:} false; then :
  2495. $as_echo_n "(cached) " >&6
  2496. else
  2497. if test -n "$CC"; then
  2498. ac_cv_prog_CC="$CC" # Let the user override the test.
  2499. else
  2500. ac_prog_rejected=no
  2501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2502. for as_dir in $PATH
  2503. do
  2504. IFS=$as_save_IFS
  2505. test -z "$as_dir" && as_dir=.
  2506. for ac_exec_ext in '' $ac_executable_extensions; do
  2507. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2508. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2509. ac_prog_rejected=yes
  2510. continue
  2511. fi
  2512. ac_cv_prog_CC="cc"
  2513. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2514. break 2
  2515. fi
  2516. done
  2517. done
  2518. IFS=$as_save_IFS
  2519. if test $ac_prog_rejected = yes; then
  2520. # We found a bogon in the path, so make sure we never use it.
  2521. set dummy $ac_cv_prog_CC
  2522. shift
  2523. if test $# != 0; then
  2524. # We chose a different compiler from the bogus one.
  2525. # However, it has the same basename, so the bogon will be chosen
  2526. # first if we set CC to just the basename; use the full file name.
  2527. shift
  2528. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2529. fi
  2530. fi
  2531. fi
  2532. fi
  2533. CC=$ac_cv_prog_CC
  2534. if test -n "$CC"; then
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2536. $as_echo "$CC" >&6; }
  2537. else
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2539. $as_echo "no" >&6; }
  2540. fi
  2541. fi
  2542. if test -z "$CC"; then
  2543. if test -n "$ac_tool_prefix"; then
  2544. for ac_prog in cl.exe
  2545. do
  2546. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2547. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2549. $as_echo_n "checking for $ac_word... " >&6; }
  2550. if ${ac_cv_prog_CC+:} false; then :
  2551. $as_echo_n "(cached) " >&6
  2552. else
  2553. if test -n "$CC"; then
  2554. ac_cv_prog_CC="$CC" # Let the user override the test.
  2555. else
  2556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2557. for as_dir in $PATH
  2558. do
  2559. IFS=$as_save_IFS
  2560. test -z "$as_dir" && as_dir=.
  2561. for ac_exec_ext in '' $ac_executable_extensions; do
  2562. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2563. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2564. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2565. break 2
  2566. fi
  2567. done
  2568. done
  2569. IFS=$as_save_IFS
  2570. fi
  2571. fi
  2572. CC=$ac_cv_prog_CC
  2573. if test -n "$CC"; then
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2575. $as_echo "$CC" >&6; }
  2576. else
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2578. $as_echo "no" >&6; }
  2579. fi
  2580. test -n "$CC" && break
  2581. done
  2582. fi
  2583. if test -z "$CC"; then
  2584. ac_ct_CC=$CC
  2585. for ac_prog in cl.exe
  2586. do
  2587. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2588. set dummy $ac_prog; ac_word=$2
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2590. $as_echo_n "checking for $ac_word... " >&6; }
  2591. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2592. $as_echo_n "(cached) " >&6
  2593. else
  2594. if test -n "$ac_ct_CC"; then
  2595. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2596. else
  2597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2598. for as_dir in $PATH
  2599. do
  2600. IFS=$as_save_IFS
  2601. test -z "$as_dir" && as_dir=.
  2602. for ac_exec_ext in '' $ac_executable_extensions; do
  2603. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2604. ac_cv_prog_ac_ct_CC="$ac_prog"
  2605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2606. break 2
  2607. fi
  2608. done
  2609. done
  2610. IFS=$as_save_IFS
  2611. fi
  2612. fi
  2613. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2614. if test -n "$ac_ct_CC"; then
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2616. $as_echo "$ac_ct_CC" >&6; }
  2617. else
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2619. $as_echo "no" >&6; }
  2620. fi
  2621. test -n "$ac_ct_CC" && break
  2622. done
  2623. if test "x$ac_ct_CC" = x; then
  2624. CC=""
  2625. else
  2626. case $cross_compiling:$ac_tool_warned in
  2627. yes:)
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2629. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2630. ac_tool_warned=yes ;;
  2631. esac
  2632. CC=$ac_ct_CC
  2633. fi
  2634. fi
  2635. fi
  2636. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2637. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2638. as_fn_error $? "no acceptable C compiler found in \$PATH
  2639. See \`config.log' for more details" "$LINENO" 5; }
  2640. # Provide some information about the compiler.
  2641. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2642. set X $ac_compile
  2643. ac_compiler=$2
  2644. for ac_option in --version -v -V -qversion; do
  2645. { { ac_try="$ac_compiler $ac_option >&5"
  2646. case "(($ac_try" in
  2647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2648. *) ac_try_echo=$ac_try;;
  2649. esac
  2650. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2651. $as_echo "$ac_try_echo"; } >&5
  2652. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2653. ac_status=$?
  2654. if test -s conftest.err; then
  2655. sed '10a\
  2656. ... rest of stderr output deleted ...
  2657. 10q' conftest.err >conftest.er1
  2658. cat conftest.er1 >&5
  2659. fi
  2660. rm -f conftest.er1 conftest.err
  2661. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2662. test $ac_status = 0; }
  2663. done
  2664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2665. /* end confdefs.h. */
  2666. int
  2667. main ()
  2668. {
  2669. ;
  2670. return 0;
  2671. }
  2672. _ACEOF
  2673. ac_clean_files_save=$ac_clean_files
  2674. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2675. # Try to create an executable without -o first, disregard a.out.
  2676. # It will help us diagnose broken compilers, and finding out an intuition
  2677. # of exeext.
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2679. $as_echo_n "checking whether the C compiler works... " >&6; }
  2680. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2681. # The possible output files:
  2682. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2683. ac_rmfiles=
  2684. for ac_file in $ac_files
  2685. do
  2686. case $ac_file in
  2687. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2688. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2689. esac
  2690. done
  2691. rm -f $ac_rmfiles
  2692. if { { ac_try="$ac_link_default"
  2693. case "(($ac_try" in
  2694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2695. *) ac_try_echo=$ac_try;;
  2696. esac
  2697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2698. $as_echo "$ac_try_echo"; } >&5
  2699. (eval "$ac_link_default") 2>&5
  2700. ac_status=$?
  2701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2702. test $ac_status = 0; }; then :
  2703. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2704. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2705. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2706. # so that the user can short-circuit this test for compilers unknown to
  2707. # Autoconf.
  2708. for ac_file in $ac_files ''
  2709. do
  2710. test -f "$ac_file" || continue
  2711. case $ac_file in
  2712. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2713. ;;
  2714. [ab].out )
  2715. # We found the default executable, but exeext='' is most
  2716. # certainly right.
  2717. break;;
  2718. *.* )
  2719. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2720. then :; else
  2721. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2722. fi
  2723. # We set ac_cv_exeext here because the later test for it is not
  2724. # safe: cross compilers may not add the suffix if given an `-o'
  2725. # argument, so we may need to know it at that point already.
  2726. # Even if this section looks crufty: it has the advantage of
  2727. # actually working.
  2728. break;;
  2729. * )
  2730. break;;
  2731. esac
  2732. done
  2733. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2734. else
  2735. ac_file=''
  2736. fi
  2737. if test -z "$ac_file"; then :
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2739. $as_echo "no" >&6; }
  2740. $as_echo "$as_me: failed program was:" >&5
  2741. sed 's/^/| /' conftest.$ac_ext >&5
  2742. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2743. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2744. as_fn_error 77 "C compiler cannot create executables
  2745. See \`config.log' for more details" "$LINENO" 5; }
  2746. else
  2747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2748. $as_echo "yes" >&6; }
  2749. fi
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2751. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2753. $as_echo "$ac_file" >&6; }
  2754. ac_exeext=$ac_cv_exeext
  2755. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2756. ac_clean_files=$ac_clean_files_save
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2758. $as_echo_n "checking for suffix of executables... " >&6; }
  2759. if { { ac_try="$ac_link"
  2760. case "(($ac_try" in
  2761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2762. *) ac_try_echo=$ac_try;;
  2763. esac
  2764. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2765. $as_echo "$ac_try_echo"; } >&5
  2766. (eval "$ac_link") 2>&5
  2767. ac_status=$?
  2768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2769. test $ac_status = 0; }; then :
  2770. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2771. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2772. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2773. # `rm'.
  2774. for ac_file in conftest.exe conftest conftest.*; do
  2775. test -f "$ac_file" || continue
  2776. case $ac_file in
  2777. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2778. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2779. break;;
  2780. * ) break;;
  2781. esac
  2782. done
  2783. else
  2784. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2785. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2786. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2787. See \`config.log' for more details" "$LINENO" 5; }
  2788. fi
  2789. rm -f conftest conftest$ac_cv_exeext
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2791. $as_echo "$ac_cv_exeext" >&6; }
  2792. rm -f conftest.$ac_ext
  2793. EXEEXT=$ac_cv_exeext
  2794. ac_exeext=$EXEEXT
  2795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2796. /* end confdefs.h. */
  2797. #include <stdio.h>
  2798. int
  2799. main ()
  2800. {
  2801. FILE *f = fopen ("conftest.out", "w");
  2802. return ferror (f) || fclose (f) != 0;
  2803. ;
  2804. return 0;
  2805. }
  2806. _ACEOF
  2807. ac_clean_files="$ac_clean_files conftest.out"
  2808. # Check that the compiler produces executables we can run. If not, either
  2809. # the compiler is broken, or we cross compile.
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2811. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2812. if test "$cross_compiling" != yes; then
  2813. { { ac_try="$ac_link"
  2814. case "(($ac_try" in
  2815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2816. *) ac_try_echo=$ac_try;;
  2817. esac
  2818. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2819. $as_echo "$ac_try_echo"; } >&5
  2820. (eval "$ac_link") 2>&5
  2821. ac_status=$?
  2822. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2823. test $ac_status = 0; }
  2824. if { ac_try='./conftest$ac_cv_exeext'
  2825. { { case "(($ac_try" in
  2826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2827. *) ac_try_echo=$ac_try;;
  2828. esac
  2829. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2830. $as_echo "$ac_try_echo"; } >&5
  2831. (eval "$ac_try") 2>&5
  2832. ac_status=$?
  2833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2834. test $ac_status = 0; }; }; then
  2835. cross_compiling=no
  2836. else
  2837. if test "$cross_compiling" = maybe; then
  2838. cross_compiling=yes
  2839. else
  2840. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2841. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2842. as_fn_error $? "cannot run C compiled programs.
  2843. If you meant to cross compile, use \`--host'.
  2844. See \`config.log' for more details" "$LINENO" 5; }
  2845. fi
  2846. fi
  2847. fi
  2848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2849. $as_echo "$cross_compiling" >&6; }
  2850. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2851. ac_clean_files=$ac_clean_files_save
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2853. $as_echo_n "checking for suffix of object files... " >&6; }
  2854. if ${ac_cv_objext+:} false; then :
  2855. $as_echo_n "(cached) " >&6
  2856. else
  2857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2858. /* end confdefs.h. */
  2859. int
  2860. main ()
  2861. {
  2862. ;
  2863. return 0;
  2864. }
  2865. _ACEOF
  2866. rm -f conftest.o conftest.obj
  2867. if { { ac_try="$ac_compile"
  2868. case "(($ac_try" in
  2869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2870. *) ac_try_echo=$ac_try;;
  2871. esac
  2872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2873. $as_echo "$ac_try_echo"; } >&5
  2874. (eval "$ac_compile") 2>&5
  2875. ac_status=$?
  2876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2877. test $ac_status = 0; }; then :
  2878. for ac_file in conftest.o conftest.obj conftest.*; do
  2879. test -f "$ac_file" || continue;
  2880. case $ac_file in
  2881. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2882. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2883. break;;
  2884. esac
  2885. done
  2886. else
  2887. $as_echo "$as_me: failed program was:" >&5
  2888. sed 's/^/| /' conftest.$ac_ext >&5
  2889. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2890. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2891. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2892. See \`config.log' for more details" "$LINENO" 5; }
  2893. fi
  2894. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2895. fi
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2897. $as_echo "$ac_cv_objext" >&6; }
  2898. OBJEXT=$ac_cv_objext
  2899. ac_objext=$OBJEXT
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2901. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2902. if ${ac_cv_c_compiler_gnu+:} false; then :
  2903. $as_echo_n "(cached) " >&6
  2904. else
  2905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2906. /* end confdefs.h. */
  2907. int
  2908. main ()
  2909. {
  2910. #ifndef __GNUC__
  2911. choke me
  2912. #endif
  2913. ;
  2914. return 0;
  2915. }
  2916. _ACEOF
  2917. if ac_fn_c_try_compile "$LINENO"; then :
  2918. ac_compiler_gnu=yes
  2919. else
  2920. ac_compiler_gnu=no
  2921. fi
  2922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2923. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2924. fi
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2926. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2927. if test $ac_compiler_gnu = yes; then
  2928. GCC=yes
  2929. else
  2930. GCC=
  2931. fi
  2932. ac_test_CFLAGS=${CFLAGS+set}
  2933. ac_save_CFLAGS=$CFLAGS
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2935. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2936. if ${ac_cv_prog_cc_g+:} false; then :
  2937. $as_echo_n "(cached) " >&6
  2938. else
  2939. ac_save_c_werror_flag=$ac_c_werror_flag
  2940. ac_c_werror_flag=yes
  2941. ac_cv_prog_cc_g=no
  2942. CFLAGS="-g"
  2943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2944. /* end confdefs.h. */
  2945. int
  2946. main ()
  2947. {
  2948. ;
  2949. return 0;
  2950. }
  2951. _ACEOF
  2952. if ac_fn_c_try_compile "$LINENO"; then :
  2953. ac_cv_prog_cc_g=yes
  2954. else
  2955. CFLAGS=""
  2956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2957. /* end confdefs.h. */
  2958. int
  2959. main ()
  2960. {
  2961. ;
  2962. return 0;
  2963. }
  2964. _ACEOF
  2965. if ac_fn_c_try_compile "$LINENO"; then :
  2966. else
  2967. ac_c_werror_flag=$ac_save_c_werror_flag
  2968. CFLAGS="-g"
  2969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2970. /* end confdefs.h. */
  2971. int
  2972. main ()
  2973. {
  2974. ;
  2975. return 0;
  2976. }
  2977. _ACEOF
  2978. if ac_fn_c_try_compile "$LINENO"; then :
  2979. ac_cv_prog_cc_g=yes
  2980. fi
  2981. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2982. fi
  2983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2984. fi
  2985. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2986. ac_c_werror_flag=$ac_save_c_werror_flag
  2987. fi
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2989. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2990. if test "$ac_test_CFLAGS" = set; then
  2991. CFLAGS=$ac_save_CFLAGS
  2992. elif test $ac_cv_prog_cc_g = yes; then
  2993. if test "$GCC" = yes; then
  2994. CFLAGS="-g -O2"
  2995. else
  2996. CFLAGS="-g"
  2997. fi
  2998. else
  2999. if test "$GCC" = yes; then
  3000. CFLAGS="-O2"
  3001. else
  3002. CFLAGS=
  3003. fi
  3004. fi
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3006. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3007. if ${ac_cv_prog_cc_c89+:} false; then :
  3008. $as_echo_n "(cached) " >&6
  3009. else
  3010. ac_cv_prog_cc_c89=no
  3011. ac_save_CC=$CC
  3012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3013. /* end confdefs.h. */
  3014. #include <stdarg.h>
  3015. #include <stdio.h>
  3016. struct stat;
  3017. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3018. struct buf { int x; };
  3019. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3020. static char *e (p, i)
  3021. char **p;
  3022. int i;
  3023. {
  3024. return p[i];
  3025. }
  3026. static char *f (char * (*g) (char **, int), char **p, ...)
  3027. {
  3028. char *s;
  3029. va_list v;
  3030. va_start (v,p);
  3031. s = g (p, va_arg (v,int));
  3032. va_end (v);
  3033. return s;
  3034. }
  3035. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3036. function prototypes and stuff, but not '\xHH' hex character constants.
  3037. These don't provoke an error unfortunately, instead are silently treated
  3038. as 'x'. The following induces an error, until -std is added to get
  3039. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3040. array size at least. It's necessary to write '\x00'==0 to get something
  3041. that's true only with -std. */
  3042. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3043. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3044. inside strings and character constants. */
  3045. #define FOO(x) 'x'
  3046. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3047. int test (int i, double x);
  3048. struct s1 {int (*f) (int a);};
  3049. struct s2 {int (*f) (double a);};
  3050. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3051. int argc;
  3052. char **argv;
  3053. int
  3054. main ()
  3055. {
  3056. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3057. ;
  3058. return 0;
  3059. }
  3060. _ACEOF
  3061. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3062. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3063. do
  3064. CC="$ac_save_CC $ac_arg"
  3065. if ac_fn_c_try_compile "$LINENO"; then :
  3066. ac_cv_prog_cc_c89=$ac_arg
  3067. fi
  3068. rm -f core conftest.err conftest.$ac_objext
  3069. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3070. done
  3071. rm -f conftest.$ac_ext
  3072. CC=$ac_save_CC
  3073. fi
  3074. # AC_CACHE_VAL
  3075. case "x$ac_cv_prog_cc_c89" in
  3076. x)
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3078. $as_echo "none needed" >&6; } ;;
  3079. xno)
  3080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3081. $as_echo "unsupported" >&6; } ;;
  3082. *)
  3083. CC="$CC $ac_cv_prog_cc_c89"
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3085. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3086. esac
  3087. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3088. fi
  3089. ac_ext=c
  3090. ac_cpp='$CPP $CPPFLAGS'
  3091. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3092. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3093. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3094. ac_ext=c
  3095. ac_cpp='$CPP $CPPFLAGS'
  3096. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3097. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3098. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3100. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3101. if ${am_cv_prog_cc_c_o+:} false; then :
  3102. $as_echo_n "(cached) " >&6
  3103. else
  3104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3105. /* end confdefs.h. */
  3106. int
  3107. main ()
  3108. {
  3109. ;
  3110. return 0;
  3111. }
  3112. _ACEOF
  3113. # Make sure it works both with $CC and with simple cc.
  3114. # Following AC_PROG_CC_C_O, we do the test twice because some
  3115. # compilers refuse to overwrite an existing .o file with -o,
  3116. # though they will create one.
  3117. am_cv_prog_cc_c_o=yes
  3118. for am_i in 1 2; do
  3119. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3120. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3121. ac_status=$?
  3122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3123. (exit $ac_status); } \
  3124. && test -f conftest2.$ac_objext; then
  3125. : OK
  3126. else
  3127. am_cv_prog_cc_c_o=no
  3128. break
  3129. fi
  3130. done
  3131. rm -f core conftest*
  3132. unset am_i
  3133. fi
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3135. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3136. if test "$am_cv_prog_cc_c_o" != yes; then
  3137. # Losing compiler, so override with the script.
  3138. # FIXME: It is wrong to rewrite CC.
  3139. # But if we don't then we get into trouble of one sort or another.
  3140. # A longer-term fix would be to have automake use am__CC in this case,
  3141. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3142. CC="$am_aux_dir/compile $CC"
  3143. fi
  3144. ac_ext=c
  3145. ac_cpp='$CPP $CPPFLAGS'
  3146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3149. ac_ext=c
  3150. ac_cpp='$CPP $CPPFLAGS'
  3151. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3152. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3153. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3155. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3156. # On Suns, sometimes $CPP names a directory.
  3157. if test -n "$CPP" && test -d "$CPP"; then
  3158. CPP=
  3159. fi
  3160. if test -z "$CPP"; then
  3161. if ${ac_cv_prog_CPP+:} false; then :
  3162. $as_echo_n "(cached) " >&6
  3163. else
  3164. # Double quotes because CPP needs to be expanded
  3165. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3166. do
  3167. ac_preproc_ok=false
  3168. for ac_c_preproc_warn_flag in '' yes
  3169. do
  3170. # Use a header file that comes with gcc, so configuring glibc
  3171. # with a fresh cross-compiler works.
  3172. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3173. # <limits.h> exists even on freestanding compilers.
  3174. # On the NeXT, cc -E runs the code through the compiler's parser,
  3175. # not just through cpp. "Syntax error" is here to catch this case.
  3176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3177. /* end confdefs.h. */
  3178. #ifdef __STDC__
  3179. # include <limits.h>
  3180. #else
  3181. # include <assert.h>
  3182. #endif
  3183. Syntax error
  3184. _ACEOF
  3185. if ac_fn_c_try_cpp "$LINENO"; then :
  3186. else
  3187. # Broken: fails on valid input.
  3188. continue
  3189. fi
  3190. rm -f conftest.err conftest.i conftest.$ac_ext
  3191. # OK, works on sane cases. Now check whether nonexistent headers
  3192. # can be detected and how.
  3193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3194. /* end confdefs.h. */
  3195. #include <ac_nonexistent.h>
  3196. _ACEOF
  3197. if ac_fn_c_try_cpp "$LINENO"; then :
  3198. # Broken: success on invalid input.
  3199. continue
  3200. else
  3201. # Passes both tests.
  3202. ac_preproc_ok=:
  3203. break
  3204. fi
  3205. rm -f conftest.err conftest.i conftest.$ac_ext
  3206. done
  3207. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3208. rm -f conftest.i conftest.err conftest.$ac_ext
  3209. if $ac_preproc_ok; then :
  3210. break
  3211. fi
  3212. done
  3213. ac_cv_prog_CPP=$CPP
  3214. fi
  3215. CPP=$ac_cv_prog_CPP
  3216. else
  3217. ac_cv_prog_CPP=$CPP
  3218. fi
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3220. $as_echo "$CPP" >&6; }
  3221. ac_preproc_ok=false
  3222. for ac_c_preproc_warn_flag in '' yes
  3223. do
  3224. # Use a header file that comes with gcc, so configuring glibc
  3225. # with a fresh cross-compiler works.
  3226. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3227. # <limits.h> exists even on freestanding compilers.
  3228. # On the NeXT, cc -E runs the code through the compiler's parser,
  3229. # not just through cpp. "Syntax error" is here to catch this case.
  3230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3231. /* end confdefs.h. */
  3232. #ifdef __STDC__
  3233. # include <limits.h>
  3234. #else
  3235. # include <assert.h>
  3236. #endif
  3237. Syntax error
  3238. _ACEOF
  3239. if ac_fn_c_try_cpp "$LINENO"; then :
  3240. else
  3241. # Broken: fails on valid input.
  3242. continue
  3243. fi
  3244. rm -f conftest.err conftest.i conftest.$ac_ext
  3245. # OK, works on sane cases. Now check whether nonexistent headers
  3246. # can be detected and how.
  3247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3248. /* end confdefs.h. */
  3249. #include <ac_nonexistent.h>
  3250. _ACEOF
  3251. if ac_fn_c_try_cpp "$LINENO"; then :
  3252. # Broken: success on invalid input.
  3253. continue
  3254. else
  3255. # Passes both tests.
  3256. ac_preproc_ok=:
  3257. break
  3258. fi
  3259. rm -f conftest.err conftest.i conftest.$ac_ext
  3260. done
  3261. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3262. rm -f conftest.i conftest.err conftest.$ac_ext
  3263. if $ac_preproc_ok; then :
  3264. else
  3265. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3266. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3267. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3268. See \`config.log' for more details" "$LINENO" 5; }
  3269. fi
  3270. ac_ext=c
  3271. ac_cpp='$CPP $CPPFLAGS'
  3272. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3273. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3274. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3276. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3277. if ${ac_cv_path_GREP+:} false; then :
  3278. $as_echo_n "(cached) " >&6
  3279. else
  3280. if test -z "$GREP"; then
  3281. ac_path_GREP_found=false
  3282. # Loop through the user's path and test for each of PROGNAME-LIST
  3283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3284. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3285. do
  3286. IFS=$as_save_IFS
  3287. test -z "$as_dir" && as_dir=.
  3288. for ac_prog in grep ggrep; do
  3289. for ac_exec_ext in '' $ac_executable_extensions; do
  3290. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3291. as_fn_executable_p "$ac_path_GREP" || continue
  3292. # Check for GNU ac_path_GREP and select it if it is found.
  3293. # Check for GNU $ac_path_GREP
  3294. case `"$ac_path_GREP" --version 2>&1` in
  3295. *GNU*)
  3296. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3297. *)
  3298. ac_count=0
  3299. $as_echo_n 0123456789 >"conftest.in"
  3300. while :
  3301. do
  3302. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3303. mv "conftest.tmp" "conftest.in"
  3304. cp "conftest.in" "conftest.nl"
  3305. $as_echo 'GREP' >> "conftest.nl"
  3306. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3307. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3308. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3309. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3310. # Best one so far, save it but keep looking for a better one
  3311. ac_cv_path_GREP="$ac_path_GREP"
  3312. ac_path_GREP_max=$ac_count
  3313. fi
  3314. # 10*(2^10) chars as input seems more than enough
  3315. test $ac_count -gt 10 && break
  3316. done
  3317. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3318. esac
  3319. $ac_path_GREP_found && break 3
  3320. done
  3321. done
  3322. done
  3323. IFS=$as_save_IFS
  3324. if test -z "$ac_cv_path_GREP"; then
  3325. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3326. fi
  3327. else
  3328. ac_cv_path_GREP=$GREP
  3329. fi
  3330. fi
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3332. $as_echo "$ac_cv_path_GREP" >&6; }
  3333. GREP="$ac_cv_path_GREP"
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3335. $as_echo_n "checking for egrep... " >&6; }
  3336. if ${ac_cv_path_EGREP+:} false; then :
  3337. $as_echo_n "(cached) " >&6
  3338. else
  3339. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3340. then ac_cv_path_EGREP="$GREP -E"
  3341. else
  3342. if test -z "$EGREP"; then
  3343. ac_path_EGREP_found=false
  3344. # Loop through the user's path and test for each of PROGNAME-LIST
  3345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3346. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3347. do
  3348. IFS=$as_save_IFS
  3349. test -z "$as_dir" && as_dir=.
  3350. for ac_prog in egrep; do
  3351. for ac_exec_ext in '' $ac_executable_extensions; do
  3352. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3353. as_fn_executable_p "$ac_path_EGREP" || continue
  3354. # Check for GNU ac_path_EGREP and select it if it is found.
  3355. # Check for GNU $ac_path_EGREP
  3356. case `"$ac_path_EGREP" --version 2>&1` in
  3357. *GNU*)
  3358. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3359. *)
  3360. ac_count=0
  3361. $as_echo_n 0123456789 >"conftest.in"
  3362. while :
  3363. do
  3364. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3365. mv "conftest.tmp" "conftest.in"
  3366. cp "conftest.in" "conftest.nl"
  3367. $as_echo 'EGREP' >> "conftest.nl"
  3368. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3369. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3370. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3371. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3372. # Best one so far, save it but keep looking for a better one
  3373. ac_cv_path_EGREP="$ac_path_EGREP"
  3374. ac_path_EGREP_max=$ac_count
  3375. fi
  3376. # 10*(2^10) chars as input seems more than enough
  3377. test $ac_count -gt 10 && break
  3378. done
  3379. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3380. esac
  3381. $ac_path_EGREP_found && break 3
  3382. done
  3383. done
  3384. done
  3385. IFS=$as_save_IFS
  3386. if test -z "$ac_cv_path_EGREP"; then
  3387. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3388. fi
  3389. else
  3390. ac_cv_path_EGREP=$EGREP
  3391. fi
  3392. fi
  3393. fi
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3395. $as_echo "$ac_cv_path_EGREP" >&6; }
  3396. EGREP="$ac_cv_path_EGREP"
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3398. $as_echo_n "checking for ANSI C header files... " >&6; }
  3399. if ${ac_cv_header_stdc+:} false; then :
  3400. $as_echo_n "(cached) " >&6
  3401. else
  3402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3403. /* end confdefs.h. */
  3404. #include <stdlib.h>
  3405. #include <stdarg.h>
  3406. #include <string.h>
  3407. #include <float.h>
  3408. int
  3409. main ()
  3410. {
  3411. ;
  3412. return 0;
  3413. }
  3414. _ACEOF
  3415. if ac_fn_c_try_compile "$LINENO"; then :
  3416. ac_cv_header_stdc=yes
  3417. else
  3418. ac_cv_header_stdc=no
  3419. fi
  3420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3421. if test $ac_cv_header_stdc = yes; then
  3422. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3424. /* end confdefs.h. */
  3425. #include <string.h>
  3426. _ACEOF
  3427. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3428. $EGREP "memchr" >/dev/null 2>&1; then :
  3429. else
  3430. ac_cv_header_stdc=no
  3431. fi
  3432. rm -f conftest*
  3433. fi
  3434. if test $ac_cv_header_stdc = yes; then
  3435. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3437. /* end confdefs.h. */
  3438. #include <stdlib.h>
  3439. _ACEOF
  3440. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3441. $EGREP "free" >/dev/null 2>&1; then :
  3442. else
  3443. ac_cv_header_stdc=no
  3444. fi
  3445. rm -f conftest*
  3446. fi
  3447. if test $ac_cv_header_stdc = yes; then
  3448. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3449. if test "$cross_compiling" = yes; then :
  3450. :
  3451. else
  3452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3453. /* end confdefs.h. */
  3454. #include <ctype.h>
  3455. #include <stdlib.h>
  3456. #if ((' ' & 0x0FF) == 0x020)
  3457. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3458. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3459. #else
  3460. # define ISLOWER(c) \
  3461. (('a' <= (c) && (c) <= 'i') \
  3462. || ('j' <= (c) && (c) <= 'r') \
  3463. || ('s' <= (c) && (c) <= 'z'))
  3464. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3465. #endif
  3466. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3467. int
  3468. main ()
  3469. {
  3470. int i;
  3471. for (i = 0; i < 256; i++)
  3472. if (XOR (islower (i), ISLOWER (i))
  3473. || toupper (i) != TOUPPER (i))
  3474. return 2;
  3475. return 0;
  3476. }
  3477. _ACEOF
  3478. if ac_fn_c_try_run "$LINENO"; then :
  3479. else
  3480. ac_cv_header_stdc=no
  3481. fi
  3482. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3483. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3484. fi
  3485. fi
  3486. fi
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3488. $as_echo "$ac_cv_header_stdc" >&6; }
  3489. if test $ac_cv_header_stdc = yes; then
  3490. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3491. fi
  3492. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3493. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3494. inttypes.h stdint.h unistd.h
  3495. do :
  3496. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3497. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3498. "
  3499. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3500. cat >>confdefs.h <<_ACEOF
  3501. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3502. _ACEOF
  3503. fi
  3504. done
  3505. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3506. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3507. MINIX=yes
  3508. else
  3509. MINIX=
  3510. fi
  3511. if test "$MINIX" = yes; then
  3512. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3513. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3514. $as_echo "#define _MINIX 1" >>confdefs.h
  3515. fi
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3517. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3518. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3519. $as_echo_n "(cached) " >&6
  3520. else
  3521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3522. /* end confdefs.h. */
  3523. # define __EXTENSIONS__ 1
  3524. $ac_includes_default
  3525. int
  3526. main ()
  3527. {
  3528. ;
  3529. return 0;
  3530. }
  3531. _ACEOF
  3532. if ac_fn_c_try_compile "$LINENO"; then :
  3533. ac_cv_safe_to_define___extensions__=yes
  3534. else
  3535. ac_cv_safe_to_define___extensions__=no
  3536. fi
  3537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3538. fi
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3540. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3541. test $ac_cv_safe_to_define___extensions__ = yes &&
  3542. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3543. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3544. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3545. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3546. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3547. # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
  3548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
  3549. $as_echo_n "checking for --enable-vtable-verify... " >&6; }
  3550. # Check whether --enable-vtable-verify was given.
  3551. if test "${enable_vtable_verify+set}" = set; then :
  3552. enableval=$enable_vtable_verify; case "$enableval" in
  3553. yes) enable_vtable_verify=yes ;;
  3554. no) enable_vtable_verify=no ;;
  3555. *) enable_vtable_verify=no;;
  3556. esac
  3557. else
  3558. enable_vtable_verify=no
  3559. fi
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
  3561. $as_echo "$enable_vtable_verify" >&6; }
  3562. # See if supported.
  3563. unset VTV_SUPPORTED
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for vtable verification" >&5
  3565. $as_echo_n "checking for host support for vtable verification... " >&6; }
  3566. . ${srcdir}/configure.tgt
  3567. case ${host} in
  3568. *-*-solaris2*)
  3569. # libvtv requires init priority support, which depends on the linker
  3570. # used on Solaris.
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5
  3572. $as_echo_n "checking for init priority support... " >&6; }
  3573. if ${libvtv_cv_init_priority+:} false; then :
  3574. $as_echo_n "(cached) " >&6
  3575. else
  3576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3577. /* end confdefs.h. */
  3578. int
  3579. main ()
  3580. {
  3581. void ip (void) __attribute__ ((constructor (1)));
  3582. ;
  3583. return 0;
  3584. }
  3585. _ACEOF
  3586. if ac_fn_c_try_compile "$LINENO"; then :
  3587. libgcc_cv_init_priority=yes
  3588. else
  3589. libgcc_cv_init_priority=no
  3590. fi
  3591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3592. fi
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libvtv_cv_init_priority" >&5
  3594. $as_echo "$libvtv_cv_init_priority" >&6; }
  3595. if test x$libvtv_cv_init_priority = xno; then
  3596. VTV_SUPPORTED=no
  3597. fi
  3598. # FIXME: Maybe check for dl_iterate_phdr, too? Should be covered by
  3599. # configure.tgt restricting to libvtv to Solaris 11+.
  3600. ;;
  3601. esac
  3602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VTV_SUPPORTED" >&5
  3603. $as_echo "$VTV_SUPPORTED" >&6; }
  3604. # Decide if it's usable.
  3605. use_vtable_verify=no
  3606. if test "x$VTV_SUPPORTED" = "xyes"; then
  3607. if test "x$enable_vtable_verify" = "xyes"; then
  3608. use_vtable_verify=yes
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: using vtable verification" >&5
  3610. $as_echo "$as_me: using vtable verification" >&6;}
  3611. fi
  3612. fi
  3613. if test $use_vtable_verify = yes; then
  3614. ENABLE_VTABLE_VERIFY_TRUE=
  3615. ENABLE_VTABLE_VERIFY_FALSE='#'
  3616. else
  3617. ENABLE_VTABLE_VERIFY_TRUE='#'
  3618. ENABLE_VTABLE_VERIFY_FALSE=
  3619. fi
  3620. am__api_version='1.15'
  3621. # Find a good install program. We prefer a C program (faster),
  3622. # so one script is as good as another. But avoid the broken or
  3623. # incompatible versions:
  3624. # SysV /etc/install, /usr/sbin/install
  3625. # SunOS /usr/etc/install
  3626. # IRIX /sbin/install
  3627. # AIX /bin/install
  3628. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3629. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3630. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3631. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3632. # OS/2's system install, which has a completely different semantic
  3633. # ./install, which can be erroneously created by make from ./install.sh.
  3634. # Reject install programs that cannot install multiple files.
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3636. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3637. if test -z "$INSTALL"; then
  3638. if ${ac_cv_path_install+:} false; then :
  3639. $as_echo_n "(cached) " >&6
  3640. else
  3641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3642. for as_dir in $PATH
  3643. do
  3644. IFS=$as_save_IFS
  3645. test -z "$as_dir" && as_dir=.
  3646. # Account for people who put trailing slashes in PATH elements.
  3647. case $as_dir/ in #((
  3648. ./ | .// | /[cC]/* | \
  3649. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3650. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3651. /usr/ucb/* ) ;;
  3652. *)
  3653. # OSF1 and SCO ODT 3.0 have their own names for install.
  3654. # Don't use installbsd from OSF since it installs stuff as root
  3655. # by default.
  3656. for ac_prog in ginstall scoinst install; do
  3657. for ac_exec_ext in '' $ac_executable_extensions; do
  3658. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3659. if test $ac_prog = install &&
  3660. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3661. # AIX install. It has an incompatible calling convention.
  3662. :
  3663. elif test $ac_prog = install &&
  3664. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3665. # program-specific install script used by HP pwplus--don't use.
  3666. :
  3667. else
  3668. rm -rf conftest.one conftest.two conftest.dir
  3669. echo one > conftest.one
  3670. echo two > conftest.two
  3671. mkdir conftest.dir
  3672. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3673. test -s conftest.one && test -s conftest.two &&
  3674. test -s conftest.dir/conftest.one &&
  3675. test -s conftest.dir/conftest.two
  3676. then
  3677. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3678. break 3
  3679. fi
  3680. fi
  3681. fi
  3682. done
  3683. done
  3684. ;;
  3685. esac
  3686. done
  3687. IFS=$as_save_IFS
  3688. rm -rf conftest.one conftest.two conftest.dir
  3689. fi
  3690. if test "${ac_cv_path_install+set}" = set; then
  3691. INSTALL=$ac_cv_path_install
  3692. else
  3693. # As a last resort, use the slow shell script. Don't cache a
  3694. # value for INSTALL within a source directory, because that will
  3695. # break other packages using the cache if that directory is
  3696. # removed, or if the value is a relative name.
  3697. INSTALL=$ac_install_sh
  3698. fi
  3699. fi
  3700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3701. $as_echo "$INSTALL" >&6; }
  3702. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3703. # It thinks the first close brace ends the variable substitution.
  3704. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3705. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3706. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3708. $as_echo_n "checking whether build environment is sane... " >&6; }
  3709. # Reject unsafe characters in $srcdir or the absolute working directory
  3710. # name. Accept space and tab only in the latter.
  3711. am_lf='
  3712. '
  3713. case `pwd` in
  3714. *[\\\"\#\$\&\'\`$am_lf]*)
  3715. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3716. esac
  3717. case $srcdir in
  3718. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3719. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3720. esac
  3721. # Do 'set' in a subshell so we don't clobber the current shell's
  3722. # arguments. Must try -L first in case configure is actually a
  3723. # symlink; some systems play weird games with the mod time of symlinks
  3724. # (eg FreeBSD returns the mod time of the symlink's containing
  3725. # directory).
  3726. if (
  3727. am_has_slept=no
  3728. for am_try in 1 2; do
  3729. echo "timestamp, slept: $am_has_slept" > conftest.file
  3730. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3731. if test "$*" = "X"; then
  3732. # -L didn't work.
  3733. set X `ls -t "$srcdir/configure" conftest.file`
  3734. fi
  3735. if test "$*" != "X $srcdir/configure conftest.file" \
  3736. && test "$*" != "X conftest.file $srcdir/configure"; then
  3737. # If neither matched, then we have a broken ls. This can happen
  3738. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3739. # broken ls alias from the environment. This has actually
  3740. # happened. Such a system could not be considered "sane".
  3741. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3742. alias in your environment" "$LINENO" 5
  3743. fi
  3744. if test "$2" = conftest.file || test $am_try -eq 2; then
  3745. break
  3746. fi
  3747. # Just in case.
  3748. sleep 1
  3749. am_has_slept=yes
  3750. done
  3751. test "$2" = conftest.file
  3752. )
  3753. then
  3754. # Ok.
  3755. :
  3756. else
  3757. as_fn_error $? "newly created file is older than distributed files!
  3758. Check your system clock" "$LINENO" 5
  3759. fi
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3761. $as_echo "yes" >&6; }
  3762. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3763. # generated files are strictly newer.
  3764. am_sleep_pid=
  3765. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3766. ( sleep 1 ) &
  3767. am_sleep_pid=$!
  3768. fi
  3769. rm -f conftest.file
  3770. test "$program_prefix" != NONE &&
  3771. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3772. # Use a double $ so make ignores it.
  3773. test "$program_suffix" != NONE &&
  3774. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3775. # Double any \ or $.
  3776. # By default was `s,x,x', remove it if useless.
  3777. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3778. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3779. if test x"${MISSING+set}" != xset; then
  3780. case $am_aux_dir in
  3781. *\ * | *\ *)
  3782. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3783. *)
  3784. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3785. esac
  3786. fi
  3787. # Use eval to expand $SHELL
  3788. if eval "$MISSING --is-lightweight"; then
  3789. am_missing_run="$MISSING "
  3790. else
  3791. am_missing_run=
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3793. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3794. fi
  3795. if test x"${install_sh+set}" != xset; then
  3796. case $am_aux_dir in
  3797. *\ * | *\ *)
  3798. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3799. *)
  3800. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3801. esac
  3802. fi
  3803. # Installed binaries are usually stripped using 'strip' when the user
  3804. # run "make install-strip". However 'strip' might not be the right
  3805. # tool to use in cross-compilation environments, therefore Automake
  3806. # will honor the 'STRIP' environment variable to overrule this program.
  3807. if test "$cross_compiling" != no; then
  3808. if test -n "$ac_tool_prefix"; then
  3809. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3810. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3812. $as_echo_n "checking for $ac_word... " >&6; }
  3813. if ${ac_cv_prog_STRIP+:} false; then :
  3814. $as_echo_n "(cached) " >&6
  3815. else
  3816. if test -n "$STRIP"; then
  3817. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3818. else
  3819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3820. for as_dir in $PATH
  3821. do
  3822. IFS=$as_save_IFS
  3823. test -z "$as_dir" && as_dir=.
  3824. for ac_exec_ext in '' $ac_executable_extensions; do
  3825. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3826. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3828. break 2
  3829. fi
  3830. done
  3831. done
  3832. IFS=$as_save_IFS
  3833. fi
  3834. fi
  3835. STRIP=$ac_cv_prog_STRIP
  3836. if test -n "$STRIP"; then
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3838. $as_echo "$STRIP" >&6; }
  3839. else
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3841. $as_echo "no" >&6; }
  3842. fi
  3843. fi
  3844. if test -z "$ac_cv_prog_STRIP"; then
  3845. ac_ct_STRIP=$STRIP
  3846. # Extract the first word of "strip", so it can be a program name with args.
  3847. set dummy strip; ac_word=$2
  3848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3849. $as_echo_n "checking for $ac_word... " >&6; }
  3850. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3851. $as_echo_n "(cached) " >&6
  3852. else
  3853. if test -n "$ac_ct_STRIP"; then
  3854. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3855. else
  3856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3857. for as_dir in $PATH
  3858. do
  3859. IFS=$as_save_IFS
  3860. test -z "$as_dir" && as_dir=.
  3861. for ac_exec_ext in '' $ac_executable_extensions; do
  3862. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3863. ac_cv_prog_ac_ct_STRIP="strip"
  3864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3865. break 2
  3866. fi
  3867. done
  3868. done
  3869. IFS=$as_save_IFS
  3870. fi
  3871. fi
  3872. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3873. if test -n "$ac_ct_STRIP"; then
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3875. $as_echo "$ac_ct_STRIP" >&6; }
  3876. else
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3878. $as_echo "no" >&6; }
  3879. fi
  3880. if test "x$ac_ct_STRIP" = x; then
  3881. STRIP=":"
  3882. else
  3883. case $cross_compiling:$ac_tool_warned in
  3884. yes:)
  3885. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3886. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3887. ac_tool_warned=yes ;;
  3888. esac
  3889. STRIP=$ac_ct_STRIP
  3890. fi
  3891. else
  3892. STRIP="$ac_cv_prog_STRIP"
  3893. fi
  3894. fi
  3895. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3897. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3898. if test -z "$MKDIR_P"; then
  3899. if ${ac_cv_path_mkdir+:} false; then :
  3900. $as_echo_n "(cached) " >&6
  3901. else
  3902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3903. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3904. do
  3905. IFS=$as_save_IFS
  3906. test -z "$as_dir" && as_dir=.
  3907. for ac_prog in mkdir gmkdir; do
  3908. for ac_exec_ext in '' $ac_executable_extensions; do
  3909. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3910. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3911. 'mkdir (GNU coreutils) '* | \
  3912. 'mkdir (coreutils) '* | \
  3913. 'mkdir (fileutils) '4.1*)
  3914. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3915. break 3;;
  3916. esac
  3917. done
  3918. done
  3919. done
  3920. IFS=$as_save_IFS
  3921. fi
  3922. test -d ./--version && rmdir ./--version
  3923. if test "${ac_cv_path_mkdir+set}" = set; then
  3924. MKDIR_P="$ac_cv_path_mkdir -p"
  3925. else
  3926. # As a last resort, use the slow shell script. Don't cache a
  3927. # value for MKDIR_P within a source directory, because that will
  3928. # break other packages using the cache if that directory is
  3929. # removed, or if the value is a relative name.
  3930. MKDIR_P="$ac_install_sh -d"
  3931. fi
  3932. fi
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3934. $as_echo "$MKDIR_P" >&6; }
  3935. for ac_prog in gawk mawk nawk awk
  3936. do
  3937. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3938. set dummy $ac_prog; ac_word=$2
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3940. $as_echo_n "checking for $ac_word... " >&6; }
  3941. if ${ac_cv_prog_AWK+:} false; then :
  3942. $as_echo_n "(cached) " >&6
  3943. else
  3944. if test -n "$AWK"; then
  3945. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3946. else
  3947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3948. for as_dir in $PATH
  3949. do
  3950. IFS=$as_save_IFS
  3951. test -z "$as_dir" && as_dir=.
  3952. for ac_exec_ext in '' $ac_executable_extensions; do
  3953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3954. ac_cv_prog_AWK="$ac_prog"
  3955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3956. break 2
  3957. fi
  3958. done
  3959. done
  3960. IFS=$as_save_IFS
  3961. fi
  3962. fi
  3963. AWK=$ac_cv_prog_AWK
  3964. if test -n "$AWK"; then
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3966. $as_echo "$AWK" >&6; }
  3967. else
  3968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3969. $as_echo "no" >&6; }
  3970. fi
  3971. test -n "$AWK" && break
  3972. done
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3974. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3975. set x ${MAKE-make}
  3976. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3977. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3978. $as_echo_n "(cached) " >&6
  3979. else
  3980. cat >conftest.make <<\_ACEOF
  3981. SHELL = /bin/sh
  3982. all:
  3983. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3984. _ACEOF
  3985. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3986. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3987. *@@@%%%=?*=@@@%%%*)
  3988. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3989. *)
  3990. eval ac_cv_prog_make_${ac_make}_set=no;;
  3991. esac
  3992. rm -f conftest.make
  3993. fi
  3994. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3996. $as_echo "yes" >&6; }
  3997. SET_MAKE=
  3998. else
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4000. $as_echo "no" >&6; }
  4001. SET_MAKE="MAKE=${MAKE-make}"
  4002. fi
  4003. rm -rf .tst 2>/dev/null
  4004. mkdir .tst 2>/dev/null
  4005. if test -d .tst; then
  4006. am__leading_dot=.
  4007. else
  4008. am__leading_dot=_
  4009. fi
  4010. rmdir .tst 2>/dev/null
  4011. DEPDIR="${am__leading_dot}deps"
  4012. ac_config_commands="$ac_config_commands depfiles"
  4013. am_make=${MAKE-make}
  4014. cat > confinc << 'END'
  4015. am__doit:
  4016. @echo this is the am__doit target
  4017. .PHONY: am__doit
  4018. END
  4019. # If we don't find an include directive, just comment out the code.
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4021. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4022. am__include="#"
  4023. am__quote=
  4024. _am_result=none
  4025. # First try GNU make style include.
  4026. echo "include confinc" > confmf
  4027. # Ignore all kinds of additional output from 'make'.
  4028. case `$am_make -s -f confmf 2> /dev/null` in #(
  4029. *the\ am__doit\ target*)
  4030. am__include=include
  4031. am__quote=
  4032. _am_result=GNU
  4033. ;;
  4034. esac
  4035. # Now try BSD make style include.
  4036. if test "$am__include" = "#"; then
  4037. echo '.include "confinc"' > confmf
  4038. case `$am_make -s -f confmf 2> /dev/null` in #(
  4039. *the\ am__doit\ target*)
  4040. am__include=.include
  4041. am__quote="\""
  4042. _am_result=BSD
  4043. ;;
  4044. esac
  4045. fi
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4047. $as_echo "$_am_result" >&6; }
  4048. rm -f confinc confmf
  4049. # Check whether --enable-dependency-tracking was given.
  4050. if test "${enable_dependency_tracking+set}" = set; then :
  4051. enableval=$enable_dependency_tracking;
  4052. fi
  4053. if test "x$enable_dependency_tracking" != xno; then
  4054. am_depcomp="$ac_aux_dir/depcomp"
  4055. AMDEPBACKSLASH='\'
  4056. am__nodep='_no'
  4057. fi
  4058. if test "x$enable_dependency_tracking" != xno; then
  4059. AMDEP_TRUE=
  4060. AMDEP_FALSE='#'
  4061. else
  4062. AMDEP_TRUE='#'
  4063. AMDEP_FALSE=
  4064. fi
  4065. # Check whether --enable-silent-rules was given.
  4066. if test "${enable_silent_rules+set}" = set; then :
  4067. enableval=$enable_silent_rules;
  4068. fi
  4069. case $enable_silent_rules in # (((
  4070. yes) AM_DEFAULT_VERBOSITY=0;;
  4071. no) AM_DEFAULT_VERBOSITY=1;;
  4072. *) AM_DEFAULT_VERBOSITY=1;;
  4073. esac
  4074. am_make=${MAKE-make}
  4075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4076. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  4077. if ${am_cv_make_support_nested_variables+:} false; then :
  4078. $as_echo_n "(cached) " >&6
  4079. else
  4080. if $as_echo 'TRUE=$(BAR$(V))
  4081. BAR0=false
  4082. BAR1=true
  4083. V=1
  4084. am__doit:
  4085. @$(TRUE)
  4086. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4087. am_cv_make_support_nested_variables=yes
  4088. else
  4089. am_cv_make_support_nested_variables=no
  4090. fi
  4091. fi
  4092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4093. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  4094. if test $am_cv_make_support_nested_variables = yes; then
  4095. AM_V='$(V)'
  4096. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  4097. else
  4098. AM_V=$AM_DEFAULT_VERBOSITY
  4099. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  4100. fi
  4101. AM_BACKSLASH='\'
  4102. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  4103. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  4104. # is not polluted with repeated "-I."
  4105. am__isrc=' -I$(srcdir)'
  4106. # test to see if srcdir already configured
  4107. if test -f $srcdir/config.status; then
  4108. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  4109. fi
  4110. fi
  4111. # test whether we have cygpath
  4112. if test -z "$CYGPATH_W"; then
  4113. if (cygpath --version) >/dev/null 2>/dev/null; then
  4114. CYGPATH_W='cygpath -w'
  4115. else
  4116. CYGPATH_W=echo
  4117. fi
  4118. fi
  4119. # Define the identity of the package.
  4120. PACKAGE='libvtv'
  4121. VERSION='1.0'
  4122. cat >>confdefs.h <<_ACEOF
  4123. #define PACKAGE "$PACKAGE"
  4124. _ACEOF
  4125. cat >>confdefs.h <<_ACEOF
  4126. #define VERSION "$VERSION"
  4127. _ACEOF
  4128. # Some tools Automake needs.
  4129. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  4130. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  4131. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  4132. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  4133. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  4134. # For better backward compatibility. To be removed once Automake 1.9.x
  4135. # dies out for good. For more background, see:
  4136. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  4137. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  4138. mkdir_p='$(MKDIR_P)'
  4139. # We need awk for the "check" target (and possibly the TAP driver). The
  4140. # system "awk" is bad on some platforms.
  4141. # Always define AMTAR for backward compatibility. Yes, it's still used
  4142. # in the wild :-( We should find a proper way to deprecate it ...
  4143. AMTAR='$${TAR-tar}'
  4144. # We'll loop over all known methods to create a tar archive until one works.
  4145. _am_tools='gnutar pax cpio none'
  4146. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  4147. depcc="$CC" am_compiler_list=
  4148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4149. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4150. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4151. $as_echo_n "(cached) " >&6
  4152. else
  4153. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4154. # We make a subdir and do the tests there. Otherwise we can end up
  4155. # making bogus files that we don't know about and never remove. For
  4156. # instance it was reported that on HP-UX the gcc test will end up
  4157. # making a dummy file named 'D' -- because '-MD' means "put the output
  4158. # in D".
  4159. rm -rf conftest.dir
  4160. mkdir conftest.dir
  4161. # Copy depcomp to subdir because otherwise we won't find it if we're
  4162. # using a relative directory.
  4163. cp "$am_depcomp" conftest.dir
  4164. cd conftest.dir
  4165. # We will build objects and dependencies in a subdirectory because
  4166. # it helps to detect inapplicable dependency modes. For instance
  4167. # both Tru64's cc and ICC support -MD to output dependencies as a
  4168. # side effect of compilation, but ICC will put the dependencies in
  4169. # the current directory while Tru64 will put them in the object
  4170. # directory.
  4171. mkdir sub
  4172. am_cv_CC_dependencies_compiler_type=none
  4173. if test "$am_compiler_list" = ""; then
  4174. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4175. fi
  4176. am__universal=false
  4177. case " $depcc " in #(
  4178. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4179. esac
  4180. for depmode in $am_compiler_list; do
  4181. # Setup a source with many dependencies, because some compilers
  4182. # like to wrap large dependency lists on column 80 (with \), and
  4183. # we should not choose a depcomp mode which is confused by this.
  4184. #
  4185. # We need to recreate these files for each test, as the compiler may
  4186. # overwrite some of them when testing with obscure command lines.
  4187. # This happens at least with the AIX C compiler.
  4188. : > sub/conftest.c
  4189. for i in 1 2 3 4 5 6; do
  4190. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4191. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4192. # Solaris 10 /bin/sh.
  4193. echo '/* dummy */' > sub/conftst$i.h
  4194. done
  4195. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4196. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4197. # mode. It turns out that the SunPro C++ compiler does not properly
  4198. # handle '-M -o', and we need to detect this. Also, some Intel
  4199. # versions had trouble with output in subdirs.
  4200. am__obj=sub/conftest.${OBJEXT-o}
  4201. am__minus_obj="-o $am__obj"
  4202. case $depmode in
  4203. gcc)
  4204. # This depmode causes a compiler race in universal mode.
  4205. test "$am__universal" = false || continue
  4206. ;;
  4207. nosideeffect)
  4208. # After this tag, mechanisms are not by side-effect, so they'll
  4209. # only be used when explicitly requested.
  4210. if test "x$enable_dependency_tracking" = xyes; then
  4211. continue
  4212. else
  4213. break
  4214. fi
  4215. ;;
  4216. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4217. # This compiler won't grok '-c -o', but also, the minuso test has
  4218. # not run yet. These depmodes are late enough in the game, and
  4219. # so weak that their functioning should not be impacted.
  4220. am__obj=conftest.${OBJEXT-o}
  4221. am__minus_obj=
  4222. ;;
  4223. none) break ;;
  4224. esac
  4225. if depmode=$depmode \
  4226. source=sub/conftest.c object=$am__obj \
  4227. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4228. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4229. >/dev/null 2>conftest.err &&
  4230. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4231. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4232. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4233. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4234. # icc doesn't choke on unknown options, it will just issue warnings
  4235. # or remarks (even with -Werror). So we grep stderr for any message
  4236. # that says an option was ignored or not supported.
  4237. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4238. # icc: Command line warning: ignoring option '-M'; no argument required
  4239. # The diagnosis changed in icc 8.0:
  4240. # icc: Command line remark: option '-MP' not supported
  4241. if (grep 'ignoring option' conftest.err ||
  4242. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4243. am_cv_CC_dependencies_compiler_type=$depmode
  4244. break
  4245. fi
  4246. fi
  4247. done
  4248. cd ..
  4249. rm -rf conftest.dir
  4250. else
  4251. am_cv_CC_dependencies_compiler_type=none
  4252. fi
  4253. fi
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4255. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4256. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4257. if
  4258. test "x$enable_dependency_tracking" != xno \
  4259. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4260. am__fastdepCC_TRUE=
  4261. am__fastdepCC_FALSE='#'
  4262. else
  4263. am__fastdepCC_TRUE='#'
  4264. am__fastdepCC_FALSE=
  4265. fi
  4266. # POSIX will say in a future version that running "rm -f" with no argument
  4267. # is OK; and we want to be able to make that assumption in our Makefile
  4268. # recipes. So use an aggressive probe to check that the usage we want is
  4269. # actually supported "in the wild" to an acceptable degree.
  4270. # See automake bug#10828.
  4271. # To make any issue more visible, cause the running configure to be aborted
  4272. # by default if the 'rm' program in use doesn't match our expectations; the
  4273. # user can still override this though.
  4274. if rm -f && rm -fr && rm -rf; then : OK; else
  4275. cat >&2 <<'END'
  4276. Oops!
  4277. Your 'rm' program seems unable to run without file operands specified
  4278. on the command line, even when the '-f' option is present. This is contrary
  4279. to the behaviour of most rm programs out there, and not conforming with
  4280. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  4281. Please tell bug-automake@gnu.org about your system, including the value
  4282. of your $PATH and any error possibly output before this message. This
  4283. can help us improve future automake versions.
  4284. END
  4285. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  4286. echo 'Configuration will proceed anyway, since you have set the' >&2
  4287. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  4288. echo >&2
  4289. else
  4290. cat >&2 <<'END'
  4291. Aborting the configuration process, to ensure you take notice of the issue.
  4292. You can download and install GNU coreutils to get an 'rm' implementation
  4293. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  4294. If you want to complete the configuration process using your problematic
  4295. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  4296. to "yes", and re-run configure.
  4297. END
  4298. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  4299. fi
  4300. fi
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4302. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4303. # Check whether --enable-maintainer-mode was given.
  4304. if test "${enable_maintainer_mode+set}" = set; then :
  4305. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4306. else
  4307. USE_MAINTAINER_MODE=no
  4308. fi
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  4310. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4311. if test $USE_MAINTAINER_MODE = yes; then
  4312. MAINTAINER_MODE_TRUE=
  4313. MAINTAINER_MODE_FALSE='#'
  4314. else
  4315. MAINTAINER_MODE_TRUE='#'
  4316. MAINTAINER_MODE_FALSE=
  4317. fi
  4318. MAINT=$MAINTAINER_MODE_TRUE
  4319. # These need to be absolute paths, yet at the same time need to
  4320. # canonicalize only relative paths, because then amd will not unmount
  4321. # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
  4322. libvtv_builddir=`${PWDCMD-pwd}`
  4323. case $srcdir in
  4324. \\/$* | ?:\\/*) libvtv_srcdir=${srcdir} ;;
  4325. *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
  4326. esac
  4327. toplevel_builddir=${libvtv_builddir}/..
  4328. toplevel_srcdir=${libvtv_srcdir}/..
  4329. # Check whether --with-toolexeclibdir was given.
  4330. if test "${with_toolexeclibdir+set}" = set; then :
  4331. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  4332. /)
  4333. ;;
  4334. */)
  4335. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  4336. ;;
  4337. esac
  4338. else
  4339. with_toolexeclibdir=no
  4340. fi
  4341. # Calculate toolexeclibdir
  4342. # Also toolexecdir, though it's only used in toolexeclibdir
  4343. case ${version_specific_libs} in
  4344. yes)
  4345. # Need the gcc compiler version to know where to install libraries
  4346. # and header files if --enable-version-specific-runtime-libs option
  4347. # is selected.
  4348. toolexecdir='$(libdir)/gcc/$(target_alias)'
  4349. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  4350. ;;
  4351. no)
  4352. if test -n "$with_cross_host" &&
  4353. test x"$with_cross_host" != x"no"; then
  4354. # Install a library built with a cross compiler in tooldir, not libdir.
  4355. toolexecdir='$(exec_prefix)/$(target_alias)'
  4356. case ${with_toolexeclibdir} in
  4357. no)
  4358. toolexeclibdir='$(toolexecdir)/lib'
  4359. ;;
  4360. *)
  4361. toolexeclibdir=${with_toolexeclibdir}
  4362. ;;
  4363. esac
  4364. else
  4365. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  4366. toolexeclibdir='$(libdir)'
  4367. fi
  4368. multi_os_directory=`$CC -print-multi-os-directory`
  4369. case $multi_os_directory in
  4370. .) ;; # Avoid trailing /.
  4371. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  4372. esac
  4373. ;;
  4374. esac
  4375. for ac_func in __secure_getenv
  4376. do :
  4377. ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
  4378. if test "x$ac_cv_func___secure_getenv" = xyes; then :
  4379. cat >>confdefs.h <<_ACEOF
  4380. #define HAVE___SECURE_GETENV 1
  4381. _ACEOF
  4382. fi
  4383. done
  4384. for ac_func in secure_getenv
  4385. do :
  4386. ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
  4387. if test "x$ac_cv_func_secure_getenv" = xyes; then :
  4388. cat >>confdefs.h <<_ACEOF
  4389. #define HAVE_SECURE_GETENV 1
  4390. _ACEOF
  4391. fi
  4392. done
  4393. for ac_func in getexecname __fortify_fail
  4394. do :
  4395. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4396. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  4397. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  4398. cat >>confdefs.h <<_ACEOF
  4399. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4400. _ACEOF
  4401. fi
  4402. done
  4403. # Check for programs.
  4404. ac_ext=c
  4405. ac_cpp='$CPP $CPPFLAGS'
  4406. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4407. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4408. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4409. if test -n "$ac_tool_prefix"; then
  4410. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4411. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4413. $as_echo_n "checking for $ac_word... " >&6; }
  4414. if ${ac_cv_prog_CC+:} false; then :
  4415. $as_echo_n "(cached) " >&6
  4416. else
  4417. if test -n "$CC"; then
  4418. ac_cv_prog_CC="$CC" # Let the user override the test.
  4419. else
  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_exec_ext in '' $ac_executable_extensions; do
  4426. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4427. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4429. break 2
  4430. fi
  4431. done
  4432. done
  4433. IFS=$as_save_IFS
  4434. fi
  4435. fi
  4436. CC=$ac_cv_prog_CC
  4437. if test -n "$CC"; then
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4439. $as_echo "$CC" >&6; }
  4440. else
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4442. $as_echo "no" >&6; }
  4443. fi
  4444. fi
  4445. if test -z "$ac_cv_prog_CC"; then
  4446. ac_ct_CC=$CC
  4447. # Extract the first word of "gcc", so it can be a program name with args.
  4448. set dummy gcc; ac_word=$2
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4450. $as_echo_n "checking for $ac_word... " >&6; }
  4451. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4452. $as_echo_n "(cached) " >&6
  4453. else
  4454. if test -n "$ac_ct_CC"; then
  4455. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4456. else
  4457. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4458. for as_dir in $PATH
  4459. do
  4460. IFS=$as_save_IFS
  4461. test -z "$as_dir" && as_dir=.
  4462. for ac_exec_ext in '' $ac_executable_extensions; do
  4463. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4464. ac_cv_prog_ac_ct_CC="gcc"
  4465. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4466. break 2
  4467. fi
  4468. done
  4469. done
  4470. IFS=$as_save_IFS
  4471. fi
  4472. fi
  4473. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4474. if test -n "$ac_ct_CC"; then
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4476. $as_echo "$ac_ct_CC" >&6; }
  4477. else
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4479. $as_echo "no" >&6; }
  4480. fi
  4481. if test "x$ac_ct_CC" = x; then
  4482. CC=""
  4483. else
  4484. case $cross_compiling:$ac_tool_warned in
  4485. yes:)
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4487. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4488. ac_tool_warned=yes ;;
  4489. esac
  4490. CC=$ac_ct_CC
  4491. fi
  4492. else
  4493. CC="$ac_cv_prog_CC"
  4494. fi
  4495. if test -z "$CC"; then
  4496. if test -n "$ac_tool_prefix"; then
  4497. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4498. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4500. $as_echo_n "checking for $ac_word... " >&6; }
  4501. if ${ac_cv_prog_CC+:} false; then :
  4502. $as_echo_n "(cached) " >&6
  4503. else
  4504. if test -n "$CC"; then
  4505. ac_cv_prog_CC="$CC" # Let the user override the test.
  4506. else
  4507. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4508. for as_dir in $PATH
  4509. do
  4510. IFS=$as_save_IFS
  4511. test -z "$as_dir" && as_dir=.
  4512. for ac_exec_ext in '' $ac_executable_extensions; do
  4513. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4514. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4515. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4516. break 2
  4517. fi
  4518. done
  4519. done
  4520. IFS=$as_save_IFS
  4521. fi
  4522. fi
  4523. CC=$ac_cv_prog_CC
  4524. if test -n "$CC"; then
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4526. $as_echo "$CC" >&6; }
  4527. else
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4529. $as_echo "no" >&6; }
  4530. fi
  4531. fi
  4532. fi
  4533. if test -z "$CC"; then
  4534. # Extract the first word of "cc", so it can be a program name with args.
  4535. set dummy cc; ac_word=$2
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4537. $as_echo_n "checking for $ac_word... " >&6; }
  4538. if ${ac_cv_prog_CC+:} false; then :
  4539. $as_echo_n "(cached) " >&6
  4540. else
  4541. if test -n "$CC"; then
  4542. ac_cv_prog_CC="$CC" # Let the user override the test.
  4543. else
  4544. ac_prog_rejected=no
  4545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4546. for as_dir in $PATH
  4547. do
  4548. IFS=$as_save_IFS
  4549. test -z "$as_dir" && as_dir=.
  4550. for ac_exec_ext in '' $ac_executable_extensions; do
  4551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4552. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4553. ac_prog_rejected=yes
  4554. continue
  4555. fi
  4556. ac_cv_prog_CC="cc"
  4557. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4558. break 2
  4559. fi
  4560. done
  4561. done
  4562. IFS=$as_save_IFS
  4563. if test $ac_prog_rejected = yes; then
  4564. # We found a bogon in the path, so make sure we never use it.
  4565. set dummy $ac_cv_prog_CC
  4566. shift
  4567. if test $# != 0; then
  4568. # We chose a different compiler from the bogus one.
  4569. # However, it has the same basename, so the bogon will be chosen
  4570. # first if we set CC to just the basename; use the full file name.
  4571. shift
  4572. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4573. fi
  4574. fi
  4575. fi
  4576. fi
  4577. CC=$ac_cv_prog_CC
  4578. if test -n "$CC"; then
  4579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4580. $as_echo "$CC" >&6; }
  4581. else
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4583. $as_echo "no" >&6; }
  4584. fi
  4585. fi
  4586. if test -z "$CC"; then
  4587. if test -n "$ac_tool_prefix"; then
  4588. for ac_prog in cl.exe
  4589. do
  4590. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4591. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4593. $as_echo_n "checking for $ac_word... " >&6; }
  4594. if ${ac_cv_prog_CC+:} false; then :
  4595. $as_echo_n "(cached) " >&6
  4596. else
  4597. if test -n "$CC"; then
  4598. ac_cv_prog_CC="$CC" # Let the user override the test.
  4599. else
  4600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4601. for as_dir in $PATH
  4602. do
  4603. IFS=$as_save_IFS
  4604. test -z "$as_dir" && as_dir=.
  4605. for ac_exec_ext in '' $ac_executable_extensions; do
  4606. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4607. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4609. break 2
  4610. fi
  4611. done
  4612. done
  4613. IFS=$as_save_IFS
  4614. fi
  4615. fi
  4616. CC=$ac_cv_prog_CC
  4617. if test -n "$CC"; then
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4619. $as_echo "$CC" >&6; }
  4620. else
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4622. $as_echo "no" >&6; }
  4623. fi
  4624. test -n "$CC" && break
  4625. done
  4626. fi
  4627. if test -z "$CC"; then
  4628. ac_ct_CC=$CC
  4629. for ac_prog in cl.exe
  4630. do
  4631. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4632. set dummy $ac_prog; ac_word=$2
  4633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4634. $as_echo_n "checking for $ac_word... " >&6; }
  4635. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4636. $as_echo_n "(cached) " >&6
  4637. else
  4638. if test -n "$ac_ct_CC"; then
  4639. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4640. else
  4641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4642. for as_dir in $PATH
  4643. do
  4644. IFS=$as_save_IFS
  4645. test -z "$as_dir" && as_dir=.
  4646. for ac_exec_ext in '' $ac_executable_extensions; do
  4647. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4648. ac_cv_prog_ac_ct_CC="$ac_prog"
  4649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4650. break 2
  4651. fi
  4652. done
  4653. done
  4654. IFS=$as_save_IFS
  4655. fi
  4656. fi
  4657. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4658. if test -n "$ac_ct_CC"; then
  4659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4660. $as_echo "$ac_ct_CC" >&6; }
  4661. else
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4663. $as_echo "no" >&6; }
  4664. fi
  4665. test -n "$ac_ct_CC" && break
  4666. done
  4667. if test "x$ac_ct_CC" = x; then
  4668. CC=""
  4669. else
  4670. case $cross_compiling:$ac_tool_warned in
  4671. yes:)
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4673. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4674. ac_tool_warned=yes ;;
  4675. esac
  4676. CC=$ac_ct_CC
  4677. fi
  4678. fi
  4679. fi
  4680. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4681. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4682. as_fn_error $? "no acceptable C compiler found in \$PATH
  4683. See \`config.log' for more details" "$LINENO" 5; }
  4684. # Provide some information about the compiler.
  4685. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4686. set X $ac_compile
  4687. ac_compiler=$2
  4688. for ac_option in --version -v -V -qversion; do
  4689. { { ac_try="$ac_compiler $ac_option >&5"
  4690. case "(($ac_try" in
  4691. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4692. *) ac_try_echo=$ac_try;;
  4693. esac
  4694. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4695. $as_echo "$ac_try_echo"; } >&5
  4696. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4697. ac_status=$?
  4698. if test -s conftest.err; then
  4699. sed '10a\
  4700. ... rest of stderr output deleted ...
  4701. 10q' conftest.err >conftest.er1
  4702. cat conftest.er1 >&5
  4703. fi
  4704. rm -f conftest.er1 conftest.err
  4705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4706. test $ac_status = 0; }
  4707. done
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4709. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4710. if ${ac_cv_c_compiler_gnu+:} false; then :
  4711. $as_echo_n "(cached) " >&6
  4712. else
  4713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4714. /* end confdefs.h. */
  4715. int
  4716. main ()
  4717. {
  4718. #ifndef __GNUC__
  4719. choke me
  4720. #endif
  4721. ;
  4722. return 0;
  4723. }
  4724. _ACEOF
  4725. if ac_fn_c_try_compile "$LINENO"; then :
  4726. ac_compiler_gnu=yes
  4727. else
  4728. ac_compiler_gnu=no
  4729. fi
  4730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4731. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4732. fi
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4734. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4735. if test $ac_compiler_gnu = yes; then
  4736. GCC=yes
  4737. else
  4738. GCC=
  4739. fi
  4740. ac_test_CFLAGS=${CFLAGS+set}
  4741. ac_save_CFLAGS=$CFLAGS
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4743. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4744. if ${ac_cv_prog_cc_g+:} false; then :
  4745. $as_echo_n "(cached) " >&6
  4746. else
  4747. ac_save_c_werror_flag=$ac_c_werror_flag
  4748. ac_c_werror_flag=yes
  4749. ac_cv_prog_cc_g=no
  4750. CFLAGS="-g"
  4751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4752. /* end confdefs.h. */
  4753. int
  4754. main ()
  4755. {
  4756. ;
  4757. return 0;
  4758. }
  4759. _ACEOF
  4760. if ac_fn_c_try_compile "$LINENO"; then :
  4761. ac_cv_prog_cc_g=yes
  4762. else
  4763. CFLAGS=""
  4764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4765. /* end confdefs.h. */
  4766. int
  4767. main ()
  4768. {
  4769. ;
  4770. return 0;
  4771. }
  4772. _ACEOF
  4773. if ac_fn_c_try_compile "$LINENO"; then :
  4774. else
  4775. ac_c_werror_flag=$ac_save_c_werror_flag
  4776. CFLAGS="-g"
  4777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4778. /* end confdefs.h. */
  4779. int
  4780. main ()
  4781. {
  4782. ;
  4783. return 0;
  4784. }
  4785. _ACEOF
  4786. if ac_fn_c_try_compile "$LINENO"; then :
  4787. ac_cv_prog_cc_g=yes
  4788. fi
  4789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4790. fi
  4791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4792. fi
  4793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4794. ac_c_werror_flag=$ac_save_c_werror_flag
  4795. fi
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4797. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4798. if test "$ac_test_CFLAGS" = set; then
  4799. CFLAGS=$ac_save_CFLAGS
  4800. elif test $ac_cv_prog_cc_g = yes; then
  4801. if test "$GCC" = yes; then
  4802. CFLAGS="-g -O2"
  4803. else
  4804. CFLAGS="-g"
  4805. fi
  4806. else
  4807. if test "$GCC" = yes; then
  4808. CFLAGS="-O2"
  4809. else
  4810. CFLAGS=
  4811. fi
  4812. fi
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4814. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4815. if ${ac_cv_prog_cc_c89+:} false; then :
  4816. $as_echo_n "(cached) " >&6
  4817. else
  4818. ac_cv_prog_cc_c89=no
  4819. ac_save_CC=$CC
  4820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4821. /* end confdefs.h. */
  4822. #include <stdarg.h>
  4823. #include <stdio.h>
  4824. struct stat;
  4825. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4826. struct buf { int x; };
  4827. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4828. static char *e (p, i)
  4829. char **p;
  4830. int i;
  4831. {
  4832. return p[i];
  4833. }
  4834. static char *f (char * (*g) (char **, int), char **p, ...)
  4835. {
  4836. char *s;
  4837. va_list v;
  4838. va_start (v,p);
  4839. s = g (p, va_arg (v,int));
  4840. va_end (v);
  4841. return s;
  4842. }
  4843. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4844. function prototypes and stuff, but not '\xHH' hex character constants.
  4845. These don't provoke an error unfortunately, instead are silently treated
  4846. as 'x'. The following induces an error, until -std is added to get
  4847. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4848. array size at least. It's necessary to write '\x00'==0 to get something
  4849. that's true only with -std. */
  4850. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4851. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4852. inside strings and character constants. */
  4853. #define FOO(x) 'x'
  4854. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4855. int test (int i, double x);
  4856. struct s1 {int (*f) (int a);};
  4857. struct s2 {int (*f) (double a);};
  4858. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4859. int argc;
  4860. char **argv;
  4861. int
  4862. main ()
  4863. {
  4864. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4865. ;
  4866. return 0;
  4867. }
  4868. _ACEOF
  4869. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4870. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4871. do
  4872. CC="$ac_save_CC $ac_arg"
  4873. if ac_fn_c_try_compile "$LINENO"; then :
  4874. ac_cv_prog_cc_c89=$ac_arg
  4875. fi
  4876. rm -f core conftest.err conftest.$ac_objext
  4877. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4878. done
  4879. rm -f conftest.$ac_ext
  4880. CC=$ac_save_CC
  4881. fi
  4882. # AC_CACHE_VAL
  4883. case "x$ac_cv_prog_cc_c89" in
  4884. x)
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4886. $as_echo "none needed" >&6; } ;;
  4887. xno)
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4889. $as_echo "unsupported" >&6; } ;;
  4890. *)
  4891. CC="$CC $ac_cv_prog_cc_c89"
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4893. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4894. esac
  4895. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4896. fi
  4897. ac_ext=c
  4898. ac_cpp='$CPP $CPPFLAGS'
  4899. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4900. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4901. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4902. ac_ext=c
  4903. ac_cpp='$CPP $CPPFLAGS'
  4904. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4905. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4906. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4908. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4909. if ${am_cv_prog_cc_c_o+:} false; then :
  4910. $as_echo_n "(cached) " >&6
  4911. else
  4912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4913. /* end confdefs.h. */
  4914. int
  4915. main ()
  4916. {
  4917. ;
  4918. return 0;
  4919. }
  4920. _ACEOF
  4921. # Make sure it works both with $CC and with simple cc.
  4922. # Following AC_PROG_CC_C_O, we do the test twice because some
  4923. # compilers refuse to overwrite an existing .o file with -o,
  4924. # though they will create one.
  4925. am_cv_prog_cc_c_o=yes
  4926. for am_i in 1 2; do
  4927. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4928. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4929. ac_status=$?
  4930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4931. (exit $ac_status); } \
  4932. && test -f conftest2.$ac_objext; then
  4933. : OK
  4934. else
  4935. am_cv_prog_cc_c_o=no
  4936. break
  4937. fi
  4938. done
  4939. rm -f core conftest*
  4940. unset am_i
  4941. fi
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4943. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4944. if test "$am_cv_prog_cc_c_o" != yes; then
  4945. # Losing compiler, so override with the script.
  4946. # FIXME: It is wrong to rewrite CC.
  4947. # But if we don't then we get into trouble of one sort or another.
  4948. # A longer-term fix would be to have automake use am__CC in this case,
  4949. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4950. CC="$am_aux_dir/compile $CC"
  4951. fi
  4952. ac_ext=c
  4953. ac_cpp='$CPP $CPPFLAGS'
  4954. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4955. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4956. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4957. ac_ext=cpp
  4958. ac_cpp='$CXXCPP $CPPFLAGS'
  4959. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4960. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4961. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4962. if test -z "$CXX"; then
  4963. if test -n "$CCC"; then
  4964. CXX=$CCC
  4965. else
  4966. if test -n "$ac_tool_prefix"; then
  4967. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4968. do
  4969. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4970. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4972. $as_echo_n "checking for $ac_word... " >&6; }
  4973. if ${ac_cv_prog_CXX+:} false; then :
  4974. $as_echo_n "(cached) " >&6
  4975. else
  4976. if test -n "$CXX"; then
  4977. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4978. else
  4979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4980. for as_dir in $PATH
  4981. do
  4982. IFS=$as_save_IFS
  4983. test -z "$as_dir" && as_dir=.
  4984. for ac_exec_ext in '' $ac_executable_extensions; do
  4985. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4986. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4988. break 2
  4989. fi
  4990. done
  4991. done
  4992. IFS=$as_save_IFS
  4993. fi
  4994. fi
  4995. CXX=$ac_cv_prog_CXX
  4996. if test -n "$CXX"; then
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4998. $as_echo "$CXX" >&6; }
  4999. else
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5001. $as_echo "no" >&6; }
  5002. fi
  5003. test -n "$CXX" && break
  5004. done
  5005. fi
  5006. if test -z "$CXX"; then
  5007. ac_ct_CXX=$CXX
  5008. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5009. do
  5010. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5011. set dummy $ac_prog; ac_word=$2
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5013. $as_echo_n "checking for $ac_word... " >&6; }
  5014. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  5015. $as_echo_n "(cached) " >&6
  5016. else
  5017. if test -n "$ac_ct_CXX"; then
  5018. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5019. else
  5020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5021. for as_dir in $PATH
  5022. do
  5023. IFS=$as_save_IFS
  5024. test -z "$as_dir" && as_dir=.
  5025. for ac_exec_ext in '' $ac_executable_extensions; do
  5026. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5027. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5028. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5029. break 2
  5030. fi
  5031. done
  5032. done
  5033. IFS=$as_save_IFS
  5034. fi
  5035. fi
  5036. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5037. if test -n "$ac_ct_CXX"; then
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  5039. $as_echo "$ac_ct_CXX" >&6; }
  5040. else
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5042. $as_echo "no" >&6; }
  5043. fi
  5044. test -n "$ac_ct_CXX" && break
  5045. done
  5046. if test "x$ac_ct_CXX" = x; then
  5047. CXX="g++"
  5048. else
  5049. case $cross_compiling:$ac_tool_warned in
  5050. yes:)
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5052. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5053. ac_tool_warned=yes ;;
  5054. esac
  5055. CXX=$ac_ct_CXX
  5056. fi
  5057. fi
  5058. fi
  5059. fi
  5060. # Provide some information about the compiler.
  5061. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  5062. set X $ac_compile
  5063. ac_compiler=$2
  5064. for ac_option in --version -v -V -qversion; do
  5065. { { ac_try="$ac_compiler $ac_option >&5"
  5066. case "(($ac_try" in
  5067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5068. *) ac_try_echo=$ac_try;;
  5069. esac
  5070. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5071. $as_echo "$ac_try_echo"; } >&5
  5072. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5073. ac_status=$?
  5074. if test -s conftest.err; then
  5075. sed '10a\
  5076. ... rest of stderr output deleted ...
  5077. 10q' conftest.err >conftest.er1
  5078. cat conftest.er1 >&5
  5079. fi
  5080. rm -f conftest.er1 conftest.err
  5081. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5082. test $ac_status = 0; }
  5083. done
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  5085. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  5086. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  5087. $as_echo_n "(cached) " >&6
  5088. else
  5089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5090. /* end confdefs.h. */
  5091. int
  5092. main ()
  5093. {
  5094. #ifndef __GNUC__
  5095. choke me
  5096. #endif
  5097. ;
  5098. return 0;
  5099. }
  5100. _ACEOF
  5101. if ac_fn_cxx_try_compile "$LINENO"; then :
  5102. ac_compiler_gnu=yes
  5103. else
  5104. ac_compiler_gnu=no
  5105. fi
  5106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5107. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5108. fi
  5109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5110. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  5111. if test $ac_compiler_gnu = yes; then
  5112. GXX=yes
  5113. else
  5114. GXX=
  5115. fi
  5116. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5117. ac_save_CXXFLAGS=$CXXFLAGS
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5119. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  5120. if ${ac_cv_prog_cxx_g+:} false; then :
  5121. $as_echo_n "(cached) " >&6
  5122. else
  5123. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5124. ac_cxx_werror_flag=yes
  5125. ac_cv_prog_cxx_g=no
  5126. CXXFLAGS="-g"
  5127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5128. /* end confdefs.h. */
  5129. int
  5130. main ()
  5131. {
  5132. ;
  5133. return 0;
  5134. }
  5135. _ACEOF
  5136. if ac_fn_cxx_try_compile "$LINENO"; then :
  5137. ac_cv_prog_cxx_g=yes
  5138. else
  5139. CXXFLAGS=""
  5140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5141. /* end confdefs.h. */
  5142. int
  5143. main ()
  5144. {
  5145. ;
  5146. return 0;
  5147. }
  5148. _ACEOF
  5149. if ac_fn_cxx_try_compile "$LINENO"; then :
  5150. else
  5151. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5152. CXXFLAGS="-g"
  5153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5154. /* end confdefs.h. */
  5155. int
  5156. main ()
  5157. {
  5158. ;
  5159. return 0;
  5160. }
  5161. _ACEOF
  5162. if ac_fn_cxx_try_compile "$LINENO"; then :
  5163. ac_cv_prog_cxx_g=yes
  5164. fi
  5165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5166. fi
  5167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5168. fi
  5169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5170. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5171. fi
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5173. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5174. if test "$ac_test_CXXFLAGS" = set; then
  5175. CXXFLAGS=$ac_save_CXXFLAGS
  5176. elif test $ac_cv_prog_cxx_g = yes; then
  5177. if test "$GXX" = yes; then
  5178. CXXFLAGS="-g -O2"
  5179. else
  5180. CXXFLAGS="-g"
  5181. fi
  5182. else
  5183. if test "$GXX" = yes; then
  5184. CXXFLAGS="-O2"
  5185. else
  5186. CXXFLAGS=
  5187. fi
  5188. fi
  5189. ac_ext=c
  5190. ac_cpp='$CPP $CPPFLAGS'
  5191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5194. depcc="$CXX" am_compiler_list=
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5196. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5197. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  5198. $as_echo_n "(cached) " >&6
  5199. else
  5200. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5201. # We make a subdir and do the tests there. Otherwise we can end up
  5202. # making bogus files that we don't know about and never remove. For
  5203. # instance it was reported that on HP-UX the gcc test will end up
  5204. # making a dummy file named 'D' -- because '-MD' means "put the output
  5205. # in D".
  5206. rm -rf conftest.dir
  5207. mkdir conftest.dir
  5208. # Copy depcomp to subdir because otherwise we won't find it if we're
  5209. # using a relative directory.
  5210. cp "$am_depcomp" conftest.dir
  5211. cd conftest.dir
  5212. # We will build objects and dependencies in a subdirectory because
  5213. # it helps to detect inapplicable dependency modes. For instance
  5214. # both Tru64's cc and ICC support -MD to output dependencies as a
  5215. # side effect of compilation, but ICC will put the dependencies in
  5216. # the current directory while Tru64 will put them in the object
  5217. # directory.
  5218. mkdir sub
  5219. am_cv_CXX_dependencies_compiler_type=none
  5220. if test "$am_compiler_list" = ""; then
  5221. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5222. fi
  5223. am__universal=false
  5224. case " $depcc " in #(
  5225. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5226. esac
  5227. for depmode in $am_compiler_list; do
  5228. # Setup a source with many dependencies, because some compilers
  5229. # like to wrap large dependency lists on column 80 (with \), and
  5230. # we should not choose a depcomp mode which is confused by this.
  5231. #
  5232. # We need to recreate these files for each test, as the compiler may
  5233. # overwrite some of them when testing with obscure command lines.
  5234. # This happens at least with the AIX C compiler.
  5235. : > sub/conftest.c
  5236. for i in 1 2 3 4 5 6; do
  5237. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5238. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5239. # Solaris 10 /bin/sh.
  5240. echo '/* dummy */' > sub/conftst$i.h
  5241. done
  5242. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5243. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5244. # mode. It turns out that the SunPro C++ compiler does not properly
  5245. # handle '-M -o', and we need to detect this. Also, some Intel
  5246. # versions had trouble with output in subdirs.
  5247. am__obj=sub/conftest.${OBJEXT-o}
  5248. am__minus_obj="-o $am__obj"
  5249. case $depmode in
  5250. gcc)
  5251. # This depmode causes a compiler race in universal mode.
  5252. test "$am__universal" = false || continue
  5253. ;;
  5254. nosideeffect)
  5255. # After this tag, mechanisms are not by side-effect, so they'll
  5256. # only be used when explicitly requested.
  5257. if test "x$enable_dependency_tracking" = xyes; then
  5258. continue
  5259. else
  5260. break
  5261. fi
  5262. ;;
  5263. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5264. # This compiler won't grok '-c -o', but also, the minuso test has
  5265. # not run yet. These depmodes are late enough in the game, and
  5266. # so weak that their functioning should not be impacted.
  5267. am__obj=conftest.${OBJEXT-o}
  5268. am__minus_obj=
  5269. ;;
  5270. none) break ;;
  5271. esac
  5272. if depmode=$depmode \
  5273. source=sub/conftest.c object=$am__obj \
  5274. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5275. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5276. >/dev/null 2>conftest.err &&
  5277. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5278. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5279. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5280. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5281. # icc doesn't choke on unknown options, it will just issue warnings
  5282. # or remarks (even with -Werror). So we grep stderr for any message
  5283. # that says an option was ignored or not supported.
  5284. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5285. # icc: Command line warning: ignoring option '-M'; no argument required
  5286. # The diagnosis changed in icc 8.0:
  5287. # icc: Command line remark: option '-MP' not supported
  5288. if (grep 'ignoring option' conftest.err ||
  5289. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5290. am_cv_CXX_dependencies_compiler_type=$depmode
  5291. break
  5292. fi
  5293. fi
  5294. done
  5295. cd ..
  5296. rm -rf conftest.dir
  5297. else
  5298. am_cv_CXX_dependencies_compiler_type=none
  5299. fi
  5300. fi
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5302. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  5303. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5304. if
  5305. test "x$enable_dependency_tracking" != xno \
  5306. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5307. am__fastdepCXX_TRUE=
  5308. am__fastdepCXX_FALSE='#'
  5309. else
  5310. am__fastdepCXX_TRUE='#'
  5311. am__fastdepCXX_FALSE=
  5312. fi
  5313. # Newer automakes demand CCAS and CCASFLAGS.
  5314. : ${CCAS='$(CC)'}
  5315. : ${CCASFLAGS='$(CFLAGS)'}
  5316. if test -n "$ac_tool_prefix"; then
  5317. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  5318. set dummy ${ac_tool_prefix}as; ac_word=$2
  5319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5320. $as_echo_n "checking for $ac_word... " >&6; }
  5321. if ${ac_cv_prog_AS+:} false; then :
  5322. $as_echo_n "(cached) " >&6
  5323. else
  5324. if test -n "$AS"; then
  5325. ac_cv_prog_AS="$AS" # Let the user override the test.
  5326. else
  5327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5328. for as_dir in $PATH
  5329. do
  5330. IFS=$as_save_IFS
  5331. test -z "$as_dir" && as_dir=.
  5332. for ac_exec_ext in '' $ac_executable_extensions; do
  5333. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5334. ac_cv_prog_AS="${ac_tool_prefix}as"
  5335. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5336. break 2
  5337. fi
  5338. done
  5339. done
  5340. IFS=$as_save_IFS
  5341. fi
  5342. fi
  5343. AS=$ac_cv_prog_AS
  5344. if test -n "$AS"; then
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  5346. $as_echo "$AS" >&6; }
  5347. else
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5349. $as_echo "no" >&6; }
  5350. fi
  5351. fi
  5352. if test -z "$ac_cv_prog_AS"; then
  5353. ac_ct_AS=$AS
  5354. # Extract the first word of "as", so it can be a program name with args.
  5355. set dummy as; ac_word=$2
  5356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5357. $as_echo_n "checking for $ac_word... " >&6; }
  5358. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  5359. $as_echo_n "(cached) " >&6
  5360. else
  5361. if test -n "$ac_ct_AS"; then
  5362. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  5363. else
  5364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5365. for as_dir in $PATH
  5366. do
  5367. IFS=$as_save_IFS
  5368. test -z "$as_dir" && as_dir=.
  5369. for ac_exec_ext in '' $ac_executable_extensions; do
  5370. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5371. ac_cv_prog_ac_ct_AS="as"
  5372. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5373. break 2
  5374. fi
  5375. done
  5376. done
  5377. IFS=$as_save_IFS
  5378. fi
  5379. fi
  5380. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  5381. if test -n "$ac_ct_AS"; then
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  5383. $as_echo "$ac_ct_AS" >&6; }
  5384. else
  5385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5386. $as_echo "no" >&6; }
  5387. fi
  5388. if test "x$ac_ct_AS" = x; then
  5389. AS=""
  5390. else
  5391. case $cross_compiling:$ac_tool_warned in
  5392. yes:)
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5394. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5395. ac_tool_warned=yes ;;
  5396. esac
  5397. AS=$ac_ct_AS
  5398. fi
  5399. else
  5400. AS="$ac_cv_prog_AS"
  5401. fi
  5402. if test -n "$ac_tool_prefix"; then
  5403. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5404. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5406. $as_echo_n "checking for $ac_word... " >&6; }
  5407. if ${ac_cv_prog_AR+:} false; then :
  5408. $as_echo_n "(cached) " >&6
  5409. else
  5410. if test -n "$AR"; then
  5411. ac_cv_prog_AR="$AR" # Let the user override the test.
  5412. else
  5413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5414. for as_dir in $PATH
  5415. do
  5416. IFS=$as_save_IFS
  5417. test -z "$as_dir" && as_dir=.
  5418. for ac_exec_ext in '' $ac_executable_extensions; do
  5419. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5420. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5421. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5422. break 2
  5423. fi
  5424. done
  5425. done
  5426. IFS=$as_save_IFS
  5427. fi
  5428. fi
  5429. AR=$ac_cv_prog_AR
  5430. if test -n "$AR"; then
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5432. $as_echo "$AR" >&6; }
  5433. else
  5434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5435. $as_echo "no" >&6; }
  5436. fi
  5437. fi
  5438. if test -z "$ac_cv_prog_AR"; then
  5439. ac_ct_AR=$AR
  5440. # Extract the first word of "ar", so it can be a program name with args.
  5441. set dummy ar; ac_word=$2
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5443. $as_echo_n "checking for $ac_word... " >&6; }
  5444. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5445. $as_echo_n "(cached) " >&6
  5446. else
  5447. if test -n "$ac_ct_AR"; then
  5448. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5449. else
  5450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5451. for as_dir in $PATH
  5452. do
  5453. IFS=$as_save_IFS
  5454. test -z "$as_dir" && as_dir=.
  5455. for ac_exec_ext in '' $ac_executable_extensions; do
  5456. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5457. ac_cv_prog_ac_ct_AR="ar"
  5458. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5459. break 2
  5460. fi
  5461. done
  5462. done
  5463. IFS=$as_save_IFS
  5464. fi
  5465. fi
  5466. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5467. if test -n "$ac_ct_AR"; then
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5469. $as_echo "$ac_ct_AR" >&6; }
  5470. else
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5472. $as_echo "no" >&6; }
  5473. fi
  5474. if test "x$ac_ct_AR" = x; then
  5475. AR=""
  5476. else
  5477. case $cross_compiling:$ac_tool_warned in
  5478. yes:)
  5479. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5480. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5481. ac_tool_warned=yes ;;
  5482. esac
  5483. AR=$ac_ct_AR
  5484. fi
  5485. else
  5486. AR="$ac_cv_prog_AR"
  5487. fi
  5488. if test -n "$ac_tool_prefix"; then
  5489. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5490. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5492. $as_echo_n "checking for $ac_word... " >&6; }
  5493. if ${ac_cv_prog_RANLIB+:} false; then :
  5494. $as_echo_n "(cached) " >&6
  5495. else
  5496. if test -n "$RANLIB"; then
  5497. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5498. else
  5499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5500. for as_dir in $PATH
  5501. do
  5502. IFS=$as_save_IFS
  5503. test -z "$as_dir" && as_dir=.
  5504. for ac_exec_ext in '' $ac_executable_extensions; do
  5505. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5506. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5508. break 2
  5509. fi
  5510. done
  5511. done
  5512. IFS=$as_save_IFS
  5513. fi
  5514. fi
  5515. RANLIB=$ac_cv_prog_RANLIB
  5516. if test -n "$RANLIB"; then
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5518. $as_echo "$RANLIB" >&6; }
  5519. else
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5521. $as_echo "no" >&6; }
  5522. fi
  5523. fi
  5524. if test -z "$ac_cv_prog_RANLIB"; then
  5525. ac_ct_RANLIB=$RANLIB
  5526. # Extract the first word of "ranlib", so it can be a program name with args.
  5527. set dummy ranlib; ac_word=$2
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5529. $as_echo_n "checking for $ac_word... " >&6; }
  5530. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5531. $as_echo_n "(cached) " >&6
  5532. else
  5533. if test -n "$ac_ct_RANLIB"; then
  5534. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5535. else
  5536. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5537. for as_dir in $PATH
  5538. do
  5539. IFS=$as_save_IFS
  5540. test -z "$as_dir" && as_dir=.
  5541. for ac_exec_ext in '' $ac_executable_extensions; do
  5542. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5543. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5544. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5545. break 2
  5546. fi
  5547. done
  5548. done
  5549. IFS=$as_save_IFS
  5550. fi
  5551. fi
  5552. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5553. if test -n "$ac_ct_RANLIB"; then
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5555. $as_echo "$ac_ct_RANLIB" >&6; }
  5556. else
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5558. $as_echo "no" >&6; }
  5559. fi
  5560. if test "x$ac_ct_RANLIB" = x; then
  5561. RANLIB=":"
  5562. else
  5563. case $cross_compiling:$ac_tool_warned in
  5564. yes:)
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5566. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5567. ac_tool_warned=yes ;;
  5568. esac
  5569. RANLIB=$ac_ct_RANLIB
  5570. fi
  5571. else
  5572. RANLIB="$ac_cv_prog_RANLIB"
  5573. fi
  5574. # Configure libtool
  5575. enable_dlopen=yes
  5576. case `pwd` in
  5577. *\ * | *\ *)
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5579. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5580. esac
  5581. macro_version='2.2.7a'
  5582. macro_revision='1.3134'
  5583. ltmain="$ac_aux_dir/ltmain.sh"
  5584. # Backslashify metacharacters that are still active within
  5585. # double-quoted strings.
  5586. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5587. # Same as above, but do not quote variable references.
  5588. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5589. # Sed substitution to delay expansion of an escaped shell variable in a
  5590. # double_quote_subst'ed string.
  5591. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5592. # Sed substitution to delay expansion of an escaped single quote.
  5593. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5594. # Sed substitution to avoid accidental globbing in evaled expressions
  5595. no_glob_subst='s/\*/\\\*/g'
  5596. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5597. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5598. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5600. $as_echo_n "checking how to print strings... " >&6; }
  5601. # Test print first, because it will be a builtin if present.
  5602. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  5603. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5604. ECHO='print -r --'
  5605. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5606. ECHO='printf %s\n'
  5607. else
  5608. # Use this function as a fallback that always works.
  5609. func_fallback_echo ()
  5610. {
  5611. eval 'cat <<_LTECHO_EOF
  5612. $1
  5613. _LTECHO_EOF'
  5614. }
  5615. ECHO='func_fallback_echo'
  5616. fi
  5617. # func_echo_all arg...
  5618. # Invoke $ECHO with all args, space-separated.
  5619. func_echo_all ()
  5620. {
  5621. $ECHO ""
  5622. }
  5623. case "$ECHO" in
  5624. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5625. $as_echo "printf" >&6; } ;;
  5626. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5627. $as_echo "print -r" >&6; } ;;
  5628. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5629. $as_echo "cat" >&6; } ;;
  5630. esac
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5632. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5633. if ${ac_cv_path_SED+:} false; then :
  5634. $as_echo_n "(cached) " >&6
  5635. else
  5636. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5637. for ac_i in 1 2 3 4 5 6 7; do
  5638. ac_script="$ac_script$as_nl$ac_script"
  5639. done
  5640. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5641. { ac_script=; unset ac_script;}
  5642. if test -z "$SED"; then
  5643. ac_path_SED_found=false
  5644. # Loop through the user's path and test for each of PROGNAME-LIST
  5645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5646. for as_dir in $PATH
  5647. do
  5648. IFS=$as_save_IFS
  5649. test -z "$as_dir" && as_dir=.
  5650. for ac_prog in sed gsed; do
  5651. for ac_exec_ext in '' $ac_executable_extensions; do
  5652. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5653. as_fn_executable_p "$ac_path_SED" || continue
  5654. # Check for GNU ac_path_SED and select it if it is found.
  5655. # Check for GNU $ac_path_SED
  5656. case `"$ac_path_SED" --version 2>&1` in
  5657. *GNU*)
  5658. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5659. *)
  5660. ac_count=0
  5661. $as_echo_n 0123456789 >"conftest.in"
  5662. while :
  5663. do
  5664. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5665. mv "conftest.tmp" "conftest.in"
  5666. cp "conftest.in" "conftest.nl"
  5667. $as_echo '' >> "conftest.nl"
  5668. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5669. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5670. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5671. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5672. # Best one so far, save it but keep looking for a better one
  5673. ac_cv_path_SED="$ac_path_SED"
  5674. ac_path_SED_max=$ac_count
  5675. fi
  5676. # 10*(2^10) chars as input seems more than enough
  5677. test $ac_count -gt 10 && break
  5678. done
  5679. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5680. esac
  5681. $ac_path_SED_found && break 3
  5682. done
  5683. done
  5684. done
  5685. IFS=$as_save_IFS
  5686. if test -z "$ac_cv_path_SED"; then
  5687. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5688. fi
  5689. else
  5690. ac_cv_path_SED=$SED
  5691. fi
  5692. fi
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5694. $as_echo "$ac_cv_path_SED" >&6; }
  5695. SED="$ac_cv_path_SED"
  5696. rm -f conftest.sed
  5697. test -z "$SED" && SED=sed
  5698. Xsed="$SED -e 1s/^X//"
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5700. $as_echo_n "checking for fgrep... " >&6; }
  5701. if ${ac_cv_path_FGREP+:} false; then :
  5702. $as_echo_n "(cached) " >&6
  5703. else
  5704. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5705. then ac_cv_path_FGREP="$GREP -F"
  5706. else
  5707. if test -z "$FGREP"; then
  5708. ac_path_FGREP_found=false
  5709. # Loop through the user's path and test for each of PROGNAME-LIST
  5710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5711. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5712. do
  5713. IFS=$as_save_IFS
  5714. test -z "$as_dir" && as_dir=.
  5715. for ac_prog in fgrep; do
  5716. for ac_exec_ext in '' $ac_executable_extensions; do
  5717. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5718. as_fn_executable_p "$ac_path_FGREP" || continue
  5719. # Check for GNU ac_path_FGREP and select it if it is found.
  5720. # Check for GNU $ac_path_FGREP
  5721. case `"$ac_path_FGREP" --version 2>&1` in
  5722. *GNU*)
  5723. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5724. *)
  5725. ac_count=0
  5726. $as_echo_n 0123456789 >"conftest.in"
  5727. while :
  5728. do
  5729. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5730. mv "conftest.tmp" "conftest.in"
  5731. cp "conftest.in" "conftest.nl"
  5732. $as_echo 'FGREP' >> "conftest.nl"
  5733. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5734. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5735. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5736. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5737. # Best one so far, save it but keep looking for a better one
  5738. ac_cv_path_FGREP="$ac_path_FGREP"
  5739. ac_path_FGREP_max=$ac_count
  5740. fi
  5741. # 10*(2^10) chars as input seems more than enough
  5742. test $ac_count -gt 10 && break
  5743. done
  5744. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5745. esac
  5746. $ac_path_FGREP_found && break 3
  5747. done
  5748. done
  5749. done
  5750. IFS=$as_save_IFS
  5751. if test -z "$ac_cv_path_FGREP"; then
  5752. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5753. fi
  5754. else
  5755. ac_cv_path_FGREP=$FGREP
  5756. fi
  5757. fi
  5758. fi
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5760. $as_echo "$ac_cv_path_FGREP" >&6; }
  5761. FGREP="$ac_cv_path_FGREP"
  5762. test -z "$GREP" && GREP=grep
  5763. # Check whether --with-gnu-ld was given.
  5764. if test "${with_gnu_ld+set}" = set; then :
  5765. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5766. else
  5767. with_gnu_ld=no
  5768. fi
  5769. ac_prog=ld
  5770. if test "$GCC" = yes; then
  5771. # Check if gcc -print-prog-name=ld gives a path.
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5773. $as_echo_n "checking for ld used by $CC... " >&6; }
  5774. case $host in
  5775. *-*-mingw*)
  5776. # gcc leaves a trailing carriage return which upsets mingw
  5777. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5778. *)
  5779. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5780. esac
  5781. case $ac_prog in
  5782. # Accept absolute paths.
  5783. [\\/]* | ?:[\\/]*)
  5784. re_direlt='/[^/][^/]*/\.\./'
  5785. # Canonicalize the pathname of ld
  5786. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5787. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5788. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5789. done
  5790. test -z "$LD" && LD="$ac_prog"
  5791. ;;
  5792. "")
  5793. # If it fails, then pretend we aren't using GCC.
  5794. ac_prog=ld
  5795. ;;
  5796. *)
  5797. # If it is relative, then search for the first ld in PATH.
  5798. with_gnu_ld=unknown
  5799. ;;
  5800. esac
  5801. elif test "$with_gnu_ld" = yes; then
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5803. $as_echo_n "checking for GNU ld... " >&6; }
  5804. else
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5806. $as_echo_n "checking for non-GNU ld... " >&6; }
  5807. fi
  5808. if ${lt_cv_path_LD+:} false; then :
  5809. $as_echo_n "(cached) " >&6
  5810. else
  5811. if test -z "$LD"; then
  5812. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5813. for ac_dir in $PATH; do
  5814. IFS="$lt_save_ifs"
  5815. test -z "$ac_dir" && ac_dir=.
  5816. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5817. lt_cv_path_LD="$ac_dir/$ac_prog"
  5818. # Check to see if the program is GNU ld. I'd rather use --version,
  5819. # but apparently some variants of GNU ld only accept -v.
  5820. # Break only if it was the GNU/non-GNU ld that we prefer.
  5821. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5822. *GNU* | *'with BFD'*)
  5823. test "$with_gnu_ld" != no && break
  5824. ;;
  5825. *)
  5826. test "$with_gnu_ld" != yes && break
  5827. ;;
  5828. esac
  5829. fi
  5830. done
  5831. IFS="$lt_save_ifs"
  5832. else
  5833. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5834. fi
  5835. fi
  5836. LD="$lt_cv_path_LD"
  5837. if test -n "$LD"; then
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5839. $as_echo "$LD" >&6; }
  5840. else
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5842. $as_echo "no" >&6; }
  5843. fi
  5844. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5846. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5847. if ${lt_cv_prog_gnu_ld+:} false; then :
  5848. $as_echo_n "(cached) " >&6
  5849. else
  5850. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5851. case `$LD -v 2>&1 </dev/null` in
  5852. *GNU* | *'with BFD'*)
  5853. lt_cv_prog_gnu_ld=yes
  5854. ;;
  5855. *)
  5856. lt_cv_prog_gnu_ld=no
  5857. ;;
  5858. esac
  5859. fi
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5861. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5862. with_gnu_ld=$lt_cv_prog_gnu_ld
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5864. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5865. if ${lt_cv_path_NM+:} false; then :
  5866. $as_echo_n "(cached) " >&6
  5867. else
  5868. if test -n "$NM"; then
  5869. # Let the user override the test.
  5870. lt_cv_path_NM="$NM"
  5871. else
  5872. lt_nm_to_check="${ac_tool_prefix}nm"
  5873. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5874. lt_nm_to_check="$lt_nm_to_check nm"
  5875. fi
  5876. for lt_tmp_nm in $lt_nm_to_check; do
  5877. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5878. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5879. IFS="$lt_save_ifs"
  5880. test -z "$ac_dir" && ac_dir=.
  5881. tmp_nm="$ac_dir/$lt_tmp_nm"
  5882. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5883. # Check to see if the nm accepts a BSD-compat flag.
  5884. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5885. # nm: unknown option "B" ignored
  5886. # Tru64's nm complains that /dev/null is an invalid object file
  5887. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5888. */dev/null* | *'Invalid file or object type'*)
  5889. lt_cv_path_NM="$tmp_nm -B"
  5890. break
  5891. ;;
  5892. *)
  5893. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5894. */dev/null*)
  5895. lt_cv_path_NM="$tmp_nm -p"
  5896. break
  5897. ;;
  5898. *)
  5899. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5900. continue # so that we can try to find one that supports BSD flags
  5901. ;;
  5902. esac
  5903. ;;
  5904. esac
  5905. fi
  5906. done
  5907. IFS="$lt_save_ifs"
  5908. done
  5909. : ${lt_cv_path_NM=no}
  5910. fi
  5911. fi
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5913. $as_echo "$lt_cv_path_NM" >&6; }
  5914. if test "$lt_cv_path_NM" != "no"; then
  5915. NM="$lt_cv_path_NM"
  5916. else
  5917. # Didn't find any BSD compatible name lister, look for dumpbin.
  5918. if test -n "$DUMPBIN"; then :
  5919. # Let the user override the test.
  5920. else
  5921. if test -n "$ac_tool_prefix"; then
  5922. for ac_prog in dumpbin "link -dump"
  5923. do
  5924. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5925. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5927. $as_echo_n "checking for $ac_word... " >&6; }
  5928. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5929. $as_echo_n "(cached) " >&6
  5930. else
  5931. if test -n "$DUMPBIN"; then
  5932. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5933. else
  5934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5935. for as_dir in $PATH
  5936. do
  5937. IFS=$as_save_IFS
  5938. test -z "$as_dir" && as_dir=.
  5939. for ac_exec_ext in '' $ac_executable_extensions; do
  5940. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5941. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5943. break 2
  5944. fi
  5945. done
  5946. done
  5947. IFS=$as_save_IFS
  5948. fi
  5949. fi
  5950. DUMPBIN=$ac_cv_prog_DUMPBIN
  5951. if test -n "$DUMPBIN"; then
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5953. $as_echo "$DUMPBIN" >&6; }
  5954. else
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5956. $as_echo "no" >&6; }
  5957. fi
  5958. test -n "$DUMPBIN" && break
  5959. done
  5960. fi
  5961. if test -z "$DUMPBIN"; then
  5962. ac_ct_DUMPBIN=$DUMPBIN
  5963. for ac_prog in dumpbin "link -dump"
  5964. do
  5965. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5966. set dummy $ac_prog; ac_word=$2
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5968. $as_echo_n "checking for $ac_word... " >&6; }
  5969. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5970. $as_echo_n "(cached) " >&6
  5971. else
  5972. if test -n "$ac_ct_DUMPBIN"; then
  5973. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5974. else
  5975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5976. for as_dir in $PATH
  5977. do
  5978. IFS=$as_save_IFS
  5979. test -z "$as_dir" && as_dir=.
  5980. for ac_exec_ext in '' $ac_executable_extensions; do
  5981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5982. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5984. break 2
  5985. fi
  5986. done
  5987. done
  5988. IFS=$as_save_IFS
  5989. fi
  5990. fi
  5991. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5992. if test -n "$ac_ct_DUMPBIN"; then
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5994. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5995. else
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5997. $as_echo "no" >&6; }
  5998. fi
  5999. test -n "$ac_ct_DUMPBIN" && break
  6000. done
  6001. if test "x$ac_ct_DUMPBIN" = x; then
  6002. DUMPBIN=":"
  6003. else
  6004. case $cross_compiling:$ac_tool_warned in
  6005. yes:)
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6007. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6008. ac_tool_warned=yes ;;
  6009. esac
  6010. DUMPBIN=$ac_ct_DUMPBIN
  6011. fi
  6012. fi
  6013. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  6014. *COFF*)
  6015. DUMPBIN="$DUMPBIN -symbols"
  6016. ;;
  6017. *)
  6018. DUMPBIN=:
  6019. ;;
  6020. esac
  6021. fi
  6022. if test "$DUMPBIN" != ":"; then
  6023. NM="$DUMPBIN"
  6024. fi
  6025. fi
  6026. test -z "$NM" && NM=nm
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6028. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6029. if ${lt_cv_nm_interface+:} false; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. lt_cv_nm_interface="BSD nm"
  6033. echo "int some_variable = 0;" > conftest.$ac_ext
  6034. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6035. (eval "$ac_compile" 2>conftest.err)
  6036. cat conftest.err >&5
  6037. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6038. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6039. cat conftest.err >&5
  6040. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6041. cat conftest.out >&5
  6042. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6043. lt_cv_nm_interface="MS dumpbin"
  6044. fi
  6045. rm -f conftest*
  6046. fi
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6048. $as_echo "$lt_cv_nm_interface" >&6; }
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6050. $as_echo_n "checking whether ln -s works... " >&6; }
  6051. LN_S=$as_ln_s
  6052. if test "$LN_S" = "ln -s"; then
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6054. $as_echo "yes" >&6; }
  6055. else
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6057. $as_echo "no, using $LN_S" >&6; }
  6058. fi
  6059. # find the maximum length of command line arguments
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6061. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6062. if ${lt_cv_sys_max_cmd_len+:} false; then :
  6063. $as_echo_n "(cached) " >&6
  6064. else
  6065. i=0
  6066. teststring="ABCD"
  6067. case $build_os in
  6068. msdosdjgpp*)
  6069. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6070. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6071. # during glob expansion). Even if it were fixed, the result of this
  6072. # check would be larger than it should be.
  6073. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6074. ;;
  6075. gnu*)
  6076. # Under GNU Hurd, this test is not required because there is
  6077. # no limit to the length of command line arguments.
  6078. # Libtool will interpret -1 as no limit whatsoever
  6079. lt_cv_sys_max_cmd_len=-1;
  6080. ;;
  6081. cygwin* | mingw* | cegcc*)
  6082. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6083. # about 5 minutes as the teststring grows exponentially.
  6084. # Worse, since 9x/ME are not pre-emptively multitasking,
  6085. # you end up with a "frozen" computer, even though with patience
  6086. # the test eventually succeeds (with a max line length of 256k).
  6087. # Instead, let's just punt: use the minimum linelength reported by
  6088. # all of the supported platforms: 8192 (on NT/2K/XP).
  6089. lt_cv_sys_max_cmd_len=8192;
  6090. ;;
  6091. mint*)
  6092. # On MiNT this can take a long time and run out of memory.
  6093. lt_cv_sys_max_cmd_len=8192;
  6094. ;;
  6095. amigaos*)
  6096. # On AmigaOS with pdksh, this test takes hours, literally.
  6097. # So we just punt and use a minimum line length of 8192.
  6098. lt_cv_sys_max_cmd_len=8192;
  6099. ;;
  6100. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  6101. # This has been around since 386BSD, at least. Likely further.
  6102. if test -x /sbin/sysctl; then
  6103. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6104. elif test -x /usr/sbin/sysctl; then
  6105. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6106. else
  6107. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6108. fi
  6109. # And add a safety zone
  6110. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6111. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6112. ;;
  6113. interix*)
  6114. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6115. lt_cv_sys_max_cmd_len=196608
  6116. ;;
  6117. osf*)
  6118. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6119. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6120. # nice to cause kernel panics so lets avoid the loop below.
  6121. # First set a reasonable default.
  6122. lt_cv_sys_max_cmd_len=16384
  6123. #
  6124. if test -x /sbin/sysconfig; then
  6125. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6126. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6127. esac
  6128. fi
  6129. ;;
  6130. sco3.2v5*)
  6131. lt_cv_sys_max_cmd_len=102400
  6132. ;;
  6133. sysv5* | sco5v6* | sysv4.2uw2*)
  6134. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6135. if test -n "$kargmax"; then
  6136. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6137. else
  6138. lt_cv_sys_max_cmd_len=32768
  6139. fi
  6140. ;;
  6141. *)
  6142. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6143. if test -n "$lt_cv_sys_max_cmd_len"; then
  6144. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6145. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6146. else
  6147. # Make teststring a little bigger before we do anything with it.
  6148. # a 1K string should be a reasonable start.
  6149. for i in 1 2 3 4 5 6 7 8 ; do
  6150. teststring=$teststring$teststring
  6151. done
  6152. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6153. # If test is not a shell built-in, we'll probably end up computing a
  6154. # maximum length that is only half of the actual maximum length, but
  6155. # we can't tell.
  6156. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  6157. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6158. test $i != 17 # 1/2 MB should be enough
  6159. do
  6160. i=`expr $i + 1`
  6161. teststring=$teststring$teststring
  6162. done
  6163. # Only check the string length outside the loop.
  6164. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6165. teststring=
  6166. # Add a significant safety factor because C++ compilers can tack on
  6167. # massive amounts of additional arguments before passing them to the
  6168. # linker. It appears as though 1/2 is a usable value.
  6169. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6170. fi
  6171. ;;
  6172. esac
  6173. fi
  6174. if test -n $lt_cv_sys_max_cmd_len ; then
  6175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6176. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6177. else
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6179. $as_echo "none" >&6; }
  6180. fi
  6181. max_cmd_len=$lt_cv_sys_max_cmd_len
  6182. : ${CP="cp -f"}
  6183. : ${MV="mv -f"}
  6184. : ${RM="rm -f"}
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  6186. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  6187. # Try some XSI features
  6188. xsi_shell=no
  6189. ( _lt_dummy="a/b/c"
  6190. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  6191. = c,a/b,, \
  6192. && eval 'test $(( 1 + 1 )) -eq 2 \
  6193. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6194. && xsi_shell=yes
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  6196. $as_echo "$xsi_shell" >&6; }
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  6198. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  6199. lt_shell_append=no
  6200. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  6201. >/dev/null 2>&1 \
  6202. && lt_shell_append=yes
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  6204. $as_echo "$lt_shell_append" >&6; }
  6205. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6206. lt_unset=unset
  6207. else
  6208. lt_unset=false
  6209. fi
  6210. # test EBCDIC or ASCII
  6211. case `echo X|tr X '\101'` in
  6212. A) # ASCII based system
  6213. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6214. lt_SP2NL='tr \040 \012'
  6215. lt_NL2SP='tr \015\012 \040\040'
  6216. ;;
  6217. *) # EBCDIC based system
  6218. lt_SP2NL='tr \100 \n'
  6219. lt_NL2SP='tr \r\n \100\100'
  6220. ;;
  6221. esac
  6222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6223. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6224. if ${lt_cv_ld_reload_flag+:} false; then :
  6225. $as_echo_n "(cached) " >&6
  6226. else
  6227. lt_cv_ld_reload_flag='-r'
  6228. fi
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6230. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6231. reload_flag=$lt_cv_ld_reload_flag
  6232. case $reload_flag in
  6233. "" | " "*) ;;
  6234. *) reload_flag=" $reload_flag" ;;
  6235. esac
  6236. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6237. case $host_os in
  6238. darwin*)
  6239. if test "$GCC" = yes; then
  6240. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6241. else
  6242. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6243. fi
  6244. ;;
  6245. esac
  6246. if test -n "$ac_tool_prefix"; then
  6247. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6248. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6250. $as_echo_n "checking for $ac_word... " >&6; }
  6251. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6252. $as_echo_n "(cached) " >&6
  6253. else
  6254. if test -n "$OBJDUMP"; then
  6255. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6256. else
  6257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6258. for as_dir in $PATH
  6259. do
  6260. IFS=$as_save_IFS
  6261. test -z "$as_dir" && as_dir=.
  6262. for ac_exec_ext in '' $ac_executable_extensions; do
  6263. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6264. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6266. break 2
  6267. fi
  6268. done
  6269. done
  6270. IFS=$as_save_IFS
  6271. fi
  6272. fi
  6273. OBJDUMP=$ac_cv_prog_OBJDUMP
  6274. if test -n "$OBJDUMP"; then
  6275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6276. $as_echo "$OBJDUMP" >&6; }
  6277. else
  6278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6279. $as_echo "no" >&6; }
  6280. fi
  6281. fi
  6282. if test -z "$ac_cv_prog_OBJDUMP"; then
  6283. ac_ct_OBJDUMP=$OBJDUMP
  6284. # Extract the first word of "objdump", so it can be a program name with args.
  6285. set dummy objdump; ac_word=$2
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6287. $as_echo_n "checking for $ac_word... " >&6; }
  6288. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6289. $as_echo_n "(cached) " >&6
  6290. else
  6291. if test -n "$ac_ct_OBJDUMP"; then
  6292. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6293. else
  6294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6295. for as_dir in $PATH
  6296. do
  6297. IFS=$as_save_IFS
  6298. test -z "$as_dir" && as_dir=.
  6299. for ac_exec_ext in '' $ac_executable_extensions; do
  6300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6301. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6303. break 2
  6304. fi
  6305. done
  6306. done
  6307. IFS=$as_save_IFS
  6308. fi
  6309. fi
  6310. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6311. if test -n "$ac_ct_OBJDUMP"; then
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6313. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6314. else
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6316. $as_echo "no" >&6; }
  6317. fi
  6318. if test "x$ac_ct_OBJDUMP" = x; then
  6319. OBJDUMP="false"
  6320. else
  6321. case $cross_compiling:$ac_tool_warned in
  6322. yes:)
  6323. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6324. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6325. ac_tool_warned=yes ;;
  6326. esac
  6327. OBJDUMP=$ac_ct_OBJDUMP
  6328. fi
  6329. else
  6330. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6331. fi
  6332. test -z "$OBJDUMP" && OBJDUMP=objdump
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6334. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6335. if ${lt_cv_deplibs_check_method+:} false; then :
  6336. $as_echo_n "(cached) " >&6
  6337. else
  6338. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6339. lt_cv_file_magic_test_file=
  6340. lt_cv_deplibs_check_method='unknown'
  6341. # Need to set the preceding variable on all platforms that support
  6342. # interlibrary dependencies.
  6343. # 'none' -- dependencies not supported.
  6344. # `unknown' -- same as none, but documents that we really don't know.
  6345. # 'pass_all' -- all dependencies passed with no checks.
  6346. # 'test_compile' -- check by making test program.
  6347. # 'file_magic [[regex]]' -- check by looking for files in library path
  6348. # which responds to the $file_magic_cmd with a given extended regex.
  6349. # If you have `file' or equivalent on your system and you're not sure
  6350. # whether `pass_all' will *always* work, you probably want this one.
  6351. case $host_os in
  6352. aix[4-9]*)
  6353. lt_cv_deplibs_check_method=pass_all
  6354. ;;
  6355. beos*)
  6356. lt_cv_deplibs_check_method=pass_all
  6357. ;;
  6358. bsdi[45]*)
  6359. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6360. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6361. lt_cv_file_magic_test_file=/shlib/libc.so
  6362. ;;
  6363. cygwin*)
  6364. # func_win32_libid is a shell function defined in ltmain.sh
  6365. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6366. lt_cv_file_magic_cmd='func_win32_libid'
  6367. ;;
  6368. mingw* | pw32*)
  6369. # Base MSYS/MinGW do not provide the 'file' command needed by
  6370. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6371. # unless we find 'file', for example because we are cross-compiling.
  6372. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6373. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6374. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6375. lt_cv_file_magic_cmd='func_win32_libid'
  6376. else
  6377. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6378. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6379. fi
  6380. ;;
  6381. cegcc*)
  6382. # use the weaker test based on 'objdump'. See mingw*.
  6383. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6384. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6385. ;;
  6386. darwin* | rhapsody*)
  6387. lt_cv_deplibs_check_method=pass_all
  6388. ;;
  6389. freebsd* | dragonfly*)
  6390. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6391. case $host_cpu in
  6392. i*86 )
  6393. # Not sure whether the presence of OpenBSD here was a mistake.
  6394. # Let's accept both of them until this is cleared up.
  6395. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6396. lt_cv_file_magic_cmd=/usr/bin/file
  6397. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6398. ;;
  6399. esac
  6400. else
  6401. lt_cv_deplibs_check_method=pass_all
  6402. fi
  6403. ;;
  6404. gnu*)
  6405. lt_cv_deplibs_check_method=pass_all
  6406. ;;
  6407. haiku*)
  6408. lt_cv_deplibs_check_method=pass_all
  6409. ;;
  6410. hpux10.20* | hpux11*)
  6411. lt_cv_file_magic_cmd=/usr/bin/file
  6412. case $host_cpu in
  6413. ia64*)
  6414. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6415. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6416. ;;
  6417. hppa*64*)
  6418. 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]'
  6419. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6420. ;;
  6421. *)
  6422. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6423. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6424. ;;
  6425. esac
  6426. ;;
  6427. interix[3-9]*)
  6428. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6429. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6430. ;;
  6431. irix5* | irix6* | nonstopux*)
  6432. case $LD in
  6433. *-32|*"-32 ") libmagic=32-bit;;
  6434. *-n32|*"-n32 ") libmagic=N32;;
  6435. *-64|*"-64 ") libmagic=64-bit;;
  6436. *) libmagic=never-match;;
  6437. esac
  6438. lt_cv_deplibs_check_method=pass_all
  6439. ;;
  6440. # This must be Linux ELF.
  6441. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  6442. lt_cv_deplibs_check_method=pass_all
  6443. ;;
  6444. netbsd*)
  6445. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6446. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6447. else
  6448. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6449. fi
  6450. ;;
  6451. newos6*)
  6452. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6453. lt_cv_file_magic_cmd=/usr/bin/file
  6454. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6455. ;;
  6456. *nto* | *qnx*)
  6457. lt_cv_deplibs_check_method=pass_all
  6458. ;;
  6459. openbsd*)
  6460. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6461. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6462. else
  6463. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6464. fi
  6465. ;;
  6466. osf3* | osf4* | osf5*)
  6467. lt_cv_deplibs_check_method=pass_all
  6468. ;;
  6469. rdos*)
  6470. lt_cv_deplibs_check_method=pass_all
  6471. ;;
  6472. solaris*)
  6473. lt_cv_deplibs_check_method=pass_all
  6474. ;;
  6475. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6476. lt_cv_deplibs_check_method=pass_all
  6477. ;;
  6478. sysv4 | sysv4.3*)
  6479. case $host_vendor in
  6480. motorola)
  6481. 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]'
  6482. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6483. ;;
  6484. ncr)
  6485. lt_cv_deplibs_check_method=pass_all
  6486. ;;
  6487. sequent)
  6488. lt_cv_file_magic_cmd='/bin/file'
  6489. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6490. ;;
  6491. sni)
  6492. lt_cv_file_magic_cmd='/bin/file'
  6493. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6494. lt_cv_file_magic_test_file=/lib/libc.so
  6495. ;;
  6496. siemens)
  6497. lt_cv_deplibs_check_method=pass_all
  6498. ;;
  6499. pc)
  6500. lt_cv_deplibs_check_method=pass_all
  6501. ;;
  6502. esac
  6503. ;;
  6504. tpf*)
  6505. lt_cv_deplibs_check_method=pass_all
  6506. ;;
  6507. esac
  6508. fi
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6510. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6511. file_magic_cmd=$lt_cv_file_magic_cmd
  6512. deplibs_check_method=$lt_cv_deplibs_check_method
  6513. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6514. if test -n "$ac_tool_prefix"; then
  6515. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6516. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6518. $as_echo_n "checking for $ac_word... " >&6; }
  6519. if ${ac_cv_prog_AR+:} false; then :
  6520. $as_echo_n "(cached) " >&6
  6521. else
  6522. if test -n "$AR"; then
  6523. ac_cv_prog_AR="$AR" # Let the user override the test.
  6524. else
  6525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6526. for as_dir in $PATH
  6527. do
  6528. IFS=$as_save_IFS
  6529. test -z "$as_dir" && as_dir=.
  6530. for ac_exec_ext in '' $ac_executable_extensions; do
  6531. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6532. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6533. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6534. break 2
  6535. fi
  6536. done
  6537. done
  6538. IFS=$as_save_IFS
  6539. fi
  6540. fi
  6541. AR=$ac_cv_prog_AR
  6542. if test -n "$AR"; then
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6544. $as_echo "$AR" >&6; }
  6545. else
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6547. $as_echo "no" >&6; }
  6548. fi
  6549. fi
  6550. if test -z "$ac_cv_prog_AR"; then
  6551. ac_ct_AR=$AR
  6552. # Extract the first word of "ar", so it can be a program name with args.
  6553. set dummy ar; ac_word=$2
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6555. $as_echo_n "checking for $ac_word... " >&6; }
  6556. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6557. $as_echo_n "(cached) " >&6
  6558. else
  6559. if test -n "$ac_ct_AR"; then
  6560. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6561. else
  6562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6563. for as_dir in $PATH
  6564. do
  6565. IFS=$as_save_IFS
  6566. test -z "$as_dir" && as_dir=.
  6567. for ac_exec_ext in '' $ac_executable_extensions; do
  6568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6569. ac_cv_prog_ac_ct_AR="ar"
  6570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6571. break 2
  6572. fi
  6573. done
  6574. done
  6575. IFS=$as_save_IFS
  6576. fi
  6577. fi
  6578. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6579. if test -n "$ac_ct_AR"; then
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6581. $as_echo "$ac_ct_AR" >&6; }
  6582. else
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6584. $as_echo "no" >&6; }
  6585. fi
  6586. if test "x$ac_ct_AR" = x; then
  6587. AR="false"
  6588. else
  6589. case $cross_compiling:$ac_tool_warned in
  6590. yes:)
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6592. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6593. ac_tool_warned=yes ;;
  6594. esac
  6595. AR=$ac_ct_AR
  6596. fi
  6597. else
  6598. AR="$ac_cv_prog_AR"
  6599. fi
  6600. test -z "$AR" && AR=ar
  6601. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6602. if test -n "$ac_tool_prefix"; then
  6603. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6604. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6606. $as_echo_n "checking for $ac_word... " >&6; }
  6607. if ${ac_cv_prog_STRIP+:} false; then :
  6608. $as_echo_n "(cached) " >&6
  6609. else
  6610. if test -n "$STRIP"; then
  6611. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6612. else
  6613. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6614. for as_dir in $PATH
  6615. do
  6616. IFS=$as_save_IFS
  6617. test -z "$as_dir" && as_dir=.
  6618. for ac_exec_ext in '' $ac_executable_extensions; do
  6619. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6620. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6621. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6622. break 2
  6623. fi
  6624. done
  6625. done
  6626. IFS=$as_save_IFS
  6627. fi
  6628. fi
  6629. STRIP=$ac_cv_prog_STRIP
  6630. if test -n "$STRIP"; then
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6632. $as_echo "$STRIP" >&6; }
  6633. else
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6635. $as_echo "no" >&6; }
  6636. fi
  6637. fi
  6638. if test -z "$ac_cv_prog_STRIP"; then
  6639. ac_ct_STRIP=$STRIP
  6640. # Extract the first word of "strip", so it can be a program name with args.
  6641. set dummy strip; ac_word=$2
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6643. $as_echo_n "checking for $ac_word... " >&6; }
  6644. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6645. $as_echo_n "(cached) " >&6
  6646. else
  6647. if test -n "$ac_ct_STRIP"; then
  6648. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6649. else
  6650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6651. for as_dir in $PATH
  6652. do
  6653. IFS=$as_save_IFS
  6654. test -z "$as_dir" && as_dir=.
  6655. for ac_exec_ext in '' $ac_executable_extensions; do
  6656. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6657. ac_cv_prog_ac_ct_STRIP="strip"
  6658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6659. break 2
  6660. fi
  6661. done
  6662. done
  6663. IFS=$as_save_IFS
  6664. fi
  6665. fi
  6666. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6667. if test -n "$ac_ct_STRIP"; then
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6669. $as_echo "$ac_ct_STRIP" >&6; }
  6670. else
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6672. $as_echo "no" >&6; }
  6673. fi
  6674. if test "x$ac_ct_STRIP" = x; then
  6675. STRIP=":"
  6676. else
  6677. case $cross_compiling:$ac_tool_warned in
  6678. yes:)
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6680. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6681. ac_tool_warned=yes ;;
  6682. esac
  6683. STRIP=$ac_ct_STRIP
  6684. fi
  6685. else
  6686. STRIP="$ac_cv_prog_STRIP"
  6687. fi
  6688. test -z "$STRIP" && STRIP=:
  6689. if test -n "$ac_tool_prefix"; then
  6690. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6691. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6693. $as_echo_n "checking for $ac_word... " >&6; }
  6694. if ${ac_cv_prog_RANLIB+:} false; then :
  6695. $as_echo_n "(cached) " >&6
  6696. else
  6697. if test -n "$RANLIB"; then
  6698. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6699. else
  6700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6701. for as_dir in $PATH
  6702. do
  6703. IFS=$as_save_IFS
  6704. test -z "$as_dir" && as_dir=.
  6705. for ac_exec_ext in '' $ac_executable_extensions; do
  6706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6707. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6709. break 2
  6710. fi
  6711. done
  6712. done
  6713. IFS=$as_save_IFS
  6714. fi
  6715. fi
  6716. RANLIB=$ac_cv_prog_RANLIB
  6717. if test -n "$RANLIB"; then
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6719. $as_echo "$RANLIB" >&6; }
  6720. else
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6722. $as_echo "no" >&6; }
  6723. fi
  6724. fi
  6725. if test -z "$ac_cv_prog_RANLIB"; then
  6726. ac_ct_RANLIB=$RANLIB
  6727. # Extract the first word of "ranlib", so it can be a program name with args.
  6728. set dummy ranlib; ac_word=$2
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6730. $as_echo_n "checking for $ac_word... " >&6; }
  6731. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6732. $as_echo_n "(cached) " >&6
  6733. else
  6734. if test -n "$ac_ct_RANLIB"; then
  6735. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6736. else
  6737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6738. for as_dir in $PATH
  6739. do
  6740. IFS=$as_save_IFS
  6741. test -z "$as_dir" && as_dir=.
  6742. for ac_exec_ext in '' $ac_executable_extensions; do
  6743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6744. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6746. break 2
  6747. fi
  6748. done
  6749. done
  6750. IFS=$as_save_IFS
  6751. fi
  6752. fi
  6753. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6754. if test -n "$ac_ct_RANLIB"; then
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6756. $as_echo "$ac_ct_RANLIB" >&6; }
  6757. else
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6759. $as_echo "no" >&6; }
  6760. fi
  6761. if test "x$ac_ct_RANLIB" = x; then
  6762. RANLIB=":"
  6763. else
  6764. case $cross_compiling:$ac_tool_warned in
  6765. yes:)
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6767. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6768. ac_tool_warned=yes ;;
  6769. esac
  6770. RANLIB=$ac_ct_RANLIB
  6771. fi
  6772. else
  6773. RANLIB="$ac_cv_prog_RANLIB"
  6774. fi
  6775. test -z "$RANLIB" && RANLIB=:
  6776. # Determine commands to create old-style static archives.
  6777. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6778. old_postinstall_cmds='chmod 644 $oldlib'
  6779. old_postuninstall_cmds=
  6780. if test -n "$RANLIB"; then
  6781. case $host_os in
  6782. openbsd*)
  6783. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6784. ;;
  6785. *)
  6786. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6787. ;;
  6788. esac
  6789. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6790. fi
  6791. case $host_os in
  6792. darwin*)
  6793. lock_old_archive_extraction=yes ;;
  6794. *)
  6795. lock_old_archive_extraction=no ;;
  6796. esac
  6797. # If no C compiler was specified, use CC.
  6798. LTCC=${LTCC-"$CC"}
  6799. # If no C compiler flags were specified, use CFLAGS.
  6800. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6801. # Allow CC to be a program name with arguments.
  6802. compiler=$CC
  6803. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6805. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6806. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6807. $as_echo_n "(cached) " >&6
  6808. else
  6809. # These are sane defaults that work on at least a few old systems.
  6810. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6811. # Character class describing NM global symbol codes.
  6812. symcode='[BCDEGRST]'
  6813. # Regexp to match symbols that can be accessed directly from C.
  6814. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6815. # Define system-specific variables.
  6816. case $host_os in
  6817. aix*)
  6818. symcode='[BCDT]'
  6819. ;;
  6820. cygwin* | mingw* | pw32* | cegcc*)
  6821. symcode='[ABCDGISTW]'
  6822. ;;
  6823. hpux*)
  6824. if test "$host_cpu" = ia64; then
  6825. symcode='[ABCDEGRST]'
  6826. fi
  6827. ;;
  6828. irix* | nonstopux*)
  6829. symcode='[BCDEGRST]'
  6830. ;;
  6831. osf*)
  6832. symcode='[BCDEGQRST]'
  6833. ;;
  6834. solaris*)
  6835. symcode='[BDRT]'
  6836. ;;
  6837. sco3.2v5*)
  6838. symcode='[DT]'
  6839. ;;
  6840. sysv4.2uw2*)
  6841. symcode='[DT]'
  6842. ;;
  6843. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6844. symcode='[ABDT]'
  6845. ;;
  6846. sysv4)
  6847. symcode='[DFNSTU]'
  6848. ;;
  6849. esac
  6850. # If we're using GNU nm, then use its standard symbol codes.
  6851. case `$NM -V 2>&1` in
  6852. *GNU* | *'with BFD'*)
  6853. symcode='[ABCDGIRSTW]' ;;
  6854. esac
  6855. # Transform an extracted symbol line into a proper C declaration.
  6856. # Some systems (esp. on ia64) link data and code symbols differently,
  6857. # so use this general approach.
  6858. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6859. # Transform an extracted symbol line into symbol name and symbol address
  6860. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6861. 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'"
  6862. # Handle CRLF in mingw tool chain
  6863. opt_cr=
  6864. case $build_os in
  6865. mingw*)
  6866. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6867. ;;
  6868. esac
  6869. # Try without a prefix underscore, then with it.
  6870. for ac_symprfx in "" "_"; do
  6871. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6872. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6873. # Write the raw and C identifiers.
  6874. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6875. # Fake it for dumpbin and say T for any non-static function
  6876. # and D for any global variable.
  6877. # Also find C++ and __fastcall symbols from MSVC++,
  6878. # which start with @ or ?.
  6879. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6880. " {last_section=section; section=\$ 3};"\
  6881. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6882. " \$ 0!~/External *\|/{next};"\
  6883. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6884. " {if(hide[section]) next};"\
  6885. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6886. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6887. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6888. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6889. " ' prfx=^$ac_symprfx"
  6890. else
  6891. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6892. fi
  6893. # Check to see that the pipe works correctly.
  6894. pipe_works=no
  6895. rm -f conftest*
  6896. cat > conftest.$ac_ext <<_LT_EOF
  6897. #ifdef __cplusplus
  6898. extern "C" {
  6899. #endif
  6900. char nm_test_var;
  6901. void nm_test_func(void);
  6902. void nm_test_func(void){}
  6903. #ifdef __cplusplus
  6904. }
  6905. #endif
  6906. int main(){nm_test_var='a';nm_test_func();return(0);}
  6907. _LT_EOF
  6908. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6909. (eval $ac_compile) 2>&5
  6910. ac_status=$?
  6911. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6912. test $ac_status = 0; }; then
  6913. # Now try to grab the symbols.
  6914. nlist=conftest.nm
  6915. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6916. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6917. ac_status=$?
  6918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6919. test $ac_status = 0; } && test -s "$nlist"; then
  6920. # Try sorting and uniquifying the output.
  6921. if sort "$nlist" | uniq > "$nlist"T; then
  6922. mv -f "$nlist"T "$nlist"
  6923. else
  6924. rm -f "$nlist"T
  6925. fi
  6926. # Make sure that we snagged all the symbols we need.
  6927. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6928. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6929. cat <<_LT_EOF > conftest.$ac_ext
  6930. #ifdef __cplusplus
  6931. extern "C" {
  6932. #endif
  6933. _LT_EOF
  6934. # Now generate the symbol file.
  6935. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6936. cat <<_LT_EOF >> conftest.$ac_ext
  6937. /* The mapping between symbol names and symbols. */
  6938. const struct {
  6939. const char *name;
  6940. void *address;
  6941. }
  6942. lt__PROGRAM__LTX_preloaded_symbols[] =
  6943. {
  6944. { "@PROGRAM@", (void *) 0 },
  6945. _LT_EOF
  6946. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6947. cat <<\_LT_EOF >> conftest.$ac_ext
  6948. {0, (void *) 0}
  6949. };
  6950. /* This works around a problem in FreeBSD linker */
  6951. #ifdef FREEBSD_WORKAROUND
  6952. static const void *lt_preloaded_setup() {
  6953. return lt__PROGRAM__LTX_preloaded_symbols;
  6954. }
  6955. #endif
  6956. #ifdef __cplusplus
  6957. }
  6958. #endif
  6959. _LT_EOF
  6960. # Now try linking the two files.
  6961. mv conftest.$ac_objext conftstm.$ac_objext
  6962. lt_save_LIBS="$LIBS"
  6963. lt_save_CFLAGS="$CFLAGS"
  6964. LIBS="conftstm.$ac_objext"
  6965. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6966. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6967. (eval $ac_link) 2>&5
  6968. ac_status=$?
  6969. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6970. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6971. pipe_works=yes
  6972. fi
  6973. LIBS="$lt_save_LIBS"
  6974. CFLAGS="$lt_save_CFLAGS"
  6975. else
  6976. echo "cannot find nm_test_func in $nlist" >&5
  6977. fi
  6978. else
  6979. echo "cannot find nm_test_var in $nlist" >&5
  6980. fi
  6981. else
  6982. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6983. fi
  6984. else
  6985. echo "$progname: failed program was:" >&5
  6986. cat conftest.$ac_ext >&5
  6987. fi
  6988. rm -rf conftest* conftst*
  6989. # Do not use the global_symbol_pipe unless it works.
  6990. if test "$pipe_works" = yes; then
  6991. break
  6992. else
  6993. lt_cv_sys_global_symbol_pipe=
  6994. fi
  6995. done
  6996. fi
  6997. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6998. lt_cv_sys_global_symbol_to_cdecl=
  6999. fi
  7000. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7002. $as_echo "failed" >&6; }
  7003. else
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7005. $as_echo "ok" >&6; }
  7006. fi
  7007. # Check whether --enable-libtool-lock was given.
  7008. if test "${enable_libtool_lock+set}" = set; then :
  7009. enableval=$enable_libtool_lock;
  7010. fi
  7011. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7012. # Some flags need to be propagated to the compiler or linker for good
  7013. # libtool support.
  7014. case $host in
  7015. ia64-*-hpux*)
  7016. # Find out which ABI we are using.
  7017. echo 'int i;' > conftest.$ac_ext
  7018. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7019. (eval $ac_compile) 2>&5
  7020. ac_status=$?
  7021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7022. test $ac_status = 0; }; then
  7023. case `/usr/bin/file conftest.$ac_objext` in
  7024. *ELF-32*)
  7025. HPUX_IA64_MODE="32"
  7026. ;;
  7027. *ELF-64*)
  7028. HPUX_IA64_MODE="64"
  7029. ;;
  7030. esac
  7031. fi
  7032. rm -rf conftest*
  7033. ;;
  7034. *-*-irix6*)
  7035. # Find out which ABI we are using.
  7036. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7037. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7038. (eval $ac_compile) 2>&5
  7039. ac_status=$?
  7040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7041. test $ac_status = 0; }; then
  7042. if test "$lt_cv_prog_gnu_ld" = yes; then
  7043. case `/usr/bin/file conftest.$ac_objext` in
  7044. *32-bit*)
  7045. LD="${LD-ld} -melf32bsmip"
  7046. ;;
  7047. *N32*)
  7048. LD="${LD-ld} -melf32bmipn32"
  7049. ;;
  7050. *64-bit*)
  7051. LD="${LD-ld} -melf64bmip"
  7052. ;;
  7053. esac
  7054. else
  7055. case `/usr/bin/file conftest.$ac_objext` in
  7056. *32-bit*)
  7057. LD="${LD-ld} -32"
  7058. ;;
  7059. *N32*)
  7060. LD="${LD-ld} -n32"
  7061. ;;
  7062. *64-bit*)
  7063. LD="${LD-ld} -64"
  7064. ;;
  7065. esac
  7066. fi
  7067. fi
  7068. rm -rf conftest*
  7069. ;;
  7070. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7071. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7072. # Find out which ABI we are using.
  7073. echo 'int i;' > conftest.$ac_ext
  7074. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7075. (eval $ac_compile) 2>&5
  7076. ac_status=$?
  7077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7078. test $ac_status = 0; }; then
  7079. case `/usr/bin/file conftest.o` in
  7080. *32-bit*)
  7081. case $host in
  7082. x86_64-*kfreebsd*-gnu)
  7083. LD="${LD-ld} -m elf_i386_fbsd"
  7084. ;;
  7085. x86_64-*linux*)
  7086. case `/usr/bin/file conftest.o` in
  7087. *x86-64*)
  7088. LD="${LD-ld} -m elf32_x86_64"
  7089. ;;
  7090. *)
  7091. LD="${LD-ld} -m elf_i386"
  7092. ;;
  7093. esac
  7094. ;;
  7095. powerpc64le-*linux*)
  7096. LD="${LD-ld} -m elf32lppclinux"
  7097. ;;
  7098. powerpc64-*linux*)
  7099. LD="${LD-ld} -m elf32ppclinux"
  7100. ;;
  7101. s390x-*linux*)
  7102. LD="${LD-ld} -m elf_s390"
  7103. ;;
  7104. sparc64-*linux*)
  7105. LD="${LD-ld} -m elf32_sparc"
  7106. ;;
  7107. esac
  7108. ;;
  7109. *64-bit*)
  7110. case $host in
  7111. x86_64-*kfreebsd*-gnu)
  7112. LD="${LD-ld} -m elf_x86_64_fbsd"
  7113. ;;
  7114. x86_64-*linux*)
  7115. LD="${LD-ld} -m elf_x86_64"
  7116. ;;
  7117. powerpcle-*linux*)
  7118. LD="${LD-ld} -m elf64lppc"
  7119. ;;
  7120. powerpc-*linux*)
  7121. LD="${LD-ld} -m elf64ppc"
  7122. ;;
  7123. s390*-*linux*|s390*-*tpf*)
  7124. LD="${LD-ld} -m elf64_s390"
  7125. ;;
  7126. sparc*-*linux*)
  7127. LD="${LD-ld} -m elf64_sparc"
  7128. ;;
  7129. esac
  7130. ;;
  7131. esac
  7132. fi
  7133. rm -rf conftest*
  7134. ;;
  7135. *-*-sco3.2v5*)
  7136. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7137. SAVE_CFLAGS="$CFLAGS"
  7138. CFLAGS="$CFLAGS -belf"
  7139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7140. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7141. if ${lt_cv_cc_needs_belf+:} false; then :
  7142. $as_echo_n "(cached) " >&6
  7143. else
  7144. ac_ext=c
  7145. ac_cpp='$CPP $CPPFLAGS'
  7146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7150. /* end confdefs.h. */
  7151. int
  7152. main ()
  7153. {
  7154. ;
  7155. return 0;
  7156. }
  7157. _ACEOF
  7158. if ac_fn_c_try_link "$LINENO"; then :
  7159. lt_cv_cc_needs_belf=yes
  7160. else
  7161. lt_cv_cc_needs_belf=no
  7162. fi
  7163. rm -f core conftest.err conftest.$ac_objext \
  7164. conftest$ac_exeext conftest.$ac_ext
  7165. ac_ext=c
  7166. ac_cpp='$CPP $CPPFLAGS'
  7167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7170. fi
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7172. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7173. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7174. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7175. CFLAGS="$SAVE_CFLAGS"
  7176. fi
  7177. ;;
  7178. sparc*-*solaris*)
  7179. # Find out which ABI we are using.
  7180. echo 'int i;' > conftest.$ac_ext
  7181. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7182. (eval $ac_compile) 2>&5
  7183. ac_status=$?
  7184. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7185. test $ac_status = 0; }; then
  7186. case `/usr/bin/file conftest.o` in
  7187. *64-bit*)
  7188. case $lt_cv_prog_gnu_ld in
  7189. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7190. *)
  7191. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7192. LD="${LD-ld} -64"
  7193. fi
  7194. ;;
  7195. esac
  7196. ;;
  7197. esac
  7198. fi
  7199. rm -rf conftest*
  7200. ;;
  7201. esac
  7202. need_locks="$enable_libtool_lock"
  7203. case $host_os in
  7204. rhapsody* | darwin*)
  7205. if test -n "$ac_tool_prefix"; then
  7206. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7207. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7209. $as_echo_n "checking for $ac_word... " >&6; }
  7210. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7211. $as_echo_n "(cached) " >&6
  7212. else
  7213. if test -n "$DSYMUTIL"; then
  7214. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7215. else
  7216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7217. for as_dir in $PATH
  7218. do
  7219. IFS=$as_save_IFS
  7220. test -z "$as_dir" && as_dir=.
  7221. for ac_exec_ext in '' $ac_executable_extensions; do
  7222. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7223. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7224. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7225. break 2
  7226. fi
  7227. done
  7228. done
  7229. IFS=$as_save_IFS
  7230. fi
  7231. fi
  7232. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7233. if test -n "$DSYMUTIL"; then
  7234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7235. $as_echo "$DSYMUTIL" >&6; }
  7236. else
  7237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7238. $as_echo "no" >&6; }
  7239. fi
  7240. fi
  7241. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7242. ac_ct_DSYMUTIL=$DSYMUTIL
  7243. # Extract the first word of "dsymutil", so it can be a program name with args.
  7244. set dummy dsymutil; ac_word=$2
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7246. $as_echo_n "checking for $ac_word... " >&6; }
  7247. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7248. $as_echo_n "(cached) " >&6
  7249. else
  7250. if test -n "$ac_ct_DSYMUTIL"; then
  7251. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7252. else
  7253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7254. for as_dir in $PATH
  7255. do
  7256. IFS=$as_save_IFS
  7257. test -z "$as_dir" && as_dir=.
  7258. for ac_exec_ext in '' $ac_executable_extensions; do
  7259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7260. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7262. break 2
  7263. fi
  7264. done
  7265. done
  7266. IFS=$as_save_IFS
  7267. fi
  7268. fi
  7269. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7270. if test -n "$ac_ct_DSYMUTIL"; then
  7271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7272. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7273. else
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7275. $as_echo "no" >&6; }
  7276. fi
  7277. if test "x$ac_ct_DSYMUTIL" = x; then
  7278. DSYMUTIL=":"
  7279. else
  7280. case $cross_compiling:$ac_tool_warned in
  7281. yes:)
  7282. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7283. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7284. ac_tool_warned=yes ;;
  7285. esac
  7286. DSYMUTIL=$ac_ct_DSYMUTIL
  7287. fi
  7288. else
  7289. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7290. fi
  7291. if test -n "$ac_tool_prefix"; then
  7292. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7293. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7295. $as_echo_n "checking for $ac_word... " >&6; }
  7296. if ${ac_cv_prog_NMEDIT+:} false; then :
  7297. $as_echo_n "(cached) " >&6
  7298. else
  7299. if test -n "$NMEDIT"; then
  7300. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7301. else
  7302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7303. for as_dir in $PATH
  7304. do
  7305. IFS=$as_save_IFS
  7306. test -z "$as_dir" && as_dir=.
  7307. for ac_exec_ext in '' $ac_executable_extensions; do
  7308. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7309. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7311. break 2
  7312. fi
  7313. done
  7314. done
  7315. IFS=$as_save_IFS
  7316. fi
  7317. fi
  7318. NMEDIT=$ac_cv_prog_NMEDIT
  7319. if test -n "$NMEDIT"; then
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7321. $as_echo "$NMEDIT" >&6; }
  7322. else
  7323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7324. $as_echo "no" >&6; }
  7325. fi
  7326. fi
  7327. if test -z "$ac_cv_prog_NMEDIT"; then
  7328. ac_ct_NMEDIT=$NMEDIT
  7329. # Extract the first word of "nmedit", so it can be a program name with args.
  7330. set dummy nmedit; ac_word=$2
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7332. $as_echo_n "checking for $ac_word... " >&6; }
  7333. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7334. $as_echo_n "(cached) " >&6
  7335. else
  7336. if test -n "$ac_ct_NMEDIT"; then
  7337. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7338. else
  7339. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7340. for as_dir in $PATH
  7341. do
  7342. IFS=$as_save_IFS
  7343. test -z "$as_dir" && as_dir=.
  7344. for ac_exec_ext in '' $ac_executable_extensions; do
  7345. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7346. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7347. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7348. break 2
  7349. fi
  7350. done
  7351. done
  7352. IFS=$as_save_IFS
  7353. fi
  7354. fi
  7355. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7356. if test -n "$ac_ct_NMEDIT"; then
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7358. $as_echo "$ac_ct_NMEDIT" >&6; }
  7359. else
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7361. $as_echo "no" >&6; }
  7362. fi
  7363. if test "x$ac_ct_NMEDIT" = x; then
  7364. NMEDIT=":"
  7365. else
  7366. case $cross_compiling:$ac_tool_warned in
  7367. yes:)
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7369. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7370. ac_tool_warned=yes ;;
  7371. esac
  7372. NMEDIT=$ac_ct_NMEDIT
  7373. fi
  7374. else
  7375. NMEDIT="$ac_cv_prog_NMEDIT"
  7376. fi
  7377. if test -n "$ac_tool_prefix"; then
  7378. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7379. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7381. $as_echo_n "checking for $ac_word... " >&6; }
  7382. if ${ac_cv_prog_LIPO+:} false; then :
  7383. $as_echo_n "(cached) " >&6
  7384. else
  7385. if test -n "$LIPO"; then
  7386. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7387. else
  7388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7389. for as_dir in $PATH
  7390. do
  7391. IFS=$as_save_IFS
  7392. test -z "$as_dir" && as_dir=.
  7393. for ac_exec_ext in '' $ac_executable_extensions; do
  7394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7395. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7397. break 2
  7398. fi
  7399. done
  7400. done
  7401. IFS=$as_save_IFS
  7402. fi
  7403. fi
  7404. LIPO=$ac_cv_prog_LIPO
  7405. if test -n "$LIPO"; then
  7406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7407. $as_echo "$LIPO" >&6; }
  7408. else
  7409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7410. $as_echo "no" >&6; }
  7411. fi
  7412. fi
  7413. if test -z "$ac_cv_prog_LIPO"; then
  7414. ac_ct_LIPO=$LIPO
  7415. # Extract the first word of "lipo", so it can be a program name with args.
  7416. set dummy lipo; ac_word=$2
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7418. $as_echo_n "checking for $ac_word... " >&6; }
  7419. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7420. $as_echo_n "(cached) " >&6
  7421. else
  7422. if test -n "$ac_ct_LIPO"; then
  7423. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7424. else
  7425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7426. for as_dir in $PATH
  7427. do
  7428. IFS=$as_save_IFS
  7429. test -z "$as_dir" && as_dir=.
  7430. for ac_exec_ext in '' $ac_executable_extensions; do
  7431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7432. ac_cv_prog_ac_ct_LIPO="lipo"
  7433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7434. break 2
  7435. fi
  7436. done
  7437. done
  7438. IFS=$as_save_IFS
  7439. fi
  7440. fi
  7441. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7442. if test -n "$ac_ct_LIPO"; then
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7444. $as_echo "$ac_ct_LIPO" >&6; }
  7445. else
  7446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7447. $as_echo "no" >&6; }
  7448. fi
  7449. if test "x$ac_ct_LIPO" = x; then
  7450. LIPO=":"
  7451. else
  7452. case $cross_compiling:$ac_tool_warned in
  7453. yes:)
  7454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7455. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7456. ac_tool_warned=yes ;;
  7457. esac
  7458. LIPO=$ac_ct_LIPO
  7459. fi
  7460. else
  7461. LIPO="$ac_cv_prog_LIPO"
  7462. fi
  7463. if test -n "$ac_tool_prefix"; then
  7464. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7465. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7467. $as_echo_n "checking for $ac_word... " >&6; }
  7468. if ${ac_cv_prog_OTOOL+:} false; then :
  7469. $as_echo_n "(cached) " >&6
  7470. else
  7471. if test -n "$OTOOL"; then
  7472. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7473. else
  7474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7475. for as_dir in $PATH
  7476. do
  7477. IFS=$as_save_IFS
  7478. test -z "$as_dir" && as_dir=.
  7479. for ac_exec_ext in '' $ac_executable_extensions; do
  7480. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7481. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7482. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7483. break 2
  7484. fi
  7485. done
  7486. done
  7487. IFS=$as_save_IFS
  7488. fi
  7489. fi
  7490. OTOOL=$ac_cv_prog_OTOOL
  7491. if test -n "$OTOOL"; then
  7492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7493. $as_echo "$OTOOL" >&6; }
  7494. else
  7495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7496. $as_echo "no" >&6; }
  7497. fi
  7498. fi
  7499. if test -z "$ac_cv_prog_OTOOL"; then
  7500. ac_ct_OTOOL=$OTOOL
  7501. # Extract the first word of "otool", so it can be a program name with args.
  7502. set dummy otool; ac_word=$2
  7503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7504. $as_echo_n "checking for $ac_word... " >&6; }
  7505. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7506. $as_echo_n "(cached) " >&6
  7507. else
  7508. if test -n "$ac_ct_OTOOL"; then
  7509. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7510. else
  7511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7512. for as_dir in $PATH
  7513. do
  7514. IFS=$as_save_IFS
  7515. test -z "$as_dir" && as_dir=.
  7516. for ac_exec_ext in '' $ac_executable_extensions; do
  7517. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7518. ac_cv_prog_ac_ct_OTOOL="otool"
  7519. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7520. break 2
  7521. fi
  7522. done
  7523. done
  7524. IFS=$as_save_IFS
  7525. fi
  7526. fi
  7527. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7528. if test -n "$ac_ct_OTOOL"; then
  7529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7530. $as_echo "$ac_ct_OTOOL" >&6; }
  7531. else
  7532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7533. $as_echo "no" >&6; }
  7534. fi
  7535. if test "x$ac_ct_OTOOL" = x; then
  7536. OTOOL=":"
  7537. else
  7538. case $cross_compiling:$ac_tool_warned in
  7539. yes:)
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7541. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7542. ac_tool_warned=yes ;;
  7543. esac
  7544. OTOOL=$ac_ct_OTOOL
  7545. fi
  7546. else
  7547. OTOOL="$ac_cv_prog_OTOOL"
  7548. fi
  7549. if test -n "$ac_tool_prefix"; then
  7550. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7551. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7553. $as_echo_n "checking for $ac_word... " >&6; }
  7554. if ${ac_cv_prog_OTOOL64+:} false; then :
  7555. $as_echo_n "(cached) " >&6
  7556. else
  7557. if test -n "$OTOOL64"; then
  7558. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7559. else
  7560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7561. for as_dir in $PATH
  7562. do
  7563. IFS=$as_save_IFS
  7564. test -z "$as_dir" && as_dir=.
  7565. for ac_exec_ext in '' $ac_executable_extensions; do
  7566. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7567. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7569. break 2
  7570. fi
  7571. done
  7572. done
  7573. IFS=$as_save_IFS
  7574. fi
  7575. fi
  7576. OTOOL64=$ac_cv_prog_OTOOL64
  7577. if test -n "$OTOOL64"; then
  7578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7579. $as_echo "$OTOOL64" >&6; }
  7580. else
  7581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7582. $as_echo "no" >&6; }
  7583. fi
  7584. fi
  7585. if test -z "$ac_cv_prog_OTOOL64"; then
  7586. ac_ct_OTOOL64=$OTOOL64
  7587. # Extract the first word of "otool64", so it can be a program name with args.
  7588. set dummy otool64; ac_word=$2
  7589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7590. $as_echo_n "checking for $ac_word... " >&6; }
  7591. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7592. $as_echo_n "(cached) " >&6
  7593. else
  7594. if test -n "$ac_ct_OTOOL64"; then
  7595. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7596. else
  7597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7598. for as_dir in $PATH
  7599. do
  7600. IFS=$as_save_IFS
  7601. test -z "$as_dir" && as_dir=.
  7602. for ac_exec_ext in '' $ac_executable_extensions; do
  7603. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7604. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7606. break 2
  7607. fi
  7608. done
  7609. done
  7610. IFS=$as_save_IFS
  7611. fi
  7612. fi
  7613. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7614. if test -n "$ac_ct_OTOOL64"; then
  7615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7616. $as_echo "$ac_ct_OTOOL64" >&6; }
  7617. else
  7618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7619. $as_echo "no" >&6; }
  7620. fi
  7621. if test "x$ac_ct_OTOOL64" = x; then
  7622. OTOOL64=":"
  7623. else
  7624. case $cross_compiling:$ac_tool_warned in
  7625. yes:)
  7626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7627. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7628. ac_tool_warned=yes ;;
  7629. esac
  7630. OTOOL64=$ac_ct_OTOOL64
  7631. fi
  7632. else
  7633. OTOOL64="$ac_cv_prog_OTOOL64"
  7634. fi
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7636. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7637. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7638. $as_echo_n "(cached) " >&6
  7639. else
  7640. lt_cv_apple_cc_single_mod=no
  7641. if test -z "${LT_MULTI_MODULE}"; then
  7642. # By default we will add the -single_module flag. You can override
  7643. # by either setting the environment variable LT_MULTI_MODULE
  7644. # non-empty at configure time, or by adding -multi_module to the
  7645. # link flags.
  7646. rm -rf libconftest.dylib*
  7647. echo "int foo(void){return 1;}" > conftest.c
  7648. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7649. -dynamiclib -Wl,-single_module conftest.c" >&5
  7650. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7651. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7652. _lt_result=$?
  7653. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7654. lt_cv_apple_cc_single_mod=yes
  7655. else
  7656. cat conftest.err >&5
  7657. fi
  7658. rm -rf libconftest.dylib*
  7659. rm -f conftest.*
  7660. fi
  7661. fi
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7663. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7665. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7666. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7667. $as_echo_n "(cached) " >&6
  7668. else
  7669. lt_cv_ld_exported_symbols_list=no
  7670. save_LDFLAGS=$LDFLAGS
  7671. echo "_main" > conftest.sym
  7672. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7674. /* end confdefs.h. */
  7675. int
  7676. main ()
  7677. {
  7678. ;
  7679. return 0;
  7680. }
  7681. _ACEOF
  7682. if ac_fn_c_try_link "$LINENO"; then :
  7683. lt_cv_ld_exported_symbols_list=yes
  7684. else
  7685. lt_cv_ld_exported_symbols_list=no
  7686. fi
  7687. rm -f core conftest.err conftest.$ac_objext \
  7688. conftest$ac_exeext conftest.$ac_ext
  7689. LDFLAGS="$save_LDFLAGS"
  7690. fi
  7691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7692. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7694. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7695. if ${lt_cv_ld_force_load+:} false; then :
  7696. $as_echo_n "(cached) " >&6
  7697. else
  7698. lt_cv_ld_force_load=no
  7699. cat > conftest.c << _LT_EOF
  7700. int forced_loaded() { return 2;}
  7701. _LT_EOF
  7702. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7703. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7704. echo "$AR cru libconftest.a conftest.o" >&5
  7705. $AR cru libconftest.a conftest.o 2>&5
  7706. cat > conftest.c << _LT_EOF
  7707. int main() { return 0;}
  7708. _LT_EOF
  7709. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7710. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7711. _lt_result=$?
  7712. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7713. lt_cv_ld_force_load=yes
  7714. else
  7715. cat conftest.err >&5
  7716. fi
  7717. rm -f conftest.err libconftest.a conftest conftest.c
  7718. rm -rf conftest.dSYM
  7719. fi
  7720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7721. $as_echo "$lt_cv_ld_force_load" >&6; }
  7722. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  7723. # build without first building modern cctools / linker.
  7724. case $host_cpu-$host_os in
  7725. *-rhapsody* | *-darwin1.[012])
  7726. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7727. *-darwin1.*)
  7728. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7729. *-darwin*)
  7730. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  7731. # deployment target is forced to an earlier version.
  7732. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  7733. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  7734. ;;
  7735. 10.[012][,.]*)
  7736. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7737. ;;
  7738. *)
  7739. ;;
  7740. esac
  7741. ;;
  7742. esac
  7743. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7744. _lt_dar_single_mod='$single_module'
  7745. fi
  7746. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7747. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7748. else
  7749. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7750. fi
  7751. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7752. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7753. else
  7754. _lt_dsymutil=
  7755. fi
  7756. ;;
  7757. esac
  7758. for ac_header in dlfcn.h
  7759. do :
  7760. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7761. "
  7762. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7763. cat >>confdefs.h <<_ACEOF
  7764. #define HAVE_DLFCN_H 1
  7765. _ACEOF
  7766. fi
  7767. done
  7768. # Set options
  7769. enable_win32_dll=no
  7770. # Check whether --enable-shared was given.
  7771. if test "${enable_shared+set}" = set; then :
  7772. enableval=$enable_shared; p=${PACKAGE-default}
  7773. case $enableval in
  7774. yes) enable_shared=yes ;;
  7775. no) enable_shared=no ;;
  7776. *)
  7777. enable_shared=no
  7778. # Look at the argument we got. We use all the common list separators.
  7779. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7780. for pkg in $enableval; do
  7781. IFS="$lt_save_ifs"
  7782. if test "X$pkg" = "X$p"; then
  7783. enable_shared=yes
  7784. fi
  7785. done
  7786. IFS="$lt_save_ifs"
  7787. ;;
  7788. esac
  7789. else
  7790. enable_shared=yes
  7791. fi
  7792. # Check whether --enable-static was given.
  7793. if test "${enable_static+set}" = set; then :
  7794. enableval=$enable_static; p=${PACKAGE-default}
  7795. case $enableval in
  7796. yes) enable_static=yes ;;
  7797. no) enable_static=no ;;
  7798. *)
  7799. enable_static=no
  7800. # Look at the argument we got. We use all the common list separators.
  7801. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7802. for pkg in $enableval; do
  7803. IFS="$lt_save_ifs"
  7804. if test "X$pkg" = "X$p"; then
  7805. enable_static=yes
  7806. fi
  7807. done
  7808. IFS="$lt_save_ifs"
  7809. ;;
  7810. esac
  7811. else
  7812. enable_static=yes
  7813. fi
  7814. # Check whether --with-pic was given.
  7815. if test "${with_pic+set}" = set; then :
  7816. withval=$with_pic; pic_mode="$withval"
  7817. else
  7818. pic_mode=default
  7819. fi
  7820. test -z "$pic_mode" && pic_mode=default
  7821. # Check whether --enable-fast-install was given.
  7822. if test "${enable_fast_install+set}" = set; then :
  7823. enableval=$enable_fast_install; p=${PACKAGE-default}
  7824. case $enableval in
  7825. yes) enable_fast_install=yes ;;
  7826. no) enable_fast_install=no ;;
  7827. *)
  7828. enable_fast_install=no
  7829. # Look at the argument we got. We use all the common list separators.
  7830. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7831. for pkg in $enableval; do
  7832. IFS="$lt_save_ifs"
  7833. if test "X$pkg" = "X$p"; then
  7834. enable_fast_install=yes
  7835. fi
  7836. done
  7837. IFS="$lt_save_ifs"
  7838. ;;
  7839. esac
  7840. else
  7841. enable_fast_install=yes
  7842. fi
  7843. # This can be used to rebuild libtool when needed
  7844. LIBTOOL_DEPS="$ltmain"
  7845. # Always use our own libtool.
  7846. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7847. test -z "$LN_S" && LN_S="ln -s"
  7848. if test -n "${ZSH_VERSION+set}" ; then
  7849. setopt NO_GLOB_SUBST
  7850. fi
  7851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7852. $as_echo_n "checking for objdir... " >&6; }
  7853. if ${lt_cv_objdir+:} false; then :
  7854. $as_echo_n "(cached) " >&6
  7855. else
  7856. rm -f .libs 2>/dev/null
  7857. mkdir .libs 2>/dev/null
  7858. if test -d .libs; then
  7859. lt_cv_objdir=.libs
  7860. else
  7861. # MS-DOS does not allow filenames that begin with a dot.
  7862. lt_cv_objdir=_libs
  7863. fi
  7864. rmdir .libs 2>/dev/null
  7865. fi
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7867. $as_echo "$lt_cv_objdir" >&6; }
  7868. objdir=$lt_cv_objdir
  7869. cat >>confdefs.h <<_ACEOF
  7870. #define LT_OBJDIR "$lt_cv_objdir/"
  7871. _ACEOF
  7872. case $host_os in
  7873. aix3*)
  7874. # AIX sometimes has problems with the GCC collect2 program. For some
  7875. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7876. # vanish in a puff of smoke.
  7877. if test "X${COLLECT_NAMES+set}" != Xset; then
  7878. COLLECT_NAMES=
  7879. export COLLECT_NAMES
  7880. fi
  7881. ;;
  7882. esac
  7883. # Global variables:
  7884. ofile=libtool
  7885. can_build_shared=yes
  7886. # All known linkers require a `.a' archive for static linking (except MSVC,
  7887. # which needs '.lib').
  7888. libext=a
  7889. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7890. old_CC="$CC"
  7891. old_CFLAGS="$CFLAGS"
  7892. # Set sane defaults for various variables
  7893. test -z "$CC" && CC=cc
  7894. test -z "$LTCC" && LTCC=$CC
  7895. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7896. test -z "$LD" && LD=ld
  7897. test -z "$ac_objext" && ac_objext=o
  7898. for cc_temp in $compiler""; do
  7899. case $cc_temp in
  7900. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7901. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7902. \-*) ;;
  7903. *) break;;
  7904. esac
  7905. done
  7906. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7907. # Only perform the check for file, if the check method requires it
  7908. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7909. case $deplibs_check_method in
  7910. file_magic*)
  7911. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7913. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7914. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7915. $as_echo_n "(cached) " >&6
  7916. else
  7917. case $MAGIC_CMD in
  7918. [\\/*] | ?:[\\/]*)
  7919. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7920. ;;
  7921. *)
  7922. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7923. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7924. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7925. for ac_dir in $ac_dummy; do
  7926. IFS="$lt_save_ifs"
  7927. test -z "$ac_dir" && ac_dir=.
  7928. if test -f $ac_dir/${ac_tool_prefix}file; then
  7929. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7930. if test -n "$file_magic_test_file"; then
  7931. case $deplibs_check_method in
  7932. "file_magic "*)
  7933. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7934. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7935. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7936. $EGREP "$file_magic_regex" > /dev/null; then
  7937. :
  7938. else
  7939. cat <<_LT_EOF 1>&2
  7940. *** Warning: the command libtool uses to detect shared libraries,
  7941. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7942. *** The result is that libtool may fail to recognize shared libraries
  7943. *** as such. This will affect the creation of libtool libraries that
  7944. *** depend on shared libraries, but programs linked with such libtool
  7945. *** libraries will work regardless of this problem. Nevertheless, you
  7946. *** may want to report the problem to your system manager and/or to
  7947. *** bug-libtool@gnu.org
  7948. _LT_EOF
  7949. fi ;;
  7950. esac
  7951. fi
  7952. break
  7953. fi
  7954. done
  7955. IFS="$lt_save_ifs"
  7956. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7957. ;;
  7958. esac
  7959. fi
  7960. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7961. if test -n "$MAGIC_CMD"; then
  7962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7963. $as_echo "$MAGIC_CMD" >&6; }
  7964. else
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7966. $as_echo "no" >&6; }
  7967. fi
  7968. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7969. if test -n "$ac_tool_prefix"; then
  7970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7971. $as_echo_n "checking for file... " >&6; }
  7972. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7973. $as_echo_n "(cached) " >&6
  7974. else
  7975. case $MAGIC_CMD in
  7976. [\\/*] | ?:[\\/]*)
  7977. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7978. ;;
  7979. *)
  7980. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7981. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7982. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7983. for ac_dir in $ac_dummy; do
  7984. IFS="$lt_save_ifs"
  7985. test -z "$ac_dir" && ac_dir=.
  7986. if test -f $ac_dir/file; then
  7987. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7988. if test -n "$file_magic_test_file"; then
  7989. case $deplibs_check_method in
  7990. "file_magic "*)
  7991. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7992. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7993. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7994. $EGREP "$file_magic_regex" > /dev/null; then
  7995. :
  7996. else
  7997. cat <<_LT_EOF 1>&2
  7998. *** Warning: the command libtool uses to detect shared libraries,
  7999. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8000. *** The result is that libtool may fail to recognize shared libraries
  8001. *** as such. This will affect the creation of libtool libraries that
  8002. *** depend on shared libraries, but programs linked with such libtool
  8003. *** libraries will work regardless of this problem. Nevertheless, you
  8004. *** may want to report the problem to your system manager and/or to
  8005. *** bug-libtool@gnu.org
  8006. _LT_EOF
  8007. fi ;;
  8008. esac
  8009. fi
  8010. break
  8011. fi
  8012. done
  8013. IFS="$lt_save_ifs"
  8014. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8015. ;;
  8016. esac
  8017. fi
  8018. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8019. if test -n "$MAGIC_CMD"; then
  8020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8021. $as_echo "$MAGIC_CMD" >&6; }
  8022. else
  8023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8024. $as_echo "no" >&6; }
  8025. fi
  8026. else
  8027. MAGIC_CMD=:
  8028. fi
  8029. fi
  8030. fi
  8031. ;;
  8032. esac
  8033. # Use C for the default configuration in the libtool script
  8034. lt_save_CC="$CC"
  8035. ac_ext=c
  8036. ac_cpp='$CPP $CPPFLAGS'
  8037. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8038. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8039. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8040. # Source file extension for C test sources.
  8041. ac_ext=c
  8042. # Object file extension for compiled C test sources.
  8043. objext=o
  8044. objext=$objext
  8045. # Code to be used in simple compile tests
  8046. lt_simple_compile_test_code="int some_variable = 0;"
  8047. # Code to be used in simple link tests
  8048. lt_simple_link_test_code='int main(){return(0);}'
  8049. # If no C compiler was specified, use CC.
  8050. LTCC=${LTCC-"$CC"}
  8051. # If no C compiler flags were specified, use CFLAGS.
  8052. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8053. # Allow CC to be a program name with arguments.
  8054. compiler=$CC
  8055. # Save the default compiler, since it gets overwritten when the other
  8056. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8057. compiler_DEFAULT=$CC
  8058. # save warnings/boilerplate of simple test code
  8059. ac_outfile=conftest.$ac_objext
  8060. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8061. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8062. _lt_compiler_boilerplate=`cat conftest.err`
  8063. $RM conftest*
  8064. ac_outfile=conftest.$ac_objext
  8065. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8066. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8067. _lt_linker_boilerplate=`cat conftest.err`
  8068. $RM -r conftest*
  8069. ## CAVEAT EMPTOR:
  8070. ## There is no encapsulation within the following macros, do not change
  8071. ## the running order or otherwise move them around unless you know exactly
  8072. ## what you are doing...
  8073. if test -n "$compiler"; then
  8074. lt_prog_compiler_no_builtin_flag=
  8075. if test "$GCC" = yes; then
  8076. case $cc_basename in
  8077. nvcc*)
  8078. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8079. *)
  8080. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8081. esac
  8082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8083. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8084. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8085. $as_echo_n "(cached) " >&6
  8086. else
  8087. lt_cv_prog_compiler_rtti_exceptions=no
  8088. ac_outfile=conftest.$ac_objext
  8089. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8090. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8091. # Insert the option either (1) after the last *FLAGS variable, or
  8092. # (2) before a word containing "conftest.", or (3) at the end.
  8093. # Note that $ac_compile itself does not contain backslashes and begins
  8094. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8095. # The option is referenced via a variable to avoid confusing sed.
  8096. lt_compile=`echo "$ac_compile" | $SED \
  8097. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8098. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8099. -e 's:$: $lt_compiler_flag:'`
  8100. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8101. (eval "$lt_compile" 2>conftest.err)
  8102. ac_status=$?
  8103. cat conftest.err >&5
  8104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8105. if (exit $ac_status) && test -s "$ac_outfile"; then
  8106. # The compiler can only warn and ignore the option if not recognized
  8107. # So say no if there are warnings other than the usual output.
  8108. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8109. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8110. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8111. lt_cv_prog_compiler_rtti_exceptions=yes
  8112. fi
  8113. fi
  8114. $RM conftest*
  8115. fi
  8116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8117. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8118. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8119. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8120. else
  8121. :
  8122. fi
  8123. fi
  8124. lt_prog_compiler_wl=
  8125. lt_prog_compiler_pic=
  8126. lt_prog_compiler_static=
  8127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8128. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8129. if test "$GCC" = yes; then
  8130. lt_prog_compiler_wl='-Wl,'
  8131. lt_prog_compiler_static='-static'
  8132. case $host_os in
  8133. aix*)
  8134. # All AIX code is PIC.
  8135. if test "$host_cpu" = ia64; then
  8136. # AIX 5 now supports IA64 processor
  8137. lt_prog_compiler_static='-Bstatic'
  8138. fi
  8139. lt_prog_compiler_pic='-fPIC'
  8140. ;;
  8141. amigaos*)
  8142. case $host_cpu in
  8143. powerpc)
  8144. # see comment about AmigaOS4 .so support
  8145. lt_prog_compiler_pic='-fPIC'
  8146. ;;
  8147. m68k)
  8148. # FIXME: we need at least 68020 code to build shared libraries, but
  8149. # adding the `-m68020' flag to GCC prevents building anything better,
  8150. # like `-m68040'.
  8151. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8152. ;;
  8153. esac
  8154. ;;
  8155. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8156. # PIC is the default for these OSes.
  8157. ;;
  8158. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8159. # This hack is so that the source file can tell whether it is being
  8160. # built for inclusion in a dll (and should export symbols for example).
  8161. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8162. # (--disable-auto-import) libraries
  8163. lt_prog_compiler_pic='-DDLL_EXPORT'
  8164. ;;
  8165. darwin* | rhapsody*)
  8166. # PIC is the default on this platform
  8167. # Common symbols not allowed in MH_DYLIB files
  8168. lt_prog_compiler_pic='-fno-common'
  8169. ;;
  8170. haiku*)
  8171. # PIC is the default for Haiku.
  8172. # The "-static" flag exists, but is broken.
  8173. lt_prog_compiler_static=
  8174. ;;
  8175. hpux*)
  8176. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8177. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8178. # sets the default TLS model and affects inlining.
  8179. case $host_cpu in
  8180. hppa*64*)
  8181. # +Z the default
  8182. ;;
  8183. *)
  8184. lt_prog_compiler_pic='-fPIC'
  8185. ;;
  8186. esac
  8187. ;;
  8188. interix[3-9]*)
  8189. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8190. # Instead, we relocate shared libraries at runtime.
  8191. ;;
  8192. msdosdjgpp*)
  8193. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8194. # on systems that don't support them.
  8195. lt_prog_compiler_can_build_shared=no
  8196. enable_shared=no
  8197. ;;
  8198. *nto* | *qnx*)
  8199. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8200. # it will coredump.
  8201. lt_prog_compiler_pic='-fPIC -shared'
  8202. ;;
  8203. sysv4*MP*)
  8204. if test -d /usr/nec; then
  8205. lt_prog_compiler_pic=-Kconform_pic
  8206. fi
  8207. ;;
  8208. *)
  8209. lt_prog_compiler_pic='-fPIC'
  8210. ;;
  8211. esac
  8212. case $cc_basename in
  8213. nvcc*) # Cuda Compiler Driver 2.2
  8214. lt_prog_compiler_wl='-Xlinker '
  8215. lt_prog_compiler_pic='-Xcompiler -fPIC'
  8216. ;;
  8217. esac
  8218. else
  8219. # PORTME Check for flag to pass linker flags through the system compiler.
  8220. case $host_os in
  8221. aix*)
  8222. lt_prog_compiler_wl='-Wl,'
  8223. if test "$host_cpu" = ia64; then
  8224. # AIX 5 now supports IA64 processor
  8225. lt_prog_compiler_static='-Bstatic'
  8226. else
  8227. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8228. fi
  8229. ;;
  8230. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8231. # This hack is so that the source file can tell whether it is being
  8232. # built for inclusion in a dll (and should export symbols for example).
  8233. lt_prog_compiler_pic='-DDLL_EXPORT'
  8234. ;;
  8235. hpux9* | hpux10* | hpux11*)
  8236. lt_prog_compiler_wl='-Wl,'
  8237. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8238. # not for PA HP-UX.
  8239. case $host_cpu in
  8240. hppa*64*|ia64*)
  8241. # +Z the default
  8242. ;;
  8243. *)
  8244. lt_prog_compiler_pic='+Z'
  8245. ;;
  8246. esac
  8247. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8248. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8249. ;;
  8250. irix5* | irix6* | nonstopux*)
  8251. lt_prog_compiler_wl='-Wl,'
  8252. # PIC (with -KPIC) is the default.
  8253. lt_prog_compiler_static='-non_shared'
  8254. ;;
  8255. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8256. case $cc_basename in
  8257. # old Intel for x86_64 which still supported -KPIC.
  8258. ecc*)
  8259. lt_prog_compiler_wl='-Wl,'
  8260. lt_prog_compiler_pic='-KPIC'
  8261. lt_prog_compiler_static='-static'
  8262. ;;
  8263. # icc used to be incompatible with GCC.
  8264. # ICC 10 doesn't accept -KPIC any more.
  8265. icc* | ifort*)
  8266. lt_prog_compiler_wl='-Wl,'
  8267. lt_prog_compiler_pic='-fPIC'
  8268. lt_prog_compiler_static='-static'
  8269. ;;
  8270. # Lahey Fortran 8.1.
  8271. lf95*)
  8272. lt_prog_compiler_wl='-Wl,'
  8273. lt_prog_compiler_pic='--shared'
  8274. lt_prog_compiler_static='--static'
  8275. ;;
  8276. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8277. # Portland Group compilers (*not* the Pentium gcc compiler,
  8278. # which looks to be a dead project)
  8279. lt_prog_compiler_wl='-Wl,'
  8280. lt_prog_compiler_pic='-fpic'
  8281. lt_prog_compiler_static='-Bstatic'
  8282. ;;
  8283. ccc*)
  8284. lt_prog_compiler_wl='-Wl,'
  8285. # All Alpha code is PIC.
  8286. lt_prog_compiler_static='-non_shared'
  8287. ;;
  8288. xl* | bgxl* | bgf* | mpixl*)
  8289. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8290. lt_prog_compiler_wl='-Wl,'
  8291. lt_prog_compiler_pic='-qpic'
  8292. lt_prog_compiler_static='-qstaticlink'
  8293. ;;
  8294. *)
  8295. case `$CC -V 2>&1 | sed 5q` in
  8296. *Sun\ F* | *Sun*Fortran*)
  8297. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8298. lt_prog_compiler_pic='-KPIC'
  8299. lt_prog_compiler_static='-Bstatic'
  8300. lt_prog_compiler_wl=''
  8301. ;;
  8302. *Sun\ C*)
  8303. # Sun C 5.9
  8304. lt_prog_compiler_pic='-KPIC'
  8305. lt_prog_compiler_static='-Bstatic'
  8306. lt_prog_compiler_wl='-Wl,'
  8307. ;;
  8308. esac
  8309. ;;
  8310. esac
  8311. ;;
  8312. newsos6)
  8313. lt_prog_compiler_pic='-KPIC'
  8314. lt_prog_compiler_static='-Bstatic'
  8315. ;;
  8316. *nto* | *qnx*)
  8317. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8318. # it will coredump.
  8319. lt_prog_compiler_pic='-fPIC -shared'
  8320. ;;
  8321. osf3* | osf4* | osf5*)
  8322. lt_prog_compiler_wl='-Wl,'
  8323. # All OSF/1 code is PIC.
  8324. lt_prog_compiler_static='-non_shared'
  8325. ;;
  8326. rdos*)
  8327. lt_prog_compiler_static='-non_shared'
  8328. ;;
  8329. solaris*)
  8330. lt_prog_compiler_pic='-KPIC'
  8331. lt_prog_compiler_static='-Bstatic'
  8332. case $cc_basename in
  8333. f77* | f90* | f95*)
  8334. lt_prog_compiler_wl='-Qoption ld ';;
  8335. *)
  8336. lt_prog_compiler_wl='-Wl,';;
  8337. esac
  8338. ;;
  8339. sunos4*)
  8340. lt_prog_compiler_wl='-Qoption ld '
  8341. lt_prog_compiler_pic='-PIC'
  8342. lt_prog_compiler_static='-Bstatic'
  8343. ;;
  8344. sysv4 | sysv4.2uw2* | sysv4.3*)
  8345. lt_prog_compiler_wl='-Wl,'
  8346. lt_prog_compiler_pic='-KPIC'
  8347. lt_prog_compiler_static='-Bstatic'
  8348. ;;
  8349. sysv4*MP*)
  8350. if test -d /usr/nec ;then
  8351. lt_prog_compiler_pic='-Kconform_pic'
  8352. lt_prog_compiler_static='-Bstatic'
  8353. fi
  8354. ;;
  8355. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8356. lt_prog_compiler_wl='-Wl,'
  8357. lt_prog_compiler_pic='-KPIC'
  8358. lt_prog_compiler_static='-Bstatic'
  8359. ;;
  8360. unicos*)
  8361. lt_prog_compiler_wl='-Wl,'
  8362. lt_prog_compiler_can_build_shared=no
  8363. ;;
  8364. uts4*)
  8365. lt_prog_compiler_pic='-pic'
  8366. lt_prog_compiler_static='-Bstatic'
  8367. ;;
  8368. *)
  8369. lt_prog_compiler_can_build_shared=no
  8370. ;;
  8371. esac
  8372. fi
  8373. case $host_os in
  8374. # For platforms which do not support PIC, -DPIC is meaningless:
  8375. *djgpp*)
  8376. lt_prog_compiler_pic=
  8377. ;;
  8378. *)
  8379. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8380. ;;
  8381. esac
  8382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8383. $as_echo "$lt_prog_compiler_pic" >&6; }
  8384. #
  8385. # Check to make sure the PIC flag actually works.
  8386. #
  8387. if test -n "$lt_prog_compiler_pic"; then
  8388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8389. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8390. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8391. $as_echo_n "(cached) " >&6
  8392. else
  8393. lt_cv_prog_compiler_pic_works=no
  8394. ac_outfile=conftest.$ac_objext
  8395. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8396. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8397. # Insert the option either (1) after the last *FLAGS variable, or
  8398. # (2) before a word containing "conftest.", or (3) at the end.
  8399. # Note that $ac_compile itself does not contain backslashes and begins
  8400. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8401. # The option is referenced via a variable to avoid confusing sed.
  8402. lt_compile=`echo "$ac_compile" | $SED \
  8403. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8404. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8405. -e 's:$: $lt_compiler_flag:'`
  8406. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8407. (eval "$lt_compile" 2>conftest.err)
  8408. ac_status=$?
  8409. cat conftest.err >&5
  8410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8411. if (exit $ac_status) && test -s "$ac_outfile"; then
  8412. # The compiler can only warn and ignore the option if not recognized
  8413. # So say no if there are warnings other than the usual output.
  8414. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8415. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8416. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8417. lt_cv_prog_compiler_pic_works=yes
  8418. fi
  8419. fi
  8420. $RM conftest*
  8421. fi
  8422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8423. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8424. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8425. case $lt_prog_compiler_pic in
  8426. "" | " "*) ;;
  8427. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8428. esac
  8429. else
  8430. lt_prog_compiler_pic=
  8431. lt_prog_compiler_can_build_shared=no
  8432. fi
  8433. fi
  8434. #
  8435. # Check to make sure the static flag actually works.
  8436. #
  8437. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8439. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8440. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8441. $as_echo_n "(cached) " >&6
  8442. else
  8443. lt_cv_prog_compiler_static_works=no
  8444. save_LDFLAGS="$LDFLAGS"
  8445. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8446. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8447. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8448. # The linker can only warn and ignore the option if not recognized
  8449. # So say no if there are warnings
  8450. if test -s conftest.err; then
  8451. # Append any errors to the config.log.
  8452. cat conftest.err 1>&5
  8453. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8454. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8455. if diff conftest.exp conftest.er2 >/dev/null; then
  8456. lt_cv_prog_compiler_static_works=yes
  8457. fi
  8458. else
  8459. lt_cv_prog_compiler_static_works=yes
  8460. fi
  8461. fi
  8462. $RM -r conftest*
  8463. LDFLAGS="$save_LDFLAGS"
  8464. fi
  8465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8466. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8467. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8468. :
  8469. else
  8470. lt_prog_compiler_static=
  8471. fi
  8472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8473. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8474. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8475. $as_echo_n "(cached) " >&6
  8476. else
  8477. lt_cv_prog_compiler_c_o=no
  8478. $RM -r conftest 2>/dev/null
  8479. mkdir conftest
  8480. cd conftest
  8481. mkdir out
  8482. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8483. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8484. # Insert the option either (1) after the last *FLAGS variable, or
  8485. # (2) before a word containing "conftest.", or (3) at the end.
  8486. # Note that $ac_compile itself does not contain backslashes and begins
  8487. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8488. lt_compile=`echo "$ac_compile" | $SED \
  8489. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8490. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8491. -e 's:$: $lt_compiler_flag:'`
  8492. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8493. (eval "$lt_compile" 2>out/conftest.err)
  8494. ac_status=$?
  8495. cat out/conftest.err >&5
  8496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8497. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8498. then
  8499. # The compiler can only warn and ignore the option if not recognized
  8500. # So say no if there are warnings
  8501. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8502. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8503. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8504. lt_cv_prog_compiler_c_o=yes
  8505. fi
  8506. fi
  8507. chmod u+w . 2>&5
  8508. $RM conftest*
  8509. # SGI C++ compiler will create directory out/ii_files/ for
  8510. # template instantiation
  8511. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8512. $RM out/* && rmdir out
  8513. cd ..
  8514. $RM -r conftest
  8515. $RM conftest*
  8516. fi
  8517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8518. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8520. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8521. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8522. $as_echo_n "(cached) " >&6
  8523. else
  8524. lt_cv_prog_compiler_c_o=no
  8525. $RM -r conftest 2>/dev/null
  8526. mkdir conftest
  8527. cd conftest
  8528. mkdir out
  8529. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8530. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8531. # Insert the option either (1) after the last *FLAGS variable, or
  8532. # (2) before a word containing "conftest.", or (3) at the end.
  8533. # Note that $ac_compile itself does not contain backslashes and begins
  8534. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8535. lt_compile=`echo "$ac_compile" | $SED \
  8536. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8537. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8538. -e 's:$: $lt_compiler_flag:'`
  8539. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8540. (eval "$lt_compile" 2>out/conftest.err)
  8541. ac_status=$?
  8542. cat out/conftest.err >&5
  8543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8544. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8545. then
  8546. # The compiler can only warn and ignore the option if not recognized
  8547. # So say no if there are warnings
  8548. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8549. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8550. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8551. lt_cv_prog_compiler_c_o=yes
  8552. fi
  8553. fi
  8554. chmod u+w . 2>&5
  8555. $RM conftest*
  8556. # SGI C++ compiler will create directory out/ii_files/ for
  8557. # template instantiation
  8558. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8559. $RM out/* && rmdir out
  8560. cd ..
  8561. $RM -r conftest
  8562. $RM conftest*
  8563. fi
  8564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8565. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8566. hard_links="nottested"
  8567. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8568. # do not overwrite the value of need_locks provided by the user
  8569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8570. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8571. hard_links=yes
  8572. $RM conftest*
  8573. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8574. touch conftest.a
  8575. ln conftest.a conftest.b 2>&5 || hard_links=no
  8576. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8578. $as_echo "$hard_links" >&6; }
  8579. if test "$hard_links" = no; then
  8580. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8581. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8582. need_locks=warn
  8583. fi
  8584. else
  8585. need_locks=no
  8586. fi
  8587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8588. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8589. runpath_var=
  8590. allow_undefined_flag=
  8591. always_export_symbols=no
  8592. archive_cmds=
  8593. archive_expsym_cmds=
  8594. compiler_needs_object=no
  8595. enable_shared_with_static_runtimes=no
  8596. export_dynamic_flag_spec=
  8597. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8598. hardcode_automatic=no
  8599. hardcode_direct=no
  8600. hardcode_direct_absolute=no
  8601. hardcode_libdir_flag_spec=
  8602. hardcode_libdir_flag_spec_ld=
  8603. hardcode_libdir_separator=
  8604. hardcode_minus_L=no
  8605. hardcode_shlibpath_var=unsupported
  8606. inherit_rpath=no
  8607. link_all_deplibs=unknown
  8608. module_cmds=
  8609. module_expsym_cmds=
  8610. old_archive_from_new_cmds=
  8611. old_archive_from_expsyms_cmds=
  8612. thread_safe_flag_spec=
  8613. whole_archive_flag_spec=
  8614. # include_expsyms should be a list of space-separated symbols to be *always*
  8615. # included in the symbol list
  8616. include_expsyms=
  8617. # exclude_expsyms can be an extended regexp of symbols to exclude
  8618. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8619. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8620. # as well as any symbol that contains `d'.
  8621. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8622. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8623. # platforms (ab)use it in PIC code, but their linkers get confused if
  8624. # the symbol is explicitly referenced. Since portable code cannot
  8625. # rely on this symbol name, it's probably fine to never include it in
  8626. # preloaded symbol tables.
  8627. # Exclude shared library initialization/finalization symbols.
  8628. extract_expsyms_cmds=
  8629. case $host_os in
  8630. cygwin* | mingw* | pw32* | cegcc*)
  8631. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8632. # When not using gcc, we currently assume that we are using
  8633. # Microsoft Visual C++.
  8634. if test "$GCC" != yes; then
  8635. with_gnu_ld=no
  8636. fi
  8637. ;;
  8638. interix*)
  8639. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8640. with_gnu_ld=yes
  8641. ;;
  8642. openbsd*)
  8643. with_gnu_ld=no
  8644. ;;
  8645. esac
  8646. ld_shlibs=yes
  8647. # On some targets, GNU ld is compatible enough with the native linker
  8648. # that we're better off using the native interface for both.
  8649. lt_use_gnu_ld_interface=no
  8650. if test "$with_gnu_ld" = yes; then
  8651. case $host_os in
  8652. aix*)
  8653. # The AIX port of GNU ld has always aspired to compatibility
  8654. # with the native linker. However, as the warning in the GNU ld
  8655. # block says, versions before 2.19.5* couldn't really create working
  8656. # shared libraries, regardless of the interface used.
  8657. case `$LD -v 2>&1` in
  8658. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8659. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8660. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8661. *)
  8662. lt_use_gnu_ld_interface=yes
  8663. ;;
  8664. esac
  8665. ;;
  8666. *)
  8667. lt_use_gnu_ld_interface=yes
  8668. ;;
  8669. esac
  8670. fi
  8671. if test "$lt_use_gnu_ld_interface" = yes; then
  8672. # If archive_cmds runs LD, not CC, wlarc should be empty
  8673. wlarc='${wl}'
  8674. # Set some defaults for GNU ld with shared library support. These
  8675. # are reset later if shared libraries are not supported. Putting them
  8676. # here allows them to be overridden if necessary.
  8677. runpath_var=LD_RUN_PATH
  8678. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8679. export_dynamic_flag_spec='${wl}--export-dynamic'
  8680. # ancient GNU ld didn't support --whole-archive et. al.
  8681. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8682. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8683. else
  8684. whole_archive_flag_spec=
  8685. fi
  8686. supports_anon_versioning=no
  8687. case `$LD -v 2>&1` in
  8688. *GNU\ gold*) supports_anon_versioning=yes ;;
  8689. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8690. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8691. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8692. *\ 2.11.*) ;; # other 2.11 versions
  8693. *) supports_anon_versioning=yes ;;
  8694. esac
  8695. # See if GNU ld supports shared libraries.
  8696. case $host_os in
  8697. aix[3-9]*)
  8698. # On AIX/PPC, the GNU linker is very broken
  8699. if test "$host_cpu" != ia64; then
  8700. ld_shlibs=no
  8701. cat <<_LT_EOF 1>&2
  8702. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8703. *** to be unable to reliably create shared libraries on AIX.
  8704. *** Therefore, libtool is disabling shared libraries support. If you
  8705. *** really care for shared libraries, you may want to install binutils
  8706. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8707. *** You will then need to restart the configuration process.
  8708. _LT_EOF
  8709. fi
  8710. ;;
  8711. amigaos*)
  8712. case $host_cpu in
  8713. powerpc)
  8714. # see comment about AmigaOS4 .so support
  8715. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8716. archive_expsym_cmds=''
  8717. ;;
  8718. m68k)
  8719. 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)'
  8720. hardcode_libdir_flag_spec='-L$libdir'
  8721. hardcode_minus_L=yes
  8722. ;;
  8723. esac
  8724. ;;
  8725. beos*)
  8726. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8727. allow_undefined_flag=unsupported
  8728. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8729. # support --undefined. This deserves some investigation. FIXME
  8730. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8731. else
  8732. ld_shlibs=no
  8733. fi
  8734. ;;
  8735. cygwin* | mingw* | pw32* | cegcc*)
  8736. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8737. # as there is no search path for DLLs.
  8738. hardcode_libdir_flag_spec='-L$libdir'
  8739. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8740. allow_undefined_flag=unsupported
  8741. always_export_symbols=no
  8742. enable_shared_with_static_runtimes=yes
  8743. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8744. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8745. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8746. # If the export-symbols file already is a .def file (1st line
  8747. # is EXPORTS), use it as is; otherwise, prepend...
  8748. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8749. cp $export_symbols $output_objdir/$soname.def;
  8750. else
  8751. echo EXPORTS > $output_objdir/$soname.def;
  8752. cat $export_symbols >> $output_objdir/$soname.def;
  8753. fi~
  8754. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8755. else
  8756. ld_shlibs=no
  8757. fi
  8758. ;;
  8759. haiku*)
  8760. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8761. link_all_deplibs=yes
  8762. ;;
  8763. interix[3-9]*)
  8764. hardcode_direct=no
  8765. hardcode_shlibpath_var=no
  8766. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8767. export_dynamic_flag_spec='${wl}-E'
  8768. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8769. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8770. # default) and relocated if they conflict, which is a slow very memory
  8771. # consuming and fragmenting process. To avoid this, we pick a random,
  8772. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8773. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8774. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8775. 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'
  8776. ;;
  8777. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  8778. tmp_diet=no
  8779. if test "$host_os" = linux-dietlibc; then
  8780. case $cc_basename in
  8781. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8782. esac
  8783. fi
  8784. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8785. && test "$tmp_diet" = no
  8786. then
  8787. tmp_addflag=' $pic_flag'
  8788. tmp_sharedflag='-shared'
  8789. case $cc_basename,$host_cpu in
  8790. pgcc*) # Portland Group C compiler
  8791. 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'
  8792. tmp_addflag=' $pic_flag'
  8793. ;;
  8794. pgf77* | pgf90* | pgf95* | pgfortran*)
  8795. # Portland Group f77 and f90 compilers
  8796. 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'
  8797. tmp_addflag=' $pic_flag -Mnomain' ;;
  8798. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8799. tmp_addflag=' -i_dynamic' ;;
  8800. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8801. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8802. ifc* | ifort*) # Intel Fortran compiler
  8803. tmp_addflag=' -nofor_main' ;;
  8804. lf95*) # Lahey Fortran 8.1
  8805. whole_archive_flag_spec=
  8806. tmp_sharedflag='--shared' ;;
  8807. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8808. tmp_sharedflag='-qmkshrobj'
  8809. tmp_addflag= ;;
  8810. nvcc*) # Cuda Compiler Driver 2.2
  8811. 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'
  8812. compiler_needs_object=yes
  8813. ;;
  8814. esac
  8815. case `$CC -V 2>&1 | sed 5q` in
  8816. *Sun\ C*) # Sun C 5.9
  8817. 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'
  8818. compiler_needs_object=yes
  8819. tmp_sharedflag='-G' ;;
  8820. *Sun\ F*) # Sun Fortran 8.3
  8821. tmp_sharedflag='-G' ;;
  8822. esac
  8823. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8824. if test "x$supports_anon_versioning" = xyes; then
  8825. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8826. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8827. echo "local: *; };" >> $output_objdir/$libname.ver~
  8828. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8829. fi
  8830. case $cc_basename in
  8831. xlf* | bgf* | bgxlf* | mpixlf*)
  8832. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8833. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8834. hardcode_libdir_flag_spec=
  8835. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8836. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8837. if test "x$supports_anon_versioning" = xyes; then
  8838. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8839. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8840. echo "local: *; };" >> $output_objdir/$libname.ver~
  8841. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8842. fi
  8843. ;;
  8844. esac
  8845. else
  8846. ld_shlibs=no
  8847. fi
  8848. ;;
  8849. netbsd*)
  8850. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8851. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8852. wlarc=
  8853. else
  8854. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8855. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8856. fi
  8857. ;;
  8858. solaris*)
  8859. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8860. ld_shlibs=no
  8861. cat <<_LT_EOF 1>&2
  8862. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8863. *** create shared libraries on Solaris systems. Therefore, libtool
  8864. *** is disabling shared libraries support. We urge you to upgrade GNU
  8865. *** binutils to release 2.9.1 or newer. Another option is to modify
  8866. *** your PATH or compiler configuration so that the native linker is
  8867. *** used, and then restart.
  8868. _LT_EOF
  8869. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8870. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8871. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8872. else
  8873. ld_shlibs=no
  8874. fi
  8875. ;;
  8876. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8877. case `$LD -v 2>&1` in
  8878. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8879. ld_shlibs=no
  8880. cat <<_LT_EOF 1>&2
  8881. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8882. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8883. *** is disabling shared libraries support. We urge you to upgrade GNU
  8884. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8885. *** your PATH or compiler configuration so that the native linker is
  8886. *** used, and then restart.
  8887. _LT_EOF
  8888. ;;
  8889. *)
  8890. # For security reasons, it is highly recommended that you always
  8891. # use absolute paths for naming shared libraries, and exclude the
  8892. # DT_RUNPATH tag from executables and libraries. But doing so
  8893. # requires that you compile everything twice, which is a pain.
  8894. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8895. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8896. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8897. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8898. else
  8899. ld_shlibs=no
  8900. fi
  8901. ;;
  8902. esac
  8903. ;;
  8904. sunos4*)
  8905. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8906. wlarc=
  8907. hardcode_direct=yes
  8908. hardcode_shlibpath_var=no
  8909. ;;
  8910. *)
  8911. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8912. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8913. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8914. else
  8915. ld_shlibs=no
  8916. fi
  8917. ;;
  8918. esac
  8919. if test "$ld_shlibs" = no; then
  8920. runpath_var=
  8921. hardcode_libdir_flag_spec=
  8922. export_dynamic_flag_spec=
  8923. whole_archive_flag_spec=
  8924. fi
  8925. else
  8926. # PORTME fill in a description of your system's linker (not GNU ld)
  8927. case $host_os in
  8928. aix3*)
  8929. allow_undefined_flag=unsupported
  8930. always_export_symbols=yes
  8931. 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'
  8932. # Note: this linker hardcodes the directories in LIBPATH if there
  8933. # are no directories specified by -L.
  8934. hardcode_minus_L=yes
  8935. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8936. # Neither direct hardcoding nor static linking is supported with a
  8937. # broken collect2.
  8938. hardcode_direct=unsupported
  8939. fi
  8940. ;;
  8941. aix[4-9]*)
  8942. if test "$host_cpu" = ia64; then
  8943. # On IA64, the linker does run time linking by default, so we don't
  8944. # have to do anything special.
  8945. aix_use_runtimelinking=no
  8946. exp_sym_flag='-Bexport'
  8947. no_entry_flag=""
  8948. else
  8949. # If we're using GNU nm, then we don't want the "-C" option.
  8950. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8951. # Also, AIX nm treats weak defined symbols like other global
  8952. # defined symbols, whereas GNU nm marks them as "W".
  8953. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8954. 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'
  8955. else
  8956. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8957. fi
  8958. aix_use_runtimelinking=no
  8959. # Test if we are trying to use run time linking or normal
  8960. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8961. # need to do runtime linking.
  8962. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8963. for ld_flag in $LDFLAGS; do
  8964. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8965. aix_use_runtimelinking=yes
  8966. break
  8967. fi
  8968. done
  8969. ;;
  8970. esac
  8971. exp_sym_flag='-bexport'
  8972. no_entry_flag='-bnoentry'
  8973. fi
  8974. # When large executables or shared objects are built, AIX ld can
  8975. # have problems creating the table of contents. If linking a library
  8976. # or program results in "error TOC overflow" add -mminimal-toc to
  8977. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8978. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8979. archive_cmds=''
  8980. hardcode_direct=yes
  8981. hardcode_direct_absolute=yes
  8982. hardcode_libdir_separator=':'
  8983. link_all_deplibs=yes
  8984. file_list_spec='${wl}-f,'
  8985. if test "$GCC" = yes; then
  8986. case $host_os in aix4.[012]|aix4.[012].*)
  8987. # We only want to do this on AIX 4.2 and lower, the check
  8988. # below for broken collect2 doesn't work under 4.3+
  8989. collect2name=`${CC} -print-prog-name=collect2`
  8990. if test -f "$collect2name" &&
  8991. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8992. then
  8993. # We have reworked collect2
  8994. :
  8995. else
  8996. # We have old collect2
  8997. hardcode_direct=unsupported
  8998. # It fails to find uninstalled libraries when the uninstalled
  8999. # path is not listed in the libpath. Setting hardcode_minus_L
  9000. # to unsupported forces relinking
  9001. hardcode_minus_L=yes
  9002. hardcode_libdir_flag_spec='-L$libdir'
  9003. hardcode_libdir_separator=
  9004. fi
  9005. ;;
  9006. esac
  9007. shared_flag='-shared'
  9008. if test "$aix_use_runtimelinking" = yes; then
  9009. shared_flag="$shared_flag "'${wl}-G'
  9010. fi
  9011. else
  9012. # not using gcc
  9013. if test "$host_cpu" = ia64; then
  9014. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9015. # chokes on -Wl,-G. The following line is correct:
  9016. shared_flag='-G'
  9017. else
  9018. if test "$aix_use_runtimelinking" = yes; then
  9019. shared_flag='${wl}-G'
  9020. else
  9021. shared_flag='${wl}-bM:SRE'
  9022. fi
  9023. fi
  9024. fi
  9025. export_dynamic_flag_spec='${wl}-bexpall'
  9026. # It seems that -bexpall does not export symbols beginning with
  9027. # underscore (_), so it is better to generate a list of symbols to export.
  9028. always_export_symbols=yes
  9029. if test "$aix_use_runtimelinking" = yes; then
  9030. # Warning - without using the other runtime loading flags (-brtl),
  9031. # -berok will link without error, but may produce a broken library.
  9032. allow_undefined_flag='-berok'
  9033. # Determine the default libpath from the value encoded in an
  9034. # empty executable.
  9035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9036. /* end confdefs.h. */
  9037. int
  9038. main ()
  9039. {
  9040. ;
  9041. return 0;
  9042. }
  9043. _ACEOF
  9044. if ac_fn_c_try_link "$LINENO"; then :
  9045. lt_aix_libpath_sed='
  9046. /Import File Strings/,/^$/ {
  9047. /^0/ {
  9048. s/^0 *\(.*\)$/\1/
  9049. p
  9050. }
  9051. }'
  9052. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9053. # Check for a 64-bit object if we didn't find anything.
  9054. if test -z "$aix_libpath"; then
  9055. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9056. fi
  9057. fi
  9058. rm -f core conftest.err conftest.$ac_objext \
  9059. conftest$ac_exeext conftest.$ac_ext
  9060. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9061. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9062. 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"
  9063. else
  9064. if test "$host_cpu" = ia64; then
  9065. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9066. allow_undefined_flag="-z nodefs"
  9067. 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"
  9068. else
  9069. # Determine the default libpath from the value encoded in an
  9070. # empty executable.
  9071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9072. /* end confdefs.h. */
  9073. int
  9074. main ()
  9075. {
  9076. ;
  9077. return 0;
  9078. }
  9079. _ACEOF
  9080. if ac_fn_c_try_link "$LINENO"; then :
  9081. lt_aix_libpath_sed='
  9082. /Import File Strings/,/^$/ {
  9083. /^0/ {
  9084. s/^0 *\(.*\)$/\1/
  9085. p
  9086. }
  9087. }'
  9088. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9089. # Check for a 64-bit object if we didn't find anything.
  9090. if test -z "$aix_libpath"; then
  9091. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9092. fi
  9093. fi
  9094. rm -f core conftest.err conftest.$ac_objext \
  9095. conftest$ac_exeext conftest.$ac_ext
  9096. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9097. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9098. # Warning - without using the other run time loading flags,
  9099. # -berok will link without error, but may produce a broken library.
  9100. no_undefined_flag=' ${wl}-bernotok'
  9101. allow_undefined_flag=' ${wl}-berok'
  9102. if test "$with_gnu_ld" = yes; then
  9103. # We only use this code for GNU lds that support --whole-archive.
  9104. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9105. else
  9106. # Exported symbols can be pulled into shared objects from archives
  9107. whole_archive_flag_spec='$convenience'
  9108. fi
  9109. archive_cmds_need_lc=yes
  9110. # This is similar to how AIX traditionally builds its shared libraries.
  9111. 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'
  9112. fi
  9113. fi
  9114. ;;
  9115. amigaos*)
  9116. case $host_cpu in
  9117. powerpc)
  9118. # see comment about AmigaOS4 .so support
  9119. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9120. archive_expsym_cmds=''
  9121. ;;
  9122. m68k)
  9123. 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)'
  9124. hardcode_libdir_flag_spec='-L$libdir'
  9125. hardcode_minus_L=yes
  9126. ;;
  9127. esac
  9128. ;;
  9129. bsdi[45]*)
  9130. export_dynamic_flag_spec=-rdynamic
  9131. ;;
  9132. cygwin* | mingw* | pw32* | cegcc*)
  9133. # When not using gcc, we currently assume that we are using
  9134. # Microsoft Visual C++.
  9135. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9136. # no search path for DLLs.
  9137. hardcode_libdir_flag_spec=' '
  9138. allow_undefined_flag=unsupported
  9139. # Tell ltmain to make .lib files, not .a files.
  9140. libext=lib
  9141. # Tell ltmain to make .dll files, not .so files.
  9142. shrext_cmds=".dll"
  9143. # FIXME: Setting linknames here is a bad hack.
  9144. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9145. # The linker will automatically build a .lib file if we build a DLL.
  9146. old_archive_from_new_cmds='true'
  9147. # FIXME: Should let the user specify the lib program.
  9148. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9149. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9150. enable_shared_with_static_runtimes=yes
  9151. ;;
  9152. darwin* | rhapsody*)
  9153. archive_cmds_need_lc=no
  9154. hardcode_direct=no
  9155. hardcode_automatic=yes
  9156. hardcode_shlibpath_var=unsupported
  9157. if test "$lt_cv_ld_force_load" = "yes"; then
  9158. 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\"`'
  9159. else
  9160. whole_archive_flag_spec=''
  9161. fi
  9162. link_all_deplibs=yes
  9163. allow_undefined_flag="$_lt_dar_allow_undefined"
  9164. case $cc_basename in
  9165. ifort*) _lt_dar_can_shared=yes ;;
  9166. *) _lt_dar_can_shared=$GCC ;;
  9167. esac
  9168. if test "$_lt_dar_can_shared" = "yes"; then
  9169. output_verbose_link_cmd=func_echo_all
  9170. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9171. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9172. 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}"
  9173. 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}"
  9174. else
  9175. ld_shlibs=no
  9176. fi
  9177. ;;
  9178. dgux*)
  9179. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9180. hardcode_libdir_flag_spec='-L$libdir'
  9181. hardcode_shlibpath_var=no
  9182. ;;
  9183. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9184. # support. Future versions do this automatically, but an explicit c++rt0.o
  9185. # does not break anything, and helps significantly (at the cost of a little
  9186. # extra space).
  9187. freebsd2.2*)
  9188. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9189. hardcode_libdir_flag_spec='-R$libdir'
  9190. hardcode_direct=yes
  9191. hardcode_shlibpath_var=no
  9192. ;;
  9193. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9194. freebsd2.*)
  9195. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9196. hardcode_direct=yes
  9197. hardcode_minus_L=yes
  9198. hardcode_shlibpath_var=no
  9199. ;;
  9200. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9201. freebsd* | dragonfly*)
  9202. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9203. hardcode_libdir_flag_spec='-R$libdir'
  9204. hardcode_direct=yes
  9205. hardcode_shlibpath_var=no
  9206. ;;
  9207. hpux9*)
  9208. if test "$GCC" = yes; then
  9209. 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'
  9210. else
  9211. 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'
  9212. fi
  9213. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9214. hardcode_libdir_separator=:
  9215. hardcode_direct=yes
  9216. # hardcode_minus_L: Not really in the search PATH,
  9217. # but as the default location of the library.
  9218. hardcode_minus_L=yes
  9219. export_dynamic_flag_spec='${wl}-E'
  9220. ;;
  9221. hpux10*)
  9222. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9223. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9224. else
  9225. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9226. fi
  9227. if test "$with_gnu_ld" = no; then
  9228. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9229. hardcode_libdir_flag_spec_ld='+b $libdir'
  9230. hardcode_libdir_separator=:
  9231. hardcode_direct=yes
  9232. hardcode_direct_absolute=yes
  9233. export_dynamic_flag_spec='${wl}-E'
  9234. # hardcode_minus_L: Not really in the search PATH,
  9235. # but as the default location of the library.
  9236. hardcode_minus_L=yes
  9237. fi
  9238. ;;
  9239. hpux11*)
  9240. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9241. case $host_cpu in
  9242. hppa*64*)
  9243. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9244. ;;
  9245. ia64*)
  9246. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9247. ;;
  9248. *)
  9249. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9250. ;;
  9251. esac
  9252. else
  9253. case $host_cpu in
  9254. hppa*64*)
  9255. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9256. ;;
  9257. ia64*)
  9258. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9259. ;;
  9260. *)
  9261. # Older versions of the 11.00 compiler do not understand -b yet
  9262. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9264. $as_echo_n "checking if $CC understands -b... " >&6; }
  9265. if ${lt_cv_prog_compiler__b+:} false; then :
  9266. $as_echo_n "(cached) " >&6
  9267. else
  9268. lt_cv_prog_compiler__b=no
  9269. save_LDFLAGS="$LDFLAGS"
  9270. LDFLAGS="$LDFLAGS -b"
  9271. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9272. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9273. # The linker can only warn and ignore the option if not recognized
  9274. # So say no if there are warnings
  9275. if test -s conftest.err; then
  9276. # Append any errors to the config.log.
  9277. cat conftest.err 1>&5
  9278. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9279. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9280. if diff conftest.exp conftest.er2 >/dev/null; then
  9281. lt_cv_prog_compiler__b=yes
  9282. fi
  9283. else
  9284. lt_cv_prog_compiler__b=yes
  9285. fi
  9286. fi
  9287. $RM -r conftest*
  9288. LDFLAGS="$save_LDFLAGS"
  9289. fi
  9290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9291. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9292. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9293. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9294. else
  9295. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9296. fi
  9297. ;;
  9298. esac
  9299. fi
  9300. if test "$with_gnu_ld" = no; then
  9301. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9302. hardcode_libdir_separator=:
  9303. case $host_cpu in
  9304. hppa*64*|ia64*)
  9305. hardcode_direct=no
  9306. hardcode_shlibpath_var=no
  9307. ;;
  9308. *)
  9309. hardcode_direct=yes
  9310. hardcode_direct_absolute=yes
  9311. export_dynamic_flag_spec='${wl}-E'
  9312. # hardcode_minus_L: Not really in the search PATH,
  9313. # but as the default location of the library.
  9314. hardcode_minus_L=yes
  9315. ;;
  9316. esac
  9317. fi
  9318. ;;
  9319. irix5* | irix6* | nonstopux*)
  9320. if test "$GCC" = yes; then
  9321. 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'
  9322. # Try to use the -exported_symbol ld option, if it does not
  9323. # work, assume that -exports_file does not work either and
  9324. # implicitly export all symbols.
  9325. save_LDFLAGS="$LDFLAGS"
  9326. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9328. /* end confdefs.h. */
  9329. int foo(void) {}
  9330. _ACEOF
  9331. if ac_fn_c_try_link "$LINENO"; then :
  9332. 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'
  9333. fi
  9334. rm -f core conftest.err conftest.$ac_objext \
  9335. conftest$ac_exeext conftest.$ac_ext
  9336. LDFLAGS="$save_LDFLAGS"
  9337. else
  9338. 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'
  9339. 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'
  9340. fi
  9341. archive_cmds_need_lc='no'
  9342. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9343. hardcode_libdir_separator=:
  9344. inherit_rpath=yes
  9345. link_all_deplibs=yes
  9346. ;;
  9347. netbsd*)
  9348. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9349. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9350. else
  9351. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9352. fi
  9353. hardcode_libdir_flag_spec='-R$libdir'
  9354. hardcode_direct=yes
  9355. hardcode_shlibpath_var=no
  9356. ;;
  9357. newsos6)
  9358. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9359. hardcode_direct=yes
  9360. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9361. hardcode_libdir_separator=:
  9362. hardcode_shlibpath_var=no
  9363. ;;
  9364. *nto* | *qnx*)
  9365. ;;
  9366. openbsd*)
  9367. if test -f /usr/libexec/ld.so; then
  9368. hardcode_direct=yes
  9369. hardcode_shlibpath_var=no
  9370. hardcode_direct_absolute=yes
  9371. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9372. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9373. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9374. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9375. export_dynamic_flag_spec='${wl}-E'
  9376. else
  9377. case $host_os in
  9378. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9379. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9380. hardcode_libdir_flag_spec='-R$libdir'
  9381. ;;
  9382. *)
  9383. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9384. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9385. ;;
  9386. esac
  9387. fi
  9388. else
  9389. ld_shlibs=no
  9390. fi
  9391. ;;
  9392. os2*)
  9393. hardcode_libdir_flag_spec='-L$libdir'
  9394. hardcode_minus_L=yes
  9395. allow_undefined_flag=unsupported
  9396. 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'
  9397. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9398. ;;
  9399. osf3*)
  9400. if test "$GCC" = yes; then
  9401. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9402. 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'
  9403. else
  9404. allow_undefined_flag=' -expect_unresolved \*'
  9405. 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'
  9406. fi
  9407. archive_cmds_need_lc='no'
  9408. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9409. hardcode_libdir_separator=:
  9410. ;;
  9411. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9412. if test "$GCC" = yes; then
  9413. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9414. 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'
  9415. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9416. else
  9417. allow_undefined_flag=' -expect_unresolved \*'
  9418. 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'
  9419. 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~
  9420. $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'
  9421. # Both c and cxx compiler support -rpath directly
  9422. hardcode_libdir_flag_spec='-rpath $libdir'
  9423. fi
  9424. archive_cmds_need_lc='no'
  9425. hardcode_libdir_separator=:
  9426. ;;
  9427. solaris*)
  9428. no_undefined_flag=' -z defs'
  9429. if test "$GCC" = yes; then
  9430. wlarc='${wl}'
  9431. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9432. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9433. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9434. else
  9435. case `$CC -V 2>&1` in
  9436. *"Compilers 5.0"*)
  9437. wlarc=''
  9438. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9439. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9440. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9441. ;;
  9442. *)
  9443. wlarc='${wl}'
  9444. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9445. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9446. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9447. ;;
  9448. esac
  9449. fi
  9450. hardcode_libdir_flag_spec='-R$libdir'
  9451. hardcode_shlibpath_var=no
  9452. case $host_os in
  9453. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9454. *)
  9455. # The compiler driver will combine and reorder linker options,
  9456. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9457. # but is careful enough not to reorder.
  9458. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9459. if test "$GCC" = yes; then
  9460. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9461. else
  9462. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9463. fi
  9464. ;;
  9465. esac
  9466. link_all_deplibs=yes
  9467. ;;
  9468. sunos4*)
  9469. if test "x$host_vendor" = xsequent; then
  9470. # Use $CC to link under sequent, because it throws in some extra .o
  9471. # files that make .init and .fini sections work.
  9472. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9473. else
  9474. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9475. fi
  9476. hardcode_libdir_flag_spec='-L$libdir'
  9477. hardcode_direct=yes
  9478. hardcode_minus_L=yes
  9479. hardcode_shlibpath_var=no
  9480. ;;
  9481. sysv4)
  9482. case $host_vendor in
  9483. sni)
  9484. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9485. hardcode_direct=yes # is this really true???
  9486. ;;
  9487. siemens)
  9488. ## LD is ld it makes a PLAMLIB
  9489. ## CC just makes a GrossModule.
  9490. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9491. reload_cmds='$CC -r -o $output$reload_objs'
  9492. hardcode_direct=no
  9493. ;;
  9494. motorola)
  9495. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9496. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9497. ;;
  9498. esac
  9499. runpath_var='LD_RUN_PATH'
  9500. hardcode_shlibpath_var=no
  9501. ;;
  9502. sysv4.3*)
  9503. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9504. hardcode_shlibpath_var=no
  9505. export_dynamic_flag_spec='-Bexport'
  9506. ;;
  9507. sysv4*MP*)
  9508. if test -d /usr/nec; then
  9509. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9510. hardcode_shlibpath_var=no
  9511. runpath_var=LD_RUN_PATH
  9512. hardcode_runpath_var=yes
  9513. ld_shlibs=yes
  9514. fi
  9515. ;;
  9516. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9517. no_undefined_flag='${wl}-z,text'
  9518. archive_cmds_need_lc=no
  9519. hardcode_shlibpath_var=no
  9520. runpath_var='LD_RUN_PATH'
  9521. if test "$GCC" = yes; then
  9522. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9523. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9524. else
  9525. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9526. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9527. fi
  9528. ;;
  9529. sysv5* | sco3.2v5* | sco5v6*)
  9530. # Note: We can NOT use -z defs as we might desire, because we do not
  9531. # link with -lc, and that would cause any symbols used from libc to
  9532. # always be unresolved, which means just about no library would
  9533. # ever link correctly. If we're not using GNU ld we use -z text
  9534. # though, which does catch some bad symbols but isn't as heavy-handed
  9535. # as -z defs.
  9536. no_undefined_flag='${wl}-z,text'
  9537. allow_undefined_flag='${wl}-z,nodefs'
  9538. archive_cmds_need_lc=no
  9539. hardcode_shlibpath_var=no
  9540. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9541. hardcode_libdir_separator=':'
  9542. link_all_deplibs=yes
  9543. export_dynamic_flag_spec='${wl}-Bexport'
  9544. runpath_var='LD_RUN_PATH'
  9545. if test "$GCC" = yes; then
  9546. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9547. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9548. else
  9549. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9550. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9551. fi
  9552. ;;
  9553. uts4*)
  9554. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9555. hardcode_libdir_flag_spec='-L$libdir'
  9556. hardcode_shlibpath_var=no
  9557. ;;
  9558. *)
  9559. ld_shlibs=no
  9560. ;;
  9561. esac
  9562. if test x$host_vendor = xsni; then
  9563. case $host in
  9564. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9565. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9566. ;;
  9567. esac
  9568. fi
  9569. fi
  9570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9571. $as_echo "$ld_shlibs" >&6; }
  9572. test "$ld_shlibs" = no && can_build_shared=no
  9573. with_gnu_ld=$with_gnu_ld
  9574. #
  9575. # Do we need to explicitly link libc?
  9576. #
  9577. case "x$archive_cmds_need_lc" in
  9578. x|xyes)
  9579. # Assume -lc should be added
  9580. archive_cmds_need_lc=yes
  9581. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9582. case $archive_cmds in
  9583. *'~'*)
  9584. # FIXME: we may have to deal with multi-command sequences.
  9585. ;;
  9586. '$CC '*)
  9587. # Test whether the compiler implicitly links with -lc since on some
  9588. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9589. # to ld, don't add -lc before -lgcc.
  9590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9591. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9592. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9593. $as_echo_n "(cached) " >&6
  9594. else
  9595. $RM conftest*
  9596. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9597. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9598. (eval $ac_compile) 2>&5
  9599. ac_status=$?
  9600. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9601. test $ac_status = 0; } 2>conftest.err; then
  9602. soname=conftest
  9603. lib=conftest
  9604. libobjs=conftest.$ac_objext
  9605. deplibs=
  9606. wl=$lt_prog_compiler_wl
  9607. pic_flag=$lt_prog_compiler_pic
  9608. compiler_flags=-v
  9609. linker_flags=-v
  9610. verstring=
  9611. output_objdir=.
  9612. libname=conftest
  9613. lt_save_allow_undefined_flag=$allow_undefined_flag
  9614. allow_undefined_flag=
  9615. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9616. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9617. ac_status=$?
  9618. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9619. test $ac_status = 0; }
  9620. then
  9621. lt_cv_archive_cmds_need_lc=no
  9622. else
  9623. lt_cv_archive_cmds_need_lc=yes
  9624. fi
  9625. allow_undefined_flag=$lt_save_allow_undefined_flag
  9626. else
  9627. cat conftest.err 1>&5
  9628. fi
  9629. $RM conftest*
  9630. fi
  9631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9632. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9633. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9634. ;;
  9635. esac
  9636. fi
  9637. ;;
  9638. esac
  9639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9640. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9641. if test "$GCC" = yes; then
  9642. case $host_os in
  9643. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9644. *) lt_awk_arg="/^libraries:/" ;;
  9645. esac
  9646. case $host_os in
  9647. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9648. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9649. esac
  9650. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9651. case $lt_search_path_spec in
  9652. *\;*)
  9653. # if the path contains ";" then we assume it to be the separator
  9654. # otherwise default to the standard path separator (i.e. ":") - it is
  9655. # assumed that no part of a normal pathname contains ";" but that should
  9656. # okay in the real world where ";" in dirpaths is itself problematic.
  9657. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9658. ;;
  9659. *)
  9660. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9661. ;;
  9662. esac
  9663. # Ok, now we have the path, separated by spaces, we can step through it
  9664. # and add multilib dir if necessary.
  9665. lt_tmp_lt_search_path_spec=
  9666. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9667. for lt_sys_path in $lt_search_path_spec; do
  9668. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9669. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9670. else
  9671. test -d "$lt_sys_path" && \
  9672. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9673. fi
  9674. done
  9675. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9676. BEGIN {RS=" "; FS="/|\n";} {
  9677. lt_foo="";
  9678. lt_count=0;
  9679. for (lt_i = NF; lt_i > 0; lt_i--) {
  9680. if ($lt_i != "" && $lt_i != ".") {
  9681. if ($lt_i == "..") {
  9682. lt_count++;
  9683. } else {
  9684. if (lt_count == 0) {
  9685. lt_foo="/" $lt_i lt_foo;
  9686. } else {
  9687. lt_count--;
  9688. }
  9689. }
  9690. }
  9691. }
  9692. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9693. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9694. }'`
  9695. # AWK program above erroneously prepends '/' to C:/dos/paths
  9696. # for these hosts.
  9697. case $host_os in
  9698. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9699. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9700. esac
  9701. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9702. else
  9703. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9704. fi
  9705. library_names_spec=
  9706. libname_spec='lib$name'
  9707. soname_spec=
  9708. shrext_cmds=".so"
  9709. postinstall_cmds=
  9710. postuninstall_cmds=
  9711. finish_cmds=
  9712. finish_eval=
  9713. shlibpath_var=
  9714. shlibpath_overrides_runpath=unknown
  9715. version_type=none
  9716. dynamic_linker="$host_os ld.so"
  9717. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9718. need_lib_prefix=unknown
  9719. hardcode_into_libs=no
  9720. # when you set need_version to no, make sure it does not cause -set_version
  9721. # flags to be left without arguments
  9722. need_version=unknown
  9723. case $host_os in
  9724. aix3*)
  9725. version_type=linux
  9726. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9727. shlibpath_var=LIBPATH
  9728. # AIX 3 has no versioning support, so we append a major version to the name.
  9729. soname_spec='${libname}${release}${shared_ext}$major'
  9730. ;;
  9731. aix[4-9]*)
  9732. version_type=linux
  9733. need_lib_prefix=no
  9734. need_version=no
  9735. hardcode_into_libs=yes
  9736. if test "$host_cpu" = ia64; then
  9737. # AIX 5 supports IA64
  9738. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9739. shlibpath_var=LD_LIBRARY_PATH
  9740. else
  9741. # With GCC up to 2.95.x, collect2 would create an import file
  9742. # for dependence libraries. The import file would start with
  9743. # the line `#! .'. This would cause the generated library to
  9744. # depend on `.', always an invalid library. This was fixed in
  9745. # development snapshots of GCC prior to 3.0.
  9746. case $host_os in
  9747. aix4 | aix4.[01] | aix4.[01].*)
  9748. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9749. echo ' yes '
  9750. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9751. :
  9752. else
  9753. can_build_shared=no
  9754. fi
  9755. ;;
  9756. esac
  9757. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9758. # soname into executable. Probably we can add versioning support to
  9759. # collect2, so additional links can be useful in future.
  9760. if test "$aix_use_runtimelinking" = yes; then
  9761. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9762. # instead of lib<name>.a to let people know that these are not
  9763. # typical AIX shared libraries.
  9764. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9765. else
  9766. # We preserve .a as extension for shared libraries through AIX4.2
  9767. # and later when we are not doing run time linking.
  9768. library_names_spec='${libname}${release}.a $libname.a'
  9769. soname_spec='${libname}${release}${shared_ext}$major'
  9770. fi
  9771. shlibpath_var=LIBPATH
  9772. fi
  9773. ;;
  9774. amigaos*)
  9775. case $host_cpu in
  9776. powerpc)
  9777. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9778. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9779. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9780. ;;
  9781. m68k)
  9782. library_names_spec='$libname.ixlibrary $libname.a'
  9783. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9784. 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'
  9785. ;;
  9786. esac
  9787. ;;
  9788. beos*)
  9789. library_names_spec='${libname}${shared_ext}'
  9790. dynamic_linker="$host_os ld.so"
  9791. shlibpath_var=LIBRARY_PATH
  9792. ;;
  9793. bsdi[45]*)
  9794. version_type=linux
  9795. need_version=no
  9796. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9797. soname_spec='${libname}${release}${shared_ext}$major'
  9798. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9799. shlibpath_var=LD_LIBRARY_PATH
  9800. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9801. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9802. # the default ld.so.conf also contains /usr/contrib/lib and
  9803. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9804. # libtool to hard-code these into programs
  9805. ;;
  9806. cygwin* | mingw* | pw32* | cegcc*)
  9807. version_type=windows
  9808. shrext_cmds=".dll"
  9809. need_version=no
  9810. need_lib_prefix=no
  9811. case $GCC,$host_os in
  9812. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9813. library_names_spec='$libname.dll.a'
  9814. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9815. postinstall_cmds='base_file=`basename \${file}`~
  9816. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9817. dldir=$destdir/`dirname \$dlpath`~
  9818. test -d \$dldir || mkdir -p \$dldir~
  9819. $install_prog $dir/$dlname \$dldir/$dlname~
  9820. chmod a+x \$dldir/$dlname~
  9821. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9822. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9823. fi'
  9824. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9825. dlpath=$dir/\$dldll~
  9826. $RM \$dlpath'
  9827. shlibpath_overrides_runpath=yes
  9828. case $host_os in
  9829. cygwin*)
  9830. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9831. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9832. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9833. ;;
  9834. mingw* | cegcc*)
  9835. # MinGW DLLs use traditional 'lib' prefix
  9836. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9837. ;;
  9838. pw32*)
  9839. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9840. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9841. ;;
  9842. esac
  9843. ;;
  9844. *)
  9845. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9846. ;;
  9847. esac
  9848. dynamic_linker='Win32 ld.exe'
  9849. # FIXME: first we should search . and the directory the executable is in
  9850. shlibpath_var=PATH
  9851. ;;
  9852. darwin* | rhapsody*)
  9853. dynamic_linker="$host_os dyld"
  9854. version_type=darwin
  9855. need_lib_prefix=no
  9856. need_version=no
  9857. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9858. soname_spec='${libname}${release}${major}$shared_ext'
  9859. shlibpath_overrides_runpath=yes
  9860. shlibpath_var=DYLD_LIBRARY_PATH
  9861. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9862. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9863. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9864. ;;
  9865. dgux*)
  9866. version_type=linux
  9867. need_lib_prefix=no
  9868. need_version=no
  9869. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9870. soname_spec='${libname}${release}${shared_ext}$major'
  9871. shlibpath_var=LD_LIBRARY_PATH
  9872. ;;
  9873. freebsd* | dragonfly*)
  9874. # DragonFly does not have aout. When/if they implement a new
  9875. # versioning mechanism, adjust this.
  9876. if test -x /usr/bin/objformat; then
  9877. objformat=`/usr/bin/objformat`
  9878. else
  9879. case $host_os in
  9880. freebsd[23].*) objformat=aout ;;
  9881. *) objformat=elf ;;
  9882. esac
  9883. fi
  9884. version_type=freebsd-$objformat
  9885. case $version_type in
  9886. freebsd-elf*)
  9887. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9888. need_version=no
  9889. need_lib_prefix=no
  9890. ;;
  9891. freebsd-*)
  9892. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9893. need_version=yes
  9894. ;;
  9895. esac
  9896. shlibpath_var=LD_LIBRARY_PATH
  9897. case $host_os in
  9898. freebsd2.*)
  9899. shlibpath_overrides_runpath=yes
  9900. ;;
  9901. freebsd3.[01]* | freebsdelf3.[01]*)
  9902. shlibpath_overrides_runpath=yes
  9903. hardcode_into_libs=yes
  9904. ;;
  9905. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9906. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9907. shlibpath_overrides_runpath=no
  9908. hardcode_into_libs=yes
  9909. ;;
  9910. *) # from 4.6 on, and DragonFly
  9911. shlibpath_overrides_runpath=yes
  9912. hardcode_into_libs=yes
  9913. ;;
  9914. esac
  9915. ;;
  9916. haiku*)
  9917. version_type=linux
  9918. need_lib_prefix=no
  9919. need_version=no
  9920. dynamic_linker="$host_os runtime_loader"
  9921. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9922. soname_spec='${libname}${release}${shared_ext}$major'
  9923. shlibpath_var=LIBRARY_PATH
  9924. shlibpath_overrides_runpath=yes
  9925. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9926. hardcode_into_libs=yes
  9927. ;;
  9928. hpux9* | hpux10* | hpux11*)
  9929. # Give a soname corresponding to the major version so that dld.sl refuses to
  9930. # link against other versions.
  9931. version_type=sunos
  9932. need_lib_prefix=no
  9933. need_version=no
  9934. case $host_cpu in
  9935. ia64*)
  9936. shrext_cmds='.so'
  9937. hardcode_into_libs=yes
  9938. dynamic_linker="$host_os dld.so"
  9939. shlibpath_var=LD_LIBRARY_PATH
  9940. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9942. soname_spec='${libname}${release}${shared_ext}$major'
  9943. if test "X$HPUX_IA64_MODE" = X32; then
  9944. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9945. else
  9946. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9947. fi
  9948. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9949. ;;
  9950. hppa*64*)
  9951. shrext_cmds='.sl'
  9952. hardcode_into_libs=yes
  9953. dynamic_linker="$host_os dld.sl"
  9954. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9955. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9957. soname_spec='${libname}${release}${shared_ext}$major'
  9958. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9959. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9960. ;;
  9961. *)
  9962. shrext_cmds='.sl'
  9963. dynamic_linker="$host_os dld.sl"
  9964. shlibpath_var=SHLIB_PATH
  9965. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9967. soname_spec='${libname}${release}${shared_ext}$major'
  9968. ;;
  9969. esac
  9970. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9971. postinstall_cmds='chmod 555 $lib'
  9972. # or fails outright, so override atomically:
  9973. install_override_mode=555
  9974. ;;
  9975. interix[3-9]*)
  9976. version_type=linux
  9977. need_lib_prefix=no
  9978. need_version=no
  9979. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9980. soname_spec='${libname}${release}${shared_ext}$major'
  9981. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9982. shlibpath_var=LD_LIBRARY_PATH
  9983. shlibpath_overrides_runpath=no
  9984. hardcode_into_libs=yes
  9985. ;;
  9986. irix5* | irix6* | nonstopux*)
  9987. case $host_os in
  9988. nonstopux*) version_type=nonstopux ;;
  9989. *)
  9990. if test "$lt_cv_prog_gnu_ld" = yes; then
  9991. version_type=linux
  9992. else
  9993. version_type=irix
  9994. fi ;;
  9995. esac
  9996. need_lib_prefix=no
  9997. need_version=no
  9998. soname_spec='${libname}${release}${shared_ext}$major'
  9999. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10000. case $host_os in
  10001. irix5* | nonstopux*)
  10002. libsuff= shlibsuff=
  10003. ;;
  10004. *)
  10005. case $LD in # libtool.m4 will add one of these switches to LD
  10006. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10007. libsuff= shlibsuff= libmagic=32-bit;;
  10008. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10009. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10010. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10011. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10012. *) libsuff= shlibsuff= libmagic=never-match;;
  10013. esac
  10014. ;;
  10015. esac
  10016. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10017. shlibpath_overrides_runpath=no
  10018. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10019. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10020. hardcode_into_libs=yes
  10021. ;;
  10022. # No shared lib support for Linux oldld, aout, or coff.
  10023. linux*oldld* | linux*aout* | linux*coff*)
  10024. dynamic_linker=no
  10025. ;;
  10026. # This must be Linux ELF.
  10027. # uclinux* changes (here and below) have been submitted to the libtool
  10028. # project, but have not yet been accepted: they are GCC-local changes
  10029. # for the time being. (See
  10030. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  10031. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  10032. version_type=linux
  10033. need_lib_prefix=no
  10034. need_version=no
  10035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10036. soname_spec='${libname}${release}${shared_ext}$major'
  10037. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10038. shlibpath_var=LD_LIBRARY_PATH
  10039. shlibpath_overrides_runpath=no
  10040. # Some binutils ld are patched to set DT_RUNPATH
  10041. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10042. $as_echo_n "(cached) " >&6
  10043. else
  10044. lt_cv_shlibpath_overrides_runpath=no
  10045. save_LDFLAGS=$LDFLAGS
  10046. save_libdir=$libdir
  10047. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10048. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10050. /* end confdefs.h. */
  10051. int
  10052. main ()
  10053. {
  10054. ;
  10055. return 0;
  10056. }
  10057. _ACEOF
  10058. if ac_fn_c_try_link "$LINENO"; then :
  10059. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10060. lt_cv_shlibpath_overrides_runpath=yes
  10061. fi
  10062. fi
  10063. rm -f core conftest.err conftest.$ac_objext \
  10064. conftest$ac_exeext conftest.$ac_ext
  10065. LDFLAGS=$save_LDFLAGS
  10066. libdir=$save_libdir
  10067. fi
  10068. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10069. # This implies no fast_install, which is unacceptable.
  10070. # Some rework will be needed to allow for fast_install
  10071. # before this can be enabled.
  10072. hardcode_into_libs=yes
  10073. # Append ld.so.conf contents to the search path
  10074. if test -f /etc/ld.so.conf; then
  10075. 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' ' '`
  10076. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10077. fi
  10078. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10079. # powerpc, because MkLinux only supported shared libraries with the
  10080. # GNU dynamic linker. Since this was broken with cross compilers,
  10081. # most powerpc-linux boxes support dynamic linking these days and
  10082. # people can always --disable-shared, the test was removed, and we
  10083. # assume the GNU/Linux dynamic linker is in use.
  10084. dynamic_linker='GNU/Linux ld.so'
  10085. ;;
  10086. netbsd*)
  10087. version_type=sunos
  10088. need_lib_prefix=no
  10089. need_version=no
  10090. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10092. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10093. dynamic_linker='NetBSD (a.out) ld.so'
  10094. else
  10095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10096. soname_spec='${libname}${release}${shared_ext}$major'
  10097. dynamic_linker='NetBSD ld.elf_so'
  10098. fi
  10099. shlibpath_var=LD_LIBRARY_PATH
  10100. shlibpath_overrides_runpath=yes
  10101. hardcode_into_libs=yes
  10102. ;;
  10103. newsos6)
  10104. version_type=linux
  10105. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10106. shlibpath_var=LD_LIBRARY_PATH
  10107. shlibpath_overrides_runpath=yes
  10108. ;;
  10109. *nto* | *qnx*)
  10110. version_type=qnx
  10111. need_lib_prefix=no
  10112. need_version=no
  10113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10114. soname_spec='${libname}${release}${shared_ext}$major'
  10115. shlibpath_var=LD_LIBRARY_PATH
  10116. shlibpath_overrides_runpath=no
  10117. hardcode_into_libs=yes
  10118. dynamic_linker='ldqnx.so'
  10119. ;;
  10120. openbsd*)
  10121. version_type=sunos
  10122. sys_lib_dlsearch_path_spec="/usr/lib"
  10123. need_lib_prefix=no
  10124. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10125. case $host_os in
  10126. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10127. *) need_version=no ;;
  10128. esac
  10129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10130. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10131. shlibpath_var=LD_LIBRARY_PATH
  10132. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10133. case $host_os in
  10134. openbsd2.[89] | openbsd2.[89].*)
  10135. shlibpath_overrides_runpath=no
  10136. ;;
  10137. *)
  10138. shlibpath_overrides_runpath=yes
  10139. ;;
  10140. esac
  10141. else
  10142. shlibpath_overrides_runpath=yes
  10143. fi
  10144. ;;
  10145. os2*)
  10146. libname_spec='$name'
  10147. shrext_cmds=".dll"
  10148. need_lib_prefix=no
  10149. library_names_spec='$libname${shared_ext} $libname.a'
  10150. dynamic_linker='OS/2 ld.exe'
  10151. shlibpath_var=LIBPATH
  10152. ;;
  10153. osf3* | osf4* | osf5*)
  10154. version_type=osf
  10155. need_lib_prefix=no
  10156. need_version=no
  10157. soname_spec='${libname}${release}${shared_ext}$major'
  10158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10159. shlibpath_var=LD_LIBRARY_PATH
  10160. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10161. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10162. ;;
  10163. rdos*)
  10164. dynamic_linker=no
  10165. ;;
  10166. solaris*)
  10167. version_type=linux
  10168. need_lib_prefix=no
  10169. need_version=no
  10170. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10171. soname_spec='${libname}${release}${shared_ext}$major'
  10172. shlibpath_var=LD_LIBRARY_PATH
  10173. shlibpath_overrides_runpath=yes
  10174. hardcode_into_libs=yes
  10175. # ldd complains unless libraries are executable
  10176. postinstall_cmds='chmod +x $lib'
  10177. ;;
  10178. sunos4*)
  10179. version_type=sunos
  10180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10181. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10182. shlibpath_var=LD_LIBRARY_PATH
  10183. shlibpath_overrides_runpath=yes
  10184. if test "$with_gnu_ld" = yes; then
  10185. need_lib_prefix=no
  10186. fi
  10187. need_version=yes
  10188. ;;
  10189. sysv4 | sysv4.3*)
  10190. version_type=linux
  10191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10192. soname_spec='${libname}${release}${shared_ext}$major'
  10193. shlibpath_var=LD_LIBRARY_PATH
  10194. case $host_vendor in
  10195. sni)
  10196. shlibpath_overrides_runpath=no
  10197. need_lib_prefix=no
  10198. runpath_var=LD_RUN_PATH
  10199. ;;
  10200. siemens)
  10201. need_lib_prefix=no
  10202. ;;
  10203. motorola)
  10204. need_lib_prefix=no
  10205. need_version=no
  10206. shlibpath_overrides_runpath=no
  10207. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10208. ;;
  10209. esac
  10210. ;;
  10211. sysv4*MP*)
  10212. if test -d /usr/nec ;then
  10213. version_type=linux
  10214. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10215. soname_spec='$libname${shared_ext}.$major'
  10216. shlibpath_var=LD_LIBRARY_PATH
  10217. fi
  10218. ;;
  10219. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10220. version_type=freebsd-elf
  10221. need_lib_prefix=no
  10222. need_version=no
  10223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10224. soname_spec='${libname}${release}${shared_ext}$major'
  10225. shlibpath_var=LD_LIBRARY_PATH
  10226. shlibpath_overrides_runpath=yes
  10227. hardcode_into_libs=yes
  10228. if test "$with_gnu_ld" = yes; then
  10229. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10230. else
  10231. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10232. case $host_os in
  10233. sco3.2v5*)
  10234. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10235. ;;
  10236. esac
  10237. fi
  10238. sys_lib_dlsearch_path_spec='/usr/lib'
  10239. ;;
  10240. tpf*)
  10241. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10242. version_type=linux
  10243. need_lib_prefix=no
  10244. need_version=no
  10245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10246. shlibpath_var=LD_LIBRARY_PATH
  10247. shlibpath_overrides_runpath=no
  10248. hardcode_into_libs=yes
  10249. ;;
  10250. uts4*)
  10251. version_type=linux
  10252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10253. soname_spec='${libname}${release}${shared_ext}$major'
  10254. shlibpath_var=LD_LIBRARY_PATH
  10255. ;;
  10256. *)
  10257. dynamic_linker=no
  10258. ;;
  10259. esac
  10260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10261. $as_echo "$dynamic_linker" >&6; }
  10262. test "$dynamic_linker" = no && can_build_shared=no
  10263. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10264. if test "$GCC" = yes; then
  10265. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10266. fi
  10267. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10268. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10269. fi
  10270. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10271. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10272. fi
  10273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10274. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10275. hardcode_action=
  10276. if test -n "$hardcode_libdir_flag_spec" ||
  10277. test -n "$runpath_var" ||
  10278. test "X$hardcode_automatic" = "Xyes" ; then
  10279. # We can hardcode non-existent directories.
  10280. if test "$hardcode_direct" != no &&
  10281. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10282. # have to relink, otherwise we might link with an installed library
  10283. # when we should be linking with a yet-to-be-installed one
  10284. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10285. test "$hardcode_minus_L" != no; then
  10286. # Linking always hardcodes the temporary library directory.
  10287. hardcode_action=relink
  10288. else
  10289. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10290. hardcode_action=immediate
  10291. fi
  10292. else
  10293. # We cannot hardcode anything, or else we can only hardcode existing
  10294. # directories.
  10295. hardcode_action=unsupported
  10296. fi
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10298. $as_echo "$hardcode_action" >&6; }
  10299. if test "$hardcode_action" = relink ||
  10300. test "$inherit_rpath" = yes; then
  10301. # Fast installation is not supported
  10302. enable_fast_install=no
  10303. elif test "$shlibpath_overrides_runpath" = yes ||
  10304. test "$enable_shared" = no; then
  10305. # Fast installation is not necessary
  10306. enable_fast_install=needless
  10307. fi
  10308. if test "x$enable_dlopen" != xyes; then
  10309. enable_dlopen=unknown
  10310. enable_dlopen_self=unknown
  10311. enable_dlopen_self_static=unknown
  10312. else
  10313. lt_cv_dlopen=no
  10314. lt_cv_dlopen_libs=
  10315. case $host_os in
  10316. beos*)
  10317. lt_cv_dlopen="load_add_on"
  10318. lt_cv_dlopen_libs=
  10319. lt_cv_dlopen_self=yes
  10320. ;;
  10321. mingw* | pw32* | cegcc*)
  10322. lt_cv_dlopen="LoadLibrary"
  10323. lt_cv_dlopen_libs=
  10324. ;;
  10325. cygwin*)
  10326. lt_cv_dlopen="dlopen"
  10327. lt_cv_dlopen_libs=
  10328. ;;
  10329. darwin*)
  10330. # if libdl is installed we need to link against it
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10332. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10333. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10334. $as_echo_n "(cached) " >&6
  10335. else
  10336. ac_check_lib_save_LIBS=$LIBS
  10337. LIBS="-ldl $LIBS"
  10338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10339. /* end confdefs.h. */
  10340. /* Override any GCC internal prototype to avoid an error.
  10341. Use char because int might match the return type of a GCC
  10342. builtin and then its argument prototype would still apply. */
  10343. #ifdef __cplusplus
  10344. extern "C"
  10345. #endif
  10346. char dlopen ();
  10347. int
  10348. main ()
  10349. {
  10350. return dlopen ();
  10351. ;
  10352. return 0;
  10353. }
  10354. _ACEOF
  10355. if ac_fn_c_try_link "$LINENO"; then :
  10356. ac_cv_lib_dl_dlopen=yes
  10357. else
  10358. ac_cv_lib_dl_dlopen=no
  10359. fi
  10360. rm -f core conftest.err conftest.$ac_objext \
  10361. conftest$ac_exeext conftest.$ac_ext
  10362. LIBS=$ac_check_lib_save_LIBS
  10363. fi
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10365. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10366. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10367. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10368. else
  10369. lt_cv_dlopen="dyld"
  10370. lt_cv_dlopen_libs=
  10371. lt_cv_dlopen_self=yes
  10372. fi
  10373. ;;
  10374. *)
  10375. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10376. if test "x$ac_cv_func_shl_load" = xyes; then :
  10377. lt_cv_dlopen="shl_load"
  10378. else
  10379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10380. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10381. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10382. $as_echo_n "(cached) " >&6
  10383. else
  10384. ac_check_lib_save_LIBS=$LIBS
  10385. LIBS="-ldld $LIBS"
  10386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10387. /* end confdefs.h. */
  10388. /* Override any GCC internal prototype to avoid an error.
  10389. Use char because int might match the return type of a GCC
  10390. builtin and then its argument prototype would still apply. */
  10391. #ifdef __cplusplus
  10392. extern "C"
  10393. #endif
  10394. char shl_load ();
  10395. int
  10396. main ()
  10397. {
  10398. return shl_load ();
  10399. ;
  10400. return 0;
  10401. }
  10402. _ACEOF
  10403. if ac_fn_c_try_link "$LINENO"; then :
  10404. ac_cv_lib_dld_shl_load=yes
  10405. else
  10406. ac_cv_lib_dld_shl_load=no
  10407. fi
  10408. rm -f core conftest.err conftest.$ac_objext \
  10409. conftest$ac_exeext conftest.$ac_ext
  10410. LIBS=$ac_check_lib_save_LIBS
  10411. fi
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10413. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10414. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10415. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10416. else
  10417. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10418. if test "x$ac_cv_func_dlopen" = xyes; then :
  10419. lt_cv_dlopen="dlopen"
  10420. else
  10421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10422. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10423. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10424. $as_echo_n "(cached) " >&6
  10425. else
  10426. ac_check_lib_save_LIBS=$LIBS
  10427. LIBS="-ldl $LIBS"
  10428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10429. /* end confdefs.h. */
  10430. /* Override any GCC internal prototype to avoid an error.
  10431. Use char because int might match the return type of a GCC
  10432. builtin and then its argument prototype would still apply. */
  10433. #ifdef __cplusplus
  10434. extern "C"
  10435. #endif
  10436. char dlopen ();
  10437. int
  10438. main ()
  10439. {
  10440. return dlopen ();
  10441. ;
  10442. return 0;
  10443. }
  10444. _ACEOF
  10445. if ac_fn_c_try_link "$LINENO"; then :
  10446. ac_cv_lib_dl_dlopen=yes
  10447. else
  10448. ac_cv_lib_dl_dlopen=no
  10449. fi
  10450. rm -f core conftest.err conftest.$ac_objext \
  10451. conftest$ac_exeext conftest.$ac_ext
  10452. LIBS=$ac_check_lib_save_LIBS
  10453. fi
  10454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10455. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10456. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10457. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10458. else
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10460. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10461. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10462. $as_echo_n "(cached) " >&6
  10463. else
  10464. ac_check_lib_save_LIBS=$LIBS
  10465. LIBS="-lsvld $LIBS"
  10466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10467. /* end confdefs.h. */
  10468. /* Override any GCC internal prototype to avoid an error.
  10469. Use char because int might match the return type of a GCC
  10470. builtin and then its argument prototype would still apply. */
  10471. #ifdef __cplusplus
  10472. extern "C"
  10473. #endif
  10474. char dlopen ();
  10475. int
  10476. main ()
  10477. {
  10478. return dlopen ();
  10479. ;
  10480. return 0;
  10481. }
  10482. _ACEOF
  10483. if ac_fn_c_try_link "$LINENO"; then :
  10484. ac_cv_lib_svld_dlopen=yes
  10485. else
  10486. ac_cv_lib_svld_dlopen=no
  10487. fi
  10488. rm -f core conftest.err conftest.$ac_objext \
  10489. conftest$ac_exeext conftest.$ac_ext
  10490. LIBS=$ac_check_lib_save_LIBS
  10491. fi
  10492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10493. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10494. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10495. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10496. else
  10497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10498. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10499. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10500. $as_echo_n "(cached) " >&6
  10501. else
  10502. ac_check_lib_save_LIBS=$LIBS
  10503. LIBS="-ldld $LIBS"
  10504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10505. /* end confdefs.h. */
  10506. /* Override any GCC internal prototype to avoid an error.
  10507. Use char because int might match the return type of a GCC
  10508. builtin and then its argument prototype would still apply. */
  10509. #ifdef __cplusplus
  10510. extern "C"
  10511. #endif
  10512. char dld_link ();
  10513. int
  10514. main ()
  10515. {
  10516. return dld_link ();
  10517. ;
  10518. return 0;
  10519. }
  10520. _ACEOF
  10521. if ac_fn_c_try_link "$LINENO"; then :
  10522. ac_cv_lib_dld_dld_link=yes
  10523. else
  10524. ac_cv_lib_dld_dld_link=no
  10525. fi
  10526. rm -f core conftest.err conftest.$ac_objext \
  10527. conftest$ac_exeext conftest.$ac_ext
  10528. LIBS=$ac_check_lib_save_LIBS
  10529. fi
  10530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10531. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10532. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10533. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10534. fi
  10535. fi
  10536. fi
  10537. fi
  10538. fi
  10539. fi
  10540. ;;
  10541. esac
  10542. if test "x$lt_cv_dlopen" != xno; then
  10543. enable_dlopen=yes
  10544. else
  10545. enable_dlopen=no
  10546. fi
  10547. case $lt_cv_dlopen in
  10548. dlopen)
  10549. save_CPPFLAGS="$CPPFLAGS"
  10550. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10551. save_LDFLAGS="$LDFLAGS"
  10552. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10553. save_LIBS="$LIBS"
  10554. LIBS="$lt_cv_dlopen_libs $LIBS"
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10556. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10557. if ${lt_cv_dlopen_self+:} false; then :
  10558. $as_echo_n "(cached) " >&6
  10559. else
  10560. if test "$cross_compiling" = yes; then :
  10561. lt_cv_dlopen_self=cross
  10562. else
  10563. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10564. lt_status=$lt_dlunknown
  10565. cat > conftest.$ac_ext <<_LT_EOF
  10566. #line 12267 "configure"
  10567. #include "confdefs.h"
  10568. #if HAVE_DLFCN_H
  10569. #include <dlfcn.h>
  10570. #endif
  10571. #include <stdio.h>
  10572. #ifdef RTLD_GLOBAL
  10573. # define LT_DLGLOBAL RTLD_GLOBAL
  10574. #else
  10575. # ifdef DL_GLOBAL
  10576. # define LT_DLGLOBAL DL_GLOBAL
  10577. # else
  10578. # define LT_DLGLOBAL 0
  10579. # endif
  10580. #endif
  10581. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10582. find out it does not work in some platform. */
  10583. #ifndef LT_DLLAZY_OR_NOW
  10584. # ifdef RTLD_LAZY
  10585. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10586. # else
  10587. # ifdef DL_LAZY
  10588. # define LT_DLLAZY_OR_NOW DL_LAZY
  10589. # else
  10590. # ifdef RTLD_NOW
  10591. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10592. # else
  10593. # ifdef DL_NOW
  10594. # define LT_DLLAZY_OR_NOW DL_NOW
  10595. # else
  10596. # define LT_DLLAZY_OR_NOW 0
  10597. # endif
  10598. # endif
  10599. # endif
  10600. # endif
  10601. #endif
  10602. /* When -fvisbility=hidden is used, assume the code has been annotated
  10603. correspondingly for the symbols needed. */
  10604. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10605. void fnord () __attribute__((visibility("default")));
  10606. #endif
  10607. void fnord () { int i=42; }
  10608. int main ()
  10609. {
  10610. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10611. int status = $lt_dlunknown;
  10612. if (self)
  10613. {
  10614. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10615. else
  10616. {
  10617. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10618. else puts (dlerror ());
  10619. }
  10620. /* dlclose (self); */
  10621. }
  10622. else
  10623. puts (dlerror ());
  10624. return status;
  10625. }
  10626. _LT_EOF
  10627. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10628. (eval $ac_link) 2>&5
  10629. ac_status=$?
  10630. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10631. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10632. (./conftest; exit; ) >&5 2>/dev/null
  10633. lt_status=$?
  10634. case x$lt_status in
  10635. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10636. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10637. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10638. esac
  10639. else :
  10640. # compilation failed
  10641. lt_cv_dlopen_self=no
  10642. fi
  10643. fi
  10644. rm -fr conftest*
  10645. fi
  10646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10647. $as_echo "$lt_cv_dlopen_self" >&6; }
  10648. if test "x$lt_cv_dlopen_self" = xyes; then
  10649. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10651. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10652. if ${lt_cv_dlopen_self_static+:} false; then :
  10653. $as_echo_n "(cached) " >&6
  10654. else
  10655. if test "$cross_compiling" = yes; then :
  10656. lt_cv_dlopen_self_static=cross
  10657. else
  10658. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10659. lt_status=$lt_dlunknown
  10660. cat > conftest.$ac_ext <<_LT_EOF
  10661. #line 12373 "configure"
  10662. #include "confdefs.h"
  10663. #if HAVE_DLFCN_H
  10664. #include <dlfcn.h>
  10665. #endif
  10666. #include <stdio.h>
  10667. #ifdef RTLD_GLOBAL
  10668. # define LT_DLGLOBAL RTLD_GLOBAL
  10669. #else
  10670. # ifdef DL_GLOBAL
  10671. # define LT_DLGLOBAL DL_GLOBAL
  10672. # else
  10673. # define LT_DLGLOBAL 0
  10674. # endif
  10675. #endif
  10676. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10677. find out it does not work in some platform. */
  10678. #ifndef LT_DLLAZY_OR_NOW
  10679. # ifdef RTLD_LAZY
  10680. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10681. # else
  10682. # ifdef DL_LAZY
  10683. # define LT_DLLAZY_OR_NOW DL_LAZY
  10684. # else
  10685. # ifdef RTLD_NOW
  10686. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10687. # else
  10688. # ifdef DL_NOW
  10689. # define LT_DLLAZY_OR_NOW DL_NOW
  10690. # else
  10691. # define LT_DLLAZY_OR_NOW 0
  10692. # endif
  10693. # endif
  10694. # endif
  10695. # endif
  10696. #endif
  10697. /* When -fvisbility=hidden is used, assume the code has been annotated
  10698. correspondingly for the symbols needed. */
  10699. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10700. void fnord () __attribute__((visibility("default")));
  10701. #endif
  10702. void fnord () { int i=42; }
  10703. int main ()
  10704. {
  10705. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10706. int status = $lt_dlunknown;
  10707. if (self)
  10708. {
  10709. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10710. else
  10711. {
  10712. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10713. else puts (dlerror ());
  10714. }
  10715. /* dlclose (self); */
  10716. }
  10717. else
  10718. puts (dlerror ());
  10719. return status;
  10720. }
  10721. _LT_EOF
  10722. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10723. (eval $ac_link) 2>&5
  10724. ac_status=$?
  10725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10726. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10727. (./conftest; exit; ) >&5 2>/dev/null
  10728. lt_status=$?
  10729. case x$lt_status in
  10730. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10731. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10732. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10733. esac
  10734. else :
  10735. # compilation failed
  10736. lt_cv_dlopen_self_static=no
  10737. fi
  10738. fi
  10739. rm -fr conftest*
  10740. fi
  10741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10742. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10743. fi
  10744. CPPFLAGS="$save_CPPFLAGS"
  10745. LDFLAGS="$save_LDFLAGS"
  10746. LIBS="$save_LIBS"
  10747. ;;
  10748. esac
  10749. case $lt_cv_dlopen_self in
  10750. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10751. *) enable_dlopen_self=unknown ;;
  10752. esac
  10753. case $lt_cv_dlopen_self_static in
  10754. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10755. *) enable_dlopen_self_static=unknown ;;
  10756. esac
  10757. fi
  10758. striplib=
  10759. old_striplib=
  10760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10761. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10762. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10763. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10764. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10766. $as_echo "yes" >&6; }
  10767. else
  10768. # FIXME - insert some real tests, host_os isn't really good enough
  10769. case $host_os in
  10770. darwin*)
  10771. if test -n "$STRIP" ; then
  10772. striplib="$STRIP -x"
  10773. old_striplib="$STRIP -S"
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10775. $as_echo "yes" >&6; }
  10776. else
  10777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10778. $as_echo "no" >&6; }
  10779. fi
  10780. ;;
  10781. *)
  10782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10783. $as_echo "no" >&6; }
  10784. ;;
  10785. esac
  10786. fi
  10787. # Report which library types will actually be built
  10788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10789. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10791. $as_echo "$can_build_shared" >&6; }
  10792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10793. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10794. test "$can_build_shared" = "no" && enable_shared=no
  10795. # On AIX, shared libraries and static libraries use the same namespace, and
  10796. # are all built from PIC.
  10797. case $host_os in
  10798. aix3*)
  10799. test "$enable_shared" = yes && enable_static=no
  10800. if test -n "$RANLIB"; then
  10801. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10802. postinstall_cmds='$RANLIB $lib'
  10803. fi
  10804. ;;
  10805. aix[4-9]*)
  10806. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10807. test "$enable_shared" = yes && enable_static=no
  10808. fi
  10809. ;;
  10810. esac
  10811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10812. $as_echo "$enable_shared" >&6; }
  10813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10814. $as_echo_n "checking whether to build static libraries... " >&6; }
  10815. # Make sure either enable_shared or enable_static is yes.
  10816. test "$enable_shared" = yes || enable_static=yes
  10817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10818. $as_echo "$enable_static" >&6; }
  10819. fi
  10820. ac_ext=c
  10821. ac_cpp='$CPP $CPPFLAGS'
  10822. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10823. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10824. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10825. CC="$lt_save_CC"
  10826. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10827. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10828. (test "X$CXX" != "Xg++"))) ; then
  10829. ac_ext=cpp
  10830. ac_cpp='$CXXCPP $CPPFLAGS'
  10831. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10832. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10833. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10835. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10836. if test -z "$CXXCPP"; then
  10837. if ${ac_cv_prog_CXXCPP+:} false; then :
  10838. $as_echo_n "(cached) " >&6
  10839. else
  10840. # Double quotes because CXXCPP needs to be expanded
  10841. for CXXCPP in "$CXX -E" "/lib/cpp"
  10842. do
  10843. ac_preproc_ok=false
  10844. for ac_cxx_preproc_warn_flag in '' yes
  10845. do
  10846. # Use a header file that comes with gcc, so configuring glibc
  10847. # with a fresh cross-compiler works.
  10848. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10849. # <limits.h> exists even on freestanding compilers.
  10850. # On the NeXT, cc -E runs the code through the compiler's parser,
  10851. # not just through cpp. "Syntax error" is here to catch this case.
  10852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10853. /* end confdefs.h. */
  10854. #ifdef __STDC__
  10855. # include <limits.h>
  10856. #else
  10857. # include <assert.h>
  10858. #endif
  10859. Syntax error
  10860. _ACEOF
  10861. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10862. else
  10863. # Broken: fails on valid input.
  10864. continue
  10865. fi
  10866. rm -f conftest.err conftest.i conftest.$ac_ext
  10867. # OK, works on sane cases. Now check whether nonexistent headers
  10868. # can be detected and how.
  10869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10870. /* end confdefs.h. */
  10871. #include <ac_nonexistent.h>
  10872. _ACEOF
  10873. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10874. # Broken: success on invalid input.
  10875. continue
  10876. else
  10877. # Passes both tests.
  10878. ac_preproc_ok=:
  10879. break
  10880. fi
  10881. rm -f conftest.err conftest.i conftest.$ac_ext
  10882. done
  10883. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10884. rm -f conftest.i conftest.err conftest.$ac_ext
  10885. if $ac_preproc_ok; then :
  10886. break
  10887. fi
  10888. done
  10889. ac_cv_prog_CXXCPP=$CXXCPP
  10890. fi
  10891. CXXCPP=$ac_cv_prog_CXXCPP
  10892. else
  10893. ac_cv_prog_CXXCPP=$CXXCPP
  10894. fi
  10895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10896. $as_echo "$CXXCPP" >&6; }
  10897. ac_preproc_ok=false
  10898. for ac_cxx_preproc_warn_flag in '' yes
  10899. do
  10900. # Use a header file that comes with gcc, so configuring glibc
  10901. # with a fresh cross-compiler works.
  10902. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10903. # <limits.h> exists even on freestanding compilers.
  10904. # On the NeXT, cc -E runs the code through the compiler's parser,
  10905. # not just through cpp. "Syntax error" is here to catch this case.
  10906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10907. /* end confdefs.h. */
  10908. #ifdef __STDC__
  10909. # include <limits.h>
  10910. #else
  10911. # include <assert.h>
  10912. #endif
  10913. Syntax error
  10914. _ACEOF
  10915. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10916. else
  10917. # Broken: fails on valid input.
  10918. continue
  10919. fi
  10920. rm -f conftest.err conftest.i conftest.$ac_ext
  10921. # OK, works on sane cases. Now check whether nonexistent headers
  10922. # can be detected and how.
  10923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10924. /* end confdefs.h. */
  10925. #include <ac_nonexistent.h>
  10926. _ACEOF
  10927. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10928. # Broken: success on invalid input.
  10929. continue
  10930. else
  10931. # Passes both tests.
  10932. ac_preproc_ok=:
  10933. break
  10934. fi
  10935. rm -f conftest.err conftest.i conftest.$ac_ext
  10936. done
  10937. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10938. rm -f conftest.i conftest.err conftest.$ac_ext
  10939. if $ac_preproc_ok; then :
  10940. else
  10941. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10942. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10943. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10944. See \`config.log' for more details" "$LINENO" 5; }
  10945. fi
  10946. ac_ext=c
  10947. ac_cpp='$CPP $CPPFLAGS'
  10948. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10949. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10950. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10951. else
  10952. _lt_caught_CXX_error=yes
  10953. fi
  10954. ac_ext=cpp
  10955. ac_cpp='$CXXCPP $CPPFLAGS'
  10956. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10957. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10958. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10959. archive_cmds_need_lc_CXX=no
  10960. allow_undefined_flag_CXX=
  10961. always_export_symbols_CXX=no
  10962. archive_expsym_cmds_CXX=
  10963. compiler_needs_object_CXX=no
  10964. export_dynamic_flag_spec_CXX=
  10965. hardcode_direct_CXX=no
  10966. hardcode_direct_absolute_CXX=no
  10967. hardcode_libdir_flag_spec_CXX=
  10968. hardcode_libdir_flag_spec_ld_CXX=
  10969. hardcode_libdir_separator_CXX=
  10970. hardcode_minus_L_CXX=no
  10971. hardcode_shlibpath_var_CXX=unsupported
  10972. hardcode_automatic_CXX=no
  10973. inherit_rpath_CXX=no
  10974. module_cmds_CXX=
  10975. module_expsym_cmds_CXX=
  10976. link_all_deplibs_CXX=unknown
  10977. old_archive_cmds_CXX=$old_archive_cmds
  10978. reload_flag_CXX=$reload_flag
  10979. reload_cmds_CXX=$reload_cmds
  10980. no_undefined_flag_CXX=
  10981. whole_archive_flag_spec_CXX=
  10982. enable_shared_with_static_runtimes_CXX=no
  10983. # Source file extension for C++ test sources.
  10984. ac_ext=cpp
  10985. # Object file extension for compiled C++ test sources.
  10986. objext=o
  10987. objext_CXX=$objext
  10988. # No sense in running all these tests if we already determined that
  10989. # the CXX compiler isn't working. Some variables (like enable_shared)
  10990. # are currently assumed to apply to all compilers on this platform,
  10991. # and will be corrupted by setting them based on a non-working compiler.
  10992. if test "$_lt_caught_CXX_error" != yes; then
  10993. # Code to be used in simple compile tests
  10994. lt_simple_compile_test_code="int some_variable = 0;"
  10995. # Code to be used in simple link tests
  10996. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10997. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10998. # If no C compiler was specified, use CC.
  10999. LTCC=${LTCC-"$CC"}
  11000. # If no C compiler flags were specified, use CFLAGS.
  11001. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11002. # Allow CC to be a program name with arguments.
  11003. compiler=$CC
  11004. # save warnings/boilerplate of simple test code
  11005. ac_outfile=conftest.$ac_objext
  11006. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11007. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11008. _lt_compiler_boilerplate=`cat conftest.err`
  11009. $RM conftest*
  11010. ac_outfile=conftest.$ac_objext
  11011. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11012. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11013. _lt_linker_boilerplate=`cat conftest.err`
  11014. $RM -r conftest*
  11015. # Allow CC to be a program name with arguments.
  11016. lt_save_CC=$CC
  11017. lt_save_LD=$LD
  11018. lt_save_GCC=$GCC
  11019. GCC=$GXX
  11020. lt_save_with_gnu_ld=$with_gnu_ld
  11021. lt_save_path_LD=$lt_cv_path_LD
  11022. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11023. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11024. else
  11025. $as_unset lt_cv_prog_gnu_ld
  11026. fi
  11027. if test -n "${lt_cv_path_LDCXX+set}"; then
  11028. lt_cv_path_LD=$lt_cv_path_LDCXX
  11029. else
  11030. $as_unset lt_cv_path_LD
  11031. fi
  11032. test -z "${LDCXX+set}" || LD=$LDCXX
  11033. CC=${CXX-"c++"}
  11034. compiler=$CC
  11035. compiler_CXX=$CC
  11036. for cc_temp in $compiler""; do
  11037. case $cc_temp in
  11038. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11039. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11040. \-*) ;;
  11041. *) break;;
  11042. esac
  11043. done
  11044. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11045. if test -n "$compiler"; then
  11046. # We don't want -fno-exception when compiling C++ code, so set the
  11047. # no_builtin_flag separately
  11048. if test "$GXX" = yes; then
  11049. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11050. else
  11051. lt_prog_compiler_no_builtin_flag_CXX=
  11052. fi
  11053. if test "$GXX" = yes; then
  11054. # Set up default GNU C++ configuration
  11055. # Check whether --with-gnu-ld was given.
  11056. if test "${with_gnu_ld+set}" = set; then :
  11057. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11058. else
  11059. with_gnu_ld=no
  11060. fi
  11061. ac_prog=ld
  11062. if test "$GCC" = yes; then
  11063. # Check if gcc -print-prog-name=ld gives a path.
  11064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11065. $as_echo_n "checking for ld used by $CC... " >&6; }
  11066. case $host in
  11067. *-*-mingw*)
  11068. # gcc leaves a trailing carriage return which upsets mingw
  11069. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11070. *)
  11071. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11072. esac
  11073. case $ac_prog in
  11074. # Accept absolute paths.
  11075. [\\/]* | ?:[\\/]*)
  11076. re_direlt='/[^/][^/]*/\.\./'
  11077. # Canonicalize the pathname of ld
  11078. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11079. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11080. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11081. done
  11082. test -z "$LD" && LD="$ac_prog"
  11083. ;;
  11084. "")
  11085. # If it fails, then pretend we aren't using GCC.
  11086. ac_prog=ld
  11087. ;;
  11088. *)
  11089. # If it is relative, then search for the first ld in PATH.
  11090. with_gnu_ld=unknown
  11091. ;;
  11092. esac
  11093. elif test "$with_gnu_ld" = yes; then
  11094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11095. $as_echo_n "checking for GNU ld... " >&6; }
  11096. else
  11097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11098. $as_echo_n "checking for non-GNU ld... " >&6; }
  11099. fi
  11100. if ${lt_cv_path_LD+:} false; then :
  11101. $as_echo_n "(cached) " >&6
  11102. else
  11103. if test -z "$LD"; then
  11104. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11105. for ac_dir in $PATH; do
  11106. IFS="$lt_save_ifs"
  11107. test -z "$ac_dir" && ac_dir=.
  11108. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11109. lt_cv_path_LD="$ac_dir/$ac_prog"
  11110. # Check to see if the program is GNU ld. I'd rather use --version,
  11111. # but apparently some variants of GNU ld only accept -v.
  11112. # Break only if it was the GNU/non-GNU ld that we prefer.
  11113. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11114. *GNU* | *'with BFD'*)
  11115. test "$with_gnu_ld" != no && break
  11116. ;;
  11117. *)
  11118. test "$with_gnu_ld" != yes && break
  11119. ;;
  11120. esac
  11121. fi
  11122. done
  11123. IFS="$lt_save_ifs"
  11124. else
  11125. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11126. fi
  11127. fi
  11128. LD="$lt_cv_path_LD"
  11129. if test -n "$LD"; then
  11130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11131. $as_echo "$LD" >&6; }
  11132. else
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11134. $as_echo "no" >&6; }
  11135. fi
  11136. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11138. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11139. if ${lt_cv_prog_gnu_ld+:} false; then :
  11140. $as_echo_n "(cached) " >&6
  11141. else
  11142. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11143. case `$LD -v 2>&1 </dev/null` in
  11144. *GNU* | *'with BFD'*)
  11145. lt_cv_prog_gnu_ld=yes
  11146. ;;
  11147. *)
  11148. lt_cv_prog_gnu_ld=no
  11149. ;;
  11150. esac
  11151. fi
  11152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11153. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11154. with_gnu_ld=$lt_cv_prog_gnu_ld
  11155. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11156. # archiving commands below assume that GNU ld is being used.
  11157. if test "$with_gnu_ld" = yes; then
  11158. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11159. 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'
  11160. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11161. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11162. # If archive_cmds runs LD, not CC, wlarc should be empty
  11163. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11164. # investigate it a little bit more. (MM)
  11165. wlarc='${wl}'
  11166. # ancient GNU ld didn't support --whole-archive et. al.
  11167. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11168. $GREP 'no-whole-archive' > /dev/null; then
  11169. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11170. else
  11171. whole_archive_flag_spec_CXX=
  11172. fi
  11173. else
  11174. with_gnu_ld=no
  11175. wlarc=
  11176. # A generic and very simple default shared library creation
  11177. # command for GNU C++ for the case where it uses the native
  11178. # linker, instead of GNU ld. If possible, this setting should
  11179. # overridden to take advantage of the native linker features on
  11180. # the platform it is being used on.
  11181. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11182. fi
  11183. # Commands to make compiler produce verbose output that lists
  11184. # what "hidden" libraries, object files and flags are used when
  11185. # linking a shared library.
  11186. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11187. else
  11188. GXX=no
  11189. with_gnu_ld=no
  11190. wlarc=
  11191. fi
  11192. # PORTME: fill in a description of your system's C++ link characteristics
  11193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11194. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11195. ld_shlibs_CXX=yes
  11196. case $host_os in
  11197. aix3*)
  11198. # FIXME: insert proper C++ library support
  11199. ld_shlibs_CXX=no
  11200. ;;
  11201. aix[4-9]*)
  11202. if test "$host_cpu" = ia64; then
  11203. # On IA64, the linker does run time linking by default, so we don't
  11204. # have to do anything special.
  11205. aix_use_runtimelinking=no
  11206. exp_sym_flag='-Bexport'
  11207. no_entry_flag=""
  11208. else
  11209. aix_use_runtimelinking=no
  11210. # Test if we are trying to use run time linking or normal
  11211. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11212. # need to do runtime linking.
  11213. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11214. for ld_flag in $LDFLAGS; do
  11215. case $ld_flag in
  11216. *-brtl*)
  11217. aix_use_runtimelinking=yes
  11218. break
  11219. ;;
  11220. esac
  11221. done
  11222. ;;
  11223. esac
  11224. exp_sym_flag='-bexport'
  11225. no_entry_flag='-bnoentry'
  11226. fi
  11227. # When large executables or shared objects are built, AIX ld can
  11228. # have problems creating the table of contents. If linking a library
  11229. # or program results in "error TOC overflow" add -mminimal-toc to
  11230. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11231. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11232. archive_cmds_CXX=''
  11233. hardcode_direct_CXX=yes
  11234. hardcode_direct_absolute_CXX=yes
  11235. hardcode_libdir_separator_CXX=':'
  11236. link_all_deplibs_CXX=yes
  11237. file_list_spec_CXX='${wl}-f,'
  11238. if test "$GXX" = yes; then
  11239. case $host_os in aix4.[012]|aix4.[012].*)
  11240. # We only want to do this on AIX 4.2 and lower, the check
  11241. # below for broken collect2 doesn't work under 4.3+
  11242. collect2name=`${CC} -print-prog-name=collect2`
  11243. if test -f "$collect2name" &&
  11244. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11245. then
  11246. # We have reworked collect2
  11247. :
  11248. else
  11249. # We have old collect2
  11250. hardcode_direct_CXX=unsupported
  11251. # It fails to find uninstalled libraries when the uninstalled
  11252. # path is not listed in the libpath. Setting hardcode_minus_L
  11253. # to unsupported forces relinking
  11254. hardcode_minus_L_CXX=yes
  11255. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11256. hardcode_libdir_separator_CXX=
  11257. fi
  11258. esac
  11259. shared_flag='-shared'
  11260. if test "$aix_use_runtimelinking" = yes; then
  11261. shared_flag="$shared_flag "'${wl}-G'
  11262. fi
  11263. else
  11264. # not using gcc
  11265. if test "$host_cpu" = ia64; then
  11266. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11267. # chokes on -Wl,-G. The following line is correct:
  11268. shared_flag='-G'
  11269. else
  11270. if test "$aix_use_runtimelinking" = yes; then
  11271. shared_flag='${wl}-G'
  11272. else
  11273. shared_flag='${wl}-bM:SRE'
  11274. fi
  11275. fi
  11276. fi
  11277. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11278. # It seems that -bexpall does not export symbols beginning with
  11279. # underscore (_), so it is better to generate a list of symbols to
  11280. # export.
  11281. always_export_symbols_CXX=yes
  11282. if test "$aix_use_runtimelinking" = yes; then
  11283. # Warning - without using the other runtime loading flags (-brtl),
  11284. # -berok will link without error, but may produce a broken library.
  11285. allow_undefined_flag_CXX='-berok'
  11286. # Determine the default libpath from the value encoded in an empty
  11287. # executable.
  11288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11289. /* end confdefs.h. */
  11290. int
  11291. main ()
  11292. {
  11293. ;
  11294. return 0;
  11295. }
  11296. _ACEOF
  11297. if ac_fn_cxx_try_link "$LINENO"; then :
  11298. lt_aix_libpath_sed='
  11299. /Import File Strings/,/^$/ {
  11300. /^0/ {
  11301. s/^0 *\(.*\)$/\1/
  11302. p
  11303. }
  11304. }'
  11305. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11306. # Check for a 64-bit object if we didn't find anything.
  11307. if test -z "$aix_libpath"; then
  11308. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11309. fi
  11310. fi
  11311. rm -f core conftest.err conftest.$ac_objext \
  11312. conftest$ac_exeext conftest.$ac_ext
  11313. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11314. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11315. 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"
  11316. else
  11317. if test "$host_cpu" = ia64; then
  11318. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11319. allow_undefined_flag_CXX="-z nodefs"
  11320. 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"
  11321. else
  11322. # Determine the default libpath from the value encoded in an
  11323. # empty executable.
  11324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11325. /* end confdefs.h. */
  11326. int
  11327. main ()
  11328. {
  11329. ;
  11330. return 0;
  11331. }
  11332. _ACEOF
  11333. if ac_fn_cxx_try_link "$LINENO"; then :
  11334. lt_aix_libpath_sed='
  11335. /Import File Strings/,/^$/ {
  11336. /^0/ {
  11337. s/^0 *\(.*\)$/\1/
  11338. p
  11339. }
  11340. }'
  11341. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11342. # Check for a 64-bit object if we didn't find anything.
  11343. if test -z "$aix_libpath"; then
  11344. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11345. fi
  11346. fi
  11347. rm -f core conftest.err conftest.$ac_objext \
  11348. conftest$ac_exeext conftest.$ac_ext
  11349. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11350. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11351. # Warning - without using the other run time loading flags,
  11352. # -berok will link without error, but may produce a broken library.
  11353. no_undefined_flag_CXX=' ${wl}-bernotok'
  11354. allow_undefined_flag_CXX=' ${wl}-berok'
  11355. if test "$with_gnu_ld" = yes; then
  11356. # We only use this code for GNU lds that support --whole-archive.
  11357. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11358. else
  11359. # Exported symbols can be pulled into shared objects from archives
  11360. whole_archive_flag_spec_CXX='$convenience'
  11361. fi
  11362. archive_cmds_need_lc_CXX=yes
  11363. # This is similar to how AIX traditionally builds its shared
  11364. # libraries.
  11365. 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'
  11366. fi
  11367. fi
  11368. ;;
  11369. beos*)
  11370. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11371. allow_undefined_flag_CXX=unsupported
  11372. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11373. # support --undefined. This deserves some investigation. FIXME
  11374. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11375. else
  11376. ld_shlibs_CXX=no
  11377. fi
  11378. ;;
  11379. chorus*)
  11380. case $cc_basename in
  11381. *)
  11382. # FIXME: insert proper C++ library support
  11383. ld_shlibs_CXX=no
  11384. ;;
  11385. esac
  11386. ;;
  11387. cygwin* | mingw* | pw32* | cegcc*)
  11388. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11389. # as there is no search path for DLLs.
  11390. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11391. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11392. allow_undefined_flag_CXX=unsupported
  11393. always_export_symbols_CXX=no
  11394. enable_shared_with_static_runtimes_CXX=yes
  11395. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11396. 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'
  11397. # If the export-symbols file already is a .def file (1st line
  11398. # is EXPORTS), use it as is; otherwise, prepend...
  11399. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11400. cp $export_symbols $output_objdir/$soname.def;
  11401. else
  11402. echo EXPORTS > $output_objdir/$soname.def;
  11403. cat $export_symbols >> $output_objdir/$soname.def;
  11404. fi~
  11405. $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'
  11406. else
  11407. ld_shlibs_CXX=no
  11408. fi
  11409. ;;
  11410. darwin* | rhapsody*)
  11411. archive_cmds_need_lc_CXX=no
  11412. hardcode_direct_CXX=no
  11413. hardcode_automatic_CXX=yes
  11414. hardcode_shlibpath_var_CXX=unsupported
  11415. if test "$lt_cv_ld_force_load" = "yes"; then
  11416. 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\"`'
  11417. else
  11418. whole_archive_flag_spec_CXX=''
  11419. fi
  11420. link_all_deplibs_CXX=yes
  11421. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11422. case $cc_basename in
  11423. ifort*) _lt_dar_can_shared=yes ;;
  11424. *) _lt_dar_can_shared=$GCC ;;
  11425. esac
  11426. if test "$_lt_dar_can_shared" = "yes"; then
  11427. output_verbose_link_cmd=func_echo_all
  11428. 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}"
  11429. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11430. 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}"
  11431. 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}"
  11432. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11433. 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}"
  11434. 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}"
  11435. fi
  11436. else
  11437. ld_shlibs_CXX=no
  11438. fi
  11439. ;;
  11440. dgux*)
  11441. case $cc_basename in
  11442. ec++*)
  11443. # FIXME: insert proper C++ library support
  11444. ld_shlibs_CXX=no
  11445. ;;
  11446. ghcx*)
  11447. # Green Hills C++ Compiler
  11448. # FIXME: insert proper C++ library support
  11449. ld_shlibs_CXX=no
  11450. ;;
  11451. *)
  11452. # FIXME: insert proper C++ library support
  11453. ld_shlibs_CXX=no
  11454. ;;
  11455. esac
  11456. ;;
  11457. freebsd2.*)
  11458. # C++ shared libraries reported to be fairly broken before
  11459. # switch to ELF
  11460. ld_shlibs_CXX=no
  11461. ;;
  11462. freebsd-elf*)
  11463. archive_cmds_need_lc_CXX=no
  11464. ;;
  11465. freebsd* | dragonfly*)
  11466. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11467. # conventions
  11468. ld_shlibs_CXX=yes
  11469. ;;
  11470. gnu*)
  11471. ;;
  11472. haiku*)
  11473. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11474. link_all_deplibs_CXX=yes
  11475. ;;
  11476. hpux9*)
  11477. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11478. hardcode_libdir_separator_CXX=:
  11479. export_dynamic_flag_spec_CXX='${wl}-E'
  11480. hardcode_direct_CXX=yes
  11481. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11482. # but as the default
  11483. # location of the library.
  11484. case $cc_basename in
  11485. CC*)
  11486. # FIXME: insert proper C++ library support
  11487. ld_shlibs_CXX=no
  11488. ;;
  11489. aCC*)
  11490. 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'
  11491. # Commands to make compiler produce verbose output that lists
  11492. # what "hidden" libraries, object files and flags are used when
  11493. # linking a shared library.
  11494. #
  11495. # There doesn't appear to be a way to prevent this compiler from
  11496. # explicitly linking system object files so we need to strip them
  11497. # from the output so that they don't get included in the library
  11498. # dependencies.
  11499. 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"'
  11500. ;;
  11501. *)
  11502. if test "$GXX" = yes; then
  11503. 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'
  11504. else
  11505. # FIXME: insert proper C++ library support
  11506. ld_shlibs_CXX=no
  11507. fi
  11508. ;;
  11509. esac
  11510. ;;
  11511. hpux10*|hpux11*)
  11512. if test $with_gnu_ld = no; then
  11513. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11514. hardcode_libdir_separator_CXX=:
  11515. case $host_cpu in
  11516. hppa*64*|ia64*)
  11517. ;;
  11518. *)
  11519. export_dynamic_flag_spec_CXX='${wl}-E'
  11520. ;;
  11521. esac
  11522. fi
  11523. case $host_cpu in
  11524. hppa*64*|ia64*)
  11525. hardcode_direct_CXX=no
  11526. hardcode_shlibpath_var_CXX=no
  11527. ;;
  11528. *)
  11529. hardcode_direct_CXX=yes
  11530. hardcode_direct_absolute_CXX=yes
  11531. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11532. # but as the default
  11533. # location of the library.
  11534. ;;
  11535. esac
  11536. case $cc_basename in
  11537. CC*)
  11538. # FIXME: insert proper C++ library support
  11539. ld_shlibs_CXX=no
  11540. ;;
  11541. aCC*)
  11542. case $host_cpu in
  11543. hppa*64*)
  11544. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11545. ;;
  11546. ia64*)
  11547. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11548. ;;
  11549. *)
  11550. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11551. ;;
  11552. esac
  11553. # Commands to make compiler produce verbose output that lists
  11554. # what "hidden" libraries, object files and flags are used when
  11555. # linking a shared library.
  11556. #
  11557. # There doesn't appear to be a way to prevent this compiler from
  11558. # explicitly linking system object files so we need to strip them
  11559. # from the output so that they don't get included in the library
  11560. # dependencies.
  11561. 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"'
  11562. ;;
  11563. *)
  11564. if test "$GXX" = yes; then
  11565. if test $with_gnu_ld = no; then
  11566. case $host_cpu in
  11567. hppa*64*)
  11568. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11569. ;;
  11570. ia64*)
  11571. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11572. ;;
  11573. *)
  11574. 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'
  11575. ;;
  11576. esac
  11577. fi
  11578. else
  11579. # FIXME: insert proper C++ library support
  11580. ld_shlibs_CXX=no
  11581. fi
  11582. ;;
  11583. esac
  11584. ;;
  11585. interix[3-9]*)
  11586. hardcode_direct_CXX=no
  11587. hardcode_shlibpath_var_CXX=no
  11588. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11589. export_dynamic_flag_spec_CXX='${wl}-E'
  11590. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11591. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11592. # default) and relocated if they conflict, which is a slow very memory
  11593. # consuming and fragmenting process. To avoid this, we pick a random,
  11594. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11595. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11596. 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'
  11597. 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'
  11598. ;;
  11599. irix5* | irix6*)
  11600. case $cc_basename in
  11601. CC*)
  11602. # SGI C++
  11603. 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'
  11604. # Archives containing C++ object files must be created using
  11605. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11606. # necessary to make sure instantiated templates are included
  11607. # in the archive.
  11608. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11609. ;;
  11610. *)
  11611. if test "$GXX" = yes; then
  11612. if test "$with_gnu_ld" = no; then
  11613. 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'
  11614. else
  11615. 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'
  11616. fi
  11617. fi
  11618. link_all_deplibs_CXX=yes
  11619. ;;
  11620. esac
  11621. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11622. hardcode_libdir_separator_CXX=:
  11623. inherit_rpath_CXX=yes
  11624. ;;
  11625. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11626. case $cc_basename in
  11627. KCC*)
  11628. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11629. # KCC will only create a shared library if the output file
  11630. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11631. # to its proper name (with version) after linking.
  11632. 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'
  11633. 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'
  11634. # Commands to make compiler produce verbose output that lists
  11635. # what "hidden" libraries, object files and flags are used when
  11636. # linking a shared library.
  11637. #
  11638. # There doesn't appear to be a way to prevent this compiler from
  11639. # explicitly linking system object files so we need to strip them
  11640. # from the output so that they don't get included in the library
  11641. # dependencies.
  11642. 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"'
  11643. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11644. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11645. # Archives containing C++ object files must be created using
  11646. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11647. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11648. ;;
  11649. icpc* | ecpc* )
  11650. # Intel C++
  11651. with_gnu_ld=yes
  11652. # version 8.0 and above of icpc choke on multiply defined symbols
  11653. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11654. # earlier do not add the objects themselves.
  11655. case `$CC -V 2>&1` in
  11656. *"Version 7."*)
  11657. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11658. 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'
  11659. ;;
  11660. *) # Version 8.0 or newer
  11661. tmp_idyn=
  11662. case $host_cpu in
  11663. ia64*) tmp_idyn=' -i_dynamic';;
  11664. esac
  11665. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11666. 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'
  11667. ;;
  11668. esac
  11669. archive_cmds_need_lc_CXX=no
  11670. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11671. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11672. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11673. ;;
  11674. pgCC* | pgcpp*)
  11675. # Portland Group C++ compiler
  11676. case `$CC -V` in
  11677. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11678. prelink_cmds_CXX='tpldir=Template.dir~
  11679. rm -rf $tpldir~
  11680. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11681. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11682. old_archive_cmds_CXX='tpldir=Template.dir~
  11683. rm -rf $tpldir~
  11684. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11685. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11686. $RANLIB $oldlib'
  11687. archive_cmds_CXX='tpldir=Template.dir~
  11688. rm -rf $tpldir~
  11689. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11690. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11691. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11692. rm -rf $tpldir~
  11693. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11694. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11695. ;;
  11696. *) # Version 6 and above use weak symbols
  11697. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11698. 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'
  11699. ;;
  11700. esac
  11701. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11702. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11703. 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'
  11704. ;;
  11705. cxx*)
  11706. # Compaq C++
  11707. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11708. 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'
  11709. runpath_var=LD_RUN_PATH
  11710. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11711. hardcode_libdir_separator_CXX=:
  11712. # Commands to make compiler produce verbose output that lists
  11713. # what "hidden" libraries, object files and flags are used when
  11714. # linking a shared library.
  11715. #
  11716. # There doesn't appear to be a way to prevent this compiler from
  11717. # explicitly linking system object files so we need to strip them
  11718. # from the output so that they don't get included in the library
  11719. # dependencies.
  11720. 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'
  11721. ;;
  11722. xl* | mpixl* | bgxl*)
  11723. # IBM XL 8.0 on PPC, with GNU ld
  11724. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11725. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11726. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11727. if test "x$supports_anon_versioning" = xyes; then
  11728. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11729. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11730. echo "local: *; };" >> $output_objdir/$libname.ver~
  11731. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11732. fi
  11733. ;;
  11734. *)
  11735. case `$CC -V 2>&1 | sed 5q` in
  11736. *Sun\ C*)
  11737. # Sun C++ 5.9
  11738. no_undefined_flag_CXX=' -zdefs'
  11739. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11740. 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'
  11741. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11742. 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'
  11743. compiler_needs_object_CXX=yes
  11744. # Not sure whether something based on
  11745. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11746. # would be better.
  11747. output_verbose_link_cmd='func_echo_all'
  11748. # Archives containing C++ object files must be created using
  11749. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11750. # necessary to make sure instantiated templates are included
  11751. # in the archive.
  11752. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11753. ;;
  11754. esac
  11755. ;;
  11756. esac
  11757. ;;
  11758. lynxos*)
  11759. # FIXME: insert proper C++ library support
  11760. ld_shlibs_CXX=no
  11761. ;;
  11762. m88k*)
  11763. # FIXME: insert proper C++ library support
  11764. ld_shlibs_CXX=no
  11765. ;;
  11766. mvs*)
  11767. case $cc_basename in
  11768. cxx*)
  11769. # FIXME: insert proper C++ library support
  11770. ld_shlibs_CXX=no
  11771. ;;
  11772. *)
  11773. # FIXME: insert proper C++ library support
  11774. ld_shlibs_CXX=no
  11775. ;;
  11776. esac
  11777. ;;
  11778. netbsd*)
  11779. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11780. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11781. wlarc=
  11782. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11783. hardcode_direct_CXX=yes
  11784. hardcode_shlibpath_var_CXX=no
  11785. fi
  11786. # Workaround some broken pre-1.5 toolchains
  11787. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11788. ;;
  11789. *nto* | *qnx*)
  11790. ld_shlibs_CXX=yes
  11791. ;;
  11792. openbsd2*)
  11793. # C++ shared libraries are fairly broken
  11794. ld_shlibs_CXX=no
  11795. ;;
  11796. openbsd*)
  11797. if test -f /usr/libexec/ld.so; then
  11798. hardcode_direct_CXX=yes
  11799. hardcode_shlibpath_var_CXX=no
  11800. hardcode_direct_absolute_CXX=yes
  11801. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11802. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11803. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11804. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11805. export_dynamic_flag_spec_CXX='${wl}-E'
  11806. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11807. fi
  11808. output_verbose_link_cmd=func_echo_all
  11809. else
  11810. ld_shlibs_CXX=no
  11811. fi
  11812. ;;
  11813. osf3* | osf4* | osf5*)
  11814. case $cc_basename in
  11815. KCC*)
  11816. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11817. # KCC will only create a shared library if the output file
  11818. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11819. # to its proper name (with version) after linking.
  11820. 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'
  11821. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11822. hardcode_libdir_separator_CXX=:
  11823. # Archives containing C++ object files must be created using
  11824. # the KAI C++ compiler.
  11825. case $host in
  11826. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11827. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11828. esac
  11829. ;;
  11830. RCC*)
  11831. # Rational C++ 2.4.1
  11832. # FIXME: insert proper C++ library support
  11833. ld_shlibs_CXX=no
  11834. ;;
  11835. cxx*)
  11836. case $host in
  11837. osf3*)
  11838. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11839. 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'
  11840. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11841. ;;
  11842. *)
  11843. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11844. 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'
  11845. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11846. echo "-hidden">> $lib.exp~
  11847. $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~
  11848. $RM $lib.exp'
  11849. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11850. ;;
  11851. esac
  11852. hardcode_libdir_separator_CXX=:
  11853. # Commands to make compiler produce verbose output that lists
  11854. # what "hidden" libraries, object files and flags are used when
  11855. # linking a shared library.
  11856. #
  11857. # There doesn't appear to be a way to prevent this compiler from
  11858. # explicitly linking system object files so we need to strip them
  11859. # from the output so that they don't get included in the library
  11860. # dependencies.
  11861. 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"'
  11862. ;;
  11863. *)
  11864. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11865. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11866. case $host in
  11867. osf3*)
  11868. 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'
  11869. ;;
  11870. *)
  11871. 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'
  11872. ;;
  11873. esac
  11874. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11875. hardcode_libdir_separator_CXX=:
  11876. # Commands to make compiler produce verbose output that lists
  11877. # what "hidden" libraries, object files and flags are used when
  11878. # linking a shared library.
  11879. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11880. else
  11881. # FIXME: insert proper C++ library support
  11882. ld_shlibs_CXX=no
  11883. fi
  11884. ;;
  11885. esac
  11886. ;;
  11887. psos*)
  11888. # FIXME: insert proper C++ library support
  11889. ld_shlibs_CXX=no
  11890. ;;
  11891. sunos4*)
  11892. case $cc_basename in
  11893. CC*)
  11894. # Sun C++ 4.x
  11895. # FIXME: insert proper C++ library support
  11896. ld_shlibs_CXX=no
  11897. ;;
  11898. lcc*)
  11899. # Lucid
  11900. # FIXME: insert proper C++ library support
  11901. ld_shlibs_CXX=no
  11902. ;;
  11903. *)
  11904. # FIXME: insert proper C++ library support
  11905. ld_shlibs_CXX=no
  11906. ;;
  11907. esac
  11908. ;;
  11909. solaris*)
  11910. case $cc_basename in
  11911. CC*)
  11912. # Sun C++ 4.2, 5.x and Centerline C++
  11913. archive_cmds_need_lc_CXX=yes
  11914. no_undefined_flag_CXX=' -zdefs'
  11915. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11916. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11917. $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'
  11918. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11919. hardcode_shlibpath_var_CXX=no
  11920. case $host_os in
  11921. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11922. *)
  11923. # The compiler driver will combine and reorder linker options,
  11924. # but understands `-z linker_flag'.
  11925. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11926. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11927. ;;
  11928. esac
  11929. link_all_deplibs_CXX=yes
  11930. output_verbose_link_cmd='func_echo_all'
  11931. # Archives containing C++ object files must be created using
  11932. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11933. # necessary to make sure instantiated templates are included
  11934. # in the archive.
  11935. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11936. ;;
  11937. gcx*)
  11938. # Green Hills C++ Compiler
  11939. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11940. # The C++ compiler must be used to create the archive.
  11941. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11942. ;;
  11943. *)
  11944. # GNU C++ compiler with Solaris linker
  11945. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11946. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11947. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11948. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11949. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11950. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11951. # Commands to make compiler produce verbose output that lists
  11952. # what "hidden" libraries, object files and flags are used when
  11953. # linking a shared library.
  11954. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11955. else
  11956. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11957. # platform.
  11958. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11959. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11960. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11961. # Commands to make compiler produce verbose output that lists
  11962. # what "hidden" libraries, object files and flags are used when
  11963. # linking a shared library.
  11964. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11965. fi
  11966. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11967. case $host_os in
  11968. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11969. *)
  11970. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11971. ;;
  11972. esac
  11973. fi
  11974. ;;
  11975. esac
  11976. ;;
  11977. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11978. no_undefined_flag_CXX='${wl}-z,text'
  11979. archive_cmds_need_lc_CXX=no
  11980. hardcode_shlibpath_var_CXX=no
  11981. runpath_var='LD_RUN_PATH'
  11982. case $cc_basename in
  11983. CC*)
  11984. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11985. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11986. ;;
  11987. *)
  11988. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11989. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11990. ;;
  11991. esac
  11992. ;;
  11993. sysv5* | sco3.2v5* | sco5v6*)
  11994. # Note: We can NOT use -z defs as we might desire, because we do not
  11995. # link with -lc, and that would cause any symbols used from libc to
  11996. # always be unresolved, which means just about no library would
  11997. # ever link correctly. If we're not using GNU ld we use -z text
  11998. # though, which does catch some bad symbols but isn't as heavy-handed
  11999. # as -z defs.
  12000. no_undefined_flag_CXX='${wl}-z,text'
  12001. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12002. archive_cmds_need_lc_CXX=no
  12003. hardcode_shlibpath_var_CXX=no
  12004. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12005. hardcode_libdir_separator_CXX=':'
  12006. link_all_deplibs_CXX=yes
  12007. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12008. runpath_var='LD_RUN_PATH'
  12009. case $cc_basename in
  12010. CC*)
  12011. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12012. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12013. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12014. '"$old_archive_cmds_CXX"
  12015. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12016. '"$reload_cmds_CXX"
  12017. ;;
  12018. *)
  12019. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12020. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12021. ;;
  12022. esac
  12023. ;;
  12024. tandem*)
  12025. case $cc_basename in
  12026. NCC*)
  12027. # NonStop-UX NCC 3.20
  12028. # FIXME: insert proper C++ library support
  12029. ld_shlibs_CXX=no
  12030. ;;
  12031. *)
  12032. # FIXME: insert proper C++ library support
  12033. ld_shlibs_CXX=no
  12034. ;;
  12035. esac
  12036. ;;
  12037. vxworks*)
  12038. # FIXME: insert proper C++ library support
  12039. ld_shlibs_CXX=no
  12040. ;;
  12041. *)
  12042. # FIXME: insert proper C++ library support
  12043. ld_shlibs_CXX=no
  12044. ;;
  12045. esac
  12046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12047. $as_echo "$ld_shlibs_CXX" >&6; }
  12048. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12049. GCC_CXX="$GXX"
  12050. LD_CXX="$LD"
  12051. ## CAVEAT EMPTOR:
  12052. ## There is no encapsulation within the following macros, do not change
  12053. ## the running order or otherwise move them around unless you know exactly
  12054. ## what you are doing...
  12055. # Dependencies to place before and after the object being linked:
  12056. predep_objects_CXX=
  12057. postdep_objects_CXX=
  12058. predeps_CXX=
  12059. postdeps_CXX=
  12060. compiler_lib_search_path_CXX=
  12061. cat > conftest.$ac_ext <<_LT_EOF
  12062. class Foo
  12063. {
  12064. public:
  12065. Foo (void) { a = 0; }
  12066. private:
  12067. int a;
  12068. };
  12069. _LT_EOF
  12070. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12071. (eval $ac_compile) 2>&5
  12072. ac_status=$?
  12073. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12074. test $ac_status = 0; }; then
  12075. # Parse the compiler output and extract the necessary
  12076. # objects, libraries and library flags.
  12077. # Sentinel used to keep track of whether or not we are before
  12078. # the conftest object file.
  12079. pre_test_object_deps_done=no
  12080. for p in `eval "$output_verbose_link_cmd"`; do
  12081. case $p in
  12082. -L* | -R* | -l*)
  12083. # Some compilers place space between "-{L,R}" and the path.
  12084. # Remove the space.
  12085. if test $p = "-L" ||
  12086. test $p = "-R"; then
  12087. prev=$p
  12088. continue
  12089. else
  12090. prev=
  12091. fi
  12092. if test "$pre_test_object_deps_done" = no; then
  12093. case $p in
  12094. -L* | -R*)
  12095. # Internal compiler library paths should come after those
  12096. # provided the user. The postdeps already come after the
  12097. # user supplied libs so there is no need to process them.
  12098. if test -z "$compiler_lib_search_path_CXX"; then
  12099. compiler_lib_search_path_CXX="${prev}${p}"
  12100. else
  12101. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12102. fi
  12103. ;;
  12104. # The "-l" case would never come before the object being
  12105. # linked, so don't bother handling this case.
  12106. esac
  12107. else
  12108. if test -z "$postdeps_CXX"; then
  12109. postdeps_CXX="${prev}${p}"
  12110. else
  12111. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12112. fi
  12113. fi
  12114. ;;
  12115. *.$objext)
  12116. # This assumes that the test object file only shows up
  12117. # once in the compiler output.
  12118. if test "$p" = "conftest.$objext"; then
  12119. pre_test_object_deps_done=yes
  12120. continue
  12121. fi
  12122. if test "$pre_test_object_deps_done" = no; then
  12123. if test -z "$predep_objects_CXX"; then
  12124. predep_objects_CXX="$p"
  12125. else
  12126. predep_objects_CXX="$predep_objects_CXX $p"
  12127. fi
  12128. else
  12129. if test -z "$postdep_objects_CXX"; then
  12130. postdep_objects_CXX="$p"
  12131. else
  12132. postdep_objects_CXX="$postdep_objects_CXX $p"
  12133. fi
  12134. fi
  12135. ;;
  12136. *) ;; # Ignore the rest.
  12137. esac
  12138. done
  12139. # Clean up.
  12140. rm -f a.out a.exe
  12141. else
  12142. echo "libtool.m4: error: problem compiling CXX test program"
  12143. fi
  12144. $RM -f confest.$objext
  12145. # PORTME: override above test on systems where it is broken
  12146. case $host_os in
  12147. interix[3-9]*)
  12148. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12149. # hack all around it, let's just trust "g++" to DTRT.
  12150. predep_objects_CXX=
  12151. postdep_objects_CXX=
  12152. postdeps_CXX=
  12153. ;;
  12154. linux*)
  12155. case `$CC -V 2>&1 | sed 5q` in
  12156. *Sun\ C*)
  12157. # Sun C++ 5.9
  12158. # The more standards-conforming stlport4 library is
  12159. # incompatible with the Cstd library. Avoid specifying
  12160. # it if it's in CXXFLAGS. Ignore libCrun as
  12161. # -library=stlport4 depends on it.
  12162. case " $CXX $CXXFLAGS " in
  12163. *" -library=stlport4 "*)
  12164. solaris_use_stlport4=yes
  12165. ;;
  12166. esac
  12167. if test "$solaris_use_stlport4" != yes; then
  12168. postdeps_CXX='-library=Cstd -library=Crun'
  12169. fi
  12170. ;;
  12171. esac
  12172. ;;
  12173. solaris*)
  12174. case $cc_basename in
  12175. CC*)
  12176. # The more standards-conforming stlport4 library is
  12177. # incompatible with the Cstd library. Avoid specifying
  12178. # it if it's in CXXFLAGS. Ignore libCrun as
  12179. # -library=stlport4 depends on it.
  12180. case " $CXX $CXXFLAGS " in
  12181. *" -library=stlport4 "*)
  12182. solaris_use_stlport4=yes
  12183. ;;
  12184. esac
  12185. # Adding this requires a known-good setup of shared libraries for
  12186. # Sun compiler versions before 5.6, else PIC objects from an old
  12187. # archive will be linked into the output, leading to subtle bugs.
  12188. if test "$solaris_use_stlport4" != yes; then
  12189. postdeps_CXX='-library=Cstd -library=Crun'
  12190. fi
  12191. ;;
  12192. esac
  12193. ;;
  12194. esac
  12195. case " $postdeps_CXX " in
  12196. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12197. esac
  12198. compiler_lib_search_dirs_CXX=
  12199. if test -n "${compiler_lib_search_path_CXX}"; then
  12200. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12201. fi
  12202. lt_prog_compiler_wl_CXX=
  12203. lt_prog_compiler_pic_CXX=
  12204. lt_prog_compiler_static_CXX=
  12205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12206. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12207. # C++ specific cases for pic, static, wl, etc.
  12208. if test "$GXX" = yes; then
  12209. lt_prog_compiler_wl_CXX='-Wl,'
  12210. lt_prog_compiler_static_CXX='-static'
  12211. case $host_os in
  12212. aix*)
  12213. # All AIX code is PIC.
  12214. if test "$host_cpu" = ia64; then
  12215. # AIX 5 now supports IA64 processor
  12216. lt_prog_compiler_static_CXX='-Bstatic'
  12217. fi
  12218. lt_prog_compiler_pic_CXX='-fPIC'
  12219. ;;
  12220. amigaos*)
  12221. case $host_cpu in
  12222. powerpc)
  12223. # see comment about AmigaOS4 .so support
  12224. lt_prog_compiler_pic_CXX='-fPIC'
  12225. ;;
  12226. m68k)
  12227. # FIXME: we need at least 68020 code to build shared libraries, but
  12228. # adding the `-m68020' flag to GCC prevents building anything better,
  12229. # like `-m68040'.
  12230. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12231. ;;
  12232. esac
  12233. ;;
  12234. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12235. # PIC is the default for these OSes.
  12236. ;;
  12237. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12238. # This hack is so that the source file can tell whether it is being
  12239. # built for inclusion in a dll (and should export symbols for example).
  12240. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12241. # (--disable-auto-import) libraries
  12242. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12243. ;;
  12244. darwin* | rhapsody*)
  12245. # PIC is the default on this platform
  12246. # Common symbols not allowed in MH_DYLIB files
  12247. lt_prog_compiler_pic_CXX='-fno-common'
  12248. ;;
  12249. *djgpp*)
  12250. # DJGPP does not support shared libraries at all
  12251. lt_prog_compiler_pic_CXX=
  12252. ;;
  12253. haiku*)
  12254. # PIC is the default for Haiku.
  12255. # The "-static" flag exists, but is broken.
  12256. lt_prog_compiler_static_CXX=
  12257. ;;
  12258. interix[3-9]*)
  12259. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12260. # Instead, we relocate shared libraries at runtime.
  12261. ;;
  12262. sysv4*MP*)
  12263. if test -d /usr/nec; then
  12264. lt_prog_compiler_pic_CXX=-Kconform_pic
  12265. fi
  12266. ;;
  12267. hpux*)
  12268. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12269. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12270. # sets the default TLS model and affects inlining.
  12271. case $host_cpu in
  12272. hppa*64*)
  12273. ;;
  12274. *)
  12275. lt_prog_compiler_pic_CXX='-fPIC'
  12276. ;;
  12277. esac
  12278. ;;
  12279. *qnx* | *nto*)
  12280. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12281. # it will coredump.
  12282. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12283. ;;
  12284. *)
  12285. lt_prog_compiler_pic_CXX='-fPIC'
  12286. ;;
  12287. esac
  12288. else
  12289. case $host_os in
  12290. aix[4-9]*)
  12291. # All AIX code is PIC.
  12292. if test "$host_cpu" = ia64; then
  12293. # AIX 5 now supports IA64 processor
  12294. lt_prog_compiler_static_CXX='-Bstatic'
  12295. else
  12296. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12297. fi
  12298. ;;
  12299. chorus*)
  12300. case $cc_basename in
  12301. cxch68*)
  12302. # Green Hills C++ Compiler
  12303. # _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"
  12304. ;;
  12305. esac
  12306. ;;
  12307. dgux*)
  12308. case $cc_basename in
  12309. ec++*)
  12310. lt_prog_compiler_pic_CXX='-KPIC'
  12311. ;;
  12312. ghcx*)
  12313. # Green Hills C++ Compiler
  12314. lt_prog_compiler_pic_CXX='-pic'
  12315. ;;
  12316. *)
  12317. ;;
  12318. esac
  12319. ;;
  12320. freebsd* | dragonfly*)
  12321. # FreeBSD uses GNU C++
  12322. ;;
  12323. hpux9* | hpux10* | hpux11*)
  12324. case $cc_basename in
  12325. CC*)
  12326. lt_prog_compiler_wl_CXX='-Wl,'
  12327. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12328. if test "$host_cpu" != ia64; then
  12329. lt_prog_compiler_pic_CXX='+Z'
  12330. fi
  12331. ;;
  12332. aCC*)
  12333. lt_prog_compiler_wl_CXX='-Wl,'
  12334. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12335. case $host_cpu in
  12336. hppa*64*|ia64*)
  12337. # +Z the default
  12338. ;;
  12339. *)
  12340. lt_prog_compiler_pic_CXX='+Z'
  12341. ;;
  12342. esac
  12343. ;;
  12344. *)
  12345. ;;
  12346. esac
  12347. ;;
  12348. interix*)
  12349. # This is c89, which is MS Visual C++ (no shared libs)
  12350. # Anyone wants to do a port?
  12351. ;;
  12352. irix5* | irix6* | nonstopux*)
  12353. case $cc_basename in
  12354. CC*)
  12355. lt_prog_compiler_wl_CXX='-Wl,'
  12356. lt_prog_compiler_static_CXX='-non_shared'
  12357. # CC pic flag -KPIC is the default.
  12358. ;;
  12359. *)
  12360. ;;
  12361. esac
  12362. ;;
  12363. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12364. case $cc_basename in
  12365. KCC*)
  12366. # KAI C++ Compiler
  12367. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12368. lt_prog_compiler_pic_CXX='-fPIC'
  12369. ;;
  12370. ecpc* )
  12371. # old Intel C++ for x86_64 which still supported -KPIC.
  12372. lt_prog_compiler_wl_CXX='-Wl,'
  12373. lt_prog_compiler_pic_CXX='-KPIC'
  12374. lt_prog_compiler_static_CXX='-static'
  12375. ;;
  12376. icpc* )
  12377. # Intel C++, used to be incompatible with GCC.
  12378. # ICC 10 doesn't accept -KPIC any more.
  12379. lt_prog_compiler_wl_CXX='-Wl,'
  12380. lt_prog_compiler_pic_CXX='-fPIC'
  12381. lt_prog_compiler_static_CXX='-static'
  12382. ;;
  12383. pgCC* | pgcpp*)
  12384. # Portland Group C++ compiler
  12385. lt_prog_compiler_wl_CXX='-Wl,'
  12386. lt_prog_compiler_pic_CXX='-fpic'
  12387. lt_prog_compiler_static_CXX='-Bstatic'
  12388. ;;
  12389. cxx*)
  12390. # Compaq C++
  12391. # Make sure the PIC flag is empty. It appears that all Alpha
  12392. # Linux and Compaq Tru64 Unix objects are PIC.
  12393. lt_prog_compiler_pic_CXX=
  12394. lt_prog_compiler_static_CXX='-non_shared'
  12395. ;;
  12396. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12397. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12398. lt_prog_compiler_wl_CXX='-Wl,'
  12399. lt_prog_compiler_pic_CXX='-qpic'
  12400. lt_prog_compiler_static_CXX='-qstaticlink'
  12401. ;;
  12402. *)
  12403. case `$CC -V 2>&1 | sed 5q` in
  12404. *Sun\ C*)
  12405. # Sun C++ 5.9
  12406. lt_prog_compiler_pic_CXX='-KPIC'
  12407. lt_prog_compiler_static_CXX='-Bstatic'
  12408. lt_prog_compiler_wl_CXX='-Qoption ld '
  12409. ;;
  12410. esac
  12411. ;;
  12412. esac
  12413. ;;
  12414. lynxos*)
  12415. ;;
  12416. m88k*)
  12417. ;;
  12418. mvs*)
  12419. case $cc_basename in
  12420. cxx*)
  12421. lt_prog_compiler_pic_CXX='-W c,exportall'
  12422. ;;
  12423. *)
  12424. ;;
  12425. esac
  12426. ;;
  12427. netbsd*)
  12428. ;;
  12429. *qnx* | *nto*)
  12430. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12431. # it will coredump.
  12432. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12433. ;;
  12434. osf3* | osf4* | osf5*)
  12435. case $cc_basename in
  12436. KCC*)
  12437. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12438. ;;
  12439. RCC*)
  12440. # Rational C++ 2.4.1
  12441. lt_prog_compiler_pic_CXX='-pic'
  12442. ;;
  12443. cxx*)
  12444. # Digital/Compaq C++
  12445. lt_prog_compiler_wl_CXX='-Wl,'
  12446. # Make sure the PIC flag is empty. It appears that all Alpha
  12447. # Linux and Compaq Tru64 Unix objects are PIC.
  12448. lt_prog_compiler_pic_CXX=
  12449. lt_prog_compiler_static_CXX='-non_shared'
  12450. ;;
  12451. *)
  12452. ;;
  12453. esac
  12454. ;;
  12455. psos*)
  12456. ;;
  12457. solaris*)
  12458. case $cc_basename in
  12459. CC*)
  12460. # Sun C++ 4.2, 5.x and Centerline C++
  12461. lt_prog_compiler_pic_CXX='-KPIC'
  12462. lt_prog_compiler_static_CXX='-Bstatic'
  12463. lt_prog_compiler_wl_CXX='-Qoption ld '
  12464. ;;
  12465. gcx*)
  12466. # Green Hills C++ Compiler
  12467. lt_prog_compiler_pic_CXX='-PIC'
  12468. ;;
  12469. *)
  12470. ;;
  12471. esac
  12472. ;;
  12473. sunos4*)
  12474. case $cc_basename in
  12475. CC*)
  12476. # Sun C++ 4.x
  12477. lt_prog_compiler_pic_CXX='-pic'
  12478. lt_prog_compiler_static_CXX='-Bstatic'
  12479. ;;
  12480. lcc*)
  12481. # Lucid
  12482. lt_prog_compiler_pic_CXX='-pic'
  12483. ;;
  12484. *)
  12485. ;;
  12486. esac
  12487. ;;
  12488. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12489. case $cc_basename in
  12490. CC*)
  12491. lt_prog_compiler_wl_CXX='-Wl,'
  12492. lt_prog_compiler_pic_CXX='-KPIC'
  12493. lt_prog_compiler_static_CXX='-Bstatic'
  12494. ;;
  12495. esac
  12496. ;;
  12497. tandem*)
  12498. case $cc_basename in
  12499. NCC*)
  12500. # NonStop-UX NCC 3.20
  12501. lt_prog_compiler_pic_CXX='-KPIC'
  12502. ;;
  12503. *)
  12504. ;;
  12505. esac
  12506. ;;
  12507. vxworks*)
  12508. ;;
  12509. *)
  12510. lt_prog_compiler_can_build_shared_CXX=no
  12511. ;;
  12512. esac
  12513. fi
  12514. case $host_os in
  12515. # For platforms which do not support PIC, -DPIC is meaningless:
  12516. *djgpp*)
  12517. lt_prog_compiler_pic_CXX=
  12518. ;;
  12519. *)
  12520. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12521. ;;
  12522. esac
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  12524. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12525. #
  12526. # Check to make sure the PIC flag actually works.
  12527. #
  12528. if test -n "$lt_prog_compiler_pic_CXX"; then
  12529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12530. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12531. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12532. $as_echo_n "(cached) " >&6
  12533. else
  12534. lt_cv_prog_compiler_pic_works_CXX=no
  12535. ac_outfile=conftest.$ac_objext
  12536. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12537. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12538. # Insert the option either (1) after the last *FLAGS variable, or
  12539. # (2) before a word containing "conftest.", or (3) at the end.
  12540. # Note that $ac_compile itself does not contain backslashes and begins
  12541. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12542. # The option is referenced via a variable to avoid confusing sed.
  12543. lt_compile=`echo "$ac_compile" | $SED \
  12544. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12545. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12546. -e 's:$: $lt_compiler_flag:'`
  12547. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12548. (eval "$lt_compile" 2>conftest.err)
  12549. ac_status=$?
  12550. cat conftest.err >&5
  12551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12552. if (exit $ac_status) && test -s "$ac_outfile"; then
  12553. # The compiler can only warn and ignore the option if not recognized
  12554. # So say no if there are warnings other than the usual output.
  12555. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12556. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12557. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12558. lt_cv_prog_compiler_pic_works_CXX=yes
  12559. fi
  12560. fi
  12561. $RM conftest*
  12562. fi
  12563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12564. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12565. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12566. case $lt_prog_compiler_pic_CXX in
  12567. "" | " "*) ;;
  12568. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12569. esac
  12570. else
  12571. lt_prog_compiler_pic_CXX=
  12572. lt_prog_compiler_can_build_shared_CXX=no
  12573. fi
  12574. fi
  12575. #
  12576. # Check to make sure the static flag actually works.
  12577. #
  12578. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12580. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12581. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12582. $as_echo_n "(cached) " >&6
  12583. else
  12584. lt_cv_prog_compiler_static_works_CXX=no
  12585. save_LDFLAGS="$LDFLAGS"
  12586. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12587. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12588. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12589. # The linker can only warn and ignore the option if not recognized
  12590. # So say no if there are warnings
  12591. if test -s conftest.err; then
  12592. # Append any errors to the config.log.
  12593. cat conftest.err 1>&5
  12594. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12595. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12596. if diff conftest.exp conftest.er2 >/dev/null; then
  12597. lt_cv_prog_compiler_static_works_CXX=yes
  12598. fi
  12599. else
  12600. lt_cv_prog_compiler_static_works_CXX=yes
  12601. fi
  12602. fi
  12603. $RM -r conftest*
  12604. LDFLAGS="$save_LDFLAGS"
  12605. fi
  12606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12607. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12608. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12609. :
  12610. else
  12611. lt_prog_compiler_static_CXX=
  12612. fi
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12614. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12615. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12616. $as_echo_n "(cached) " >&6
  12617. else
  12618. lt_cv_prog_compiler_c_o_CXX=no
  12619. $RM -r conftest 2>/dev/null
  12620. mkdir conftest
  12621. cd conftest
  12622. mkdir out
  12623. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12624. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12625. # Insert the option either (1) after the last *FLAGS variable, or
  12626. # (2) before a word containing "conftest.", or (3) at the end.
  12627. # Note that $ac_compile itself does not contain backslashes and begins
  12628. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12629. lt_compile=`echo "$ac_compile" | $SED \
  12630. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12631. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12632. -e 's:$: $lt_compiler_flag:'`
  12633. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12634. (eval "$lt_compile" 2>out/conftest.err)
  12635. ac_status=$?
  12636. cat out/conftest.err >&5
  12637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12638. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12639. then
  12640. # The compiler can only warn and ignore the option if not recognized
  12641. # So say no if there are warnings
  12642. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12643. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12644. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12645. lt_cv_prog_compiler_c_o_CXX=yes
  12646. fi
  12647. fi
  12648. chmod u+w . 2>&5
  12649. $RM conftest*
  12650. # SGI C++ compiler will create directory out/ii_files/ for
  12651. # template instantiation
  12652. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12653. $RM out/* && rmdir out
  12654. cd ..
  12655. $RM -r conftest
  12656. $RM conftest*
  12657. fi
  12658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12659. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12661. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12662. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12663. $as_echo_n "(cached) " >&6
  12664. else
  12665. lt_cv_prog_compiler_c_o_CXX=no
  12666. $RM -r conftest 2>/dev/null
  12667. mkdir conftest
  12668. cd conftest
  12669. mkdir out
  12670. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12671. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12672. # Insert the option either (1) after the last *FLAGS variable, or
  12673. # (2) before a word containing "conftest.", or (3) at the end.
  12674. # Note that $ac_compile itself does not contain backslashes and begins
  12675. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12676. lt_compile=`echo "$ac_compile" | $SED \
  12677. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12678. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12679. -e 's:$: $lt_compiler_flag:'`
  12680. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12681. (eval "$lt_compile" 2>out/conftest.err)
  12682. ac_status=$?
  12683. cat out/conftest.err >&5
  12684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12685. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12686. then
  12687. # The compiler can only warn and ignore the option if not recognized
  12688. # So say no if there are warnings
  12689. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12690. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12691. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12692. lt_cv_prog_compiler_c_o_CXX=yes
  12693. fi
  12694. fi
  12695. chmod u+w . 2>&5
  12696. $RM conftest*
  12697. # SGI C++ compiler will create directory out/ii_files/ for
  12698. # template instantiation
  12699. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12700. $RM out/* && rmdir out
  12701. cd ..
  12702. $RM -r conftest
  12703. $RM conftest*
  12704. fi
  12705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12706. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12707. hard_links="nottested"
  12708. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12709. # do not overwrite the value of need_locks provided by the user
  12710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12711. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12712. hard_links=yes
  12713. $RM conftest*
  12714. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12715. touch conftest.a
  12716. ln conftest.a conftest.b 2>&5 || hard_links=no
  12717. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12719. $as_echo "$hard_links" >&6; }
  12720. if test "$hard_links" = no; then
  12721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12722. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12723. need_locks=warn
  12724. fi
  12725. else
  12726. need_locks=no
  12727. fi
  12728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12729. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12730. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12731. case $host_os in
  12732. aix[4-9]*)
  12733. # If we're using GNU nm, then we don't want the "-C" option.
  12734. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12735. # Also, AIX nm treats weak defined symbols like other global defined
  12736. # symbols, whereas GNU nm marks them as "W".
  12737. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12738. 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'
  12739. else
  12740. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12741. fi
  12742. ;;
  12743. pw32*)
  12744. export_symbols_cmds_CXX="$ltdll_cmds"
  12745. ;;
  12746. cygwin* | mingw* | cegcc*)
  12747. 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'
  12748. ;;
  12749. *)
  12750. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12751. ;;
  12752. esac
  12753. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12755. $as_echo "$ld_shlibs_CXX" >&6; }
  12756. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12757. with_gnu_ld_CXX=$with_gnu_ld
  12758. #
  12759. # Do we need to explicitly link libc?
  12760. #
  12761. case "x$archive_cmds_need_lc_CXX" in
  12762. x|xyes)
  12763. # Assume -lc should be added
  12764. archive_cmds_need_lc_CXX=yes
  12765. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12766. case $archive_cmds_CXX in
  12767. *'~'*)
  12768. # FIXME: we may have to deal with multi-command sequences.
  12769. ;;
  12770. '$CC '*)
  12771. # Test whether the compiler implicitly links with -lc since on some
  12772. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12773. # to ld, don't add -lc before -lgcc.
  12774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12775. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12776. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12777. $as_echo_n "(cached) " >&6
  12778. else
  12779. $RM conftest*
  12780. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12781. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12782. (eval $ac_compile) 2>&5
  12783. ac_status=$?
  12784. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12785. test $ac_status = 0; } 2>conftest.err; then
  12786. soname=conftest
  12787. lib=conftest
  12788. libobjs=conftest.$ac_objext
  12789. deplibs=
  12790. wl=$lt_prog_compiler_wl_CXX
  12791. pic_flag=$lt_prog_compiler_pic_CXX
  12792. compiler_flags=-v
  12793. linker_flags=-v
  12794. verstring=
  12795. output_objdir=.
  12796. libname=conftest
  12797. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12798. allow_undefined_flag_CXX=
  12799. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12800. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12801. ac_status=$?
  12802. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12803. test $ac_status = 0; }
  12804. then
  12805. lt_cv_archive_cmds_need_lc_CXX=no
  12806. else
  12807. lt_cv_archive_cmds_need_lc_CXX=yes
  12808. fi
  12809. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12810. else
  12811. cat conftest.err 1>&5
  12812. fi
  12813. $RM conftest*
  12814. fi
  12815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12816. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12817. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12818. ;;
  12819. esac
  12820. fi
  12821. ;;
  12822. esac
  12823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12824. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12825. library_names_spec=
  12826. libname_spec='lib$name'
  12827. soname_spec=
  12828. shrext_cmds=".so"
  12829. postinstall_cmds=
  12830. postuninstall_cmds=
  12831. finish_cmds=
  12832. finish_eval=
  12833. shlibpath_var=
  12834. shlibpath_overrides_runpath=unknown
  12835. version_type=none
  12836. dynamic_linker="$host_os ld.so"
  12837. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12838. need_lib_prefix=unknown
  12839. hardcode_into_libs=no
  12840. # when you set need_version to no, make sure it does not cause -set_version
  12841. # flags to be left without arguments
  12842. need_version=unknown
  12843. case $host_os in
  12844. aix3*)
  12845. version_type=linux
  12846. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12847. shlibpath_var=LIBPATH
  12848. # AIX 3 has no versioning support, so we append a major version to the name.
  12849. soname_spec='${libname}${release}${shared_ext}$major'
  12850. ;;
  12851. aix[4-9]*)
  12852. version_type=linux
  12853. need_lib_prefix=no
  12854. need_version=no
  12855. hardcode_into_libs=yes
  12856. if test "$host_cpu" = ia64; then
  12857. # AIX 5 supports IA64
  12858. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12859. shlibpath_var=LD_LIBRARY_PATH
  12860. else
  12861. # With GCC up to 2.95.x, collect2 would create an import file
  12862. # for dependence libraries. The import file would start with
  12863. # the line `#! .'. This would cause the generated library to
  12864. # depend on `.', always an invalid library. This was fixed in
  12865. # development snapshots of GCC prior to 3.0.
  12866. case $host_os in
  12867. aix4 | aix4.[01] | aix4.[01].*)
  12868. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12869. echo ' yes '
  12870. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12871. :
  12872. else
  12873. can_build_shared=no
  12874. fi
  12875. ;;
  12876. esac
  12877. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12878. # soname into executable. Probably we can add versioning support to
  12879. # collect2, so additional links can be useful in future.
  12880. if test "$aix_use_runtimelinking" = yes; then
  12881. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12882. # instead of lib<name>.a to let people know that these are not
  12883. # typical AIX shared libraries.
  12884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12885. else
  12886. # We preserve .a as extension for shared libraries through AIX4.2
  12887. # and later when we are not doing run time linking.
  12888. library_names_spec='${libname}${release}.a $libname.a'
  12889. soname_spec='${libname}${release}${shared_ext}$major'
  12890. fi
  12891. shlibpath_var=LIBPATH
  12892. fi
  12893. ;;
  12894. amigaos*)
  12895. case $host_cpu in
  12896. powerpc)
  12897. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12898. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12899. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12900. ;;
  12901. m68k)
  12902. library_names_spec='$libname.ixlibrary $libname.a'
  12903. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12904. 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'
  12905. ;;
  12906. esac
  12907. ;;
  12908. beos*)
  12909. library_names_spec='${libname}${shared_ext}'
  12910. dynamic_linker="$host_os ld.so"
  12911. shlibpath_var=LIBRARY_PATH
  12912. ;;
  12913. bsdi[45]*)
  12914. version_type=linux
  12915. need_version=no
  12916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12917. soname_spec='${libname}${release}${shared_ext}$major'
  12918. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12919. shlibpath_var=LD_LIBRARY_PATH
  12920. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12921. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12922. # the default ld.so.conf also contains /usr/contrib/lib and
  12923. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12924. # libtool to hard-code these into programs
  12925. ;;
  12926. cygwin* | mingw* | pw32* | cegcc*)
  12927. version_type=windows
  12928. shrext_cmds=".dll"
  12929. need_version=no
  12930. need_lib_prefix=no
  12931. case $GCC,$host_os in
  12932. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12933. library_names_spec='$libname.dll.a'
  12934. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12935. postinstall_cmds='base_file=`basename \${file}`~
  12936. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12937. dldir=$destdir/`dirname \$dlpath`~
  12938. test -d \$dldir || mkdir -p \$dldir~
  12939. $install_prog $dir/$dlname \$dldir/$dlname~
  12940. chmod a+x \$dldir/$dlname~
  12941. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12942. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12943. fi'
  12944. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12945. dlpath=$dir/\$dldll~
  12946. $RM \$dlpath'
  12947. shlibpath_overrides_runpath=yes
  12948. case $host_os in
  12949. cygwin*)
  12950. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12951. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12952. ;;
  12953. mingw* | cegcc*)
  12954. # MinGW DLLs use traditional 'lib' prefix
  12955. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12956. ;;
  12957. pw32*)
  12958. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12959. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12960. ;;
  12961. esac
  12962. ;;
  12963. *)
  12964. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12965. ;;
  12966. esac
  12967. dynamic_linker='Win32 ld.exe'
  12968. # FIXME: first we should search . and the directory the executable is in
  12969. shlibpath_var=PATH
  12970. ;;
  12971. darwin* | rhapsody*)
  12972. dynamic_linker="$host_os dyld"
  12973. version_type=darwin
  12974. need_lib_prefix=no
  12975. need_version=no
  12976. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12977. soname_spec='${libname}${release}${major}$shared_ext'
  12978. shlibpath_overrides_runpath=yes
  12979. shlibpath_var=DYLD_LIBRARY_PATH
  12980. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12981. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12982. ;;
  12983. dgux*)
  12984. version_type=linux
  12985. need_lib_prefix=no
  12986. need_version=no
  12987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12988. soname_spec='${libname}${release}${shared_ext}$major'
  12989. shlibpath_var=LD_LIBRARY_PATH
  12990. ;;
  12991. freebsd* | dragonfly*)
  12992. # DragonFly does not have aout. When/if they implement a new
  12993. # versioning mechanism, adjust this.
  12994. if test -x /usr/bin/objformat; then
  12995. objformat=`/usr/bin/objformat`
  12996. else
  12997. case $host_os in
  12998. freebsd[23].*) objformat=aout ;;
  12999. *) objformat=elf ;;
  13000. esac
  13001. fi
  13002. version_type=freebsd-$objformat
  13003. case $version_type in
  13004. freebsd-elf*)
  13005. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13006. need_version=no
  13007. need_lib_prefix=no
  13008. ;;
  13009. freebsd-*)
  13010. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13011. need_version=yes
  13012. ;;
  13013. esac
  13014. shlibpath_var=LD_LIBRARY_PATH
  13015. case $host_os in
  13016. freebsd2.*)
  13017. shlibpath_overrides_runpath=yes
  13018. ;;
  13019. freebsd3.[01]* | freebsdelf3.[01]*)
  13020. shlibpath_overrides_runpath=yes
  13021. hardcode_into_libs=yes
  13022. ;;
  13023. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13024. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13025. shlibpath_overrides_runpath=no
  13026. hardcode_into_libs=yes
  13027. ;;
  13028. *) # from 4.6 on, and DragonFly
  13029. shlibpath_overrides_runpath=yes
  13030. hardcode_into_libs=yes
  13031. ;;
  13032. esac
  13033. ;;
  13034. gnu*)
  13035. version_type=linux
  13036. need_lib_prefix=no
  13037. need_version=no
  13038. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13039. soname_spec='${libname}${release}${shared_ext}$major'
  13040. shlibpath_var=LD_LIBRARY_PATH
  13041. hardcode_into_libs=yes
  13042. ;;
  13043. haiku*)
  13044. version_type=linux
  13045. need_lib_prefix=no
  13046. need_version=no
  13047. dynamic_linker="$host_os runtime_loader"
  13048. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13049. soname_spec='${libname}${release}${shared_ext}$major'
  13050. shlibpath_var=LIBRARY_PATH
  13051. shlibpath_overrides_runpath=yes
  13052. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  13053. hardcode_into_libs=yes
  13054. ;;
  13055. hpux9* | hpux10* | hpux11*)
  13056. # Give a soname corresponding to the major version so that dld.sl refuses to
  13057. # link against other versions.
  13058. version_type=sunos
  13059. need_lib_prefix=no
  13060. need_version=no
  13061. case $host_cpu in
  13062. ia64*)
  13063. shrext_cmds='.so'
  13064. hardcode_into_libs=yes
  13065. dynamic_linker="$host_os dld.so"
  13066. shlibpath_var=LD_LIBRARY_PATH
  13067. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13069. soname_spec='${libname}${release}${shared_ext}$major'
  13070. if test "X$HPUX_IA64_MODE" = X32; then
  13071. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13072. else
  13073. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13074. fi
  13075. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13076. ;;
  13077. hppa*64*)
  13078. shrext_cmds='.sl'
  13079. hardcode_into_libs=yes
  13080. dynamic_linker="$host_os dld.sl"
  13081. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13082. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13084. soname_spec='${libname}${release}${shared_ext}$major'
  13085. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13086. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13087. ;;
  13088. *)
  13089. shrext_cmds='.sl'
  13090. dynamic_linker="$host_os dld.sl"
  13091. shlibpath_var=SHLIB_PATH
  13092. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13094. soname_spec='${libname}${release}${shared_ext}$major'
  13095. ;;
  13096. esac
  13097. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13098. postinstall_cmds='chmod 555 $lib'
  13099. # or fails outright, so override atomically:
  13100. install_override_mode=555
  13101. ;;
  13102. interix[3-9]*)
  13103. version_type=linux
  13104. need_lib_prefix=no
  13105. need_version=no
  13106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13107. soname_spec='${libname}${release}${shared_ext}$major'
  13108. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13109. shlibpath_var=LD_LIBRARY_PATH
  13110. shlibpath_overrides_runpath=no
  13111. hardcode_into_libs=yes
  13112. ;;
  13113. irix5* | irix6* | nonstopux*)
  13114. case $host_os in
  13115. nonstopux*) version_type=nonstopux ;;
  13116. *)
  13117. if test "$lt_cv_prog_gnu_ld" = yes; then
  13118. version_type=linux
  13119. else
  13120. version_type=irix
  13121. fi ;;
  13122. esac
  13123. need_lib_prefix=no
  13124. need_version=no
  13125. soname_spec='${libname}${release}${shared_ext}$major'
  13126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13127. case $host_os in
  13128. irix5* | nonstopux*)
  13129. libsuff= shlibsuff=
  13130. ;;
  13131. *)
  13132. case $LD in # libtool.m4 will add one of these switches to LD
  13133. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13134. libsuff= shlibsuff= libmagic=32-bit;;
  13135. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13136. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13137. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13138. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13139. *) libsuff= shlibsuff= libmagic=never-match;;
  13140. esac
  13141. ;;
  13142. esac
  13143. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13144. shlibpath_overrides_runpath=no
  13145. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13146. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13147. hardcode_into_libs=yes
  13148. ;;
  13149. # No shared lib support for Linux oldld, aout, or coff.
  13150. linux*oldld* | linux*aout* | linux*coff*)
  13151. dynamic_linker=no
  13152. ;;
  13153. # This must be Linux ELF.
  13154. # uclinux* changes (here and below) have been submitted to the libtool
  13155. # project, but have not yet been accepted: they are GCC-local changes
  13156. # for the time being. (See
  13157. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  13158. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  13159. version_type=linux
  13160. need_lib_prefix=no
  13161. need_version=no
  13162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13163. soname_spec='${libname}${release}${shared_ext}$major'
  13164. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13165. shlibpath_var=LD_LIBRARY_PATH
  13166. shlibpath_overrides_runpath=no
  13167. # Some binutils ld are patched to set DT_RUNPATH
  13168. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13169. $as_echo_n "(cached) " >&6
  13170. else
  13171. lt_cv_shlibpath_overrides_runpath=no
  13172. save_LDFLAGS=$LDFLAGS
  13173. save_libdir=$libdir
  13174. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13175. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13177. /* end confdefs.h. */
  13178. int
  13179. main ()
  13180. {
  13181. ;
  13182. return 0;
  13183. }
  13184. _ACEOF
  13185. if ac_fn_cxx_try_link "$LINENO"; then :
  13186. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13187. lt_cv_shlibpath_overrides_runpath=yes
  13188. fi
  13189. fi
  13190. rm -f core conftest.err conftest.$ac_objext \
  13191. conftest$ac_exeext conftest.$ac_ext
  13192. LDFLAGS=$save_LDFLAGS
  13193. libdir=$save_libdir
  13194. fi
  13195. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13196. # This implies no fast_install, which is unacceptable.
  13197. # Some rework will be needed to allow for fast_install
  13198. # before this can be enabled.
  13199. hardcode_into_libs=yes
  13200. # Append ld.so.conf contents to the search path
  13201. if test -f /etc/ld.so.conf; then
  13202. 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' ' '`
  13203. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13204. fi
  13205. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13206. # powerpc, because MkLinux only supported shared libraries with the
  13207. # GNU dynamic linker. Since this was broken with cross compilers,
  13208. # most powerpc-linux boxes support dynamic linking these days and
  13209. # people can always --disable-shared, the test was removed, and we
  13210. # assume the GNU/Linux dynamic linker is in use.
  13211. dynamic_linker='GNU/Linux ld.so'
  13212. ;;
  13213. netbsd*)
  13214. version_type=sunos
  13215. need_lib_prefix=no
  13216. need_version=no
  13217. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13219. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13220. dynamic_linker='NetBSD (a.out) ld.so'
  13221. else
  13222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13223. soname_spec='${libname}${release}${shared_ext}$major'
  13224. dynamic_linker='NetBSD ld.elf_so'
  13225. fi
  13226. shlibpath_var=LD_LIBRARY_PATH
  13227. shlibpath_overrides_runpath=yes
  13228. hardcode_into_libs=yes
  13229. ;;
  13230. newsos6)
  13231. version_type=linux
  13232. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13233. shlibpath_var=LD_LIBRARY_PATH
  13234. shlibpath_overrides_runpath=yes
  13235. ;;
  13236. *nto* | *qnx*)
  13237. version_type=qnx
  13238. need_lib_prefix=no
  13239. need_version=no
  13240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13241. soname_spec='${libname}${release}${shared_ext}$major'
  13242. shlibpath_var=LD_LIBRARY_PATH
  13243. shlibpath_overrides_runpath=no
  13244. hardcode_into_libs=yes
  13245. dynamic_linker='ldqnx.so'
  13246. ;;
  13247. openbsd*)
  13248. version_type=sunos
  13249. sys_lib_dlsearch_path_spec="/usr/lib"
  13250. need_lib_prefix=no
  13251. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13252. case $host_os in
  13253. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13254. *) need_version=no ;;
  13255. esac
  13256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13257. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13258. shlibpath_var=LD_LIBRARY_PATH
  13259. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13260. case $host_os in
  13261. openbsd2.[89] | openbsd2.[89].*)
  13262. shlibpath_overrides_runpath=no
  13263. ;;
  13264. *)
  13265. shlibpath_overrides_runpath=yes
  13266. ;;
  13267. esac
  13268. else
  13269. shlibpath_overrides_runpath=yes
  13270. fi
  13271. ;;
  13272. os2*)
  13273. libname_spec='$name'
  13274. shrext_cmds=".dll"
  13275. need_lib_prefix=no
  13276. library_names_spec='$libname${shared_ext} $libname.a'
  13277. dynamic_linker='OS/2 ld.exe'
  13278. shlibpath_var=LIBPATH
  13279. ;;
  13280. osf3* | osf4* | osf5*)
  13281. version_type=osf
  13282. need_lib_prefix=no
  13283. need_version=no
  13284. soname_spec='${libname}${release}${shared_ext}$major'
  13285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13286. shlibpath_var=LD_LIBRARY_PATH
  13287. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13288. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13289. ;;
  13290. rdos*)
  13291. dynamic_linker=no
  13292. ;;
  13293. solaris*)
  13294. version_type=linux
  13295. need_lib_prefix=no
  13296. need_version=no
  13297. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13298. soname_spec='${libname}${release}${shared_ext}$major'
  13299. shlibpath_var=LD_LIBRARY_PATH
  13300. shlibpath_overrides_runpath=yes
  13301. hardcode_into_libs=yes
  13302. # ldd complains unless libraries are executable
  13303. postinstall_cmds='chmod +x $lib'
  13304. ;;
  13305. sunos4*)
  13306. version_type=sunos
  13307. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13308. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13309. shlibpath_var=LD_LIBRARY_PATH
  13310. shlibpath_overrides_runpath=yes
  13311. if test "$with_gnu_ld" = yes; then
  13312. need_lib_prefix=no
  13313. fi
  13314. need_version=yes
  13315. ;;
  13316. sysv4 | sysv4.3*)
  13317. version_type=linux
  13318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13319. soname_spec='${libname}${release}${shared_ext}$major'
  13320. shlibpath_var=LD_LIBRARY_PATH
  13321. case $host_vendor in
  13322. sni)
  13323. shlibpath_overrides_runpath=no
  13324. need_lib_prefix=no
  13325. runpath_var=LD_RUN_PATH
  13326. ;;
  13327. siemens)
  13328. need_lib_prefix=no
  13329. ;;
  13330. motorola)
  13331. need_lib_prefix=no
  13332. need_version=no
  13333. shlibpath_overrides_runpath=no
  13334. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13335. ;;
  13336. esac
  13337. ;;
  13338. sysv4*MP*)
  13339. if test -d /usr/nec ;then
  13340. version_type=linux
  13341. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13342. soname_spec='$libname${shared_ext}.$major'
  13343. shlibpath_var=LD_LIBRARY_PATH
  13344. fi
  13345. ;;
  13346. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13347. version_type=freebsd-elf
  13348. need_lib_prefix=no
  13349. need_version=no
  13350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13351. soname_spec='${libname}${release}${shared_ext}$major'
  13352. shlibpath_var=LD_LIBRARY_PATH
  13353. shlibpath_overrides_runpath=yes
  13354. hardcode_into_libs=yes
  13355. if test "$with_gnu_ld" = yes; then
  13356. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13357. else
  13358. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13359. case $host_os in
  13360. sco3.2v5*)
  13361. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13362. ;;
  13363. esac
  13364. fi
  13365. sys_lib_dlsearch_path_spec='/usr/lib'
  13366. ;;
  13367. tpf*)
  13368. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13369. version_type=linux
  13370. need_lib_prefix=no
  13371. need_version=no
  13372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13373. shlibpath_var=LD_LIBRARY_PATH
  13374. shlibpath_overrides_runpath=no
  13375. hardcode_into_libs=yes
  13376. ;;
  13377. uts4*)
  13378. version_type=linux
  13379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13380. soname_spec='${libname}${release}${shared_ext}$major'
  13381. shlibpath_var=LD_LIBRARY_PATH
  13382. ;;
  13383. *)
  13384. dynamic_linker=no
  13385. ;;
  13386. esac
  13387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13388. $as_echo "$dynamic_linker" >&6; }
  13389. test "$dynamic_linker" = no && can_build_shared=no
  13390. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13391. if test "$GCC" = yes; then
  13392. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13393. fi
  13394. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13395. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13396. fi
  13397. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13398. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13399. fi
  13400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13401. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13402. hardcode_action_CXX=
  13403. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13404. test -n "$runpath_var_CXX" ||
  13405. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13406. # We can hardcode non-existent directories.
  13407. if test "$hardcode_direct_CXX" != no &&
  13408. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13409. # have to relink, otherwise we might link with an installed library
  13410. # when we should be linking with a yet-to-be-installed one
  13411. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13412. test "$hardcode_minus_L_CXX" != no; then
  13413. # Linking always hardcodes the temporary library directory.
  13414. hardcode_action_CXX=relink
  13415. else
  13416. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13417. hardcode_action_CXX=immediate
  13418. fi
  13419. else
  13420. # We cannot hardcode anything, or else we can only hardcode existing
  13421. # directories.
  13422. hardcode_action_CXX=unsupported
  13423. fi
  13424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13425. $as_echo "$hardcode_action_CXX" >&6; }
  13426. if test "$hardcode_action_CXX" = relink ||
  13427. test "$inherit_rpath_CXX" = yes; then
  13428. # Fast installation is not supported
  13429. enable_fast_install=no
  13430. elif test "$shlibpath_overrides_runpath" = yes ||
  13431. test "$enable_shared" = no; then
  13432. # Fast installation is not necessary
  13433. enable_fast_install=needless
  13434. fi
  13435. fi # test -n "$compiler"
  13436. CC=$lt_save_CC
  13437. LDCXX=$LD
  13438. LD=$lt_save_LD
  13439. GCC=$lt_save_GCC
  13440. with_gnu_ld=$lt_save_with_gnu_ld
  13441. lt_cv_path_LDCXX=$lt_cv_path_LD
  13442. lt_cv_path_LD=$lt_save_path_LD
  13443. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13444. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13445. fi # test "$_lt_caught_CXX_error" != yes
  13446. ac_ext=c
  13447. ac_cpp='$CPP $CPPFLAGS'
  13448. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13449. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13450. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13451. ac_config_commands="$ac_config_commands libtool"
  13452. # Only expand once:
  13453. case $host in
  13454. *-cygwin* | *-mingw*)
  13455. # 'host' will be top-level target in the case of a target lib,
  13456. # we must compare to with_cross_host to decide if this is a native
  13457. # or cross-compiler and select where to install dlls appropriately.
  13458. if test -n "$with_cross_host" &&
  13459. test x"$with_cross_host" != x"no"; then
  13460. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  13461. else
  13462. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  13463. fi
  13464. ;;
  13465. *)
  13466. lt_host_flags=
  13467. ;;
  13468. esac
  13469. # For libtool versioning info, format is CURRENT:REVISION:AGE
  13470. libtool_VERSION=1:0:0
  13471. XCFLAGS="-D_GNU_SOURCE -Wall -Wextra -fno-exceptions"
  13472. # Add CET specific flags if Intel CET is enabled.
  13473. # Check whether --enable-cet was given.
  13474. if test "${enable_cet+set}" = set; then :
  13475. enableval=$enable_cet;
  13476. case "$enableval" in
  13477. yes|no|auto) ;;
  13478. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  13479. esac
  13480. else
  13481. enable_cet=auto
  13482. fi
  13483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  13484. $as_echo_n "checking for CET support... " >&6; }
  13485. # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
  13486. case "$host" in
  13487. i[34567]86-*-linux* | x86_64-*-linux*)
  13488. case "$enable_cet" in
  13489. auto)
  13490. # Check if target supports multi-byte NOPs
  13491. # and if assembler supports CET insn.
  13492. cet_save_CFLAGS="$CFLAGS"
  13493. CFLAGS="$CFLAGS -fcf-protection"
  13494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13495. /* end confdefs.h. */
  13496. int
  13497. main ()
  13498. {
  13499. #if !defined(__SSE2__)
  13500. #error target does not support multi-byte NOPs
  13501. #else
  13502. asm ("setssbsy");
  13503. #endif
  13504. ;
  13505. return 0;
  13506. }
  13507. _ACEOF
  13508. if ac_fn_c_try_compile "$LINENO"; then :
  13509. enable_cet=yes
  13510. else
  13511. enable_cet=no
  13512. fi
  13513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13514. CFLAGS="$cet_save_CFLAGS"
  13515. ;;
  13516. yes)
  13517. # Check if assembler supports CET.
  13518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13519. /* end confdefs.h. */
  13520. int
  13521. main ()
  13522. {
  13523. asm ("setssbsy");
  13524. ;
  13525. return 0;
  13526. }
  13527. _ACEOF
  13528. if ac_fn_c_try_compile "$LINENO"; then :
  13529. else
  13530. as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
  13531. fi
  13532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13533. ;;
  13534. esac
  13535. ;;
  13536. *)
  13537. enable_cet=no
  13538. ;;
  13539. esac
  13540. if test x$enable_cet = xyes; then
  13541. CET_FLAGS="-fcf-protection -mshstk"
  13542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13543. $as_echo "yes" >&6; }
  13544. else
  13545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13546. $as_echo "no" >&6; }
  13547. fi
  13548. XCFLAGS="$XCFLAGS $CET_FLAGS"
  13549. if test "${multilib}" = "yes"; then
  13550. multilib_arg="--enable-multilib"
  13551. else
  13552. multilib_arg=
  13553. fi
  13554. ac_config_files="$ac_config_files Makefile"
  13555. if test "x$VTV_SUPPORTED" = "xyes"; then
  13556. ac_config_files="$ac_config_files testsuite/Makefile"
  13557. fi
  13558. case "$target_os" in
  13559. cygwin*|mingw32*)
  13560. vtv_cygmin="yes"
  13561. ;;
  13562. *)
  13563. vtv_cygmin="no"
  13564. ;;
  13565. esac
  13566. if test $vtv_cygmin = yes; then
  13567. VTV_CYGMIN_TRUE=
  13568. VTV_CYGMIN_FALSE='#'
  13569. else
  13570. VTV_CYGMIN_TRUE='#'
  13571. VTV_CYGMIN_FALSE=
  13572. fi
  13573. for ac_func in _obstack_begin
  13574. do :
  13575. ac_fn_c_check_func "$LINENO" "_obstack_begin" "ac_cv_func__obstack_begin"
  13576. if test "x$ac_cv_func__obstack_begin" = xyes; then :
  13577. cat >>confdefs.h <<_ACEOF
  13578. #define HAVE__OBSTACK_BEGIN 1
  13579. _ACEOF
  13580. fi
  13581. done
  13582. if test $ac_cv_func__obstack_begin = no; then
  13583. VTV_NO_OBSTACK_TRUE=
  13584. VTV_NO_OBSTACK_FALSE='#'
  13585. else
  13586. VTV_NO_OBSTACK_TRUE='#'
  13587. VTV_NO_OBSTACK_FALSE=
  13588. fi
  13589. # Determine what GCC version number to use in filesystem paths.
  13590. get_gcc_base_ver="cat"
  13591. # Check whether --with-gcc-major-version-only was given.
  13592. if test "${with_gcc_major_version_only+set}" = set; then :
  13593. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  13594. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  13595. fi
  13596. fi
  13597. cat >confcache <<\_ACEOF
  13598. # This file is a shell script that caches the results of configure
  13599. # tests run on this system so they can be shared between configure
  13600. # scripts and configure runs, see configure's option --config-cache.
  13601. # It is not useful on other systems. If it contains results you don't
  13602. # want to keep, you may remove or edit it.
  13603. #
  13604. # config.status only pays attention to the cache file if you give it
  13605. # the --recheck option to rerun configure.
  13606. #
  13607. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13608. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13609. # following values.
  13610. _ACEOF
  13611. # The following way of writing the cache mishandles newlines in values,
  13612. # but we know of no workaround that is simple, portable, and efficient.
  13613. # So, we kill variables containing newlines.
  13614. # Ultrix sh set writes to stderr and can't be redirected directly,
  13615. # and sets the high bit in the cache file unless we assign to the vars.
  13616. (
  13617. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13618. eval ac_val=\$$ac_var
  13619. case $ac_val in #(
  13620. *${as_nl}*)
  13621. case $ac_var in #(
  13622. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13623. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13624. esac
  13625. case $ac_var in #(
  13626. _ | IFS | as_nl) ;; #(
  13627. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13628. *) { eval $ac_var=; unset $ac_var;} ;;
  13629. esac ;;
  13630. esac
  13631. done
  13632. (set) 2>&1 |
  13633. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13634. *${as_nl}ac_space=\ *)
  13635. # `set' does not quote correctly, so add quotes: double-quote
  13636. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13637. sed -n \
  13638. "s/'/'\\\\''/g;
  13639. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13640. ;; #(
  13641. *)
  13642. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13643. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13644. ;;
  13645. esac |
  13646. sort
  13647. ) |
  13648. sed '
  13649. /^ac_cv_env_/b end
  13650. t clear
  13651. :clear
  13652. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13653. t end
  13654. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13655. :end' >>confcache
  13656. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13657. if test -w "$cache_file"; then
  13658. if test "x$cache_file" != "x/dev/null"; then
  13659. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13660. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13661. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13662. cat confcache >"$cache_file"
  13663. else
  13664. case $cache_file in #(
  13665. */* | ?:*)
  13666. mv -f confcache "$cache_file"$$ &&
  13667. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13668. *)
  13669. mv -f confcache "$cache_file" ;;
  13670. esac
  13671. fi
  13672. fi
  13673. else
  13674. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13675. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13676. fi
  13677. fi
  13678. rm -f confcache
  13679. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13680. # Let make expand exec_prefix.
  13681. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13682. # Transform confdefs.h into DEFS.
  13683. # Protect against shell expansion while executing Makefile rules.
  13684. # Protect against Makefile macro expansion.
  13685. #
  13686. # If the first sed substitution is executed (which looks for macros that
  13687. # take arguments), then branch to the quote section. Otherwise,
  13688. # look for a macro that doesn't take arguments.
  13689. ac_script='
  13690. :mline
  13691. /\\$/{
  13692. N
  13693. s,\\\n,,
  13694. b mline
  13695. }
  13696. t clear
  13697. :clear
  13698. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  13699. t quote
  13700. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  13701. t quote
  13702. b any
  13703. :quote
  13704. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  13705. s/\[/\\&/g
  13706. s/\]/\\&/g
  13707. s/\$/$$/g
  13708. H
  13709. :any
  13710. ${
  13711. g
  13712. s/^\n//
  13713. s/\n/ /g
  13714. p
  13715. }
  13716. '
  13717. DEFS=`sed -n "$ac_script" confdefs.h`
  13718. ac_libobjs=
  13719. ac_ltlibobjs=
  13720. U=
  13721. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13722. # 1. Remove the extension, and $U if already installed.
  13723. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13724. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13725. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13726. # will be set to the directory where LIBOBJS objects are built.
  13727. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13728. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13729. done
  13730. LIBOBJS=$ac_libobjs
  13731. LTLIBOBJS=$ac_ltlibobjs
  13732. if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
  13733. as_fn_error $? "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
  13734. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13735. fi
  13736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13737. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13738. if test -n "$am_sleep_pid"; then
  13739. # Hide warnings about reused PIDs.
  13740. wait $am_sleep_pid 2>/dev/null
  13741. fi
  13742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13743. $as_echo "done" >&6; }
  13744. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13745. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13746. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13747. fi
  13748. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13749. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13750. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13751. fi
  13752. if test -n "$EXEEXT"; then
  13753. am__EXEEXT_TRUE=
  13754. am__EXEEXT_FALSE='#'
  13755. else
  13756. am__EXEEXT_TRUE='#'
  13757. am__EXEEXT_FALSE=
  13758. fi
  13759. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13760. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  13761. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13762. fi
  13763. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13764. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  13765. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13766. fi
  13767. if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
  13768. as_fn_error $? "conditional \"VTV_CYGMIN\" was never defined.
  13769. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13770. fi
  13771. if test -z "${VTV_NO_OBSTACK_TRUE}" && test -z "${VTV_NO_OBSTACK_FALSE}"; then
  13772. as_fn_error $? "conditional \"VTV_NO_OBSTACK\" was never defined.
  13773. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13774. fi
  13775. : "${CONFIG_STATUS=./config.status}"
  13776. ac_write_fail=0
  13777. ac_clean_files_save=$ac_clean_files
  13778. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13779. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13780. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13781. as_write_fail=0
  13782. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13783. #! $SHELL
  13784. # Generated by $as_me.
  13785. # Run this file to recreate the current configuration.
  13786. # Compiler output produced by configure, useful for debugging
  13787. # configure, is in config.log if it exists.
  13788. debug=false
  13789. ac_cs_recheck=false
  13790. ac_cs_silent=false
  13791. SHELL=\${CONFIG_SHELL-$SHELL}
  13792. export SHELL
  13793. _ASEOF
  13794. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13795. ## -------------------- ##
  13796. ## M4sh Initialization. ##
  13797. ## -------------------- ##
  13798. # Be more Bourne compatible
  13799. DUALCASE=1; export DUALCASE # for MKS sh
  13800. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13801. emulate sh
  13802. NULLCMD=:
  13803. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13804. # is contrary to our usage. Disable this feature.
  13805. alias -g '${1+"$@"}'='"$@"'
  13806. setopt NO_GLOB_SUBST
  13807. else
  13808. case `(set -o) 2>/dev/null` in #(
  13809. *posix*) :
  13810. set -o posix ;; #(
  13811. *) :
  13812. ;;
  13813. esac
  13814. fi
  13815. as_nl='
  13816. '
  13817. export as_nl
  13818. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13819. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13820. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13821. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13822. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13823. # but without wasting forks for bash or zsh.
  13824. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13825. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13826. as_echo='print -r --'
  13827. as_echo_n='print -rn --'
  13828. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13829. as_echo='printf %s\n'
  13830. as_echo_n='printf %s'
  13831. else
  13832. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13833. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13834. as_echo_n='/usr/ucb/echo -n'
  13835. else
  13836. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13837. as_echo_n_body='eval
  13838. arg=$1;
  13839. case $arg in #(
  13840. *"$as_nl"*)
  13841. expr "X$arg" : "X\\(.*\\)$as_nl";
  13842. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13843. esac;
  13844. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13845. '
  13846. export as_echo_n_body
  13847. as_echo_n='sh -c $as_echo_n_body as_echo'
  13848. fi
  13849. export as_echo_body
  13850. as_echo='sh -c $as_echo_body as_echo'
  13851. fi
  13852. # The user is always right.
  13853. if test "${PATH_SEPARATOR+set}" != set; then
  13854. PATH_SEPARATOR=:
  13855. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13856. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13857. PATH_SEPARATOR=';'
  13858. }
  13859. fi
  13860. # IFS
  13861. # We need space, tab and new line, in precisely that order. Quoting is
  13862. # there to prevent editors from complaining about space-tab.
  13863. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13864. # splitting by setting IFS to empty value.)
  13865. IFS=" "" $as_nl"
  13866. # Find who we are. Look in the path if we contain no directory separator.
  13867. as_myself=
  13868. case $0 in #((
  13869. *[\\/]* ) as_myself=$0 ;;
  13870. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13871. for as_dir in $PATH
  13872. do
  13873. IFS=$as_save_IFS
  13874. test -z "$as_dir" && as_dir=.
  13875. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13876. done
  13877. IFS=$as_save_IFS
  13878. ;;
  13879. esac
  13880. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13881. # in which case we are not to be found in the path.
  13882. if test "x$as_myself" = x; then
  13883. as_myself=$0
  13884. fi
  13885. if test ! -f "$as_myself"; then
  13886. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13887. exit 1
  13888. fi
  13889. # Unset variables that we do not need and which cause bugs (e.g. in
  13890. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13891. # suppresses any "Segmentation fault" message there. '((' could
  13892. # trigger a bug in pdksh 5.2.14.
  13893. for as_var in BASH_ENV ENV MAIL MAILPATH
  13894. do eval test x\${$as_var+set} = xset \
  13895. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13896. done
  13897. PS1='$ '
  13898. PS2='> '
  13899. PS4='+ '
  13900. # NLS nuisances.
  13901. LC_ALL=C
  13902. export LC_ALL
  13903. LANGUAGE=C
  13904. export LANGUAGE
  13905. # CDPATH.
  13906. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13907. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13908. # ----------------------------------------
  13909. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13910. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13911. # script with STATUS, using 1 if that was 0.
  13912. as_fn_error ()
  13913. {
  13914. as_status=$1; test $as_status -eq 0 && as_status=1
  13915. if test "$4"; then
  13916. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13917. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13918. fi
  13919. $as_echo "$as_me: error: $2" >&2
  13920. as_fn_exit $as_status
  13921. } # as_fn_error
  13922. # as_fn_set_status STATUS
  13923. # -----------------------
  13924. # Set $? to STATUS, without forking.
  13925. as_fn_set_status ()
  13926. {
  13927. return $1
  13928. } # as_fn_set_status
  13929. # as_fn_exit STATUS
  13930. # -----------------
  13931. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13932. as_fn_exit ()
  13933. {
  13934. set +e
  13935. as_fn_set_status $1
  13936. exit $1
  13937. } # as_fn_exit
  13938. # as_fn_unset VAR
  13939. # ---------------
  13940. # Portably unset VAR.
  13941. as_fn_unset ()
  13942. {
  13943. { eval $1=; unset $1;}
  13944. }
  13945. as_unset=as_fn_unset
  13946. # as_fn_append VAR VALUE
  13947. # ----------------------
  13948. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13949. # advantage of any shell optimizations that allow amortized linear growth over
  13950. # repeated appends, instead of the typical quadratic growth present in naive
  13951. # implementations.
  13952. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13953. eval 'as_fn_append ()
  13954. {
  13955. eval $1+=\$2
  13956. }'
  13957. else
  13958. as_fn_append ()
  13959. {
  13960. eval $1=\$$1\$2
  13961. }
  13962. fi # as_fn_append
  13963. # as_fn_arith ARG...
  13964. # ------------------
  13965. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13966. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13967. # must be portable across $(()) and expr.
  13968. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13969. eval 'as_fn_arith ()
  13970. {
  13971. as_val=$(( $* ))
  13972. }'
  13973. else
  13974. as_fn_arith ()
  13975. {
  13976. as_val=`expr "$@" || test $? -eq 1`
  13977. }
  13978. fi # as_fn_arith
  13979. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13980. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13981. as_expr=expr
  13982. else
  13983. as_expr=false
  13984. fi
  13985. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13986. as_basename=basename
  13987. else
  13988. as_basename=false
  13989. fi
  13990. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13991. as_dirname=dirname
  13992. else
  13993. as_dirname=false
  13994. fi
  13995. as_me=`$as_basename -- "$0" ||
  13996. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13997. X"$0" : 'X\(//\)$' \| \
  13998. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13999. $as_echo X/"$0" |
  14000. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14001. s//\1/
  14002. q
  14003. }
  14004. /^X\/\(\/\/\)$/{
  14005. s//\1/
  14006. q
  14007. }
  14008. /^X\/\(\/\).*/{
  14009. s//\1/
  14010. q
  14011. }
  14012. s/.*/./; q'`
  14013. # Avoid depending upon Character Ranges.
  14014. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14015. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14016. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14017. as_cr_digits='0123456789'
  14018. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14019. ECHO_C= ECHO_N= ECHO_T=
  14020. case `echo -n x` in #(((((
  14021. -n*)
  14022. case `echo 'xy\c'` in
  14023. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14024. xy) ECHO_C='\c';;
  14025. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14026. ECHO_T=' ';;
  14027. esac;;
  14028. *)
  14029. ECHO_N='-n';;
  14030. esac
  14031. rm -f conf$$ conf$$.exe conf$$.file
  14032. if test -d conf$$.dir; then
  14033. rm -f conf$$.dir/conf$$.file
  14034. else
  14035. rm -f conf$$.dir
  14036. mkdir conf$$.dir 2>/dev/null
  14037. fi
  14038. if (echo >conf$$.file) 2>/dev/null; then
  14039. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14040. as_ln_s='ln -s'
  14041. # ... but there are two gotchas:
  14042. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14043. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14044. # In both cases, we have to default to `cp -pR'.
  14045. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14046. as_ln_s='cp -pR'
  14047. elif ln conf$$.file conf$$ 2>/dev/null; then
  14048. as_ln_s=ln
  14049. else
  14050. as_ln_s='cp -pR'
  14051. fi
  14052. else
  14053. as_ln_s='cp -pR'
  14054. fi
  14055. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14056. rmdir conf$$.dir 2>/dev/null
  14057. # as_fn_mkdir_p
  14058. # -------------
  14059. # Create "$as_dir" as a directory, including parents if necessary.
  14060. as_fn_mkdir_p ()
  14061. {
  14062. case $as_dir in #(
  14063. -*) as_dir=./$as_dir;;
  14064. esac
  14065. test -d "$as_dir" || eval $as_mkdir_p || {
  14066. as_dirs=
  14067. while :; do
  14068. case $as_dir in #(
  14069. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14070. *) as_qdir=$as_dir;;
  14071. esac
  14072. as_dirs="'$as_qdir' $as_dirs"
  14073. as_dir=`$as_dirname -- "$as_dir" ||
  14074. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14075. X"$as_dir" : 'X\(//\)[^/]' \| \
  14076. X"$as_dir" : 'X\(//\)$' \| \
  14077. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14078. $as_echo X"$as_dir" |
  14079. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14080. s//\1/
  14081. q
  14082. }
  14083. /^X\(\/\/\)[^/].*/{
  14084. s//\1/
  14085. q
  14086. }
  14087. /^X\(\/\/\)$/{
  14088. s//\1/
  14089. q
  14090. }
  14091. /^X\(\/\).*/{
  14092. s//\1/
  14093. q
  14094. }
  14095. s/.*/./; q'`
  14096. test -d "$as_dir" && break
  14097. done
  14098. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14099. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14100. } # as_fn_mkdir_p
  14101. if mkdir -p . 2>/dev/null; then
  14102. as_mkdir_p='mkdir -p "$as_dir"'
  14103. else
  14104. test -d ./-p && rmdir ./-p
  14105. as_mkdir_p=false
  14106. fi
  14107. # as_fn_executable_p FILE
  14108. # -----------------------
  14109. # Test if FILE is an executable regular file.
  14110. as_fn_executable_p ()
  14111. {
  14112. test -f "$1" && test -x "$1"
  14113. } # as_fn_executable_p
  14114. as_test_x='test -x'
  14115. as_executable_p=as_fn_executable_p
  14116. # Sed expression to map a string onto a valid CPP name.
  14117. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14118. # Sed expression to map a string onto a valid variable name.
  14119. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14120. exec 6>&1
  14121. ## ----------------------------------- ##
  14122. ## Main body of $CONFIG_STATUS script. ##
  14123. ## ----------------------------------- ##
  14124. _ASEOF
  14125. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14126. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14127. # Save the log message, to keep $0 and so on meaningful, and to
  14128. # report actual input values of CONFIG_FILES etc. instead of their
  14129. # values after options handling.
  14130. ac_log="
  14131. This file was extended by GNU Vtable Verification Runtime Library $as_me 1.0, which was
  14132. generated by GNU Autoconf 2.69. Invocation command line was
  14133. CONFIG_FILES = $CONFIG_FILES
  14134. CONFIG_HEADERS = $CONFIG_HEADERS
  14135. CONFIG_LINKS = $CONFIG_LINKS
  14136. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14137. $ $0 $@
  14138. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14139. "
  14140. _ACEOF
  14141. case $ac_config_files in *"
  14142. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14143. esac
  14144. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14145. # Files that config.status was made for.
  14146. config_files="$ac_config_files"
  14147. config_commands="$ac_config_commands"
  14148. _ACEOF
  14149. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14150. ac_cs_usage="\
  14151. \`$as_me' instantiates files and other configuration actions
  14152. from templates according to the current configuration. Unless the files
  14153. and actions are specified as TAGs, all are instantiated by default.
  14154. Usage: $0 [OPTION]... [TAG]...
  14155. -h, --help print this help, then exit
  14156. -V, --version print version number and configuration settings, then exit
  14157. --config print configuration, then exit
  14158. -q, --quiet, --silent
  14159. do not print progress messages
  14160. -d, --debug don't remove temporary files
  14161. --recheck update $as_me by reconfiguring in the same conditions
  14162. --file=FILE[:TEMPLATE]
  14163. instantiate the configuration file FILE
  14164. Configuration files:
  14165. $config_files
  14166. Configuration commands:
  14167. $config_commands
  14168. Report bugs to the package provider.
  14169. GNU Vtable Verification Runtime Library home page: <http://www.gnu.org/software/libvtv/>.
  14170. General help using GNU software: <http://www.gnu.org/gethelp/>."
  14171. _ACEOF
  14172. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14173. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14174. ac_cs_version="\\
  14175. GNU Vtable Verification Runtime Library config.status 1.0
  14176. configured by $0, generated by GNU Autoconf 2.69,
  14177. with options \\"\$ac_cs_config\\"
  14178. Copyright (C) 2012 Free Software Foundation, Inc.
  14179. This config.status script is free software; the Free Software Foundation
  14180. gives unlimited permission to copy, distribute and modify it."
  14181. ac_pwd='$ac_pwd'
  14182. srcdir='$srcdir'
  14183. INSTALL='$INSTALL'
  14184. MKDIR_P='$MKDIR_P'
  14185. AWK='$AWK'
  14186. test -n "\$AWK" || AWK=awk
  14187. _ACEOF
  14188. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14189. # The default lists apply if the user does not specify any file.
  14190. ac_need_defaults=:
  14191. while test $# != 0
  14192. do
  14193. case $1 in
  14194. --*=?*)
  14195. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14196. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14197. ac_shift=:
  14198. ;;
  14199. --*=)
  14200. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14201. ac_optarg=
  14202. ac_shift=:
  14203. ;;
  14204. *)
  14205. ac_option=$1
  14206. ac_optarg=$2
  14207. ac_shift=shift
  14208. ;;
  14209. esac
  14210. case $ac_option in
  14211. # Handling of the options.
  14212. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14213. ac_cs_recheck=: ;;
  14214. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14215. $as_echo "$ac_cs_version"; exit ;;
  14216. --config | --confi | --conf | --con | --co | --c )
  14217. $as_echo "$ac_cs_config"; exit ;;
  14218. --debug | --debu | --deb | --de | --d | -d )
  14219. debug=: ;;
  14220. --file | --fil | --fi | --f )
  14221. $ac_shift
  14222. case $ac_optarg in
  14223. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14224. '') as_fn_error $? "missing file argument" ;;
  14225. esac
  14226. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14227. ac_need_defaults=false;;
  14228. --he | --h | --help | --hel | -h )
  14229. $as_echo "$ac_cs_usage"; exit ;;
  14230. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14231. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14232. ac_cs_silent=: ;;
  14233. # This is an error.
  14234. -*) as_fn_error $? "unrecognized option: \`$1'
  14235. Try \`$0 --help' for more information." ;;
  14236. *) as_fn_append ac_config_targets " $1"
  14237. ac_need_defaults=false ;;
  14238. esac
  14239. shift
  14240. done
  14241. ac_configure_extra_args=
  14242. if $ac_cs_silent; then
  14243. exec 6>/dev/null
  14244. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14245. fi
  14246. _ACEOF
  14247. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14248. if \$ac_cs_recheck; then
  14249. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14250. shift
  14251. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14252. CONFIG_SHELL='$SHELL'
  14253. export CONFIG_SHELL
  14254. exec "\$@"
  14255. fi
  14256. _ACEOF
  14257. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14258. exec 5>>config.log
  14259. {
  14260. echo
  14261. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14262. ## Running $as_me. ##
  14263. _ASBOX
  14264. $as_echo "$ac_log"
  14265. } >&5
  14266. _ACEOF
  14267. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14268. #
  14269. # INIT-COMMANDS
  14270. #
  14271. srcdir="$srcdir"
  14272. host="$host"
  14273. target="$target"
  14274. with_multisubdir="$with_multisubdir"
  14275. with_multisrctop="$with_multisrctop"
  14276. with_target_subdir="$with_target_subdir"
  14277. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  14278. multi_basedir="$multi_basedir"
  14279. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14280. CC="$CC"
  14281. CXX="$CXX"
  14282. GFORTRAN="$GFORTRAN"
  14283. GDC="$GDC"
  14284. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14285. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14286. # if CDPATH is set.
  14287. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14288. sed_quote_subst='$sed_quote_subst'
  14289. double_quote_subst='$double_quote_subst'
  14290. delay_variable_subst='$delay_variable_subst'
  14291. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14292. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14293. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14294. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14295. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14296. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14297. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14298. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14299. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14300. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14301. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14302. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14303. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14304. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14305. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14306. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14307. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14308. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14309. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14310. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14311. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14312. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14313. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14314. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14315. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14316. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14317. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14318. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14319. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14320. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14321. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14322. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14323. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14324. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14325. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14326. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14327. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14328. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14329. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14330. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14331. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14332. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14333. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14334. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14335. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14336. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14337. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14338. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14339. 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"`'
  14340. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14341. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14342. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14343. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14344. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14345. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14346. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14347. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14348. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14349. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14350. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14351. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14352. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14353. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14354. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14355. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14356. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14357. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14358. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14359. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14360. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14361. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14362. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14363. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14364. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14365. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14366. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14367. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14368. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14369. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14370. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14371. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14372. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14373. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14374. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14375. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14376. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14377. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14378. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14379. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14380. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  14381. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14382. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14383. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14384. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14385. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14386. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14387. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14388. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14389. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14390. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14391. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14392. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14393. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14394. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14395. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14396. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14397. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14398. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14399. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14400. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14401. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14402. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14403. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14404. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14405. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14406. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14407. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14408. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14409. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14410. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14411. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14412. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14413. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14414. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14415. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14416. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14417. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  14418. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14419. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14420. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14421. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  14422. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  14423. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14424. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  14425. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  14426. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  14427. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  14428. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  14429. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  14430. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14431. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14432. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  14433. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14434. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14435. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14436. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14437. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14438. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14439. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14440. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14441. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  14442. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14443. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  14444. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  14445. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  14446. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  14447. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  14448. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  14449. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  14450. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  14451. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  14452. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  14453. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  14454. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14455. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14456. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  14457. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  14458. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  14459. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  14460. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  14461. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14462. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  14463. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  14464. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  14465. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  14466. LTCC='$LTCC'
  14467. LTCFLAGS='$LTCFLAGS'
  14468. compiler='$compiler_DEFAULT'
  14469. # A function that is used when there is no print builtin or printf.
  14470. func_fallback_echo ()
  14471. {
  14472. eval 'cat <<_LTECHO_EOF
  14473. \$1
  14474. _LTECHO_EOF'
  14475. }
  14476. # Quote evaled strings.
  14477. for var in SHELL \
  14478. ECHO \
  14479. SED \
  14480. GREP \
  14481. EGREP \
  14482. FGREP \
  14483. LD \
  14484. NM \
  14485. LN_S \
  14486. lt_SP2NL \
  14487. lt_NL2SP \
  14488. reload_flag \
  14489. OBJDUMP \
  14490. deplibs_check_method \
  14491. file_magic_cmd \
  14492. AR \
  14493. AR_FLAGS \
  14494. STRIP \
  14495. RANLIB \
  14496. CC \
  14497. CFLAGS \
  14498. compiler \
  14499. lt_cv_sys_global_symbol_pipe \
  14500. lt_cv_sys_global_symbol_to_cdecl \
  14501. lt_cv_sys_global_symbol_to_c_name_address \
  14502. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14503. lt_prog_compiler_no_builtin_flag \
  14504. lt_prog_compiler_wl \
  14505. lt_prog_compiler_pic \
  14506. lt_prog_compiler_static \
  14507. lt_cv_prog_compiler_c_o \
  14508. need_locks \
  14509. DSYMUTIL \
  14510. NMEDIT \
  14511. LIPO \
  14512. OTOOL \
  14513. OTOOL64 \
  14514. shrext_cmds \
  14515. export_dynamic_flag_spec \
  14516. whole_archive_flag_spec \
  14517. compiler_needs_object \
  14518. with_gnu_ld \
  14519. allow_undefined_flag \
  14520. no_undefined_flag \
  14521. hardcode_libdir_flag_spec \
  14522. hardcode_libdir_flag_spec_ld \
  14523. hardcode_libdir_separator \
  14524. fix_srcfile_path \
  14525. exclude_expsyms \
  14526. include_expsyms \
  14527. file_list_spec \
  14528. variables_saved_for_relink \
  14529. libname_spec \
  14530. library_names_spec \
  14531. soname_spec \
  14532. install_override_mode \
  14533. finish_eval \
  14534. old_striplib \
  14535. striplib \
  14536. compiler_lib_search_dirs \
  14537. predep_objects \
  14538. postdep_objects \
  14539. predeps \
  14540. postdeps \
  14541. compiler_lib_search_path \
  14542. LD_CXX \
  14543. reload_flag_CXX \
  14544. compiler_CXX \
  14545. lt_prog_compiler_no_builtin_flag_CXX \
  14546. lt_prog_compiler_wl_CXX \
  14547. lt_prog_compiler_pic_CXX \
  14548. lt_prog_compiler_static_CXX \
  14549. lt_cv_prog_compiler_c_o_CXX \
  14550. export_dynamic_flag_spec_CXX \
  14551. whole_archive_flag_spec_CXX \
  14552. compiler_needs_object_CXX \
  14553. with_gnu_ld_CXX \
  14554. allow_undefined_flag_CXX \
  14555. no_undefined_flag_CXX \
  14556. hardcode_libdir_flag_spec_CXX \
  14557. hardcode_libdir_flag_spec_ld_CXX \
  14558. hardcode_libdir_separator_CXX \
  14559. fix_srcfile_path_CXX \
  14560. exclude_expsyms_CXX \
  14561. include_expsyms_CXX \
  14562. file_list_spec_CXX \
  14563. compiler_lib_search_dirs_CXX \
  14564. predep_objects_CXX \
  14565. postdep_objects_CXX \
  14566. predeps_CXX \
  14567. postdeps_CXX \
  14568. compiler_lib_search_path_CXX; do
  14569. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14570. *[\\\\\\\`\\"\\\$]*)
  14571. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14572. ;;
  14573. *)
  14574. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14575. ;;
  14576. esac
  14577. done
  14578. # Double-quote double-evaled strings.
  14579. for var in reload_cmds \
  14580. old_postinstall_cmds \
  14581. old_postuninstall_cmds \
  14582. old_archive_cmds \
  14583. extract_expsyms_cmds \
  14584. old_archive_from_new_cmds \
  14585. old_archive_from_expsyms_cmds \
  14586. archive_cmds \
  14587. archive_expsym_cmds \
  14588. module_cmds \
  14589. module_expsym_cmds \
  14590. export_symbols_cmds \
  14591. prelink_cmds \
  14592. postinstall_cmds \
  14593. postuninstall_cmds \
  14594. finish_cmds \
  14595. sys_lib_search_path_spec \
  14596. sys_lib_dlsearch_path_spec \
  14597. reload_cmds_CXX \
  14598. old_archive_cmds_CXX \
  14599. old_archive_from_new_cmds_CXX \
  14600. old_archive_from_expsyms_cmds_CXX \
  14601. archive_cmds_CXX \
  14602. archive_expsym_cmds_CXX \
  14603. module_cmds_CXX \
  14604. module_expsym_cmds_CXX \
  14605. export_symbols_cmds_CXX \
  14606. prelink_cmds_CXX; do
  14607. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14608. *[\\\\\\\`\\"\\\$]*)
  14609. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14610. ;;
  14611. *)
  14612. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14613. ;;
  14614. esac
  14615. done
  14616. ac_aux_dir='$ac_aux_dir'
  14617. xsi_shell='$xsi_shell'
  14618. lt_shell_append='$lt_shell_append'
  14619. # See if we are running on zsh, and set the options which allow our
  14620. # commands through without removal of \ escapes INIT.
  14621. if test -n "\${ZSH_VERSION+set}" ; then
  14622. setopt NO_GLOB_SUBST
  14623. fi
  14624. PACKAGE='$PACKAGE'
  14625. VERSION='$VERSION'
  14626. TIMESTAMP='$TIMESTAMP'
  14627. RM='$RM'
  14628. ofile='$ofile'
  14629. _ACEOF
  14630. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14631. # Handling of arguments.
  14632. for ac_config_target in $ac_config_targets
  14633. do
  14634. case $ac_config_target in
  14635. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  14636. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14637. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14638. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14639. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  14640. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14641. esac
  14642. done
  14643. # If the user did not use the arguments to specify the items to instantiate,
  14644. # then the envvar interface is used. Set only those that are not.
  14645. # We use the long form for the default assignment because of an extremely
  14646. # bizarre bug on SunOS 4.1.3.
  14647. if $ac_need_defaults; then
  14648. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14649. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14650. fi
  14651. # Have a temporary directory for convenience. Make it in the build tree
  14652. # simply because there is no reason against having it here, and in addition,
  14653. # creating and moving files from /tmp can sometimes cause problems.
  14654. # Hook for its removal unless debugging.
  14655. # Note that there is a small window in which the directory will not be cleaned:
  14656. # after its creation but before its name has been assigned to `$tmp'.
  14657. $debug ||
  14658. {
  14659. tmp= ac_tmp=
  14660. trap 'exit_status=$?
  14661. : "${ac_tmp:=$tmp}"
  14662. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14663. ' 0
  14664. trap 'as_fn_exit 1' 1 2 13 15
  14665. }
  14666. # Create a (secure) tmp directory for tmp files.
  14667. {
  14668. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14669. test -d "$tmp"
  14670. } ||
  14671. {
  14672. tmp=./conf$$-$RANDOM
  14673. (umask 077 && mkdir "$tmp")
  14674. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14675. ac_tmp=$tmp
  14676. # Set up the scripts for CONFIG_FILES section.
  14677. # No need to generate them if there are no CONFIG_FILES.
  14678. # This happens for instance with `./config.status config.h'.
  14679. if test -n "$CONFIG_FILES"; then
  14680. ac_cr=`echo X | tr X '\015'`
  14681. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14682. # But we know of no other shell where ac_cr would be empty at this
  14683. # point, so we can use a bashism as a fallback.
  14684. if test "x$ac_cr" = x; then
  14685. eval ac_cr=\$\'\\r\'
  14686. fi
  14687. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14688. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14689. ac_cs_awk_cr='\\r'
  14690. else
  14691. ac_cs_awk_cr=$ac_cr
  14692. fi
  14693. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14694. _ACEOF
  14695. {
  14696. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14697. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14698. echo "_ACEOF"
  14699. } >conf$$subs.sh ||
  14700. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14701. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14702. ac_delim='%!_!# '
  14703. for ac_last_try in false false false false false :; do
  14704. . ./conf$$subs.sh ||
  14705. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14706. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14707. if test $ac_delim_n = $ac_delim_num; then
  14708. break
  14709. elif $ac_last_try; then
  14710. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14711. else
  14712. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14713. fi
  14714. done
  14715. rm -f conf$$subs.sh
  14716. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14717. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14718. _ACEOF
  14719. sed -n '
  14720. h
  14721. s/^/S["/; s/!.*/"]=/
  14722. p
  14723. g
  14724. s/^[^!]*!//
  14725. :repl
  14726. t repl
  14727. s/'"$ac_delim"'$//
  14728. t delim
  14729. :nl
  14730. h
  14731. s/\(.\{148\}\)..*/\1/
  14732. t more1
  14733. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14734. p
  14735. n
  14736. b repl
  14737. :more1
  14738. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14739. p
  14740. g
  14741. s/.\{148\}//
  14742. t nl
  14743. :delim
  14744. h
  14745. s/\(.\{148\}\)..*/\1/
  14746. t more2
  14747. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14748. p
  14749. b
  14750. :more2
  14751. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14752. p
  14753. g
  14754. s/.\{148\}//
  14755. t delim
  14756. ' <conf$$subs.awk | sed '
  14757. /^[^""]/{
  14758. N
  14759. s/\n//
  14760. }
  14761. ' >>$CONFIG_STATUS || ac_write_fail=1
  14762. rm -f conf$$subs.awk
  14763. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14764. _ACAWK
  14765. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14766. for (key in S) S_is_set[key] = 1
  14767. FS = ""
  14768. }
  14769. {
  14770. line = $ 0
  14771. nfields = split(line, field, "@")
  14772. substed = 0
  14773. len = length(field[1])
  14774. for (i = 2; i < nfields; i++) {
  14775. key = field[i]
  14776. keylen = length(key)
  14777. if (S_is_set[key]) {
  14778. value = S[key]
  14779. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14780. len += length(value) + length(field[++i])
  14781. substed = 1
  14782. } else
  14783. len += 1 + keylen
  14784. }
  14785. print line
  14786. }
  14787. _ACAWK
  14788. _ACEOF
  14789. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14790. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14791. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14792. else
  14793. cat
  14794. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14795. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14796. _ACEOF
  14797. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14798. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14799. # trailing colons and then remove the whole line if VPATH becomes empty
  14800. # (actually we leave an empty line to preserve line numbers).
  14801. if test "x$srcdir" = x.; then
  14802. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14803. h
  14804. s///
  14805. s/^/:/
  14806. s/[ ]*$/:/
  14807. s/:\$(srcdir):/:/g
  14808. s/:\${srcdir}:/:/g
  14809. s/:@srcdir@:/:/g
  14810. s/^:*//
  14811. s/:*$//
  14812. x
  14813. s/\(=[ ]*\).*/\1/
  14814. G
  14815. s/\n//
  14816. s/^[^=]*=[ ]*$//
  14817. }'
  14818. fi
  14819. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14820. fi # test -n "$CONFIG_FILES"
  14821. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  14822. shift
  14823. for ac_tag
  14824. do
  14825. case $ac_tag in
  14826. :[FHLC]) ac_mode=$ac_tag; continue;;
  14827. esac
  14828. case $ac_mode$ac_tag in
  14829. :[FHL]*:*);;
  14830. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14831. :[FH]-) ac_tag=-:-;;
  14832. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14833. esac
  14834. ac_save_IFS=$IFS
  14835. IFS=:
  14836. set x $ac_tag
  14837. IFS=$ac_save_IFS
  14838. shift
  14839. ac_file=$1
  14840. shift
  14841. case $ac_mode in
  14842. :L) ac_source=$1;;
  14843. :[FH])
  14844. ac_file_inputs=
  14845. for ac_f
  14846. do
  14847. case $ac_f in
  14848. -) ac_f="$ac_tmp/stdin";;
  14849. *) # Look for the file first in the build tree, then in the source tree
  14850. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14851. # because $ac_f cannot contain `:'.
  14852. test -f "$ac_f" ||
  14853. case $ac_f in
  14854. [\\/$]*) false;;
  14855. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14856. esac ||
  14857. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14858. esac
  14859. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14860. as_fn_append ac_file_inputs " '$ac_f'"
  14861. done
  14862. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14863. # use $as_me), people would be surprised to read:
  14864. # /* config.h. Generated by config.status. */
  14865. configure_input='Generated from '`
  14866. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14867. `' by configure.'
  14868. if test x"$ac_file" != x-; then
  14869. configure_input="$ac_file. $configure_input"
  14870. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14871. $as_echo "$as_me: creating $ac_file" >&6;}
  14872. fi
  14873. # Neutralize special characters interpreted by sed in replacement strings.
  14874. case $configure_input in #(
  14875. *\&* | *\|* | *\\* )
  14876. ac_sed_conf_input=`$as_echo "$configure_input" |
  14877. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14878. *) ac_sed_conf_input=$configure_input;;
  14879. esac
  14880. case $ac_tag in
  14881. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14882. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14883. esac
  14884. ;;
  14885. esac
  14886. ac_dir=`$as_dirname -- "$ac_file" ||
  14887. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14888. X"$ac_file" : 'X\(//\)[^/]' \| \
  14889. X"$ac_file" : 'X\(//\)$' \| \
  14890. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14891. $as_echo X"$ac_file" |
  14892. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14893. s//\1/
  14894. q
  14895. }
  14896. /^X\(\/\/\)[^/].*/{
  14897. s//\1/
  14898. q
  14899. }
  14900. /^X\(\/\/\)$/{
  14901. s//\1/
  14902. q
  14903. }
  14904. /^X\(\/\).*/{
  14905. s//\1/
  14906. q
  14907. }
  14908. s/.*/./; q'`
  14909. as_dir="$ac_dir"; as_fn_mkdir_p
  14910. ac_builddir=.
  14911. case "$ac_dir" in
  14912. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14913. *)
  14914. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14915. # A ".." for each directory in $ac_dir_suffix.
  14916. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14917. case $ac_top_builddir_sub in
  14918. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14919. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14920. esac ;;
  14921. esac
  14922. ac_abs_top_builddir=$ac_pwd
  14923. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14924. # for backward compatibility:
  14925. ac_top_builddir=$ac_top_build_prefix
  14926. case $srcdir in
  14927. .) # We are building in place.
  14928. ac_srcdir=.
  14929. ac_top_srcdir=$ac_top_builddir_sub
  14930. ac_abs_top_srcdir=$ac_pwd ;;
  14931. [\\/]* | ?:[\\/]* ) # Absolute name.
  14932. ac_srcdir=$srcdir$ac_dir_suffix;
  14933. ac_top_srcdir=$srcdir
  14934. ac_abs_top_srcdir=$srcdir ;;
  14935. *) # Relative name.
  14936. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14937. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14938. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14939. esac
  14940. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14941. case $ac_mode in
  14942. :F)
  14943. #
  14944. # CONFIG_FILE
  14945. #
  14946. case $INSTALL in
  14947. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14948. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14949. esac
  14950. ac_MKDIR_P=$MKDIR_P
  14951. case $MKDIR_P in
  14952. [\\/$]* | ?:[\\/]* ) ;;
  14953. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14954. esac
  14955. _ACEOF
  14956. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14957. # If the template does not know about datarootdir, expand it.
  14958. # FIXME: This hack should be removed a few years after 2.60.
  14959. ac_datarootdir_hack=; ac_datarootdir_seen=
  14960. ac_sed_dataroot='
  14961. /datarootdir/ {
  14962. p
  14963. q
  14964. }
  14965. /@datadir@/p
  14966. /@docdir@/p
  14967. /@infodir@/p
  14968. /@localedir@/p
  14969. /@mandir@/p'
  14970. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14971. *datarootdir*) ac_datarootdir_seen=yes;;
  14972. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14974. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14975. _ACEOF
  14976. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14977. ac_datarootdir_hack='
  14978. s&@datadir@&$datadir&g
  14979. s&@docdir@&$docdir&g
  14980. s&@infodir@&$infodir&g
  14981. s&@localedir@&$localedir&g
  14982. s&@mandir@&$mandir&g
  14983. s&\\\${datarootdir}&$datarootdir&g' ;;
  14984. esac
  14985. _ACEOF
  14986. # Neutralize VPATH when `$srcdir' = `.'.
  14987. # Shell code in configure.ac might set extrasub.
  14988. # FIXME: do we really want to maintain this feature?
  14989. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14990. ac_sed_extra="$ac_vpsub
  14991. $extrasub
  14992. _ACEOF
  14993. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14994. :t
  14995. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14996. s|@configure_input@|$ac_sed_conf_input|;t t
  14997. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14998. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14999. s&@srcdir@&$ac_srcdir&;t t
  15000. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15001. s&@top_srcdir@&$ac_top_srcdir&;t t
  15002. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15003. s&@builddir@&$ac_builddir&;t t
  15004. s&@abs_builddir@&$ac_abs_builddir&;t t
  15005. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15006. s&@INSTALL@&$ac_INSTALL&;t t
  15007. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15008. $ac_datarootdir_hack
  15009. "
  15010. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15011. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15012. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15013. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15014. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15015. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15016. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15017. which seems to be undefined. Please make sure it is defined" >&5
  15018. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15019. which seems to be undefined. Please make sure it is defined" >&2;}
  15020. rm -f "$ac_tmp/stdin"
  15021. case $ac_file in
  15022. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15023. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15024. esac \
  15025. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15026. ;;
  15027. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15028. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15029. ;;
  15030. esac
  15031. case $ac_file$ac_mode in
  15032. "default-1":C)
  15033. # Only add multilib support code if we just rebuilt the top-level
  15034. # Makefile.
  15035. case " $CONFIG_FILES " in
  15036. *" Makefile "*)
  15037. ac_file=Makefile . ${multi_basedir}/config-ml.in
  15038. ;;
  15039. esac ;;
  15040. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15041. # Older Autoconf quotes --file arguments for eval, but not when files
  15042. # are listed without --file. Let's play safe and only enable the eval
  15043. # if we detect the quoting.
  15044. case $CONFIG_FILES in
  15045. *\'*) eval set x "$CONFIG_FILES" ;;
  15046. *) set x $CONFIG_FILES ;;
  15047. esac
  15048. shift
  15049. for mf
  15050. do
  15051. # Strip MF so we end up with the name of the file.
  15052. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15053. # Check whether this is an Automake generated Makefile or not.
  15054. # We used to match only the files named 'Makefile.in', but
  15055. # some people rename them; so instead we look at the file content.
  15056. # Grep'ing the first line is not enough: some people post-process
  15057. # each Makefile.in and add a new line on top of each file to say so.
  15058. # Grep'ing the whole file is not good either: AIX grep has a line
  15059. # limit of 2048, but all sed's we know have understand at least 4000.
  15060. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15061. dirpart=`$as_dirname -- "$mf" ||
  15062. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15063. X"$mf" : 'X\(//\)[^/]' \| \
  15064. X"$mf" : 'X\(//\)$' \| \
  15065. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15066. $as_echo X"$mf" |
  15067. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15068. s//\1/
  15069. q
  15070. }
  15071. /^X\(\/\/\)[^/].*/{
  15072. s//\1/
  15073. q
  15074. }
  15075. /^X\(\/\/\)$/{
  15076. s//\1/
  15077. q
  15078. }
  15079. /^X\(\/\).*/{
  15080. s//\1/
  15081. q
  15082. }
  15083. s/.*/./; q'`
  15084. else
  15085. continue
  15086. fi
  15087. # Extract the definition of DEPDIR, am__include, and am__quote
  15088. # from the Makefile without running 'make'.
  15089. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15090. test -z "$DEPDIR" && continue
  15091. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15092. test -z "$am__include" && continue
  15093. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15094. # Find all dependency output files, they are included files with
  15095. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15096. # simplest approach to changing $(DEPDIR) to its actual value in the
  15097. # expansion.
  15098. for file in `sed -n "
  15099. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15100. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15101. # Make sure the directory exists.
  15102. test -f "$dirpart/$file" && continue
  15103. fdir=`$as_dirname -- "$file" ||
  15104. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15105. X"$file" : 'X\(//\)[^/]' \| \
  15106. X"$file" : 'X\(//\)$' \| \
  15107. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15108. $as_echo X"$file" |
  15109. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15110. s//\1/
  15111. q
  15112. }
  15113. /^X\(\/\/\)[^/].*/{
  15114. s//\1/
  15115. q
  15116. }
  15117. /^X\(\/\/\)$/{
  15118. s//\1/
  15119. q
  15120. }
  15121. /^X\(\/\).*/{
  15122. s//\1/
  15123. q
  15124. }
  15125. s/.*/./; q'`
  15126. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15127. # echo "creating $dirpart/$file"
  15128. echo '# dummy' > "$dirpart/$file"
  15129. done
  15130. done
  15131. }
  15132. ;;
  15133. "libtool":C)
  15134. # See if we are running on zsh, and set the options which allow our
  15135. # commands through without removal of \ escapes.
  15136. if test -n "${ZSH_VERSION+set}" ; then
  15137. setopt NO_GLOB_SUBST
  15138. fi
  15139. cfgfile="${ofile}T"
  15140. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15141. $RM "$cfgfile"
  15142. cat <<_LT_EOF >> "$cfgfile"
  15143. #! $SHELL
  15144. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15145. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15146. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15147. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15148. #
  15149. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15150. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15151. # Written by Gordon Matzigkeit, 1996
  15152. #
  15153. # This file is part of GNU Libtool.
  15154. #
  15155. # GNU Libtool is free software; you can redistribute it and/or
  15156. # modify it under the terms of the GNU General Public License as
  15157. # published by the Free Software Foundation; either version 2 of
  15158. # the License, or (at your option) any later version.
  15159. #
  15160. # As a special exception to the GNU General Public License,
  15161. # if you distribute this file as part of a program or library that
  15162. # is built using GNU Libtool, you may include this file under the
  15163. # same distribution terms that you use for the rest of that program.
  15164. #
  15165. # GNU Libtool is distributed in the hope that it will be useful,
  15166. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15167. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15168. # GNU General Public License for more details.
  15169. #
  15170. # You should have received a copy of the GNU General Public License
  15171. # along with GNU Libtool; see the file COPYING. If not, a copy
  15172. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15173. # obtained by writing to the Free Software Foundation, Inc.,
  15174. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15175. # The names of the tagged configurations supported by this script.
  15176. available_tags="CXX "
  15177. # ### BEGIN LIBTOOL CONFIG
  15178. # Which release of libtool.m4 was used?
  15179. macro_version=$macro_version
  15180. macro_revision=$macro_revision
  15181. # Whether or not to build shared libraries.
  15182. build_libtool_libs=$enable_shared
  15183. # Whether or not to build static libraries.
  15184. build_old_libs=$enable_static
  15185. # What type of objects to build.
  15186. pic_mode=$pic_mode
  15187. # Whether or not to optimize for fast installation.
  15188. fast_install=$enable_fast_install
  15189. # Shell to use when invoking shell scripts.
  15190. SHELL=$lt_SHELL
  15191. # An echo program that protects backslashes.
  15192. ECHO=$lt_ECHO
  15193. # The host system.
  15194. host_alias=$host_alias
  15195. host=$host
  15196. host_os=$host_os
  15197. # The build system.
  15198. build_alias=$build_alias
  15199. build=$build
  15200. build_os=$build_os
  15201. # A sed program that does not truncate output.
  15202. SED=$lt_SED
  15203. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15204. Xsed="\$SED -e 1s/^X//"
  15205. # A grep program that handles long lines.
  15206. GREP=$lt_GREP
  15207. # An ERE matcher.
  15208. EGREP=$lt_EGREP
  15209. # A literal string matcher.
  15210. FGREP=$lt_FGREP
  15211. # A BSD- or MS-compatible name lister.
  15212. NM=$lt_NM
  15213. # Whether we need soft or hard links.
  15214. LN_S=$lt_LN_S
  15215. # What is the maximum length of a command?
  15216. max_cmd_len=$max_cmd_len
  15217. # Object file suffix (normally "o").
  15218. objext=$ac_objext
  15219. # Executable file suffix (normally "").
  15220. exeext=$exeext
  15221. # whether the shell understands "unset".
  15222. lt_unset=$lt_unset
  15223. # turn spaces into newlines.
  15224. SP2NL=$lt_lt_SP2NL
  15225. # turn newlines into spaces.
  15226. NL2SP=$lt_lt_NL2SP
  15227. # An object symbol dumper.
  15228. OBJDUMP=$lt_OBJDUMP
  15229. # Method to check whether dependent libraries are shared objects.
  15230. deplibs_check_method=$lt_deplibs_check_method
  15231. # Command to use when deplibs_check_method == "file_magic".
  15232. file_magic_cmd=$lt_file_magic_cmd
  15233. # The archiver.
  15234. AR=$lt_AR
  15235. AR_FLAGS=$lt_AR_FLAGS
  15236. # A symbol stripping program.
  15237. STRIP=$lt_STRIP
  15238. # Commands used to install an old-style archive.
  15239. RANLIB=$lt_RANLIB
  15240. old_postinstall_cmds=$lt_old_postinstall_cmds
  15241. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15242. # Whether to use a lock for old archive extraction.
  15243. lock_old_archive_extraction=$lock_old_archive_extraction
  15244. # A C compiler.
  15245. LTCC=$lt_CC
  15246. # LTCC compiler flags.
  15247. LTCFLAGS=$lt_CFLAGS
  15248. # Take the output of nm and produce a listing of raw symbols and C names.
  15249. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15250. # Transform the output of nm in a proper C declaration.
  15251. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15252. # Transform the output of nm in a C name address pair.
  15253. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15254. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15255. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15256. # The name of the directory that contains temporary libtool files.
  15257. objdir=$objdir
  15258. # Used to examine libraries when file_magic_cmd begins with "file".
  15259. MAGIC_CMD=$MAGIC_CMD
  15260. # Must we lock files when doing compilation?
  15261. need_locks=$lt_need_locks
  15262. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15263. DSYMUTIL=$lt_DSYMUTIL
  15264. # Tool to change global to local symbols on Mac OS X.
  15265. NMEDIT=$lt_NMEDIT
  15266. # Tool to manipulate fat objects and archives on Mac OS X.
  15267. LIPO=$lt_LIPO
  15268. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15269. OTOOL=$lt_OTOOL
  15270. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15271. OTOOL64=$lt_OTOOL64
  15272. # Old archive suffix (normally "a").
  15273. libext=$libext
  15274. # Shared library suffix (normally ".so").
  15275. shrext_cmds=$lt_shrext_cmds
  15276. # The commands to extract the exported symbol list from a shared archive.
  15277. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15278. # Variables whose values should be saved in libtool wrapper scripts and
  15279. # restored at link time.
  15280. variables_saved_for_relink=$lt_variables_saved_for_relink
  15281. # Do we need the "lib" prefix for modules?
  15282. need_lib_prefix=$need_lib_prefix
  15283. # Do we need a version for libraries?
  15284. need_version=$need_version
  15285. # Library versioning type.
  15286. version_type=$version_type
  15287. # Shared library runtime path variable.
  15288. runpath_var=$runpath_var
  15289. # Shared library path variable.
  15290. shlibpath_var=$shlibpath_var
  15291. # Is shlibpath searched before the hard-coded library search path?
  15292. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15293. # Format of library name prefix.
  15294. libname_spec=$lt_libname_spec
  15295. # List of archive names. First name is the real one, the rest are links.
  15296. # The last name is the one that the linker finds with -lNAME
  15297. library_names_spec=$lt_library_names_spec
  15298. # The coded name of the library, if different from the real name.
  15299. soname_spec=$lt_soname_spec
  15300. # Permission mode override for installation of shared libraries.
  15301. install_override_mode=$lt_install_override_mode
  15302. # Command to use after installation of a shared archive.
  15303. postinstall_cmds=$lt_postinstall_cmds
  15304. # Command to use after uninstallation of a shared archive.
  15305. postuninstall_cmds=$lt_postuninstall_cmds
  15306. # Commands used to finish a libtool library installation in a directory.
  15307. finish_cmds=$lt_finish_cmds
  15308. # As "finish_cmds", except a single script fragment to be evaled but
  15309. # not shown.
  15310. finish_eval=$lt_finish_eval
  15311. # Whether we should hardcode library paths into libraries.
  15312. hardcode_into_libs=$hardcode_into_libs
  15313. # Compile-time system search path for libraries.
  15314. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15315. # Run-time system search path for libraries.
  15316. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15317. # Whether dlopen is supported.
  15318. dlopen_support=$enable_dlopen
  15319. # Whether dlopen of programs is supported.
  15320. dlopen_self=$enable_dlopen_self
  15321. # Whether dlopen of statically linked programs is supported.
  15322. dlopen_self_static=$enable_dlopen_self_static
  15323. # Commands to strip libraries.
  15324. old_striplib=$lt_old_striplib
  15325. striplib=$lt_striplib
  15326. # The linker used to build libraries.
  15327. LD=$lt_LD
  15328. # How to create reloadable object files.
  15329. reload_flag=$lt_reload_flag
  15330. reload_cmds=$lt_reload_cmds
  15331. # Commands used to build an old-style archive.
  15332. old_archive_cmds=$lt_old_archive_cmds
  15333. # A language specific compiler.
  15334. CC=$lt_compiler
  15335. # Is the compiler the GNU compiler?
  15336. with_gcc=$GCC
  15337. # Compiler flag to turn off builtin functions.
  15338. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15339. # How to pass a linker flag through the compiler.
  15340. wl=$lt_lt_prog_compiler_wl
  15341. # Additional compiler flags for building library objects.
  15342. pic_flag=$lt_lt_prog_compiler_pic
  15343. # Compiler flag to prevent dynamic linking.
  15344. link_static_flag=$lt_lt_prog_compiler_static
  15345. # Does compiler simultaneously support -c and -o options?
  15346. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15347. # Whether or not to add -lc for building shared libraries.
  15348. build_libtool_need_lc=$archive_cmds_need_lc
  15349. # Whether or not to disallow shared libs when runtime libs are static.
  15350. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15351. # Compiler flag to allow reflexive dlopens.
  15352. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15353. # Compiler flag to generate shared objects directly from archives.
  15354. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15355. # Whether the compiler copes with passing no objects directly.
  15356. compiler_needs_object=$lt_compiler_needs_object
  15357. # Create an old-style archive from a shared archive.
  15358. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15359. # Create a temporary old-style archive to link instead of a shared archive.
  15360. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15361. # Commands used to build a shared archive.
  15362. archive_cmds=$lt_archive_cmds
  15363. archive_expsym_cmds=$lt_archive_expsym_cmds
  15364. # Commands used to build a loadable module if different from building
  15365. # a shared archive.
  15366. module_cmds=$lt_module_cmds
  15367. module_expsym_cmds=$lt_module_expsym_cmds
  15368. # Whether we are building with GNU ld or not.
  15369. with_gnu_ld=$lt_with_gnu_ld
  15370. # Flag that allows shared libraries with undefined symbols to be built.
  15371. allow_undefined_flag=$lt_allow_undefined_flag
  15372. # Flag that enforces no undefined symbols.
  15373. no_undefined_flag=$lt_no_undefined_flag
  15374. # Flag to hardcode \$libdir into a binary during linking.
  15375. # This must work even if \$libdir does not exist
  15376. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15377. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15378. # during linking. This must work even if \$libdir does not exist.
  15379. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15380. # Whether we need a single "-rpath" flag with a separated argument.
  15381. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15382. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15383. # DIR into the resulting binary.
  15384. hardcode_direct=$hardcode_direct
  15385. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15386. # DIR into the resulting binary and the resulting library dependency is
  15387. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15388. # library is relocated.
  15389. hardcode_direct_absolute=$hardcode_direct_absolute
  15390. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15391. # into the resulting binary.
  15392. hardcode_minus_L=$hardcode_minus_L
  15393. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15394. # into the resulting binary.
  15395. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15396. # Set to "yes" if building a shared library automatically hardcodes DIR
  15397. # into the library and all subsequent libraries and executables linked
  15398. # against it.
  15399. hardcode_automatic=$hardcode_automatic
  15400. # Set to yes if linker adds runtime paths of dependent libraries
  15401. # to runtime path list.
  15402. inherit_rpath=$inherit_rpath
  15403. # Whether libtool must link a program against all its dependency libraries.
  15404. link_all_deplibs=$link_all_deplibs
  15405. # Fix the shell variable \$srcfile for the compiler.
  15406. fix_srcfile_path=$lt_fix_srcfile_path
  15407. # Set to "yes" if exported symbols are required.
  15408. always_export_symbols=$always_export_symbols
  15409. # The commands to list exported symbols.
  15410. export_symbols_cmds=$lt_export_symbols_cmds
  15411. # Symbols that should not be listed in the preloaded symbols.
  15412. exclude_expsyms=$lt_exclude_expsyms
  15413. # Symbols that must always be exported.
  15414. include_expsyms=$lt_include_expsyms
  15415. # Commands necessary for linking programs (against libraries) with templates.
  15416. prelink_cmds=$lt_prelink_cmds
  15417. # Specify filename containing input files.
  15418. file_list_spec=$lt_file_list_spec
  15419. # How to hardcode a shared library path into an executable.
  15420. hardcode_action=$hardcode_action
  15421. # The directories searched by this compiler when creating a shared library.
  15422. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15423. # Dependencies to place before and after the objects being linked to
  15424. # create a shared library.
  15425. predep_objects=$lt_predep_objects
  15426. postdep_objects=$lt_postdep_objects
  15427. predeps=$lt_predeps
  15428. postdeps=$lt_postdeps
  15429. # The library search path used internally by the compiler when linking
  15430. # a shared library.
  15431. compiler_lib_search_path=$lt_compiler_lib_search_path
  15432. # ### END LIBTOOL CONFIG
  15433. _LT_EOF
  15434. case $host_os in
  15435. aix3*)
  15436. cat <<\_LT_EOF >> "$cfgfile"
  15437. # AIX sometimes has problems with the GCC collect2 program. For some
  15438. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15439. # vanish in a puff of smoke.
  15440. if test "X${COLLECT_NAMES+set}" != Xset; then
  15441. COLLECT_NAMES=
  15442. export COLLECT_NAMES
  15443. fi
  15444. _LT_EOF
  15445. ;;
  15446. esac
  15447. ltmain="$ac_aux_dir/ltmain.sh"
  15448. # We use sed instead of cat because bash on DJGPP gets confused if
  15449. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15450. # text mode, it properly converts lines to CR/LF. This bash problem
  15451. # is reportedly fixed, but why not run on old versions too?
  15452. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15453. || (rm -f "$cfgfile"; exit 1)
  15454. case $xsi_shell in
  15455. yes)
  15456. cat << \_LT_EOF >> "$cfgfile"
  15457. # func_dirname file append nondir_replacement
  15458. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15459. # otherwise set result to NONDIR_REPLACEMENT.
  15460. func_dirname ()
  15461. {
  15462. case ${1} in
  15463. */*) func_dirname_result="${1%/*}${2}" ;;
  15464. * ) func_dirname_result="${3}" ;;
  15465. esac
  15466. }
  15467. # func_basename file
  15468. func_basename ()
  15469. {
  15470. func_basename_result="${1##*/}"
  15471. }
  15472. # func_dirname_and_basename file append nondir_replacement
  15473. # perform func_basename and func_dirname in a single function
  15474. # call:
  15475. # dirname: Compute the dirname of FILE. If nonempty,
  15476. # add APPEND to the result, otherwise set result
  15477. # to NONDIR_REPLACEMENT.
  15478. # value returned in "$func_dirname_result"
  15479. # basename: Compute filename of FILE.
  15480. # value retuned in "$func_basename_result"
  15481. # Implementation must be kept synchronized with func_dirname
  15482. # and func_basename. For efficiency, we do not delegate to
  15483. # those functions but instead duplicate the functionality here.
  15484. func_dirname_and_basename ()
  15485. {
  15486. case ${1} in
  15487. */*) func_dirname_result="${1%/*}${2}" ;;
  15488. * ) func_dirname_result="${3}" ;;
  15489. esac
  15490. func_basename_result="${1##*/}"
  15491. }
  15492. # func_stripname prefix suffix name
  15493. # strip PREFIX and SUFFIX off of NAME.
  15494. # PREFIX and SUFFIX must not contain globbing or regex special
  15495. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15496. # dot (in which case that matches only a dot).
  15497. func_stripname ()
  15498. {
  15499. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15500. # positional parameters, so assign one to ordinary parameter first.
  15501. func_stripname_result=${3}
  15502. func_stripname_result=${func_stripname_result#"${1}"}
  15503. func_stripname_result=${func_stripname_result%"${2}"}
  15504. }
  15505. # func_opt_split
  15506. func_opt_split ()
  15507. {
  15508. func_opt_split_opt=${1%%=*}
  15509. func_opt_split_arg=${1#*=}
  15510. }
  15511. # func_lo2o object
  15512. func_lo2o ()
  15513. {
  15514. case ${1} in
  15515. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15516. *) func_lo2o_result=${1} ;;
  15517. esac
  15518. }
  15519. # func_xform libobj-or-source
  15520. func_xform ()
  15521. {
  15522. func_xform_result=${1%.*}.lo
  15523. }
  15524. # func_arith arithmetic-term...
  15525. func_arith ()
  15526. {
  15527. func_arith_result=$(( $* ))
  15528. }
  15529. # func_len string
  15530. # STRING may not start with a hyphen.
  15531. func_len ()
  15532. {
  15533. func_len_result=${#1}
  15534. }
  15535. _LT_EOF
  15536. ;;
  15537. *) # Bourne compatible functions.
  15538. cat << \_LT_EOF >> "$cfgfile"
  15539. # func_dirname file append nondir_replacement
  15540. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15541. # otherwise set result to NONDIR_REPLACEMENT.
  15542. func_dirname ()
  15543. {
  15544. # Extract subdirectory from the argument.
  15545. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  15546. if test "X$func_dirname_result" = "X${1}"; then
  15547. func_dirname_result="${3}"
  15548. else
  15549. func_dirname_result="$func_dirname_result${2}"
  15550. fi
  15551. }
  15552. # func_basename file
  15553. func_basename ()
  15554. {
  15555. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  15556. }
  15557. # func_stripname prefix suffix name
  15558. # strip PREFIX and SUFFIX off of NAME.
  15559. # PREFIX and SUFFIX must not contain globbing or regex special
  15560. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15561. # dot (in which case that matches only a dot).
  15562. # func_strip_suffix prefix name
  15563. func_stripname ()
  15564. {
  15565. case ${2} in
  15566. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  15567. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  15568. esac
  15569. }
  15570. # sed scripts:
  15571. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15572. my_sed_long_arg='1s/^-[^=]*=//'
  15573. # func_opt_split
  15574. func_opt_split ()
  15575. {
  15576. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  15577. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  15578. }
  15579. # func_lo2o object
  15580. func_lo2o ()
  15581. {
  15582. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  15583. }
  15584. # func_xform libobj-or-source
  15585. func_xform ()
  15586. {
  15587. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  15588. }
  15589. # func_arith arithmetic-term...
  15590. func_arith ()
  15591. {
  15592. func_arith_result=`expr "$@"`
  15593. }
  15594. # func_len string
  15595. # STRING may not start with a hyphen.
  15596. func_len ()
  15597. {
  15598. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15599. }
  15600. _LT_EOF
  15601. esac
  15602. case $lt_shell_append in
  15603. yes)
  15604. cat << \_LT_EOF >> "$cfgfile"
  15605. # func_append var value
  15606. # Append VALUE to the end of shell variable VAR.
  15607. func_append ()
  15608. {
  15609. eval "$1+=\$2"
  15610. }
  15611. _LT_EOF
  15612. ;;
  15613. *)
  15614. cat << \_LT_EOF >> "$cfgfile"
  15615. # func_append var value
  15616. # Append VALUE to the end of shell variable VAR.
  15617. func_append ()
  15618. {
  15619. eval "$1=\$$1\$2"
  15620. }
  15621. _LT_EOF
  15622. ;;
  15623. esac
  15624. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15625. || (rm -f "$cfgfile"; exit 1)
  15626. mv -f "$cfgfile" "$ofile" ||
  15627. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15628. chmod +x "$ofile"
  15629. cat <<_LT_EOF >> "$ofile"
  15630. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15631. # The linker used to build libraries.
  15632. LD=$lt_LD_CXX
  15633. # How to create reloadable object files.
  15634. reload_flag=$lt_reload_flag_CXX
  15635. reload_cmds=$lt_reload_cmds_CXX
  15636. # Commands used to build an old-style archive.
  15637. old_archive_cmds=$lt_old_archive_cmds_CXX
  15638. # A language specific compiler.
  15639. CC=$lt_compiler_CXX
  15640. # Is the compiler the GNU compiler?
  15641. with_gcc=$GCC_CXX
  15642. # Compiler flag to turn off builtin functions.
  15643. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15644. # How to pass a linker flag through the compiler.
  15645. wl=$lt_lt_prog_compiler_wl_CXX
  15646. # Additional compiler flags for building library objects.
  15647. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15648. # Compiler flag to prevent dynamic linking.
  15649. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15650. # Does compiler simultaneously support -c and -o options?
  15651. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15652. # Whether or not to add -lc for building shared libraries.
  15653. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15654. # Whether or not to disallow shared libs when runtime libs are static.
  15655. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15656. # Compiler flag to allow reflexive dlopens.
  15657. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15658. # Compiler flag to generate shared objects directly from archives.
  15659. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15660. # Whether the compiler copes with passing no objects directly.
  15661. compiler_needs_object=$lt_compiler_needs_object_CXX
  15662. # Create an old-style archive from a shared archive.
  15663. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15664. # Create a temporary old-style archive to link instead of a shared archive.
  15665. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15666. # Commands used to build a shared archive.
  15667. archive_cmds=$lt_archive_cmds_CXX
  15668. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15669. # Commands used to build a loadable module if different from building
  15670. # a shared archive.
  15671. module_cmds=$lt_module_cmds_CXX
  15672. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15673. # Whether we are building with GNU ld or not.
  15674. with_gnu_ld=$lt_with_gnu_ld_CXX
  15675. # Flag that allows shared libraries with undefined symbols to be built.
  15676. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15677. # Flag that enforces no undefined symbols.
  15678. no_undefined_flag=$lt_no_undefined_flag_CXX
  15679. # Flag to hardcode \$libdir into a binary during linking.
  15680. # This must work even if \$libdir does not exist
  15681. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15682. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15683. # during linking. This must work even if \$libdir does not exist.
  15684. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15685. # Whether we need a single "-rpath" flag with a separated argument.
  15686. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15687. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15688. # DIR into the resulting binary.
  15689. hardcode_direct=$hardcode_direct_CXX
  15690. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15691. # DIR into the resulting binary and the resulting library dependency is
  15692. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15693. # library is relocated.
  15694. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15695. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15696. # into the resulting binary.
  15697. hardcode_minus_L=$hardcode_minus_L_CXX
  15698. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15699. # into the resulting binary.
  15700. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15701. # Set to "yes" if building a shared library automatically hardcodes DIR
  15702. # into the library and all subsequent libraries and executables linked
  15703. # against it.
  15704. hardcode_automatic=$hardcode_automatic_CXX
  15705. # Set to yes if linker adds runtime paths of dependent libraries
  15706. # to runtime path list.
  15707. inherit_rpath=$inherit_rpath_CXX
  15708. # Whether libtool must link a program against all its dependency libraries.
  15709. link_all_deplibs=$link_all_deplibs_CXX
  15710. # Fix the shell variable \$srcfile for the compiler.
  15711. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  15712. # Set to "yes" if exported symbols are required.
  15713. always_export_symbols=$always_export_symbols_CXX
  15714. # The commands to list exported symbols.
  15715. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15716. # Symbols that should not be listed in the preloaded symbols.
  15717. exclude_expsyms=$lt_exclude_expsyms_CXX
  15718. # Symbols that must always be exported.
  15719. include_expsyms=$lt_include_expsyms_CXX
  15720. # Commands necessary for linking programs (against libraries) with templates.
  15721. prelink_cmds=$lt_prelink_cmds_CXX
  15722. # Specify filename containing input files.
  15723. file_list_spec=$lt_file_list_spec_CXX
  15724. # How to hardcode a shared library path into an executable.
  15725. hardcode_action=$hardcode_action_CXX
  15726. # The directories searched by this compiler when creating a shared library.
  15727. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15728. # Dependencies to place before and after the objects being linked to
  15729. # create a shared library.
  15730. predep_objects=$lt_predep_objects_CXX
  15731. postdep_objects=$lt_postdep_objects_CXX
  15732. predeps=$lt_predeps_CXX
  15733. postdeps=$lt_postdeps_CXX
  15734. # The library search path used internally by the compiler when linking
  15735. # a shared library.
  15736. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15737. # ### END LIBTOOL TAG CONFIG: CXX
  15738. _LT_EOF
  15739. ;;
  15740. "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
  15741. s!`test -f '$<' || echo '$(srcdir)/'`!!
  15742. _EOF
  15743. sed -f vpsed$$ $ac_file > tmp$$
  15744. mv tmp$$ $ac_file
  15745. rm vpsed$$
  15746. echo 'MULTISUBDIR =' >> $ac_file
  15747. ml_norecursion=yes
  15748. . ${multi_basedir}/config-ml.in
  15749. { ml_norecursion=; unset ml_norecursion;}
  15750. ;;
  15751. esac
  15752. done # for ac_tag
  15753. as_fn_exit 0
  15754. _ACEOF
  15755. ac_clean_files=$ac_clean_files_save
  15756. test $ac_write_fail = 0 ||
  15757. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15758. # configure is writing to config.log, and then calls config.status.
  15759. # config.status does its own redirection, appending to config.log.
  15760. # Unfortunately, on DOS this fails, as config.log is still kept open
  15761. # by configure, so config.status won't be able to write to it; its
  15762. # output is simply discarded. So we exec the FD to /dev/null,
  15763. # effectively closing config.log, so it can be properly (re)opened and
  15764. # appended to by config.status. When coming back to configure, we
  15765. # need to make the FD available again.
  15766. if test "$no_create" != yes; then
  15767. ac_cs_success=:
  15768. ac_config_status_args=
  15769. test "$silent" = yes &&
  15770. ac_config_status_args="$ac_config_status_args --quiet"
  15771. exec 5>/dev/null
  15772. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15773. exec 5>>config.log
  15774. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15775. # would make configure fail if this is the last instruction.
  15776. $ac_cs_success || as_fn_exit 1
  15777. fi
  15778. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15780. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15781. fi