configure 594 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for package-unused version-unused.
  4. #
  5. # Report bugs to <libsanitizer>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
  259. $0: your system, including any error possibly output before
  260. $0: this message. Then install a modern shell, or manually
  261. $0: run the script under such a shell if you do have one."
  262. fi
  263. exit 1
  264. fi
  265. fi
  266. fi
  267. SHELL=${CONFIG_SHELL-/bin/sh}
  268. export SHELL
  269. # Unset more variables known to interfere with behavior of common tools.
  270. CLICOLOR_FORCE= GREP_OPTIONS=
  271. unset CLICOLOR_FORCE GREP_OPTIONS
  272. ## --------------------- ##
  273. ## M4sh Shell Functions. ##
  274. ## --------------------- ##
  275. # as_fn_unset VAR
  276. # ---------------
  277. # Portably unset VAR.
  278. as_fn_unset ()
  279. {
  280. { eval $1=; unset $1;}
  281. }
  282. as_unset=as_fn_unset
  283. # as_fn_set_status STATUS
  284. # -----------------------
  285. # Set $? to STATUS, without forking.
  286. as_fn_set_status ()
  287. {
  288. return $1
  289. } # as_fn_set_status
  290. # as_fn_exit STATUS
  291. # -----------------
  292. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  293. as_fn_exit ()
  294. {
  295. set +e
  296. as_fn_set_status $1
  297. exit $1
  298. } # as_fn_exit
  299. # as_fn_mkdir_p
  300. # -------------
  301. # Create "$as_dir" as a directory, including parents if necessary.
  302. as_fn_mkdir_p ()
  303. {
  304. case $as_dir in #(
  305. -*) as_dir=./$as_dir;;
  306. esac
  307. test -d "$as_dir" || eval $as_mkdir_p || {
  308. as_dirs=
  309. while :; do
  310. case $as_dir in #(
  311. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  312. *) as_qdir=$as_dir;;
  313. esac
  314. as_dirs="'$as_qdir' $as_dirs"
  315. as_dir=`$as_dirname -- "$as_dir" ||
  316. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  317. X"$as_dir" : 'X\(//\)[^/]' \| \
  318. X"$as_dir" : 'X\(//\)$' \| \
  319. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  320. $as_echo X"$as_dir" |
  321. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  322. s//\1/
  323. q
  324. }
  325. /^X\(\/\/\)[^/].*/{
  326. s//\1/
  327. q
  328. }
  329. /^X\(\/\/\)$/{
  330. s//\1/
  331. q
  332. }
  333. /^X\(\/\).*/{
  334. s//\1/
  335. q
  336. }
  337. s/.*/./; q'`
  338. test -d "$as_dir" && break
  339. done
  340. test -z "$as_dirs" || eval "mkdir $as_dirs"
  341. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  342. } # as_fn_mkdir_p
  343. # as_fn_executable_p FILE
  344. # -----------------------
  345. # Test if FILE is an executable regular file.
  346. as_fn_executable_p ()
  347. {
  348. test -f "$1" && test -x "$1"
  349. } # as_fn_executable_p
  350. # as_fn_append VAR VALUE
  351. # ----------------------
  352. # Append the text in VALUE to the end of the definition contained in VAR. Take
  353. # advantage of any shell optimizations that allow amortized linear growth over
  354. # repeated appends, instead of the typical quadratic growth present in naive
  355. # implementations.
  356. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  357. eval 'as_fn_append ()
  358. {
  359. eval $1+=\$2
  360. }'
  361. else
  362. as_fn_append ()
  363. {
  364. eval $1=\$$1\$2
  365. }
  366. fi # as_fn_append
  367. # as_fn_arith ARG...
  368. # ------------------
  369. # Perform arithmetic evaluation on the ARGs, and store the result in the
  370. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  371. # must be portable across $(()) and expr.
  372. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  373. eval 'as_fn_arith ()
  374. {
  375. as_val=$(( $* ))
  376. }'
  377. else
  378. as_fn_arith ()
  379. {
  380. as_val=`expr "$@" || test $? -eq 1`
  381. }
  382. fi # as_fn_arith
  383. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  384. # ----------------------------------------
  385. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  386. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  387. # script with STATUS, using 1 if that was 0.
  388. as_fn_error ()
  389. {
  390. as_status=$1; test $as_status -eq 0 && as_status=1
  391. if test "$4"; then
  392. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  393. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  394. fi
  395. $as_echo "$as_me: error: $2" >&2
  396. as_fn_exit $as_status
  397. } # as_fn_error
  398. if expr a : '\(a\)' >/dev/null 2>&1 &&
  399. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  400. as_expr=expr
  401. else
  402. as_expr=false
  403. fi
  404. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  405. as_basename=basename
  406. else
  407. as_basename=false
  408. fi
  409. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  410. as_dirname=dirname
  411. else
  412. as_dirname=false
  413. fi
  414. as_me=`$as_basename -- "$0" ||
  415. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  416. X"$0" : 'X\(//\)$' \| \
  417. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  418. $as_echo X/"$0" |
  419. sed '/^.*\/\([^/][^/]*\)\/*$/{
  420. s//\1/
  421. q
  422. }
  423. /^X\/\(\/\/\)$/{
  424. s//\1/
  425. q
  426. }
  427. /^X\/\(\/\).*/{
  428. s//\1/
  429. q
  430. }
  431. s/.*/./; q'`
  432. # Avoid depending upon Character Ranges.
  433. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  434. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  435. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  436. as_cr_digits='0123456789'
  437. as_cr_alnum=$as_cr_Letters$as_cr_digits
  438. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  439. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  440. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  441. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  442. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  443. sed -n '
  444. p
  445. /[$]LINENO/=
  446. ' <$as_myself |
  447. sed '
  448. s/[$]LINENO.*/&-/
  449. t lineno
  450. b
  451. :lineno
  452. N
  453. :loop
  454. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  455. t loop
  456. s/-\n.*//
  457. ' >$as_me.lineno &&
  458. chmod +x "$as_me.lineno" ||
  459. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  460. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  461. # already done that, so ensure we don't try to do so again and fall
  462. # in an infinite loop. This has already happened in practice.
  463. _as_can_reexec=no; export _as_can_reexec
  464. # Don't try to exec as it changes $[0], causing all sort of problems
  465. # (the dirname of $[0] is not the place where we might find the
  466. # original and so on. Autoconf is especially sensitive to this).
  467. . "./$as_me.lineno"
  468. # Exit status is that of the last command.
  469. exit
  470. }
  471. ECHO_C= ECHO_N= ECHO_T=
  472. case `echo -n x` in #(((((
  473. -n*)
  474. case `echo 'xy\c'` in
  475. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  476. xy) ECHO_C='\c';;
  477. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  478. ECHO_T=' ';;
  479. esac;;
  480. *)
  481. ECHO_N='-n';;
  482. esac
  483. rm -f conf$$ conf$$.exe conf$$.file
  484. if test -d conf$$.dir; then
  485. rm -f conf$$.dir/conf$$.file
  486. else
  487. rm -f conf$$.dir
  488. mkdir conf$$.dir 2>/dev/null
  489. fi
  490. if (echo >conf$$.file) 2>/dev/null; then
  491. if ln -s conf$$.file conf$$ 2>/dev/null; then
  492. as_ln_s='ln -s'
  493. # ... but there are two gotchas:
  494. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  495. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  496. # In both cases, we have to default to `cp -pR'.
  497. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  498. as_ln_s='cp -pR'
  499. elif ln conf$$.file conf$$ 2>/dev/null; then
  500. as_ln_s=ln
  501. else
  502. as_ln_s='cp -pR'
  503. fi
  504. else
  505. as_ln_s='cp -pR'
  506. fi
  507. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  508. rmdir conf$$.dir 2>/dev/null
  509. if mkdir -p . 2>/dev/null; then
  510. as_mkdir_p='mkdir -p "$as_dir"'
  511. else
  512. test -d ./-p && rmdir ./-p
  513. as_mkdir_p=false
  514. fi
  515. as_test_x='test -x'
  516. as_executable_p=as_fn_executable_p
  517. # Sed expression to map a string onto a valid CPP name.
  518. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  519. # Sed expression to map a string onto a valid variable name.
  520. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  521. SHELL=${CONFIG_SHELL-/bin/sh}
  522. test -n "$DJDIR" || exec 7<&0 </dev/null
  523. exec 6>&1
  524. # Name of the host.
  525. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  526. # so uname gets run too.
  527. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  528. #
  529. # Initializations.
  530. #
  531. ac_default_prefix=/usr/local
  532. ac_clean_files=
  533. ac_config_libobj_dir=.
  534. LIBOBJS=
  535. cross_compiling=no
  536. subdirs=
  537. MFLAGS=
  538. MAKEFLAGS=
  539. # Identity of this package.
  540. PACKAGE_NAME='package-unused'
  541. PACKAGE_TARNAME='package-unused'
  542. PACKAGE_VERSION='version-unused'
  543. PACKAGE_STRING='package-unused version-unused'
  544. PACKAGE_BUGREPORT='libsanitizer'
  545. PACKAGE_URL=''
  546. ac_unique_file="include/sanitizer/common_interface_defs.h"
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_subst_vars='am__EXEEXT_FALSE
  583. am__EXEEXT_TRUE
  584. LTLIBOBJS
  585. LIBOBJS
  586. EXTRA_CXXFLAGS
  587. EXTRA_CFLAGS
  588. EXTRA_ASFLAGS
  589. get_gcc_base_ver
  590. WARN_FLAGS
  591. SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS
  592. TSAN_TARGET_DEPENDENT_OBJECTS
  593. LIBBACKTRACE_SUPPORTED_FALSE
  594. LIBBACKTRACE_SUPPORTED_TRUE
  595. RPC_DEFS
  596. BACKTRACE_SUPPORTS_THREADS
  597. BACKTRACE_USES_MALLOC
  598. ALLOC_FILE
  599. VIEW_FILE
  600. BACKTRACE_SUPPORTED
  601. FORMAT_FILE
  602. SANITIZER_SUPPORTED_FALSE
  603. SANITIZER_SUPPORTED_TRUE
  604. USING_MAC_INTERPOSE_FALSE
  605. USING_MAC_INTERPOSE_TRUE
  606. link_liblsan
  607. link_libubsan
  608. link_libtsan
  609. link_libhwasan
  610. link_libasan
  611. HWASAN_SUPPORTED_FALSE
  612. HWASAN_SUPPORTED_TRUE
  613. LSAN_SUPPORTED_FALSE
  614. LSAN_SUPPORTED_TRUE
  615. TSAN_SUPPORTED_FALSE
  616. TSAN_SUPPORTED_TRUE
  617. enable_static
  618. enable_shared
  619. CXXCPP
  620. OTOOL64
  621. OTOOL
  622. LIPO
  623. NMEDIT
  624. DSYMUTIL
  625. AR
  626. OBJDUMP
  627. LN_S
  628. NM
  629. ac_ct_DUMPBIN
  630. DUMPBIN
  631. LD
  632. FGREP
  633. SED
  634. LIBTOOL
  635. RANLIB
  636. am__fastdepCCAS_FALSE
  637. am__fastdepCCAS_TRUE
  638. CCASDEPMODE
  639. CCASFLAGS
  640. CCAS
  641. am__fastdepCXX_FALSE
  642. am__fastdepCXX_TRUE
  643. CXXDEPMODE
  644. ac_ct_CXX
  645. CXXFLAGS
  646. CXX
  647. toolexeclibdir
  648. toolexecdir
  649. MAINT
  650. MAINTAINER_MODE_FALSE
  651. MAINTAINER_MODE_TRUE
  652. AM_BACKSLASH
  653. AM_DEFAULT_VERBOSITY
  654. AM_DEFAULT_V
  655. AM_V
  656. am__fastdepCC_FALSE
  657. am__fastdepCC_TRUE
  658. CCDEPMODE
  659. am__nodep
  660. AMDEPBACKSLASH
  661. AMDEP_FALSE
  662. AMDEP_TRUE
  663. am__quote
  664. am__include
  665. DEPDIR
  666. am__untar
  667. am__tar
  668. AMTAR
  669. am__leading_dot
  670. SET_MAKE
  671. AWK
  672. mkdir_p
  673. MKDIR_P
  674. INSTALL_STRIP_PROGRAM
  675. STRIP
  676. install_sh
  677. MAKEINFO
  678. AUTOHEADER
  679. AUTOMAKE
  680. AUTOCONF
  681. ACLOCAL
  682. VERSION
  683. PACKAGE
  684. CYGPATH_W
  685. am__isrc
  686. INSTALL_DATA
  687. INSTALL_SCRIPT
  688. INSTALL_PROGRAM
  689. LIBSTDCXX_RAW_CXX_LDFLAGS
  690. LIBSTDCXX_RAW_CXX_CXXFLAGS
  691. target_noncanonical
  692. target_os
  693. target_vendor
  694. target_cpu
  695. target
  696. host_os
  697. host_vendor
  698. host_cpu
  699. host
  700. build_os
  701. build_vendor
  702. build_cpu
  703. build
  704. EGREP
  705. GREP
  706. CPP
  707. OBJEXT
  708. EXEEXT
  709. ac_ct_CC
  710. CPPFLAGS
  711. LDFLAGS
  712. CFLAGS
  713. CC
  714. multi_basedir
  715. target_alias
  716. host_alias
  717. build_alias
  718. LIBS
  719. ECHO_T
  720. ECHO_N
  721. ECHO_C
  722. DEFS
  723. mandir
  724. localedir
  725. libdir
  726. psdir
  727. pdfdir
  728. dvidir
  729. htmldir
  730. infodir
  731. docdir
  732. oldincludedir
  733. includedir
  734. localstatedir
  735. sharedstatedir
  736. sysconfdir
  737. datadir
  738. datarootdir
  739. libexecdir
  740. sbindir
  741. bindir
  742. program_transform_name
  743. prefix
  744. exec_prefix
  745. PACKAGE_URL
  746. PACKAGE_BUGREPORT
  747. PACKAGE_STRING
  748. PACKAGE_VERSION
  749. PACKAGE_TARNAME
  750. PACKAGE_NAME
  751. PATH_SEPARATOR
  752. SHELL'
  753. ac_subst_files=''
  754. ac_user_opts='
  755. enable_option_checking
  756. enable_multilib
  757. enable_version_specific_runtime_libs
  758. enable_dependency_tracking
  759. enable_silent_rules
  760. enable_maintainer_mode
  761. with_toolexeclibdir
  762. enable_shared
  763. enable_static
  764. with_pic
  765. enable_fast_install
  766. with_gnu_ld
  767. enable_libtool_lock
  768. enable_werror
  769. with_gcc_major_version_only
  770. enable_cet
  771. '
  772. ac_precious_vars='build_alias
  773. host_alias
  774. target_alias
  775. CC
  776. CFLAGS
  777. LDFLAGS
  778. LIBS
  779. CPPFLAGS
  780. CPP
  781. CXX
  782. CXXFLAGS
  783. CCC
  784. CCAS
  785. CCASFLAGS
  786. CXXCPP'
  787. # Initialize some variables set by options.
  788. ac_init_help=
  789. ac_init_version=false
  790. ac_unrecognized_opts=
  791. ac_unrecognized_sep=
  792. # The variables have the same names as the options, with
  793. # dashes changed to underlines.
  794. cache_file=/dev/null
  795. exec_prefix=NONE
  796. no_create=
  797. no_recursion=
  798. prefix=NONE
  799. program_prefix=NONE
  800. program_suffix=NONE
  801. program_transform_name=s,x,x,
  802. silent=
  803. site=
  804. srcdir=
  805. verbose=
  806. x_includes=NONE
  807. x_libraries=NONE
  808. # Installation directory options.
  809. # These are left unexpanded so users can "make install exec_prefix=/foo"
  810. # and all the variables that are supposed to be based on exec_prefix
  811. # by default will actually change.
  812. # Use braces instead of parens because sh, perl, etc. also accept them.
  813. # (The list follows the same order as the GNU Coding Standards.)
  814. bindir='${exec_prefix}/bin'
  815. sbindir='${exec_prefix}/sbin'
  816. libexecdir='${exec_prefix}/libexec'
  817. datarootdir='${prefix}/share'
  818. datadir='${datarootdir}'
  819. sysconfdir='${prefix}/etc'
  820. sharedstatedir='${prefix}/com'
  821. localstatedir='${prefix}/var'
  822. includedir='${prefix}/include'
  823. oldincludedir='/usr/include'
  824. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  825. infodir='${datarootdir}/info'
  826. htmldir='${docdir}'
  827. dvidir='${docdir}'
  828. pdfdir='${docdir}'
  829. psdir='${docdir}'
  830. libdir='${exec_prefix}/lib'
  831. localedir='${datarootdir}/locale'
  832. mandir='${datarootdir}/man'
  833. ac_prev=
  834. ac_dashdash=
  835. for ac_option
  836. do
  837. # If the previous option needs an argument, assign it.
  838. if test -n "$ac_prev"; then
  839. eval $ac_prev=\$ac_option
  840. ac_prev=
  841. continue
  842. fi
  843. case $ac_option in
  844. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  845. *=) ac_optarg= ;;
  846. *) ac_optarg=yes ;;
  847. esac
  848. # Accept the important Cygnus configure options, so we can diagnose typos.
  849. case $ac_dashdash$ac_option in
  850. --)
  851. ac_dashdash=yes ;;
  852. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  853. ac_prev=bindir ;;
  854. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  855. bindir=$ac_optarg ;;
  856. -build | --build | --buil | --bui | --bu)
  857. ac_prev=build_alias ;;
  858. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  859. build_alias=$ac_optarg ;;
  860. -cache-file | --cache-file | --cache-fil | --cache-fi \
  861. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  862. ac_prev=cache_file ;;
  863. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  864. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  865. cache_file=$ac_optarg ;;
  866. --config-cache | -C)
  867. cache_file=config.cache ;;
  868. -datadir | --datadir | --datadi | --datad)
  869. ac_prev=datadir ;;
  870. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  871. datadir=$ac_optarg ;;
  872. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  873. | --dataroo | --dataro | --datar)
  874. ac_prev=datarootdir ;;
  875. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  876. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  877. datarootdir=$ac_optarg ;;
  878. -disable-* | --disable-*)
  879. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  880. # Reject names that are not valid shell variable names.
  881. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  882. as_fn_error $? "invalid feature name: $ac_useropt"
  883. ac_useropt_orig=$ac_useropt
  884. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  885. case $ac_user_opts in
  886. *"
  887. "enable_$ac_useropt"
  888. "*) ;;
  889. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  890. ac_unrecognized_sep=', ';;
  891. esac
  892. eval enable_$ac_useropt=no ;;
  893. -docdir | --docdir | --docdi | --doc | --do)
  894. ac_prev=docdir ;;
  895. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  896. docdir=$ac_optarg ;;
  897. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  898. ac_prev=dvidir ;;
  899. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  900. dvidir=$ac_optarg ;;
  901. -enable-* | --enable-*)
  902. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  903. # Reject names that are not valid shell variable names.
  904. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  905. as_fn_error $? "invalid feature name: $ac_useropt"
  906. ac_useropt_orig=$ac_useropt
  907. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  908. case $ac_user_opts in
  909. *"
  910. "enable_$ac_useropt"
  911. "*) ;;
  912. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  913. ac_unrecognized_sep=', ';;
  914. esac
  915. eval enable_$ac_useropt=\$ac_optarg ;;
  916. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  917. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  918. | --exec | --exe | --ex)
  919. ac_prev=exec_prefix ;;
  920. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  921. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  922. | --exec=* | --exe=* | --ex=*)
  923. exec_prefix=$ac_optarg ;;
  924. -gas | --gas | --ga | --g)
  925. # Obsolete; use --with-gas.
  926. with_gas=yes ;;
  927. -help | --help | --hel | --he | -h)
  928. ac_init_help=long ;;
  929. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  930. ac_init_help=recursive ;;
  931. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  932. ac_init_help=short ;;
  933. -host | --host | --hos | --ho)
  934. ac_prev=host_alias ;;
  935. -host=* | --host=* | --hos=* | --ho=*)
  936. host_alias=$ac_optarg ;;
  937. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  938. ac_prev=htmldir ;;
  939. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  940. | --ht=*)
  941. htmldir=$ac_optarg ;;
  942. -includedir | --includedir | --includedi | --included | --include \
  943. | --includ | --inclu | --incl | --inc)
  944. ac_prev=includedir ;;
  945. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  946. | --includ=* | --inclu=* | --incl=* | --inc=*)
  947. includedir=$ac_optarg ;;
  948. -infodir | --infodir | --infodi | --infod | --info | --inf)
  949. ac_prev=infodir ;;
  950. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  951. infodir=$ac_optarg ;;
  952. -libdir | --libdir | --libdi | --libd)
  953. ac_prev=libdir ;;
  954. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  955. libdir=$ac_optarg ;;
  956. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  957. | --libexe | --libex | --libe)
  958. ac_prev=libexecdir ;;
  959. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  960. | --libexe=* | --libex=* | --libe=*)
  961. libexecdir=$ac_optarg ;;
  962. -localedir | --localedir | --localedi | --localed | --locale)
  963. ac_prev=localedir ;;
  964. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  965. localedir=$ac_optarg ;;
  966. -localstatedir | --localstatedir | --localstatedi | --localstated \
  967. | --localstate | --localstat | --localsta | --localst | --locals)
  968. ac_prev=localstatedir ;;
  969. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  970. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  971. localstatedir=$ac_optarg ;;
  972. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  973. ac_prev=mandir ;;
  974. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  975. mandir=$ac_optarg ;;
  976. -nfp | --nfp | --nf)
  977. # Obsolete; use --without-fp.
  978. with_fp=no ;;
  979. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  980. | --no-cr | --no-c | -n)
  981. no_create=yes ;;
  982. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  983. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  984. no_recursion=yes ;;
  985. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  986. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  987. | --oldin | --oldi | --old | --ol | --o)
  988. ac_prev=oldincludedir ;;
  989. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  990. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  991. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  992. oldincludedir=$ac_optarg ;;
  993. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  994. ac_prev=prefix ;;
  995. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  996. prefix=$ac_optarg ;;
  997. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  998. | --program-pre | --program-pr | --program-p)
  999. ac_prev=program_prefix ;;
  1000. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1001. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1002. program_prefix=$ac_optarg ;;
  1003. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1004. | --program-suf | --program-su | --program-s)
  1005. ac_prev=program_suffix ;;
  1006. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1007. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1008. program_suffix=$ac_optarg ;;
  1009. -program-transform-name | --program-transform-name \
  1010. | --program-transform-nam | --program-transform-na \
  1011. | --program-transform-n | --program-transform- \
  1012. | --program-transform | --program-transfor \
  1013. | --program-transfo | --program-transf \
  1014. | --program-trans | --program-tran \
  1015. | --progr-tra | --program-tr | --program-t)
  1016. ac_prev=program_transform_name ;;
  1017. -program-transform-name=* | --program-transform-name=* \
  1018. | --program-transform-nam=* | --program-transform-na=* \
  1019. | --program-transform-n=* | --program-transform-=* \
  1020. | --program-transform=* | --program-transfor=* \
  1021. | --program-transfo=* | --program-transf=* \
  1022. | --program-trans=* | --program-tran=* \
  1023. | --progr-tra=* | --program-tr=* | --program-t=*)
  1024. program_transform_name=$ac_optarg ;;
  1025. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1026. ac_prev=pdfdir ;;
  1027. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1028. pdfdir=$ac_optarg ;;
  1029. -psdir | --psdir | --psdi | --psd | --ps)
  1030. ac_prev=psdir ;;
  1031. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1032. psdir=$ac_optarg ;;
  1033. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1034. | -silent | --silent | --silen | --sile | --sil)
  1035. silent=yes ;;
  1036. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1037. ac_prev=sbindir ;;
  1038. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1039. | --sbi=* | --sb=*)
  1040. sbindir=$ac_optarg ;;
  1041. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1042. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1043. | --sharedst | --shareds | --shared | --share | --shar \
  1044. | --sha | --sh)
  1045. ac_prev=sharedstatedir ;;
  1046. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1047. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1048. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1049. | --sha=* | --sh=*)
  1050. sharedstatedir=$ac_optarg ;;
  1051. -site | --site | --sit)
  1052. ac_prev=site ;;
  1053. -site=* | --site=* | --sit=*)
  1054. site=$ac_optarg ;;
  1055. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1056. ac_prev=srcdir ;;
  1057. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1058. srcdir=$ac_optarg ;;
  1059. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1060. | --syscon | --sysco | --sysc | --sys | --sy)
  1061. ac_prev=sysconfdir ;;
  1062. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1063. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1064. sysconfdir=$ac_optarg ;;
  1065. -target | --target | --targe | --targ | --tar | --ta | --t)
  1066. ac_prev=target_alias ;;
  1067. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1068. target_alias=$ac_optarg ;;
  1069. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1070. verbose=yes ;;
  1071. -version | --version | --versio | --versi | --vers | -V)
  1072. ac_init_version=: ;;
  1073. -with-* | --with-*)
  1074. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1075. # Reject names that are not valid shell variable names.
  1076. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1077. as_fn_error $? "invalid package name: $ac_useropt"
  1078. ac_useropt_orig=$ac_useropt
  1079. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1080. case $ac_user_opts in
  1081. *"
  1082. "with_$ac_useropt"
  1083. "*) ;;
  1084. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1085. ac_unrecognized_sep=', ';;
  1086. esac
  1087. eval with_$ac_useropt=\$ac_optarg ;;
  1088. -without-* | --without-*)
  1089. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1090. # Reject names that are not valid shell variable names.
  1091. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1092. as_fn_error $? "invalid package name: $ac_useropt"
  1093. ac_useropt_orig=$ac_useropt
  1094. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1095. case $ac_user_opts in
  1096. *"
  1097. "with_$ac_useropt"
  1098. "*) ;;
  1099. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1100. ac_unrecognized_sep=', ';;
  1101. esac
  1102. eval with_$ac_useropt=no ;;
  1103. --x)
  1104. # Obsolete; use --with-x.
  1105. with_x=yes ;;
  1106. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1107. | --x-incl | --x-inc | --x-in | --x-i)
  1108. ac_prev=x_includes ;;
  1109. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1110. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1111. x_includes=$ac_optarg ;;
  1112. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1113. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1114. ac_prev=x_libraries ;;
  1115. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1116. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1117. x_libraries=$ac_optarg ;;
  1118. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1119. Try \`$0 --help' for more information"
  1120. ;;
  1121. *=*)
  1122. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1123. # Reject names that are not valid shell variable names.
  1124. case $ac_envvar in #(
  1125. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1126. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1127. esac
  1128. eval $ac_envvar=\$ac_optarg
  1129. export $ac_envvar ;;
  1130. *)
  1131. # FIXME: should be removed in autoconf 3.0.
  1132. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1133. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1134. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1135. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1136. ;;
  1137. esac
  1138. done
  1139. if test -n "$ac_prev"; then
  1140. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1141. as_fn_error $? "missing argument to $ac_option"
  1142. fi
  1143. if test -n "$ac_unrecognized_opts"; then
  1144. case $enable_option_checking in
  1145. no) ;;
  1146. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1147. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1148. esac
  1149. fi
  1150. # Check all directory arguments for consistency.
  1151. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1152. datadir sysconfdir sharedstatedir localstatedir includedir \
  1153. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1154. libdir localedir mandir
  1155. do
  1156. eval ac_val=\$$ac_var
  1157. # Remove trailing slashes.
  1158. case $ac_val in
  1159. */ )
  1160. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1161. eval $ac_var=\$ac_val;;
  1162. esac
  1163. # Be sure to have absolute directory names.
  1164. case $ac_val in
  1165. [\\/$]* | ?:[\\/]* ) continue;;
  1166. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1167. esac
  1168. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1169. done
  1170. # There might be people who depend on the old broken behavior: `$host'
  1171. # used to hold the argument of --host etc.
  1172. # FIXME: To remove some day.
  1173. build=$build_alias
  1174. host=$host_alias
  1175. target=$target_alias
  1176. # FIXME: To remove some day.
  1177. if test "x$host_alias" != x; then
  1178. if test "x$build_alias" = x; then
  1179. cross_compiling=maybe
  1180. elif test "x$build_alias" != "x$host_alias"; then
  1181. cross_compiling=yes
  1182. fi
  1183. fi
  1184. ac_tool_prefix=
  1185. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1186. test "$silent" = yes && exec 6>/dev/null
  1187. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1188. ac_ls_di=`ls -di .` &&
  1189. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1190. as_fn_error $? "working directory cannot be determined"
  1191. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1192. as_fn_error $? "pwd does not report name of working directory"
  1193. # Find the source files, if location was not specified.
  1194. if test -z "$srcdir"; then
  1195. ac_srcdir_defaulted=yes
  1196. # Try the directory containing this script, then the parent directory.
  1197. ac_confdir=`$as_dirname -- "$as_myself" ||
  1198. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1199. X"$as_myself" : 'X\(//\)[^/]' \| \
  1200. X"$as_myself" : 'X\(//\)$' \| \
  1201. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1202. $as_echo X"$as_myself" |
  1203. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1204. s//\1/
  1205. q
  1206. }
  1207. /^X\(\/\/\)[^/].*/{
  1208. s//\1/
  1209. q
  1210. }
  1211. /^X\(\/\/\)$/{
  1212. s//\1/
  1213. q
  1214. }
  1215. /^X\(\/\).*/{
  1216. s//\1/
  1217. q
  1218. }
  1219. s/.*/./; q'`
  1220. srcdir=$ac_confdir
  1221. if test ! -r "$srcdir/$ac_unique_file"; then
  1222. srcdir=..
  1223. fi
  1224. else
  1225. ac_srcdir_defaulted=no
  1226. fi
  1227. if test ! -r "$srcdir/$ac_unique_file"; then
  1228. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1229. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1230. fi
  1231. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1232. ac_abs_confdir=`(
  1233. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1234. pwd)`
  1235. # When building in place, set srcdir=.
  1236. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1237. srcdir=.
  1238. fi
  1239. # Remove unnecessary trailing slashes from srcdir.
  1240. # Double slashes in file names in object file debugging info
  1241. # mess up M-x gdb in Emacs.
  1242. case $srcdir in
  1243. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1244. esac
  1245. for ac_var in $ac_precious_vars; do
  1246. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1247. eval ac_env_${ac_var}_value=\$${ac_var}
  1248. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1249. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1250. done
  1251. #
  1252. # Report the --help message.
  1253. #
  1254. if test "$ac_init_help" = "long"; then
  1255. # Omit some internal or obsolete options to make the list less imposing.
  1256. # This message is too long to be a string in the A/UX 3.1 sh.
  1257. cat <<_ACEOF
  1258. \`configure' configures package-unused version-unused to adapt to many kinds of systems.
  1259. Usage: $0 [OPTION]... [VAR=VALUE]...
  1260. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1261. VAR=VALUE. See below for descriptions of some of the useful variables.
  1262. Defaults for the options are specified in brackets.
  1263. Configuration:
  1264. -h, --help display this help and exit
  1265. --help=short display options specific to this package
  1266. --help=recursive display the short help of all the included packages
  1267. -V, --version display version information and exit
  1268. -q, --quiet, --silent do not print \`checking ...' messages
  1269. --cache-file=FILE cache test results in FILE [disabled]
  1270. -C, --config-cache alias for \`--cache-file=config.cache'
  1271. -n, --no-create do not create output files
  1272. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1273. Installation directories:
  1274. --prefix=PREFIX install architecture-independent files in PREFIX
  1275. [$ac_default_prefix]
  1276. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1277. [PREFIX]
  1278. By default, \`make install' will install all the files in
  1279. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1280. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1281. for instance \`--prefix=\$HOME'.
  1282. For better control, use the options below.
  1283. Fine tuning of the installation directories:
  1284. --bindir=DIR user executables [EPREFIX/bin]
  1285. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1286. --libexecdir=DIR program executables [EPREFIX/libexec]
  1287. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1288. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1289. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1290. --libdir=DIR object code libraries [EPREFIX/lib]
  1291. --includedir=DIR C header files [PREFIX/include]
  1292. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1293. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1294. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1295. --infodir=DIR info documentation [DATAROOTDIR/info]
  1296. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1297. --mandir=DIR man documentation [DATAROOTDIR/man]
  1298. --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
  1299. --htmldir=DIR html documentation [DOCDIR]
  1300. --dvidir=DIR dvi documentation [DOCDIR]
  1301. --pdfdir=DIR pdf documentation [DOCDIR]
  1302. --psdir=DIR ps documentation [DOCDIR]
  1303. _ACEOF
  1304. cat <<\_ACEOF
  1305. Program names:
  1306. --program-prefix=PREFIX prepend PREFIX to installed program names
  1307. --program-suffix=SUFFIX append SUFFIX to installed program names
  1308. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1309. System types:
  1310. --build=BUILD configure for building on BUILD [guessed]
  1311. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1312. --target=TARGET configure for building compilers for TARGET [HOST]
  1313. _ACEOF
  1314. fi
  1315. if test -n "$ac_init_help"; then
  1316. case $ac_init_help in
  1317. short | recursive ) echo "Configuration of package-unused version-unused:";;
  1318. esac
  1319. cat <<\_ACEOF
  1320. Optional Features:
  1321. --disable-option-checking ignore unrecognized --enable/--with options
  1322. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1323. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1324. --enable-multilib build many library versions (default)
  1325. --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
  1326. --enable-dependency-tracking
  1327. do not reject slow dependency extractors
  1328. --disable-dependency-tracking
  1329. speeds up one-time build
  1330. --enable-silent-rules less verbose build output (undo: "make V=1")
  1331. --disable-silent-rules verbose build output (undo: "make V=0")
  1332. --enable-maintainer-mode
  1333. enable make rules and dependencies not useful (and
  1334. sometimes confusing) to the casual installer
  1335. --enable-shared[=PKGS] build shared libraries [default=yes]
  1336. --enable-static[=PKGS] build static libraries [default=yes]
  1337. --enable-fast-install[=PKGS]
  1338. optimize for fast installation [default=yes]
  1339. --disable-libtool-lock avoid locking (might break parallel builds)
  1340. --disable-werror disable building with -Werror
  1341. --enable-cet enable Intel CET in target libraries [default=auto]
  1342. Optional Packages:
  1343. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1344. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1345. --with-toolexeclibdir=DIR
  1346. install libraries built with a cross compiler within
  1347. DIR
  1348. --with-pic try to use only PIC/non-PIC objects [default=use
  1349. both]
  1350. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1351. --with-gcc-major-version-only
  1352. use only GCC major number in filesystem paths
  1353. Some influential environment variables:
  1354. CC C compiler command
  1355. CFLAGS C compiler flags
  1356. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1357. nonstandard directory <lib dir>
  1358. LIBS libraries to pass to the linker, e.g. -l<library>
  1359. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1360. you have headers in a nonstandard directory <include dir>
  1361. CPP C preprocessor
  1362. CXX C++ compiler command
  1363. CXXFLAGS C++ compiler flags
  1364. CCAS assembler compiler command (defaults to CC)
  1365. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1366. CXXCPP C++ preprocessor
  1367. Use these variables to override the choices made by `configure' or to help
  1368. it to find libraries and programs with nonstandard names/locations.
  1369. Report bugs to <libsanitizer>.
  1370. _ACEOF
  1371. ac_status=$?
  1372. fi
  1373. if test "$ac_init_help" = "recursive"; then
  1374. # If there are subdirs, report their specific --help.
  1375. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1376. test -d "$ac_dir" ||
  1377. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1378. continue
  1379. ac_builddir=.
  1380. case "$ac_dir" in
  1381. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1382. *)
  1383. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1384. # A ".." for each directory in $ac_dir_suffix.
  1385. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1386. case $ac_top_builddir_sub in
  1387. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1388. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1389. esac ;;
  1390. esac
  1391. ac_abs_top_builddir=$ac_pwd
  1392. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1393. # for backward compatibility:
  1394. ac_top_builddir=$ac_top_build_prefix
  1395. case $srcdir in
  1396. .) # We are building in place.
  1397. ac_srcdir=.
  1398. ac_top_srcdir=$ac_top_builddir_sub
  1399. ac_abs_top_srcdir=$ac_pwd ;;
  1400. [\\/]* | ?:[\\/]* ) # Absolute name.
  1401. ac_srcdir=$srcdir$ac_dir_suffix;
  1402. ac_top_srcdir=$srcdir
  1403. ac_abs_top_srcdir=$srcdir ;;
  1404. *) # Relative name.
  1405. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1406. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1407. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1408. esac
  1409. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1410. cd "$ac_dir" || { ac_status=$?; continue; }
  1411. # Check for guested configure.
  1412. if test -f "$ac_srcdir/configure.gnu"; then
  1413. echo &&
  1414. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1415. elif test -f "$ac_srcdir/configure"; then
  1416. echo &&
  1417. $SHELL "$ac_srcdir/configure" --help=recursive
  1418. else
  1419. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1420. fi || ac_status=$?
  1421. cd "$ac_pwd" || { ac_status=$?; break; }
  1422. done
  1423. fi
  1424. test -n "$ac_init_help" && exit $ac_status
  1425. if $ac_init_version; then
  1426. cat <<\_ACEOF
  1427. package-unused configure version-unused
  1428. generated by GNU Autoconf 2.69
  1429. Copyright (C) 2012 Free Software Foundation, Inc.
  1430. This configure script is free software; the Free Software Foundation
  1431. gives unlimited permission to copy, distribute and modify it.
  1432. _ACEOF
  1433. exit
  1434. fi
  1435. ## ------------------------ ##
  1436. ## Autoconf initialization. ##
  1437. ## ------------------------ ##
  1438. # ac_fn_c_try_compile LINENO
  1439. # --------------------------
  1440. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1441. ac_fn_c_try_compile ()
  1442. {
  1443. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1444. rm -f conftest.$ac_objext
  1445. if { { ac_try="$ac_compile"
  1446. case "(($ac_try" in
  1447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1448. *) ac_try_echo=$ac_try;;
  1449. esac
  1450. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1451. $as_echo "$ac_try_echo"; } >&5
  1452. (eval "$ac_compile") 2>conftest.err
  1453. ac_status=$?
  1454. if test -s conftest.err; then
  1455. grep -v '^ *+' conftest.err >conftest.er1
  1456. cat conftest.er1 >&5
  1457. mv -f conftest.er1 conftest.err
  1458. fi
  1459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1460. test $ac_status = 0; } && {
  1461. test -z "$ac_c_werror_flag" ||
  1462. test ! -s conftest.err
  1463. } && test -s conftest.$ac_objext; then :
  1464. ac_retval=0
  1465. else
  1466. $as_echo "$as_me: failed program was:" >&5
  1467. sed 's/^/| /' conftest.$ac_ext >&5
  1468. ac_retval=1
  1469. fi
  1470. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1471. as_fn_set_status $ac_retval
  1472. } # ac_fn_c_try_compile
  1473. # ac_fn_c_try_cpp LINENO
  1474. # ----------------------
  1475. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1476. ac_fn_c_try_cpp ()
  1477. {
  1478. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1479. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1480. case "(($ac_try" in
  1481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1482. *) ac_try_echo=$ac_try;;
  1483. esac
  1484. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1485. $as_echo "$ac_try_echo"; } >&5
  1486. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1487. ac_status=$?
  1488. if test -s conftest.err; then
  1489. grep -v '^ *+' conftest.err >conftest.er1
  1490. cat conftest.er1 >&5
  1491. mv -f conftest.er1 conftest.err
  1492. fi
  1493. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1494. test $ac_status = 0; } > conftest.i && {
  1495. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1496. test ! -s conftest.err
  1497. }; then :
  1498. ac_retval=0
  1499. else
  1500. $as_echo "$as_me: failed program was:" >&5
  1501. sed 's/^/| /' conftest.$ac_ext >&5
  1502. ac_retval=1
  1503. fi
  1504. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1505. as_fn_set_status $ac_retval
  1506. } # ac_fn_c_try_cpp
  1507. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1508. # -------------------------------------------------------
  1509. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1510. # the include files in INCLUDES and setting the cache variable VAR
  1511. # accordingly.
  1512. ac_fn_c_check_header_mongrel ()
  1513. {
  1514. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1515. if eval \${$3+:} false; then :
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1517. $as_echo_n "checking for $2... " >&6; }
  1518. if eval \${$3+:} false; then :
  1519. $as_echo_n "(cached) " >&6
  1520. fi
  1521. eval ac_res=\$$3
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1523. $as_echo "$ac_res" >&6; }
  1524. else
  1525. # Is the header compilable?
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1527. $as_echo_n "checking $2 usability... " >&6; }
  1528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1529. /* end confdefs.h. */
  1530. $4
  1531. #include <$2>
  1532. _ACEOF
  1533. if ac_fn_c_try_compile "$LINENO"; then :
  1534. ac_header_compiler=yes
  1535. else
  1536. ac_header_compiler=no
  1537. fi
  1538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1540. $as_echo "$ac_header_compiler" >&6; }
  1541. # Is the header present?
  1542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1543. $as_echo_n "checking $2 presence... " >&6; }
  1544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1545. /* end confdefs.h. */
  1546. #include <$2>
  1547. _ACEOF
  1548. if ac_fn_c_try_cpp "$LINENO"; then :
  1549. ac_header_preproc=yes
  1550. else
  1551. ac_header_preproc=no
  1552. fi
  1553. rm -f conftest.err conftest.i conftest.$ac_ext
  1554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1555. $as_echo "$ac_header_preproc" >&6; }
  1556. # So? What about this header?
  1557. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1558. yes:no: )
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1560. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1561. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1562. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1563. ;;
  1564. no:yes:* )
  1565. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1566. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1567. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1568. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1570. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1572. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1573. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1574. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1575. ( $as_echo "## --------------------------- ##
  1576. ## Report this to libsanitizer ##
  1577. ## --------------------------- ##"
  1578. ) | sed "s/^/$as_me: WARNING: /" >&2
  1579. ;;
  1580. esac
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1582. $as_echo_n "checking for $2... " >&6; }
  1583. if eval \${$3+:} false; then :
  1584. $as_echo_n "(cached) " >&6
  1585. else
  1586. eval "$3=\$ac_header_compiler"
  1587. fi
  1588. eval ac_res=\$$3
  1589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1590. $as_echo "$ac_res" >&6; }
  1591. fi
  1592. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1593. } # ac_fn_c_check_header_mongrel
  1594. # ac_fn_c_try_run LINENO
  1595. # ----------------------
  1596. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1597. # that executables *can* be run.
  1598. ac_fn_c_try_run ()
  1599. {
  1600. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1601. if { { ac_try="$ac_link"
  1602. case "(($ac_try" in
  1603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1604. *) ac_try_echo=$ac_try;;
  1605. esac
  1606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1607. $as_echo "$ac_try_echo"; } >&5
  1608. (eval "$ac_link") 2>&5
  1609. ac_status=$?
  1610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1611. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1612. { { case "(($ac_try" in
  1613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1614. *) ac_try_echo=$ac_try;;
  1615. esac
  1616. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1617. $as_echo "$ac_try_echo"; } >&5
  1618. (eval "$ac_try") 2>&5
  1619. ac_status=$?
  1620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1621. test $ac_status = 0; }; }; then :
  1622. ac_retval=0
  1623. else
  1624. $as_echo "$as_me: program exited with status $ac_status" >&5
  1625. $as_echo "$as_me: failed program was:" >&5
  1626. sed 's/^/| /' conftest.$ac_ext >&5
  1627. ac_retval=$ac_status
  1628. fi
  1629. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1630. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1631. as_fn_set_status $ac_retval
  1632. } # ac_fn_c_try_run
  1633. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1634. # -------------------------------------------------------
  1635. # Tests whether HEADER exists and can be compiled using the include files in
  1636. # INCLUDES, setting the cache variable VAR accordingly.
  1637. ac_fn_c_check_header_compile ()
  1638. {
  1639. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1641. $as_echo_n "checking for $2... " >&6; }
  1642. if eval \${$3+:} false; then :
  1643. $as_echo_n "(cached) " >&6
  1644. else
  1645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1646. /* end confdefs.h. */
  1647. $4
  1648. #include <$2>
  1649. _ACEOF
  1650. if ac_fn_c_try_compile "$LINENO"; then :
  1651. eval "$3=yes"
  1652. else
  1653. eval "$3=no"
  1654. fi
  1655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1656. fi
  1657. eval ac_res=\$$3
  1658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1659. $as_echo "$ac_res" >&6; }
  1660. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1661. } # ac_fn_c_check_header_compile
  1662. # ac_fn_cxx_try_compile LINENO
  1663. # ----------------------------
  1664. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1665. ac_fn_cxx_try_compile ()
  1666. {
  1667. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1668. rm -f conftest.$ac_objext
  1669. if { { ac_try="$ac_compile"
  1670. case "(($ac_try" in
  1671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1672. *) ac_try_echo=$ac_try;;
  1673. esac
  1674. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1675. $as_echo "$ac_try_echo"; } >&5
  1676. (eval "$ac_compile") 2>conftest.err
  1677. ac_status=$?
  1678. if test -s conftest.err; then
  1679. grep -v '^ *+' conftest.err >conftest.er1
  1680. cat conftest.er1 >&5
  1681. mv -f conftest.er1 conftest.err
  1682. fi
  1683. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1684. test $ac_status = 0; } && {
  1685. test -z "$ac_cxx_werror_flag" ||
  1686. test ! -s conftest.err
  1687. } && test -s conftest.$ac_objext; then :
  1688. ac_retval=0
  1689. else
  1690. $as_echo "$as_me: failed program was:" >&5
  1691. sed 's/^/| /' conftest.$ac_ext >&5
  1692. ac_retval=1
  1693. fi
  1694. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1695. as_fn_set_status $ac_retval
  1696. } # ac_fn_cxx_try_compile
  1697. # ac_fn_c_try_link LINENO
  1698. # -----------------------
  1699. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1700. ac_fn_c_try_link ()
  1701. {
  1702. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1703. rm -f conftest.$ac_objext conftest$ac_exeext
  1704. if { { ac_try="$ac_link"
  1705. case "(($ac_try" in
  1706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1707. *) ac_try_echo=$ac_try;;
  1708. esac
  1709. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1710. $as_echo "$ac_try_echo"; } >&5
  1711. (eval "$ac_link") 2>conftest.err
  1712. ac_status=$?
  1713. if test -s conftest.err; then
  1714. grep -v '^ *+' conftest.err >conftest.er1
  1715. cat conftest.er1 >&5
  1716. mv -f conftest.er1 conftest.err
  1717. fi
  1718. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1719. test $ac_status = 0; } && {
  1720. test -z "$ac_c_werror_flag" ||
  1721. test ! -s conftest.err
  1722. } && test -s conftest$ac_exeext && {
  1723. test "$cross_compiling" = yes ||
  1724. test -x conftest$ac_exeext
  1725. }; then :
  1726. ac_retval=0
  1727. else
  1728. $as_echo "$as_me: failed program was:" >&5
  1729. sed 's/^/| /' conftest.$ac_ext >&5
  1730. ac_retval=1
  1731. fi
  1732. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1733. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1734. # interfere with the next link command; also delete a directory that is
  1735. # left behind by Apple's compiler. We do this before executing the actions.
  1736. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1737. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1738. as_fn_set_status $ac_retval
  1739. } # ac_fn_c_try_link
  1740. # ac_fn_c_check_func LINENO FUNC VAR
  1741. # ----------------------------------
  1742. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1743. ac_fn_c_check_func ()
  1744. {
  1745. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1747. $as_echo_n "checking for $2... " >&6; }
  1748. if eval \${$3+:} false; then :
  1749. $as_echo_n "(cached) " >&6
  1750. else
  1751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1752. /* end confdefs.h. */
  1753. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1754. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1755. #define $2 innocuous_$2
  1756. /* System header to define __stub macros and hopefully few prototypes,
  1757. which can conflict with char $2 (); below.
  1758. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1759. <limits.h> exists even on freestanding compilers. */
  1760. #ifdef __STDC__
  1761. # include <limits.h>
  1762. #else
  1763. # include <assert.h>
  1764. #endif
  1765. #undef $2
  1766. /* Override any GCC internal prototype to avoid an error.
  1767. Use char because int might match the return type of a GCC
  1768. builtin and then its argument prototype would still apply. */
  1769. #ifdef __cplusplus
  1770. extern "C"
  1771. #endif
  1772. char $2 ();
  1773. /* The GNU C library defines this for functions which it implements
  1774. to always fail with ENOSYS. Some functions are actually named
  1775. something starting with __ and the normal name is an alias. */
  1776. #if defined __stub_$2 || defined __stub___$2
  1777. choke me
  1778. #endif
  1779. int
  1780. main ()
  1781. {
  1782. return $2 ();
  1783. ;
  1784. return 0;
  1785. }
  1786. _ACEOF
  1787. if ac_fn_c_try_link "$LINENO"; then :
  1788. eval "$3=yes"
  1789. else
  1790. eval "$3=no"
  1791. fi
  1792. rm -f core conftest.err conftest.$ac_objext \
  1793. conftest$ac_exeext conftest.$ac_ext
  1794. fi
  1795. eval ac_res=\$$3
  1796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1797. $as_echo "$ac_res" >&6; }
  1798. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1799. } # ac_fn_c_check_func
  1800. # ac_fn_cxx_try_cpp LINENO
  1801. # ------------------------
  1802. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1803. ac_fn_cxx_try_cpp ()
  1804. {
  1805. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1806. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1807. case "(($ac_try" in
  1808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1809. *) ac_try_echo=$ac_try;;
  1810. esac
  1811. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1812. $as_echo "$ac_try_echo"; } >&5
  1813. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1814. ac_status=$?
  1815. if test -s conftest.err; then
  1816. grep -v '^ *+' conftest.err >conftest.er1
  1817. cat conftest.er1 >&5
  1818. mv -f conftest.er1 conftest.err
  1819. fi
  1820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1821. test $ac_status = 0; } > conftest.i && {
  1822. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1823. test ! -s conftest.err
  1824. }; then :
  1825. ac_retval=0
  1826. else
  1827. $as_echo "$as_me: failed program was:" >&5
  1828. sed 's/^/| /' conftest.$ac_ext >&5
  1829. ac_retval=1
  1830. fi
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. as_fn_set_status $ac_retval
  1833. } # ac_fn_cxx_try_cpp
  1834. # ac_fn_cxx_try_link LINENO
  1835. # -------------------------
  1836. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1837. ac_fn_cxx_try_link ()
  1838. {
  1839. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1840. rm -f conftest.$ac_objext conftest$ac_exeext
  1841. if { { ac_try="$ac_link"
  1842. case "(($ac_try" in
  1843. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1844. *) ac_try_echo=$ac_try;;
  1845. esac
  1846. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1847. $as_echo "$ac_try_echo"; } >&5
  1848. (eval "$ac_link") 2>conftest.err
  1849. ac_status=$?
  1850. if test -s conftest.err; then
  1851. grep -v '^ *+' conftest.err >conftest.er1
  1852. cat conftest.er1 >&5
  1853. mv -f conftest.er1 conftest.err
  1854. fi
  1855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1856. test $ac_status = 0; } && {
  1857. test -z "$ac_cxx_werror_flag" ||
  1858. test ! -s conftest.err
  1859. } && test -s conftest$ac_exeext && {
  1860. test "$cross_compiling" = yes ||
  1861. test -x conftest$ac_exeext
  1862. }; then :
  1863. ac_retval=0
  1864. else
  1865. $as_echo "$as_me: failed program was:" >&5
  1866. sed 's/^/| /' conftest.$ac_ext >&5
  1867. ac_retval=1
  1868. fi
  1869. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1870. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1871. # interfere with the next link command; also delete a directory that is
  1872. # left behind by Apple's compiler. We do this before executing the actions.
  1873. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1874. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1875. as_fn_set_status $ac_retval
  1876. } # ac_fn_cxx_try_link
  1877. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1878. # --------------------------------------------
  1879. # Tries to find the compile-time value of EXPR in a program that includes
  1880. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1881. # computed
  1882. ac_fn_c_compute_int ()
  1883. {
  1884. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1885. if test "$cross_compiling" = yes; then
  1886. # Depending upon the size, compute the lo and hi bounds.
  1887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1888. /* end confdefs.h. */
  1889. $4
  1890. int
  1891. main ()
  1892. {
  1893. static int test_array [1 - 2 * !(($2) >= 0)];
  1894. test_array [0] = 0;
  1895. return test_array [0];
  1896. ;
  1897. return 0;
  1898. }
  1899. _ACEOF
  1900. if ac_fn_c_try_compile "$LINENO"; then :
  1901. ac_lo=0 ac_mid=0
  1902. while :; do
  1903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1904. /* end confdefs.h. */
  1905. $4
  1906. int
  1907. main ()
  1908. {
  1909. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1910. test_array [0] = 0;
  1911. return test_array [0];
  1912. ;
  1913. return 0;
  1914. }
  1915. _ACEOF
  1916. if ac_fn_c_try_compile "$LINENO"; then :
  1917. ac_hi=$ac_mid; break
  1918. else
  1919. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1920. if test $ac_lo -le $ac_mid; then
  1921. ac_lo= ac_hi=
  1922. break
  1923. fi
  1924. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1925. fi
  1926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1927. done
  1928. else
  1929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1930. /* end confdefs.h. */
  1931. $4
  1932. int
  1933. main ()
  1934. {
  1935. static int test_array [1 - 2 * !(($2) < 0)];
  1936. test_array [0] = 0;
  1937. return test_array [0];
  1938. ;
  1939. return 0;
  1940. }
  1941. _ACEOF
  1942. if ac_fn_c_try_compile "$LINENO"; then :
  1943. ac_hi=-1 ac_mid=-1
  1944. while :; do
  1945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1946. /* end confdefs.h. */
  1947. $4
  1948. int
  1949. main ()
  1950. {
  1951. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1952. test_array [0] = 0;
  1953. return test_array [0];
  1954. ;
  1955. return 0;
  1956. }
  1957. _ACEOF
  1958. if ac_fn_c_try_compile "$LINENO"; then :
  1959. ac_lo=$ac_mid; break
  1960. else
  1961. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1962. if test $ac_mid -le $ac_hi; then
  1963. ac_lo= ac_hi=
  1964. break
  1965. fi
  1966. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1967. fi
  1968. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1969. done
  1970. else
  1971. ac_lo= ac_hi=
  1972. fi
  1973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1974. fi
  1975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1976. # Binary search between lo and hi bounds.
  1977. while test "x$ac_lo" != "x$ac_hi"; do
  1978. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1980. /* end confdefs.h. */
  1981. $4
  1982. int
  1983. main ()
  1984. {
  1985. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1986. test_array [0] = 0;
  1987. return test_array [0];
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. if ac_fn_c_try_compile "$LINENO"; then :
  1993. ac_hi=$ac_mid
  1994. else
  1995. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1996. fi
  1997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1998. done
  1999. case $ac_lo in #((
  2000. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2001. '') ac_retval=1 ;;
  2002. esac
  2003. else
  2004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2005. /* end confdefs.h. */
  2006. $4
  2007. static long int longval () { return $2; }
  2008. static unsigned long int ulongval () { return $2; }
  2009. #include <stdio.h>
  2010. #include <stdlib.h>
  2011. int
  2012. main ()
  2013. {
  2014. FILE *f = fopen ("conftest.val", "w");
  2015. if (! f)
  2016. return 1;
  2017. if (($2) < 0)
  2018. {
  2019. long int i = longval ();
  2020. if (i != ($2))
  2021. return 1;
  2022. fprintf (f, "%ld", i);
  2023. }
  2024. else
  2025. {
  2026. unsigned long int i = ulongval ();
  2027. if (i != ($2))
  2028. return 1;
  2029. fprintf (f, "%lu", i);
  2030. }
  2031. /* Do not output a trailing newline, as this causes \r\n confusion
  2032. on some platforms. */
  2033. return ferror (f) || fclose (f) != 0;
  2034. ;
  2035. return 0;
  2036. }
  2037. _ACEOF
  2038. if ac_fn_c_try_run "$LINENO"; then :
  2039. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2040. else
  2041. ac_retval=1
  2042. fi
  2043. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2044. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2045. rm -f conftest.val
  2046. fi
  2047. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2048. as_fn_set_status $ac_retval
  2049. } # ac_fn_c_compute_int
  2050. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2051. # -------------------------------------------
  2052. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2053. # variable VAR accordingly.
  2054. ac_fn_c_check_type ()
  2055. {
  2056. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2058. $as_echo_n "checking for $2... " >&6; }
  2059. if eval \${$3+:} false; then :
  2060. $as_echo_n "(cached) " >&6
  2061. else
  2062. eval "$3=no"
  2063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2064. /* end confdefs.h. */
  2065. $4
  2066. int
  2067. main ()
  2068. {
  2069. if (sizeof ($2))
  2070. return 0;
  2071. ;
  2072. return 0;
  2073. }
  2074. _ACEOF
  2075. if ac_fn_c_try_compile "$LINENO"; then :
  2076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2077. /* end confdefs.h. */
  2078. $4
  2079. int
  2080. main ()
  2081. {
  2082. if (sizeof (($2)))
  2083. return 0;
  2084. ;
  2085. return 0;
  2086. }
  2087. _ACEOF
  2088. if ac_fn_c_try_compile "$LINENO"; then :
  2089. else
  2090. eval "$3=yes"
  2091. fi
  2092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2093. fi
  2094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2095. fi
  2096. eval ac_res=\$$3
  2097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2098. $as_echo "$ac_res" >&6; }
  2099. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2100. } # ac_fn_c_check_type
  2101. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2102. # ---------------------------------------------
  2103. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2104. # accordingly.
  2105. ac_fn_c_check_decl ()
  2106. {
  2107. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2108. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2109. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2111. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2112. if eval \${$3+:} false; then :
  2113. $as_echo_n "(cached) " >&6
  2114. else
  2115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2116. /* end confdefs.h. */
  2117. $4
  2118. int
  2119. main ()
  2120. {
  2121. #ifndef $as_decl_name
  2122. #ifdef __cplusplus
  2123. (void) $as_decl_use;
  2124. #else
  2125. (void) $as_decl_name;
  2126. #endif
  2127. #endif
  2128. ;
  2129. return 0;
  2130. }
  2131. _ACEOF
  2132. if ac_fn_c_try_compile "$LINENO"; then :
  2133. eval "$3=yes"
  2134. else
  2135. eval "$3=no"
  2136. fi
  2137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2138. fi
  2139. eval ac_res=\$$3
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2141. $as_echo "$ac_res" >&6; }
  2142. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2143. } # ac_fn_c_check_decl
  2144. cat >config.log <<_ACEOF
  2145. This file contains any messages produced by compilers while
  2146. running configure, to aid debugging if configure makes a mistake.
  2147. It was created by package-unused $as_me version-unused, which was
  2148. generated by GNU Autoconf 2.69. Invocation command line was
  2149. $ $0 $@
  2150. _ACEOF
  2151. exec 5>>config.log
  2152. {
  2153. cat <<_ASUNAME
  2154. ## --------- ##
  2155. ## Platform. ##
  2156. ## --------- ##
  2157. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2158. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2159. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2160. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2161. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2162. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2163. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2164. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2165. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2166. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2167. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2168. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2169. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2170. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2171. _ASUNAME
  2172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2173. for as_dir in $PATH
  2174. do
  2175. IFS=$as_save_IFS
  2176. test -z "$as_dir" && as_dir=.
  2177. $as_echo "PATH: $as_dir"
  2178. done
  2179. IFS=$as_save_IFS
  2180. } >&5
  2181. cat >&5 <<_ACEOF
  2182. ## ----------- ##
  2183. ## Core tests. ##
  2184. ## ----------- ##
  2185. _ACEOF
  2186. # Keep a trace of the command line.
  2187. # Strip out --no-create and --no-recursion so they do not pile up.
  2188. # Strip out --silent because we don't want to record it for future runs.
  2189. # Also quote any args containing shell meta-characters.
  2190. # Make two passes to allow for proper duplicate-argument suppression.
  2191. ac_configure_args=
  2192. ac_configure_args0=
  2193. ac_configure_args1=
  2194. ac_must_keep_next=false
  2195. for ac_pass in 1 2
  2196. do
  2197. for ac_arg
  2198. do
  2199. case $ac_arg in
  2200. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2201. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2202. | -silent | --silent | --silen | --sile | --sil)
  2203. continue ;;
  2204. *\'*)
  2205. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2206. esac
  2207. case $ac_pass in
  2208. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2209. 2)
  2210. as_fn_append ac_configure_args1 " '$ac_arg'"
  2211. if test $ac_must_keep_next = true; then
  2212. ac_must_keep_next=false # Got value, back to normal.
  2213. else
  2214. case $ac_arg in
  2215. *=* | --config-cache | -C | -disable-* | --disable-* \
  2216. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2217. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2218. | -with-* | --with-* | -without-* | --without-* | --x)
  2219. case "$ac_configure_args0 " in
  2220. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2221. esac
  2222. ;;
  2223. -* ) ac_must_keep_next=true ;;
  2224. esac
  2225. fi
  2226. as_fn_append ac_configure_args " '$ac_arg'"
  2227. ;;
  2228. esac
  2229. done
  2230. done
  2231. { ac_configure_args0=; unset ac_configure_args0;}
  2232. { ac_configure_args1=; unset ac_configure_args1;}
  2233. # When interrupted or exit'd, cleanup temporary files, and complete
  2234. # config.log. We remove comments because anyway the quotes in there
  2235. # would cause problems or look ugly.
  2236. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2237. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2238. trap 'exit_status=$?
  2239. # Save into config.log some information that might help in debugging.
  2240. {
  2241. echo
  2242. $as_echo "## ---------------- ##
  2243. ## Cache variables. ##
  2244. ## ---------------- ##"
  2245. echo
  2246. # The following way of writing the cache mishandles newlines in values,
  2247. (
  2248. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2249. eval ac_val=\$$ac_var
  2250. case $ac_val in #(
  2251. *${as_nl}*)
  2252. case $ac_var in #(
  2253. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2254. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2255. esac
  2256. case $ac_var in #(
  2257. _ | IFS | as_nl) ;; #(
  2258. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2259. *) { eval $ac_var=; unset $ac_var;} ;;
  2260. esac ;;
  2261. esac
  2262. done
  2263. (set) 2>&1 |
  2264. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2265. *${as_nl}ac_space=\ *)
  2266. sed -n \
  2267. "s/'\''/'\''\\\\'\'''\''/g;
  2268. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2269. ;; #(
  2270. *)
  2271. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2272. ;;
  2273. esac |
  2274. sort
  2275. )
  2276. echo
  2277. $as_echo "## ----------------- ##
  2278. ## Output variables. ##
  2279. ## ----------------- ##"
  2280. echo
  2281. for ac_var in $ac_subst_vars
  2282. do
  2283. eval ac_val=\$$ac_var
  2284. case $ac_val in
  2285. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2286. esac
  2287. $as_echo "$ac_var='\''$ac_val'\''"
  2288. done | sort
  2289. echo
  2290. if test -n "$ac_subst_files"; then
  2291. $as_echo "## ------------------- ##
  2292. ## File substitutions. ##
  2293. ## ------------------- ##"
  2294. echo
  2295. for ac_var in $ac_subst_files
  2296. do
  2297. eval ac_val=\$$ac_var
  2298. case $ac_val in
  2299. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2300. esac
  2301. $as_echo "$ac_var='\''$ac_val'\''"
  2302. done | sort
  2303. echo
  2304. fi
  2305. if test -s confdefs.h; then
  2306. $as_echo "## ----------- ##
  2307. ## confdefs.h. ##
  2308. ## ----------- ##"
  2309. echo
  2310. cat confdefs.h
  2311. echo
  2312. fi
  2313. test "$ac_signal" != 0 &&
  2314. $as_echo "$as_me: caught signal $ac_signal"
  2315. $as_echo "$as_me: exit $exit_status"
  2316. } >&5
  2317. rm -f core *.core core.conftest.* &&
  2318. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2319. exit $exit_status
  2320. ' 0
  2321. for ac_signal in 1 2 13 15; do
  2322. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2323. done
  2324. ac_signal=0
  2325. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2326. rm -f -r conftest* confdefs.h
  2327. $as_echo "/* confdefs.h */" > confdefs.h
  2328. # Predefined preprocessor variables.
  2329. cat >>confdefs.h <<_ACEOF
  2330. #define PACKAGE_NAME "$PACKAGE_NAME"
  2331. _ACEOF
  2332. cat >>confdefs.h <<_ACEOF
  2333. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2334. _ACEOF
  2335. cat >>confdefs.h <<_ACEOF
  2336. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2337. _ACEOF
  2338. cat >>confdefs.h <<_ACEOF
  2339. #define PACKAGE_STRING "$PACKAGE_STRING"
  2340. _ACEOF
  2341. cat >>confdefs.h <<_ACEOF
  2342. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2343. _ACEOF
  2344. cat >>confdefs.h <<_ACEOF
  2345. #define PACKAGE_URL "$PACKAGE_URL"
  2346. _ACEOF
  2347. # Let the site file select an alternate cache file if it wants to.
  2348. # Prefer an explicitly selected file to automatically selected ones.
  2349. ac_site_file1=NONE
  2350. ac_site_file2=NONE
  2351. if test -n "$CONFIG_SITE"; then
  2352. # We do not want a PATH search for config.site.
  2353. case $CONFIG_SITE in #((
  2354. -*) ac_site_file1=./$CONFIG_SITE;;
  2355. */*) ac_site_file1=$CONFIG_SITE;;
  2356. *) ac_site_file1=./$CONFIG_SITE;;
  2357. esac
  2358. elif test "x$prefix" != xNONE; then
  2359. ac_site_file1=$prefix/share/config.site
  2360. ac_site_file2=$prefix/etc/config.site
  2361. else
  2362. ac_site_file1=$ac_default_prefix/share/config.site
  2363. ac_site_file2=$ac_default_prefix/etc/config.site
  2364. fi
  2365. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2366. do
  2367. test "x$ac_site_file" = xNONE && continue
  2368. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2370. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2371. sed 's/^/| /' "$ac_site_file" >&5
  2372. . "$ac_site_file" \
  2373. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2374. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2375. as_fn_error $? "failed to load site script $ac_site_file
  2376. See \`config.log' for more details" "$LINENO" 5; }
  2377. fi
  2378. done
  2379. if test -r "$cache_file"; then
  2380. # Some versions of bash will fail to source /dev/null (special files
  2381. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2382. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2384. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2385. case $cache_file in
  2386. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2387. *) . "./$cache_file";;
  2388. esac
  2389. fi
  2390. else
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2392. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2393. >$cache_file
  2394. fi
  2395. # Check that the precious variables saved in the cache have kept the same
  2396. # value.
  2397. ac_cache_corrupted=false
  2398. for ac_var in $ac_precious_vars; do
  2399. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2400. eval ac_new_set=\$ac_env_${ac_var}_set
  2401. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2402. eval ac_new_val=\$ac_env_${ac_var}_value
  2403. case $ac_old_set,$ac_new_set in
  2404. set,)
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2406. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2407. ac_cache_corrupted=: ;;
  2408. ,set)
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2410. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2411. ac_cache_corrupted=: ;;
  2412. ,);;
  2413. *)
  2414. if test "x$ac_old_val" != "x$ac_new_val"; then
  2415. # differences in whitespace do not lead to failure.
  2416. ac_old_val_w=`echo x $ac_old_val`
  2417. ac_new_val_w=`echo x $ac_new_val`
  2418. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2420. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2421. ac_cache_corrupted=:
  2422. else
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2424. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2425. eval $ac_var=\$ac_old_val
  2426. fi
  2427. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2428. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2429. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2430. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2431. fi;;
  2432. esac
  2433. # Pass precious variables to config.status.
  2434. if test "$ac_new_set" = set; then
  2435. case $ac_new_val in
  2436. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2437. *) ac_arg=$ac_var=$ac_new_val ;;
  2438. esac
  2439. case " $ac_configure_args " in
  2440. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2441. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2442. esac
  2443. fi
  2444. done
  2445. if $ac_cache_corrupted; then
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2447. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2449. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2450. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2451. fi
  2452. ## -------------------- ##
  2453. ## Main body of script. ##
  2454. ## -------------------- ##
  2455. ac_ext=c
  2456. ac_cpp='$CPP $CPPFLAGS'
  2457. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2458. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2459. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2460. # Default to --enable-multilib
  2461. # Check whether --enable-multilib was given.
  2462. if test "${enable_multilib+set}" = set; then :
  2463. enableval=$enable_multilib; case "$enableval" in
  2464. yes) multilib=yes ;;
  2465. no) multilib=no ;;
  2466. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2467. esac
  2468. else
  2469. multilib=yes
  2470. fi
  2471. # We may get other options which we leave undocumented:
  2472. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2473. # See config-ml.in if you want the gory details.
  2474. if test "$srcdir" = "."; then
  2475. if test "$with_target_subdir" != "."; then
  2476. multi_basedir="$srcdir/$with_multisrctop../.."
  2477. else
  2478. multi_basedir="$srcdir/$with_multisrctop.."
  2479. fi
  2480. else
  2481. multi_basedir="$srcdir/.."
  2482. fi
  2483. # Even if the default multilib is not a cross compilation,
  2484. # it may be that some of the other multilibs are.
  2485. if test $cross_compiling = no && test $multilib = yes \
  2486. && test "x${with_multisubdir}" != x ; then
  2487. cross_compiling=maybe
  2488. fi
  2489. ac_config_commands="$ac_config_commands default-1"
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2491. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2492. # Check whether --enable-version-specific-runtime-libs was given.
  2493. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2494. enableval=$enable_version_specific_runtime_libs; case "$enableval" in
  2495. yes) version_specific_libs=yes ;;
  2496. no) version_specific_libs=no ;;
  2497. *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  2498. esac
  2499. else
  2500. version_specific_libs=no
  2501. fi
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
  2503. $as_echo "$version_specific_libs" >&6; }
  2504. ac_aux_dir=
  2505. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2506. if test -f "$ac_dir/install-sh"; then
  2507. ac_aux_dir=$ac_dir
  2508. ac_install_sh="$ac_aux_dir/install-sh -c"
  2509. break
  2510. elif test -f "$ac_dir/install.sh"; then
  2511. ac_aux_dir=$ac_dir
  2512. ac_install_sh="$ac_aux_dir/install.sh -c"
  2513. break
  2514. elif test -f "$ac_dir/shtool"; then
  2515. ac_aux_dir=$ac_dir
  2516. ac_install_sh="$ac_aux_dir/shtool install -c"
  2517. break
  2518. fi
  2519. done
  2520. if test -z "$ac_aux_dir"; then
  2521. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2522. fi
  2523. # These three variables are undocumented and unsupported,
  2524. # and are intended to be withdrawn in a future Autoconf release.
  2525. # They can cause serious problems if a builder's source tree is in a directory
  2526. # whose full name contains unusual characters.
  2527. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2528. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2529. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2530. # Expand $ac_aux_dir to an absolute path.
  2531. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2532. ac_ext=c
  2533. ac_cpp='$CPP $CPPFLAGS'
  2534. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2535. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2536. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2537. if test -n "$ac_tool_prefix"; then
  2538. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2539. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2541. $as_echo_n "checking for $ac_word... " >&6; }
  2542. if ${ac_cv_prog_CC+:} false; then :
  2543. $as_echo_n "(cached) " >&6
  2544. else
  2545. if test -n "$CC"; then
  2546. ac_cv_prog_CC="$CC" # Let the user override the test.
  2547. else
  2548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2549. for as_dir in $PATH
  2550. do
  2551. IFS=$as_save_IFS
  2552. test -z "$as_dir" && as_dir=.
  2553. for ac_exec_ext in '' $ac_executable_extensions; do
  2554. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2555. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2557. break 2
  2558. fi
  2559. done
  2560. done
  2561. IFS=$as_save_IFS
  2562. fi
  2563. fi
  2564. CC=$ac_cv_prog_CC
  2565. if test -n "$CC"; then
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2567. $as_echo "$CC" >&6; }
  2568. else
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2570. $as_echo "no" >&6; }
  2571. fi
  2572. fi
  2573. if test -z "$ac_cv_prog_CC"; then
  2574. ac_ct_CC=$CC
  2575. # Extract the first word of "gcc", so it can be a program name with args.
  2576. set dummy gcc; ac_word=$2
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2578. $as_echo_n "checking for $ac_word... " >&6; }
  2579. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2580. $as_echo_n "(cached) " >&6
  2581. else
  2582. if test -n "$ac_ct_CC"; then
  2583. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2584. else
  2585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2586. for as_dir in $PATH
  2587. do
  2588. IFS=$as_save_IFS
  2589. test -z "$as_dir" && as_dir=.
  2590. for ac_exec_ext in '' $ac_executable_extensions; do
  2591. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2592. ac_cv_prog_ac_ct_CC="gcc"
  2593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2594. break 2
  2595. fi
  2596. done
  2597. done
  2598. IFS=$as_save_IFS
  2599. fi
  2600. fi
  2601. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2602. if test -n "$ac_ct_CC"; then
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2604. $as_echo "$ac_ct_CC" >&6; }
  2605. else
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2607. $as_echo "no" >&6; }
  2608. fi
  2609. if test "x$ac_ct_CC" = x; then
  2610. CC=""
  2611. else
  2612. case $cross_compiling:$ac_tool_warned in
  2613. yes:)
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2615. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2616. ac_tool_warned=yes ;;
  2617. esac
  2618. CC=$ac_ct_CC
  2619. fi
  2620. else
  2621. CC="$ac_cv_prog_CC"
  2622. fi
  2623. if test -z "$CC"; then
  2624. if test -n "$ac_tool_prefix"; then
  2625. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2626. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2628. $as_echo_n "checking for $ac_word... " >&6; }
  2629. if ${ac_cv_prog_CC+:} false; then :
  2630. $as_echo_n "(cached) " >&6
  2631. else
  2632. if test -n "$CC"; then
  2633. ac_cv_prog_CC="$CC" # Let the user override the test.
  2634. else
  2635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2636. for as_dir in $PATH
  2637. do
  2638. IFS=$as_save_IFS
  2639. test -z "$as_dir" && as_dir=.
  2640. for ac_exec_ext in '' $ac_executable_extensions; do
  2641. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2642. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2643. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2644. break 2
  2645. fi
  2646. done
  2647. done
  2648. IFS=$as_save_IFS
  2649. fi
  2650. fi
  2651. CC=$ac_cv_prog_CC
  2652. if test -n "$CC"; then
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2654. $as_echo "$CC" >&6; }
  2655. else
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2657. $as_echo "no" >&6; }
  2658. fi
  2659. fi
  2660. fi
  2661. if test -z "$CC"; then
  2662. # Extract the first word of "cc", so it can be a program name with args.
  2663. set dummy cc; ac_word=$2
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2665. $as_echo_n "checking for $ac_word... " >&6; }
  2666. if ${ac_cv_prog_CC+:} false; then :
  2667. $as_echo_n "(cached) " >&6
  2668. else
  2669. if test -n "$CC"; then
  2670. ac_cv_prog_CC="$CC" # Let the user override the test.
  2671. else
  2672. ac_prog_rejected=no
  2673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2674. for as_dir in $PATH
  2675. do
  2676. IFS=$as_save_IFS
  2677. test -z "$as_dir" && as_dir=.
  2678. for ac_exec_ext in '' $ac_executable_extensions; do
  2679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2680. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2681. ac_prog_rejected=yes
  2682. continue
  2683. fi
  2684. ac_cv_prog_CC="cc"
  2685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2686. break 2
  2687. fi
  2688. done
  2689. done
  2690. IFS=$as_save_IFS
  2691. if test $ac_prog_rejected = yes; then
  2692. # We found a bogon in the path, so make sure we never use it.
  2693. set dummy $ac_cv_prog_CC
  2694. shift
  2695. if test $# != 0; then
  2696. # We chose a different compiler from the bogus one.
  2697. # However, it has the same basename, so the bogon will be chosen
  2698. # first if we set CC to just the basename; use the full file name.
  2699. shift
  2700. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2701. fi
  2702. fi
  2703. fi
  2704. fi
  2705. CC=$ac_cv_prog_CC
  2706. if test -n "$CC"; then
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2708. $as_echo "$CC" >&6; }
  2709. else
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2711. $as_echo "no" >&6; }
  2712. fi
  2713. fi
  2714. if test -z "$CC"; then
  2715. if test -n "$ac_tool_prefix"; then
  2716. for ac_prog in cl.exe
  2717. do
  2718. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2719. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2721. $as_echo_n "checking for $ac_word... " >&6; }
  2722. if ${ac_cv_prog_CC+:} false; then :
  2723. $as_echo_n "(cached) " >&6
  2724. else
  2725. if test -n "$CC"; then
  2726. ac_cv_prog_CC="$CC" # Let the user override the test.
  2727. else
  2728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2729. for as_dir in $PATH
  2730. do
  2731. IFS=$as_save_IFS
  2732. test -z "$as_dir" && as_dir=.
  2733. for ac_exec_ext in '' $ac_executable_extensions; do
  2734. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2735. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2737. break 2
  2738. fi
  2739. done
  2740. done
  2741. IFS=$as_save_IFS
  2742. fi
  2743. fi
  2744. CC=$ac_cv_prog_CC
  2745. if test -n "$CC"; then
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2747. $as_echo "$CC" >&6; }
  2748. else
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2750. $as_echo "no" >&6; }
  2751. fi
  2752. test -n "$CC" && break
  2753. done
  2754. fi
  2755. if test -z "$CC"; then
  2756. ac_ct_CC=$CC
  2757. for ac_prog in cl.exe
  2758. do
  2759. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2760. set dummy $ac_prog; ac_word=$2
  2761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2762. $as_echo_n "checking for $ac_word... " >&6; }
  2763. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2764. $as_echo_n "(cached) " >&6
  2765. else
  2766. if test -n "$ac_ct_CC"; then
  2767. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2768. else
  2769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2770. for as_dir in $PATH
  2771. do
  2772. IFS=$as_save_IFS
  2773. test -z "$as_dir" && as_dir=.
  2774. for ac_exec_ext in '' $ac_executable_extensions; do
  2775. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2776. ac_cv_prog_ac_ct_CC="$ac_prog"
  2777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2778. break 2
  2779. fi
  2780. done
  2781. done
  2782. IFS=$as_save_IFS
  2783. fi
  2784. fi
  2785. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2786. if test -n "$ac_ct_CC"; then
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2788. $as_echo "$ac_ct_CC" >&6; }
  2789. else
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2791. $as_echo "no" >&6; }
  2792. fi
  2793. test -n "$ac_ct_CC" && break
  2794. done
  2795. if test "x$ac_ct_CC" = x; then
  2796. CC=""
  2797. else
  2798. case $cross_compiling:$ac_tool_warned in
  2799. yes:)
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2801. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2802. ac_tool_warned=yes ;;
  2803. esac
  2804. CC=$ac_ct_CC
  2805. fi
  2806. fi
  2807. fi
  2808. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2809. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2810. as_fn_error $? "no acceptable C compiler found in \$PATH
  2811. See \`config.log' for more details" "$LINENO" 5; }
  2812. # Provide some information about the compiler.
  2813. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2814. set X $ac_compile
  2815. ac_compiler=$2
  2816. for ac_option in --version -v -V -qversion; do
  2817. { { ac_try="$ac_compiler $ac_option >&5"
  2818. case "(($ac_try" in
  2819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2820. *) ac_try_echo=$ac_try;;
  2821. esac
  2822. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2823. $as_echo "$ac_try_echo"; } >&5
  2824. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2825. ac_status=$?
  2826. if test -s conftest.err; then
  2827. sed '10a\
  2828. ... rest of stderr output deleted ...
  2829. 10q' conftest.err >conftest.er1
  2830. cat conftest.er1 >&5
  2831. fi
  2832. rm -f conftest.er1 conftest.err
  2833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2834. test $ac_status = 0; }
  2835. done
  2836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2837. /* end confdefs.h. */
  2838. int
  2839. main ()
  2840. {
  2841. ;
  2842. return 0;
  2843. }
  2844. _ACEOF
  2845. ac_clean_files_save=$ac_clean_files
  2846. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2847. # Try to create an executable without -o first, disregard a.out.
  2848. # It will help us diagnose broken compilers, and finding out an intuition
  2849. # of exeext.
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2851. $as_echo_n "checking whether the C compiler works... " >&6; }
  2852. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2853. # The possible output files:
  2854. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2855. ac_rmfiles=
  2856. for ac_file in $ac_files
  2857. do
  2858. case $ac_file in
  2859. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2860. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2861. esac
  2862. done
  2863. rm -f $ac_rmfiles
  2864. if { { ac_try="$ac_link_default"
  2865. case "(($ac_try" in
  2866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2867. *) ac_try_echo=$ac_try;;
  2868. esac
  2869. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2870. $as_echo "$ac_try_echo"; } >&5
  2871. (eval "$ac_link_default") 2>&5
  2872. ac_status=$?
  2873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2874. test $ac_status = 0; }; then :
  2875. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2876. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2877. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2878. # so that the user can short-circuit this test for compilers unknown to
  2879. # Autoconf.
  2880. for ac_file in $ac_files ''
  2881. do
  2882. test -f "$ac_file" || continue
  2883. case $ac_file in
  2884. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2885. ;;
  2886. [ab].out )
  2887. # We found the default executable, but exeext='' is most
  2888. # certainly right.
  2889. break;;
  2890. *.* )
  2891. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2892. then :; else
  2893. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2894. fi
  2895. # We set ac_cv_exeext here because the later test for it is not
  2896. # safe: cross compilers may not add the suffix if given an `-o'
  2897. # argument, so we may need to know it at that point already.
  2898. # Even if this section looks crufty: it has the advantage of
  2899. # actually working.
  2900. break;;
  2901. * )
  2902. break;;
  2903. esac
  2904. done
  2905. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2906. else
  2907. ac_file=''
  2908. fi
  2909. if test -z "$ac_file"; then :
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2911. $as_echo "no" >&6; }
  2912. $as_echo "$as_me: failed program was:" >&5
  2913. sed 's/^/| /' conftest.$ac_ext >&5
  2914. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2915. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2916. as_fn_error 77 "C compiler cannot create executables
  2917. See \`config.log' for more details" "$LINENO" 5; }
  2918. else
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2920. $as_echo "yes" >&6; }
  2921. fi
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2923. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2925. $as_echo "$ac_file" >&6; }
  2926. ac_exeext=$ac_cv_exeext
  2927. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2928. ac_clean_files=$ac_clean_files_save
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2930. $as_echo_n "checking for suffix of executables... " >&6; }
  2931. if { { ac_try="$ac_link"
  2932. case "(($ac_try" in
  2933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2934. *) ac_try_echo=$ac_try;;
  2935. esac
  2936. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2937. $as_echo "$ac_try_echo"; } >&5
  2938. (eval "$ac_link") 2>&5
  2939. ac_status=$?
  2940. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2941. test $ac_status = 0; }; then :
  2942. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2943. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2944. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2945. # `rm'.
  2946. for ac_file in conftest.exe conftest conftest.*; do
  2947. test -f "$ac_file" || continue
  2948. case $ac_file in
  2949. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2950. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2951. break;;
  2952. * ) break;;
  2953. esac
  2954. done
  2955. else
  2956. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2957. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2958. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2959. See \`config.log' for more details" "$LINENO" 5; }
  2960. fi
  2961. rm -f conftest conftest$ac_cv_exeext
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2963. $as_echo "$ac_cv_exeext" >&6; }
  2964. rm -f conftest.$ac_ext
  2965. EXEEXT=$ac_cv_exeext
  2966. ac_exeext=$EXEEXT
  2967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2968. /* end confdefs.h. */
  2969. #include <stdio.h>
  2970. int
  2971. main ()
  2972. {
  2973. FILE *f = fopen ("conftest.out", "w");
  2974. return ferror (f) || fclose (f) != 0;
  2975. ;
  2976. return 0;
  2977. }
  2978. _ACEOF
  2979. ac_clean_files="$ac_clean_files conftest.out"
  2980. # Check that the compiler produces executables we can run. If not, either
  2981. # the compiler is broken, or we cross compile.
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2983. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2984. if test "$cross_compiling" != yes; then
  2985. { { ac_try="$ac_link"
  2986. case "(($ac_try" in
  2987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2988. *) ac_try_echo=$ac_try;;
  2989. esac
  2990. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2991. $as_echo "$ac_try_echo"; } >&5
  2992. (eval "$ac_link") 2>&5
  2993. ac_status=$?
  2994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2995. test $ac_status = 0; }
  2996. if { ac_try='./conftest$ac_cv_exeext'
  2997. { { case "(($ac_try" in
  2998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2999. *) ac_try_echo=$ac_try;;
  3000. esac
  3001. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3002. $as_echo "$ac_try_echo"; } >&5
  3003. (eval "$ac_try") 2>&5
  3004. ac_status=$?
  3005. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3006. test $ac_status = 0; }; }; then
  3007. cross_compiling=no
  3008. else
  3009. if test "$cross_compiling" = maybe; then
  3010. cross_compiling=yes
  3011. else
  3012. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3013. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3014. as_fn_error $? "cannot run C compiled programs.
  3015. If you meant to cross compile, use \`--host'.
  3016. See \`config.log' for more details" "$LINENO" 5; }
  3017. fi
  3018. fi
  3019. fi
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3021. $as_echo "$cross_compiling" >&6; }
  3022. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3023. ac_clean_files=$ac_clean_files_save
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3025. $as_echo_n "checking for suffix of object files... " >&6; }
  3026. if ${ac_cv_objext+:} false; then :
  3027. $as_echo_n "(cached) " >&6
  3028. else
  3029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3030. /* end confdefs.h. */
  3031. int
  3032. main ()
  3033. {
  3034. ;
  3035. return 0;
  3036. }
  3037. _ACEOF
  3038. rm -f conftest.o conftest.obj
  3039. if { { ac_try="$ac_compile"
  3040. case "(($ac_try" in
  3041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3042. *) ac_try_echo=$ac_try;;
  3043. esac
  3044. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3045. $as_echo "$ac_try_echo"; } >&5
  3046. (eval "$ac_compile") 2>&5
  3047. ac_status=$?
  3048. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3049. test $ac_status = 0; }; then :
  3050. for ac_file in conftest.o conftest.obj conftest.*; do
  3051. test -f "$ac_file" || continue;
  3052. case $ac_file in
  3053. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3054. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3055. break;;
  3056. esac
  3057. done
  3058. else
  3059. $as_echo "$as_me: failed program was:" >&5
  3060. sed 's/^/| /' conftest.$ac_ext >&5
  3061. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3062. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3063. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3064. See \`config.log' for more details" "$LINENO" 5; }
  3065. fi
  3066. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3067. fi
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3069. $as_echo "$ac_cv_objext" >&6; }
  3070. OBJEXT=$ac_cv_objext
  3071. ac_objext=$OBJEXT
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3073. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3074. if ${ac_cv_c_compiler_gnu+:} false; then :
  3075. $as_echo_n "(cached) " >&6
  3076. else
  3077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3078. /* end confdefs.h. */
  3079. int
  3080. main ()
  3081. {
  3082. #ifndef __GNUC__
  3083. choke me
  3084. #endif
  3085. ;
  3086. return 0;
  3087. }
  3088. _ACEOF
  3089. if ac_fn_c_try_compile "$LINENO"; then :
  3090. ac_compiler_gnu=yes
  3091. else
  3092. ac_compiler_gnu=no
  3093. fi
  3094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3095. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3096. fi
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3098. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3099. if test $ac_compiler_gnu = yes; then
  3100. GCC=yes
  3101. else
  3102. GCC=
  3103. fi
  3104. ac_test_CFLAGS=${CFLAGS+set}
  3105. ac_save_CFLAGS=$CFLAGS
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3107. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3108. if ${ac_cv_prog_cc_g+:} false; then :
  3109. $as_echo_n "(cached) " >&6
  3110. else
  3111. ac_save_c_werror_flag=$ac_c_werror_flag
  3112. ac_c_werror_flag=yes
  3113. ac_cv_prog_cc_g=no
  3114. CFLAGS="-g"
  3115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3116. /* end confdefs.h. */
  3117. int
  3118. main ()
  3119. {
  3120. ;
  3121. return 0;
  3122. }
  3123. _ACEOF
  3124. if ac_fn_c_try_compile "$LINENO"; then :
  3125. ac_cv_prog_cc_g=yes
  3126. else
  3127. CFLAGS=""
  3128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3129. /* end confdefs.h. */
  3130. int
  3131. main ()
  3132. {
  3133. ;
  3134. return 0;
  3135. }
  3136. _ACEOF
  3137. if ac_fn_c_try_compile "$LINENO"; then :
  3138. else
  3139. ac_c_werror_flag=$ac_save_c_werror_flag
  3140. CFLAGS="-g"
  3141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3142. /* end confdefs.h. */
  3143. int
  3144. main ()
  3145. {
  3146. ;
  3147. return 0;
  3148. }
  3149. _ACEOF
  3150. if ac_fn_c_try_compile "$LINENO"; then :
  3151. ac_cv_prog_cc_g=yes
  3152. fi
  3153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3154. fi
  3155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3156. fi
  3157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3158. ac_c_werror_flag=$ac_save_c_werror_flag
  3159. fi
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3161. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3162. if test "$ac_test_CFLAGS" = set; then
  3163. CFLAGS=$ac_save_CFLAGS
  3164. elif test $ac_cv_prog_cc_g = yes; then
  3165. if test "$GCC" = yes; then
  3166. CFLAGS="-g -O2"
  3167. else
  3168. CFLAGS="-g"
  3169. fi
  3170. else
  3171. if test "$GCC" = yes; then
  3172. CFLAGS="-O2"
  3173. else
  3174. CFLAGS=
  3175. fi
  3176. fi
  3177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3178. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3179. if ${ac_cv_prog_cc_c89+:} false; then :
  3180. $as_echo_n "(cached) " >&6
  3181. else
  3182. ac_cv_prog_cc_c89=no
  3183. ac_save_CC=$CC
  3184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3185. /* end confdefs.h. */
  3186. #include <stdarg.h>
  3187. #include <stdio.h>
  3188. struct stat;
  3189. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3190. struct buf { int x; };
  3191. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3192. static char *e (p, i)
  3193. char **p;
  3194. int i;
  3195. {
  3196. return p[i];
  3197. }
  3198. static char *f (char * (*g) (char **, int), char **p, ...)
  3199. {
  3200. char *s;
  3201. va_list v;
  3202. va_start (v,p);
  3203. s = g (p, va_arg (v,int));
  3204. va_end (v);
  3205. return s;
  3206. }
  3207. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3208. function prototypes and stuff, but not '\xHH' hex character constants.
  3209. These don't provoke an error unfortunately, instead are silently treated
  3210. as 'x'. The following induces an error, until -std is added to get
  3211. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3212. array size at least. It's necessary to write '\x00'==0 to get something
  3213. that's true only with -std. */
  3214. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3215. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3216. inside strings and character constants. */
  3217. #define FOO(x) 'x'
  3218. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3219. int test (int i, double x);
  3220. struct s1 {int (*f) (int a);};
  3221. struct s2 {int (*f) (double a);};
  3222. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3223. int argc;
  3224. char **argv;
  3225. int
  3226. main ()
  3227. {
  3228. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3229. ;
  3230. return 0;
  3231. }
  3232. _ACEOF
  3233. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3234. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3235. do
  3236. CC="$ac_save_CC $ac_arg"
  3237. if ac_fn_c_try_compile "$LINENO"; then :
  3238. ac_cv_prog_cc_c89=$ac_arg
  3239. fi
  3240. rm -f core conftest.err conftest.$ac_objext
  3241. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3242. done
  3243. rm -f conftest.$ac_ext
  3244. CC=$ac_save_CC
  3245. fi
  3246. # AC_CACHE_VAL
  3247. case "x$ac_cv_prog_cc_c89" in
  3248. x)
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3250. $as_echo "none needed" >&6; } ;;
  3251. xno)
  3252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3253. $as_echo "unsupported" >&6; } ;;
  3254. *)
  3255. CC="$CC $ac_cv_prog_cc_c89"
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3257. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3258. esac
  3259. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3260. fi
  3261. ac_ext=c
  3262. ac_cpp='$CPP $CPPFLAGS'
  3263. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3264. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3265. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3266. ac_ext=c
  3267. ac_cpp='$CPP $CPPFLAGS'
  3268. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3269. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3270. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3272. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3273. if ${am_cv_prog_cc_c_o+:} false; then :
  3274. $as_echo_n "(cached) " >&6
  3275. else
  3276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3277. /* end confdefs.h. */
  3278. int
  3279. main ()
  3280. {
  3281. ;
  3282. return 0;
  3283. }
  3284. _ACEOF
  3285. # Make sure it works both with $CC and with simple cc.
  3286. # Following AC_PROG_CC_C_O, we do the test twice because some
  3287. # compilers refuse to overwrite an existing .o file with -o,
  3288. # though they will create one.
  3289. am_cv_prog_cc_c_o=yes
  3290. for am_i in 1 2; do
  3291. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3292. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3293. ac_status=$?
  3294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3295. (exit $ac_status); } \
  3296. && test -f conftest2.$ac_objext; then
  3297. : OK
  3298. else
  3299. am_cv_prog_cc_c_o=no
  3300. break
  3301. fi
  3302. done
  3303. rm -f core conftest*
  3304. unset am_i
  3305. fi
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3307. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3308. if test "$am_cv_prog_cc_c_o" != yes; then
  3309. # Losing compiler, so override with the script.
  3310. # FIXME: It is wrong to rewrite CC.
  3311. # But if we don't then we get into trouble of one sort or another.
  3312. # A longer-term fix would be to have automake use am__CC in this case,
  3313. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3314. CC="$am_aux_dir/compile $CC"
  3315. fi
  3316. ac_ext=c
  3317. ac_cpp='$CPP $CPPFLAGS'
  3318. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3319. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3320. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3321. ac_ext=c
  3322. ac_cpp='$CPP $CPPFLAGS'
  3323. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3324. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3325. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3327. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3328. # On Suns, sometimes $CPP names a directory.
  3329. if test -n "$CPP" && test -d "$CPP"; then
  3330. CPP=
  3331. fi
  3332. if test -z "$CPP"; then
  3333. if ${ac_cv_prog_CPP+:} false; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. # Double quotes because CPP needs to be expanded
  3337. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3338. do
  3339. ac_preproc_ok=false
  3340. for ac_c_preproc_warn_flag in '' yes
  3341. do
  3342. # Use a header file that comes with gcc, so configuring glibc
  3343. # with a fresh cross-compiler works.
  3344. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3345. # <limits.h> exists even on freestanding compilers.
  3346. # On the NeXT, cc -E runs the code through the compiler's parser,
  3347. # not just through cpp. "Syntax error" is here to catch this case.
  3348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3349. /* end confdefs.h. */
  3350. #ifdef __STDC__
  3351. # include <limits.h>
  3352. #else
  3353. # include <assert.h>
  3354. #endif
  3355. Syntax error
  3356. _ACEOF
  3357. if ac_fn_c_try_cpp "$LINENO"; then :
  3358. else
  3359. # Broken: fails on valid input.
  3360. continue
  3361. fi
  3362. rm -f conftest.err conftest.i conftest.$ac_ext
  3363. # OK, works on sane cases. Now check whether nonexistent headers
  3364. # can be detected and how.
  3365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3366. /* end confdefs.h. */
  3367. #include <ac_nonexistent.h>
  3368. _ACEOF
  3369. if ac_fn_c_try_cpp "$LINENO"; then :
  3370. # Broken: success on invalid input.
  3371. continue
  3372. else
  3373. # Passes both tests.
  3374. ac_preproc_ok=:
  3375. break
  3376. fi
  3377. rm -f conftest.err conftest.i conftest.$ac_ext
  3378. done
  3379. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3380. rm -f conftest.i conftest.err conftest.$ac_ext
  3381. if $ac_preproc_ok; then :
  3382. break
  3383. fi
  3384. done
  3385. ac_cv_prog_CPP=$CPP
  3386. fi
  3387. CPP=$ac_cv_prog_CPP
  3388. else
  3389. ac_cv_prog_CPP=$CPP
  3390. fi
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3392. $as_echo "$CPP" >&6; }
  3393. ac_preproc_ok=false
  3394. for ac_c_preproc_warn_flag in '' yes
  3395. do
  3396. # Use a header file that comes with gcc, so configuring glibc
  3397. # with a fresh cross-compiler works.
  3398. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3399. # <limits.h> exists even on freestanding compilers.
  3400. # On the NeXT, cc -E runs the code through the compiler's parser,
  3401. # not just through cpp. "Syntax error" is here to catch this case.
  3402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3403. /* end confdefs.h. */
  3404. #ifdef __STDC__
  3405. # include <limits.h>
  3406. #else
  3407. # include <assert.h>
  3408. #endif
  3409. Syntax error
  3410. _ACEOF
  3411. if ac_fn_c_try_cpp "$LINENO"; then :
  3412. else
  3413. # Broken: fails on valid input.
  3414. continue
  3415. fi
  3416. rm -f conftest.err conftest.i conftest.$ac_ext
  3417. # OK, works on sane cases. Now check whether nonexistent headers
  3418. # can be detected and how.
  3419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3420. /* end confdefs.h. */
  3421. #include <ac_nonexistent.h>
  3422. _ACEOF
  3423. if ac_fn_c_try_cpp "$LINENO"; then :
  3424. # Broken: success on invalid input.
  3425. continue
  3426. else
  3427. # Passes both tests.
  3428. ac_preproc_ok=:
  3429. break
  3430. fi
  3431. rm -f conftest.err conftest.i conftest.$ac_ext
  3432. done
  3433. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3434. rm -f conftest.i conftest.err conftest.$ac_ext
  3435. if $ac_preproc_ok; then :
  3436. else
  3437. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3438. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3439. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3440. See \`config.log' for more details" "$LINENO" 5; }
  3441. fi
  3442. ac_ext=c
  3443. ac_cpp='$CPP $CPPFLAGS'
  3444. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3445. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3446. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3448. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3449. if ${ac_cv_path_GREP+:} false; then :
  3450. $as_echo_n "(cached) " >&6
  3451. else
  3452. if test -z "$GREP"; then
  3453. ac_path_GREP_found=false
  3454. # Loop through the user's path and test for each of PROGNAME-LIST
  3455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3456. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3457. do
  3458. IFS=$as_save_IFS
  3459. test -z "$as_dir" && as_dir=.
  3460. for ac_prog in grep ggrep; do
  3461. for ac_exec_ext in '' $ac_executable_extensions; do
  3462. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3463. as_fn_executable_p "$ac_path_GREP" || continue
  3464. # Check for GNU ac_path_GREP and select it if it is found.
  3465. # Check for GNU $ac_path_GREP
  3466. case `"$ac_path_GREP" --version 2>&1` in
  3467. *GNU*)
  3468. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3469. *)
  3470. ac_count=0
  3471. $as_echo_n 0123456789 >"conftest.in"
  3472. while :
  3473. do
  3474. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3475. mv "conftest.tmp" "conftest.in"
  3476. cp "conftest.in" "conftest.nl"
  3477. $as_echo 'GREP' >> "conftest.nl"
  3478. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3479. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3480. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3481. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3482. # Best one so far, save it but keep looking for a better one
  3483. ac_cv_path_GREP="$ac_path_GREP"
  3484. ac_path_GREP_max=$ac_count
  3485. fi
  3486. # 10*(2^10) chars as input seems more than enough
  3487. test $ac_count -gt 10 && break
  3488. done
  3489. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3490. esac
  3491. $ac_path_GREP_found && break 3
  3492. done
  3493. done
  3494. done
  3495. IFS=$as_save_IFS
  3496. if test -z "$ac_cv_path_GREP"; then
  3497. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3498. fi
  3499. else
  3500. ac_cv_path_GREP=$GREP
  3501. fi
  3502. fi
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3504. $as_echo "$ac_cv_path_GREP" >&6; }
  3505. GREP="$ac_cv_path_GREP"
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3507. $as_echo_n "checking for egrep... " >&6; }
  3508. if ${ac_cv_path_EGREP+:} false; then :
  3509. $as_echo_n "(cached) " >&6
  3510. else
  3511. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3512. then ac_cv_path_EGREP="$GREP -E"
  3513. else
  3514. if test -z "$EGREP"; then
  3515. ac_path_EGREP_found=false
  3516. # Loop through the user's path and test for each of PROGNAME-LIST
  3517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3518. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3519. do
  3520. IFS=$as_save_IFS
  3521. test -z "$as_dir" && as_dir=.
  3522. for ac_prog in egrep; do
  3523. for ac_exec_ext in '' $ac_executable_extensions; do
  3524. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3525. as_fn_executable_p "$ac_path_EGREP" || continue
  3526. # Check for GNU ac_path_EGREP and select it if it is found.
  3527. # Check for GNU $ac_path_EGREP
  3528. case `"$ac_path_EGREP" --version 2>&1` in
  3529. *GNU*)
  3530. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3531. *)
  3532. ac_count=0
  3533. $as_echo_n 0123456789 >"conftest.in"
  3534. while :
  3535. do
  3536. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3537. mv "conftest.tmp" "conftest.in"
  3538. cp "conftest.in" "conftest.nl"
  3539. $as_echo 'EGREP' >> "conftest.nl"
  3540. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3541. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3542. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3543. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3544. # Best one so far, save it but keep looking for a better one
  3545. ac_cv_path_EGREP="$ac_path_EGREP"
  3546. ac_path_EGREP_max=$ac_count
  3547. fi
  3548. # 10*(2^10) chars as input seems more than enough
  3549. test $ac_count -gt 10 && break
  3550. done
  3551. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3552. esac
  3553. $ac_path_EGREP_found && break 3
  3554. done
  3555. done
  3556. done
  3557. IFS=$as_save_IFS
  3558. if test -z "$ac_cv_path_EGREP"; then
  3559. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3560. fi
  3561. else
  3562. ac_cv_path_EGREP=$EGREP
  3563. fi
  3564. fi
  3565. fi
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3567. $as_echo "$ac_cv_path_EGREP" >&6; }
  3568. EGREP="$ac_cv_path_EGREP"
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3570. $as_echo_n "checking for ANSI C header files... " >&6; }
  3571. if ${ac_cv_header_stdc+:} false; then :
  3572. $as_echo_n "(cached) " >&6
  3573. else
  3574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3575. /* end confdefs.h. */
  3576. #include <stdlib.h>
  3577. #include <stdarg.h>
  3578. #include <string.h>
  3579. #include <float.h>
  3580. int
  3581. main ()
  3582. {
  3583. ;
  3584. return 0;
  3585. }
  3586. _ACEOF
  3587. if ac_fn_c_try_compile "$LINENO"; then :
  3588. ac_cv_header_stdc=yes
  3589. else
  3590. ac_cv_header_stdc=no
  3591. fi
  3592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3593. if test $ac_cv_header_stdc = yes; then
  3594. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3596. /* end confdefs.h. */
  3597. #include <string.h>
  3598. _ACEOF
  3599. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3600. $EGREP "memchr" >/dev/null 2>&1; then :
  3601. else
  3602. ac_cv_header_stdc=no
  3603. fi
  3604. rm -f conftest*
  3605. fi
  3606. if test $ac_cv_header_stdc = yes; then
  3607. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3609. /* end confdefs.h. */
  3610. #include <stdlib.h>
  3611. _ACEOF
  3612. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3613. $EGREP "free" >/dev/null 2>&1; then :
  3614. else
  3615. ac_cv_header_stdc=no
  3616. fi
  3617. rm -f conftest*
  3618. fi
  3619. if test $ac_cv_header_stdc = yes; then
  3620. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3621. if test "$cross_compiling" = yes; then :
  3622. :
  3623. else
  3624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3625. /* end confdefs.h. */
  3626. #include <ctype.h>
  3627. #include <stdlib.h>
  3628. #if ((' ' & 0x0FF) == 0x020)
  3629. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3630. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3631. #else
  3632. # define ISLOWER(c) \
  3633. (('a' <= (c) && (c) <= 'i') \
  3634. || ('j' <= (c) && (c) <= 'r') \
  3635. || ('s' <= (c) && (c) <= 'z'))
  3636. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3637. #endif
  3638. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3639. int
  3640. main ()
  3641. {
  3642. int i;
  3643. for (i = 0; i < 256; i++)
  3644. if (XOR (islower (i), ISLOWER (i))
  3645. || toupper (i) != TOUPPER (i))
  3646. return 2;
  3647. return 0;
  3648. }
  3649. _ACEOF
  3650. if ac_fn_c_try_run "$LINENO"; then :
  3651. else
  3652. ac_cv_header_stdc=no
  3653. fi
  3654. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3655. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3656. fi
  3657. fi
  3658. fi
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3660. $as_echo "$ac_cv_header_stdc" >&6; }
  3661. if test $ac_cv_header_stdc = yes; then
  3662. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3663. fi
  3664. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3665. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3666. inttypes.h stdint.h unistd.h
  3667. do :
  3668. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3669. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3670. "
  3671. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3672. cat >>confdefs.h <<_ACEOF
  3673. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3674. _ACEOF
  3675. fi
  3676. done
  3677. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3678. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3679. MINIX=yes
  3680. else
  3681. MINIX=
  3682. fi
  3683. if test "$MINIX" = yes; then
  3684. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3685. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3686. $as_echo "#define _MINIX 1" >>confdefs.h
  3687. fi
  3688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3689. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3690. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3691. $as_echo_n "(cached) " >&6
  3692. else
  3693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3694. /* end confdefs.h. */
  3695. # define __EXTENSIONS__ 1
  3696. $ac_includes_default
  3697. int
  3698. main ()
  3699. {
  3700. ;
  3701. return 0;
  3702. }
  3703. _ACEOF
  3704. if ac_fn_c_try_compile "$LINENO"; then :
  3705. ac_cv_safe_to_define___extensions__=yes
  3706. else
  3707. ac_cv_safe_to_define___extensions__=no
  3708. fi
  3709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3710. fi
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3712. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3713. test $ac_cv_safe_to_define___extensions__ = yes &&
  3714. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3715. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3716. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3717. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3718. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3719. # Do not delete or change the following two lines. For why, see
  3720. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  3721. # Make sure we can run config.sub.
  3722. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3723. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3725. $as_echo_n "checking build system type... " >&6; }
  3726. if ${ac_cv_build+:} false; then :
  3727. $as_echo_n "(cached) " >&6
  3728. else
  3729. ac_build_alias=$build_alias
  3730. test "x$ac_build_alias" = x &&
  3731. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3732. test "x$ac_build_alias" = x &&
  3733. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3734. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3735. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3736. fi
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3738. $as_echo "$ac_cv_build" >&6; }
  3739. case $ac_cv_build in
  3740. *-*-*) ;;
  3741. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3742. esac
  3743. build=$ac_cv_build
  3744. ac_save_IFS=$IFS; IFS='-'
  3745. set x $ac_cv_build
  3746. shift
  3747. build_cpu=$1
  3748. build_vendor=$2
  3749. shift; shift
  3750. # Remember, the first character of IFS is used to create $*,
  3751. # except with old shells:
  3752. build_os=$*
  3753. IFS=$ac_save_IFS
  3754. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3756. $as_echo_n "checking host system type... " >&6; }
  3757. if ${ac_cv_host+:} false; then :
  3758. $as_echo_n "(cached) " >&6
  3759. else
  3760. if test "x$host_alias" = x; then
  3761. ac_cv_host=$ac_cv_build
  3762. else
  3763. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3764. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3765. fi
  3766. fi
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3768. $as_echo "$ac_cv_host" >&6; }
  3769. case $ac_cv_host in
  3770. *-*-*) ;;
  3771. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3772. esac
  3773. host=$ac_cv_host
  3774. ac_save_IFS=$IFS; IFS='-'
  3775. set x $ac_cv_host
  3776. shift
  3777. host_cpu=$1
  3778. host_vendor=$2
  3779. shift; shift
  3780. # Remember, the first character of IFS is used to create $*,
  3781. # except with old shells:
  3782. host_os=$*
  3783. IFS=$ac_save_IFS
  3784. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3786. $as_echo_n "checking target system type... " >&6; }
  3787. if ${ac_cv_target+:} false; then :
  3788. $as_echo_n "(cached) " >&6
  3789. else
  3790. if test "x$target_alias" = x; then
  3791. ac_cv_target=$ac_cv_host
  3792. else
  3793. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3794. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3795. fi
  3796. fi
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3798. $as_echo "$ac_cv_target" >&6; }
  3799. case $ac_cv_target in
  3800. *-*-*) ;;
  3801. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  3802. esac
  3803. target=$ac_cv_target
  3804. ac_save_IFS=$IFS; IFS='-'
  3805. set x $ac_cv_target
  3806. shift
  3807. target_cpu=$1
  3808. target_vendor=$2
  3809. shift; shift
  3810. # Remember, the first character of IFS is used to create $*,
  3811. # except with old shells:
  3812. target_os=$*
  3813. IFS=$ac_save_IFS
  3814. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  3815. # The aliases save the names the user supplied, while $host etc.
  3816. # will get canonicalized.
  3817. test -n "$target_alias" &&
  3818. test "$program_prefix$program_suffix$program_transform_name" = \
  3819. NONENONEs,x,x, &&
  3820. program_prefix=${target_alias}-
  3821. target_alias=${target_alias-$host_alias}
  3822. case ${build_alias} in
  3823. "") build_noncanonical=${build} ;;
  3824. *) build_noncanonical=${build_alias} ;;
  3825. esac
  3826. case ${host_alias} in
  3827. "") host_noncanonical=${build_noncanonical} ;;
  3828. *) host_noncanonical=${host_alias} ;;
  3829. esac
  3830. case ${target_alias} in
  3831. "") target_noncanonical=${host_noncanonical} ;;
  3832. *) target_noncanonical=${target_alias} ;;
  3833. esac
  3834. LIBSTDCXX_RAW_CXX_CXXFLAGS="\
  3835. -I\$(top_builddir)/../libstdc++-v3/include \
  3836. -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
  3837. -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
  3838. LIBSTDCXX_RAW_CXX_LDFLAGS="\
  3839. \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
  3840. am__api_version='1.15'
  3841. # Find a good install program. We prefer a C program (faster),
  3842. # so one script is as good as another. But avoid the broken or
  3843. # incompatible versions:
  3844. # SysV /etc/install, /usr/sbin/install
  3845. # SunOS /usr/etc/install
  3846. # IRIX /sbin/install
  3847. # AIX /bin/install
  3848. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3849. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3850. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3851. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3852. # OS/2's system install, which has a completely different semantic
  3853. # ./install, which can be erroneously created by make from ./install.sh.
  3854. # Reject install programs that cannot install multiple files.
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3856. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3857. if test -z "$INSTALL"; then
  3858. if ${ac_cv_path_install+:} false; then :
  3859. $as_echo_n "(cached) " >&6
  3860. else
  3861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3862. for as_dir in $PATH
  3863. do
  3864. IFS=$as_save_IFS
  3865. test -z "$as_dir" && as_dir=.
  3866. # Account for people who put trailing slashes in PATH elements.
  3867. case $as_dir/ in #((
  3868. ./ | .// | /[cC]/* | \
  3869. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3870. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3871. /usr/ucb/* ) ;;
  3872. *)
  3873. # OSF1 and SCO ODT 3.0 have their own names for install.
  3874. # Don't use installbsd from OSF since it installs stuff as root
  3875. # by default.
  3876. for ac_prog in ginstall scoinst install; do
  3877. for ac_exec_ext in '' $ac_executable_extensions; do
  3878. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3879. if test $ac_prog = install &&
  3880. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3881. # AIX install. It has an incompatible calling convention.
  3882. :
  3883. elif test $ac_prog = install &&
  3884. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3885. # program-specific install script used by HP pwplus--don't use.
  3886. :
  3887. else
  3888. rm -rf conftest.one conftest.two conftest.dir
  3889. echo one > conftest.one
  3890. echo two > conftest.two
  3891. mkdir conftest.dir
  3892. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3893. test -s conftest.one && test -s conftest.two &&
  3894. test -s conftest.dir/conftest.one &&
  3895. test -s conftest.dir/conftest.two
  3896. then
  3897. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3898. break 3
  3899. fi
  3900. fi
  3901. fi
  3902. done
  3903. done
  3904. ;;
  3905. esac
  3906. done
  3907. IFS=$as_save_IFS
  3908. rm -rf conftest.one conftest.two conftest.dir
  3909. fi
  3910. if test "${ac_cv_path_install+set}" = set; then
  3911. INSTALL=$ac_cv_path_install
  3912. else
  3913. # As a last resort, use the slow shell script. Don't cache a
  3914. # value for INSTALL within a source directory, because that will
  3915. # break other packages using the cache if that directory is
  3916. # removed, or if the value is a relative name.
  3917. INSTALL=$ac_install_sh
  3918. fi
  3919. fi
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3921. $as_echo "$INSTALL" >&6; }
  3922. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3923. # It thinks the first close brace ends the variable substitution.
  3924. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3925. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3926. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3928. $as_echo_n "checking whether build environment is sane... " >&6; }
  3929. # Reject unsafe characters in $srcdir or the absolute working directory
  3930. # name. Accept space and tab only in the latter.
  3931. am_lf='
  3932. '
  3933. case `pwd` in
  3934. *[\\\"\#\$\&\'\`$am_lf]*)
  3935. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3936. esac
  3937. case $srcdir in
  3938. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3939. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3940. esac
  3941. # Do 'set' in a subshell so we don't clobber the current shell's
  3942. # arguments. Must try -L first in case configure is actually a
  3943. # symlink; some systems play weird games with the mod time of symlinks
  3944. # (eg FreeBSD returns the mod time of the symlink's containing
  3945. # directory).
  3946. if (
  3947. am_has_slept=no
  3948. for am_try in 1 2; do
  3949. echo "timestamp, slept: $am_has_slept" > conftest.file
  3950. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3951. if test "$*" = "X"; then
  3952. # -L didn't work.
  3953. set X `ls -t "$srcdir/configure" conftest.file`
  3954. fi
  3955. if test "$*" != "X $srcdir/configure conftest.file" \
  3956. && test "$*" != "X conftest.file $srcdir/configure"; then
  3957. # If neither matched, then we have a broken ls. This can happen
  3958. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3959. # broken ls alias from the environment. This has actually
  3960. # happened. Such a system could not be considered "sane".
  3961. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3962. alias in your environment" "$LINENO" 5
  3963. fi
  3964. if test "$2" = conftest.file || test $am_try -eq 2; then
  3965. break
  3966. fi
  3967. # Just in case.
  3968. sleep 1
  3969. am_has_slept=yes
  3970. done
  3971. test "$2" = conftest.file
  3972. )
  3973. then
  3974. # Ok.
  3975. :
  3976. else
  3977. as_fn_error $? "newly created file is older than distributed files!
  3978. Check your system clock" "$LINENO" 5
  3979. fi
  3980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3981. $as_echo "yes" >&6; }
  3982. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3983. # generated files are strictly newer.
  3984. am_sleep_pid=
  3985. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3986. ( sleep 1 ) &
  3987. am_sleep_pid=$!
  3988. fi
  3989. rm -f conftest.file
  3990. test "$program_prefix" != NONE &&
  3991. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3992. # Use a double $ so make ignores it.
  3993. test "$program_suffix" != NONE &&
  3994. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3995. # Double any \ or $.
  3996. # By default was `s,x,x', remove it if useless.
  3997. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3998. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3999. if test x"${MISSING+set}" != xset; then
  4000. case $am_aux_dir in
  4001. *\ * | *\ *)
  4002. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  4003. *)
  4004. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  4005. esac
  4006. fi
  4007. # Use eval to expand $SHELL
  4008. if eval "$MISSING --is-lightweight"; then
  4009. am_missing_run="$MISSING "
  4010. else
  4011. am_missing_run=
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  4013. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  4014. fi
  4015. if test x"${install_sh+set}" != xset; then
  4016. case $am_aux_dir in
  4017. *\ * | *\ *)
  4018. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  4019. *)
  4020. install_sh="\${SHELL} $am_aux_dir/install-sh"
  4021. esac
  4022. fi
  4023. # Installed binaries are usually stripped using 'strip' when the user
  4024. # run "make install-strip". However 'strip' might not be the right
  4025. # tool to use in cross-compilation environments, therefore Automake
  4026. # will honor the 'STRIP' environment variable to overrule this program.
  4027. if test "$cross_compiling" != no; then
  4028. if test -n "$ac_tool_prefix"; then
  4029. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4030. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4032. $as_echo_n "checking for $ac_word... " >&6; }
  4033. if ${ac_cv_prog_STRIP+:} false; then :
  4034. $as_echo_n "(cached) " >&6
  4035. else
  4036. if test -n "$STRIP"; then
  4037. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4038. else
  4039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4040. for as_dir in $PATH
  4041. do
  4042. IFS=$as_save_IFS
  4043. test -z "$as_dir" && as_dir=.
  4044. for ac_exec_ext in '' $ac_executable_extensions; do
  4045. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4046. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4048. break 2
  4049. fi
  4050. done
  4051. done
  4052. IFS=$as_save_IFS
  4053. fi
  4054. fi
  4055. STRIP=$ac_cv_prog_STRIP
  4056. if test -n "$STRIP"; then
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4058. $as_echo "$STRIP" >&6; }
  4059. else
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4061. $as_echo "no" >&6; }
  4062. fi
  4063. fi
  4064. if test -z "$ac_cv_prog_STRIP"; then
  4065. ac_ct_STRIP=$STRIP
  4066. # Extract the first word of "strip", so it can be a program name with args.
  4067. set dummy strip; ac_word=$2
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4069. $as_echo_n "checking for $ac_word... " >&6; }
  4070. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4071. $as_echo_n "(cached) " >&6
  4072. else
  4073. if test -n "$ac_ct_STRIP"; then
  4074. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4075. else
  4076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4077. for as_dir in $PATH
  4078. do
  4079. IFS=$as_save_IFS
  4080. test -z "$as_dir" && as_dir=.
  4081. for ac_exec_ext in '' $ac_executable_extensions; do
  4082. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4083. ac_cv_prog_ac_ct_STRIP="strip"
  4084. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4085. break 2
  4086. fi
  4087. done
  4088. done
  4089. IFS=$as_save_IFS
  4090. fi
  4091. fi
  4092. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4093. if test -n "$ac_ct_STRIP"; then
  4094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4095. $as_echo "$ac_ct_STRIP" >&6; }
  4096. else
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4098. $as_echo "no" >&6; }
  4099. fi
  4100. if test "x$ac_ct_STRIP" = x; then
  4101. STRIP=":"
  4102. else
  4103. case $cross_compiling:$ac_tool_warned in
  4104. yes:)
  4105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4106. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4107. ac_tool_warned=yes ;;
  4108. esac
  4109. STRIP=$ac_ct_STRIP
  4110. fi
  4111. else
  4112. STRIP="$ac_cv_prog_STRIP"
  4113. fi
  4114. fi
  4115. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  4117. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  4118. if test -z "$MKDIR_P"; then
  4119. if ${ac_cv_path_mkdir+:} false; then :
  4120. $as_echo_n "(cached) " >&6
  4121. else
  4122. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4123. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  4124. do
  4125. IFS=$as_save_IFS
  4126. test -z "$as_dir" && as_dir=.
  4127. for ac_prog in mkdir gmkdir; do
  4128. for ac_exec_ext in '' $ac_executable_extensions; do
  4129. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  4130. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  4131. 'mkdir (GNU coreutils) '* | \
  4132. 'mkdir (coreutils) '* | \
  4133. 'mkdir (fileutils) '4.1*)
  4134. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  4135. break 3;;
  4136. esac
  4137. done
  4138. done
  4139. done
  4140. IFS=$as_save_IFS
  4141. fi
  4142. test -d ./--version && rmdir ./--version
  4143. if test "${ac_cv_path_mkdir+set}" = set; then
  4144. MKDIR_P="$ac_cv_path_mkdir -p"
  4145. else
  4146. # As a last resort, use the slow shell script. Don't cache a
  4147. # value for MKDIR_P within a source directory, because that will
  4148. # break other packages using the cache if that directory is
  4149. # removed, or if the value is a relative name.
  4150. MKDIR_P="$ac_install_sh -d"
  4151. fi
  4152. fi
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  4154. $as_echo "$MKDIR_P" >&6; }
  4155. for ac_prog in gawk mawk nawk awk
  4156. do
  4157. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4158. set dummy $ac_prog; ac_word=$2
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4160. $as_echo_n "checking for $ac_word... " >&6; }
  4161. if ${ac_cv_prog_AWK+:} false; then :
  4162. $as_echo_n "(cached) " >&6
  4163. else
  4164. if test -n "$AWK"; then
  4165. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4166. else
  4167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4168. for as_dir in $PATH
  4169. do
  4170. IFS=$as_save_IFS
  4171. test -z "$as_dir" && as_dir=.
  4172. for ac_exec_ext in '' $ac_executable_extensions; do
  4173. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4174. ac_cv_prog_AWK="$ac_prog"
  4175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4176. break 2
  4177. fi
  4178. done
  4179. done
  4180. IFS=$as_save_IFS
  4181. fi
  4182. fi
  4183. AWK=$ac_cv_prog_AWK
  4184. if test -n "$AWK"; then
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4186. $as_echo "$AWK" >&6; }
  4187. else
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4189. $as_echo "no" >&6; }
  4190. fi
  4191. test -n "$AWK" && break
  4192. done
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4194. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4195. set x ${MAKE-make}
  4196. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4197. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4198. $as_echo_n "(cached) " >&6
  4199. else
  4200. cat >conftest.make <<\_ACEOF
  4201. SHELL = /bin/sh
  4202. all:
  4203. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4204. _ACEOF
  4205. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4206. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4207. *@@@%%%=?*=@@@%%%*)
  4208. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4209. *)
  4210. eval ac_cv_prog_make_${ac_make}_set=no;;
  4211. esac
  4212. rm -f conftest.make
  4213. fi
  4214. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4216. $as_echo "yes" >&6; }
  4217. SET_MAKE=
  4218. else
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4220. $as_echo "no" >&6; }
  4221. SET_MAKE="MAKE=${MAKE-make}"
  4222. fi
  4223. rm -rf .tst 2>/dev/null
  4224. mkdir .tst 2>/dev/null
  4225. if test -d .tst; then
  4226. am__leading_dot=.
  4227. else
  4228. am__leading_dot=_
  4229. fi
  4230. rmdir .tst 2>/dev/null
  4231. DEPDIR="${am__leading_dot}deps"
  4232. ac_config_commands="$ac_config_commands depfiles"
  4233. am_make=${MAKE-make}
  4234. cat > confinc << 'END'
  4235. am__doit:
  4236. @echo this is the am__doit target
  4237. .PHONY: am__doit
  4238. END
  4239. # If we don't find an include directive, just comment out the code.
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4241. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4242. am__include="#"
  4243. am__quote=
  4244. _am_result=none
  4245. # First try GNU make style include.
  4246. echo "include confinc" > confmf
  4247. # Ignore all kinds of additional output from 'make'.
  4248. case `$am_make -s -f confmf 2> /dev/null` in #(
  4249. *the\ am__doit\ target*)
  4250. am__include=include
  4251. am__quote=
  4252. _am_result=GNU
  4253. ;;
  4254. esac
  4255. # Now try BSD make style include.
  4256. if test "$am__include" = "#"; then
  4257. echo '.include "confinc"' > confmf
  4258. case `$am_make -s -f confmf 2> /dev/null` in #(
  4259. *the\ am__doit\ target*)
  4260. am__include=.include
  4261. am__quote="\""
  4262. _am_result=BSD
  4263. ;;
  4264. esac
  4265. fi
  4266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4267. $as_echo "$_am_result" >&6; }
  4268. rm -f confinc confmf
  4269. # Check whether --enable-dependency-tracking was given.
  4270. if test "${enable_dependency_tracking+set}" = set; then :
  4271. enableval=$enable_dependency_tracking;
  4272. fi
  4273. if test "x$enable_dependency_tracking" != xno; then
  4274. am_depcomp="$ac_aux_dir/depcomp"
  4275. AMDEPBACKSLASH='\'
  4276. am__nodep='_no'
  4277. fi
  4278. if test "x$enable_dependency_tracking" != xno; then
  4279. AMDEP_TRUE=
  4280. AMDEP_FALSE='#'
  4281. else
  4282. AMDEP_TRUE='#'
  4283. AMDEP_FALSE=
  4284. fi
  4285. # Check whether --enable-silent-rules was given.
  4286. if test "${enable_silent_rules+set}" = set; then :
  4287. enableval=$enable_silent_rules;
  4288. fi
  4289. case $enable_silent_rules in # (((
  4290. yes) AM_DEFAULT_VERBOSITY=0;;
  4291. no) AM_DEFAULT_VERBOSITY=1;;
  4292. *) AM_DEFAULT_VERBOSITY=1;;
  4293. esac
  4294. am_make=${MAKE-make}
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4296. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  4297. if ${am_cv_make_support_nested_variables+:} false; then :
  4298. $as_echo_n "(cached) " >&6
  4299. else
  4300. if $as_echo 'TRUE=$(BAR$(V))
  4301. BAR0=false
  4302. BAR1=true
  4303. V=1
  4304. am__doit:
  4305. @$(TRUE)
  4306. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4307. am_cv_make_support_nested_variables=yes
  4308. else
  4309. am_cv_make_support_nested_variables=no
  4310. fi
  4311. fi
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4313. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  4314. if test $am_cv_make_support_nested_variables = yes; then
  4315. AM_V='$(V)'
  4316. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  4317. else
  4318. AM_V=$AM_DEFAULT_VERBOSITY
  4319. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  4320. fi
  4321. AM_BACKSLASH='\'
  4322. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  4323. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  4324. # is not polluted with repeated "-I."
  4325. am__isrc=' -I$(srcdir)'
  4326. # test to see if srcdir already configured
  4327. if test -f $srcdir/config.status; then
  4328. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  4329. fi
  4330. fi
  4331. # test whether we have cygpath
  4332. if test -z "$CYGPATH_W"; then
  4333. if (cygpath --version) >/dev/null 2>/dev/null; then
  4334. CYGPATH_W='cygpath -w'
  4335. else
  4336. CYGPATH_W=echo
  4337. fi
  4338. fi
  4339. # Define the identity of the package.
  4340. PACKAGE='package-unused'
  4341. VERSION='version-unused'
  4342. cat >>confdefs.h <<_ACEOF
  4343. #define PACKAGE "$PACKAGE"
  4344. _ACEOF
  4345. cat >>confdefs.h <<_ACEOF
  4346. #define VERSION "$VERSION"
  4347. _ACEOF
  4348. # Some tools Automake needs.
  4349. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  4350. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  4351. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  4352. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  4353. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  4354. # For better backward compatibility. To be removed once Automake 1.9.x
  4355. # dies out for good. For more background, see:
  4356. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  4357. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  4358. mkdir_p='$(MKDIR_P)'
  4359. # We need awk for the "check" target (and possibly the TAP driver). The
  4360. # system "awk" is bad on some platforms.
  4361. # Always define AMTAR for backward compatibility. Yes, it's still used
  4362. # in the wild :-( We should find a proper way to deprecate it ...
  4363. AMTAR='$${TAR-tar}'
  4364. # We'll loop over all known methods to create a tar archive until one works.
  4365. _am_tools='gnutar pax cpio none'
  4366. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  4367. depcc="$CC" am_compiler_list=
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4369. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4370. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4371. $as_echo_n "(cached) " >&6
  4372. else
  4373. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4374. # We make a subdir and do the tests there. Otherwise we can end up
  4375. # making bogus files that we don't know about and never remove. For
  4376. # instance it was reported that on HP-UX the gcc test will end up
  4377. # making a dummy file named 'D' -- because '-MD' means "put the output
  4378. # in D".
  4379. rm -rf conftest.dir
  4380. mkdir conftest.dir
  4381. # Copy depcomp to subdir because otherwise we won't find it if we're
  4382. # using a relative directory.
  4383. cp "$am_depcomp" conftest.dir
  4384. cd conftest.dir
  4385. # We will build objects and dependencies in a subdirectory because
  4386. # it helps to detect inapplicable dependency modes. For instance
  4387. # both Tru64's cc and ICC support -MD to output dependencies as a
  4388. # side effect of compilation, but ICC will put the dependencies in
  4389. # the current directory while Tru64 will put them in the object
  4390. # directory.
  4391. mkdir sub
  4392. am_cv_CC_dependencies_compiler_type=none
  4393. if test "$am_compiler_list" = ""; then
  4394. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4395. fi
  4396. am__universal=false
  4397. case " $depcc " in #(
  4398. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4399. esac
  4400. for depmode in $am_compiler_list; do
  4401. # Setup a source with many dependencies, because some compilers
  4402. # like to wrap large dependency lists on column 80 (with \), and
  4403. # we should not choose a depcomp mode which is confused by this.
  4404. #
  4405. # We need to recreate these files for each test, as the compiler may
  4406. # overwrite some of them when testing with obscure command lines.
  4407. # This happens at least with the AIX C compiler.
  4408. : > sub/conftest.c
  4409. for i in 1 2 3 4 5 6; do
  4410. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4411. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4412. # Solaris 10 /bin/sh.
  4413. echo '/* dummy */' > sub/conftst$i.h
  4414. done
  4415. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4416. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4417. # mode. It turns out that the SunPro C++ compiler does not properly
  4418. # handle '-M -o', and we need to detect this. Also, some Intel
  4419. # versions had trouble with output in subdirs.
  4420. am__obj=sub/conftest.${OBJEXT-o}
  4421. am__minus_obj="-o $am__obj"
  4422. case $depmode in
  4423. gcc)
  4424. # This depmode causes a compiler race in universal mode.
  4425. test "$am__universal" = false || continue
  4426. ;;
  4427. nosideeffect)
  4428. # After this tag, mechanisms are not by side-effect, so they'll
  4429. # only be used when explicitly requested.
  4430. if test "x$enable_dependency_tracking" = xyes; then
  4431. continue
  4432. else
  4433. break
  4434. fi
  4435. ;;
  4436. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4437. # This compiler won't grok '-c -o', but also, the minuso test has
  4438. # not run yet. These depmodes are late enough in the game, and
  4439. # so weak that their functioning should not be impacted.
  4440. am__obj=conftest.${OBJEXT-o}
  4441. am__minus_obj=
  4442. ;;
  4443. none) break ;;
  4444. esac
  4445. if depmode=$depmode \
  4446. source=sub/conftest.c object=$am__obj \
  4447. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4448. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4449. >/dev/null 2>conftest.err &&
  4450. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4451. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4452. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4453. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4454. # icc doesn't choke on unknown options, it will just issue warnings
  4455. # or remarks (even with -Werror). So we grep stderr for any message
  4456. # that says an option was ignored or not supported.
  4457. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4458. # icc: Command line warning: ignoring option '-M'; no argument required
  4459. # The diagnosis changed in icc 8.0:
  4460. # icc: Command line remark: option '-MP' not supported
  4461. if (grep 'ignoring option' conftest.err ||
  4462. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4463. am_cv_CC_dependencies_compiler_type=$depmode
  4464. break
  4465. fi
  4466. fi
  4467. done
  4468. cd ..
  4469. rm -rf conftest.dir
  4470. else
  4471. am_cv_CC_dependencies_compiler_type=none
  4472. fi
  4473. fi
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4475. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4476. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4477. if
  4478. test "x$enable_dependency_tracking" != xno \
  4479. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4480. am__fastdepCC_TRUE=
  4481. am__fastdepCC_FALSE='#'
  4482. else
  4483. am__fastdepCC_TRUE='#'
  4484. am__fastdepCC_FALSE=
  4485. fi
  4486. # POSIX will say in a future version that running "rm -f" with no argument
  4487. # is OK; and we want to be able to make that assumption in our Makefile
  4488. # recipes. So use an aggressive probe to check that the usage we want is
  4489. # actually supported "in the wild" to an acceptable degree.
  4490. # See automake bug#10828.
  4491. # To make any issue more visible, cause the running configure to be aborted
  4492. # by default if the 'rm' program in use doesn't match our expectations; the
  4493. # user can still override this though.
  4494. if rm -f && rm -fr && rm -rf; then : OK; else
  4495. cat >&2 <<'END'
  4496. Oops!
  4497. Your 'rm' program seems unable to run without file operands specified
  4498. on the command line, even when the '-f' option is present. This is contrary
  4499. to the behaviour of most rm programs out there, and not conforming with
  4500. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  4501. Please tell bug-automake@gnu.org about your system, including the value
  4502. of your $PATH and any error possibly output before this message. This
  4503. can help us improve future automake versions.
  4504. END
  4505. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  4506. echo 'Configuration will proceed anyway, since you have set the' >&2
  4507. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  4508. echo >&2
  4509. else
  4510. cat >&2 <<'END'
  4511. Aborting the configuration process, to ensure you take notice of the issue.
  4512. You can download and install GNU coreutils to get an 'rm' implementation
  4513. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  4514. If you want to complete the configuration process using your problematic
  4515. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  4516. to "yes", and re-run configure.
  4517. END
  4518. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  4519. fi
  4520. fi
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4522. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4523. # Check whether --enable-maintainer-mode was given.
  4524. if test "${enable_maintainer_mode+set}" = set; then :
  4525. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4526. else
  4527. USE_MAINTAINER_MODE=no
  4528. fi
  4529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  4530. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4531. if test $USE_MAINTAINER_MODE = yes; then
  4532. MAINTAINER_MODE_TRUE=
  4533. MAINTAINER_MODE_FALSE='#'
  4534. else
  4535. MAINTAINER_MODE_TRUE='#'
  4536. MAINTAINER_MODE_FALSE=
  4537. fi
  4538. MAINT=$MAINTAINER_MODE_TRUE
  4539. # Check whether --with-toolexeclibdir was given.
  4540. if test "${with_toolexeclibdir+set}" = set; then :
  4541. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  4542. /)
  4543. ;;
  4544. */)
  4545. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  4546. ;;
  4547. esac
  4548. else
  4549. with_toolexeclibdir=no
  4550. fi
  4551. # Calculate toolexeclibdir
  4552. # Also toolexecdir, though it's only used in toolexeclibdir
  4553. case ${version_specific_libs} in
  4554. yes)
  4555. # Need the gcc compiler version to know where to install libraries
  4556. # and header files if --enable-version-specific-runtime-libs option
  4557. # is selected.
  4558. toolexecdir='$(libdir)/gcc/$(target_alias)'
  4559. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  4560. ;;
  4561. no)
  4562. if test -n "$with_cross_host" &&
  4563. test x"$with_cross_host" != x"no"; then
  4564. # Install a library built with a cross compiler in tooldir, not libdir.
  4565. toolexecdir='$(exec_prefix)/$(target_alias)'
  4566. case ${with_toolexeclibdir} in
  4567. no)
  4568. toolexeclibdir='$(toolexecdir)/lib'
  4569. ;;
  4570. *)
  4571. toolexeclibdir=${with_toolexeclibdir}
  4572. ;;
  4573. esac
  4574. else
  4575. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  4576. toolexeclibdir='$(libdir)'
  4577. fi
  4578. multi_os_directory=`$CC -print-multi-os-directory`
  4579. case $multi_os_directory in
  4580. .) ;; # Avoid trailing /.
  4581. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  4582. esac
  4583. ;;
  4584. esac
  4585. # Checks for programs.
  4586. ac_ext=c
  4587. ac_cpp='$CPP $CPPFLAGS'
  4588. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4589. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4590. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4591. if test -n "$ac_tool_prefix"; then
  4592. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4593. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4595. $as_echo_n "checking for $ac_word... " >&6; }
  4596. if ${ac_cv_prog_CC+:} false; then :
  4597. $as_echo_n "(cached) " >&6
  4598. else
  4599. if test -n "$CC"; then
  4600. ac_cv_prog_CC="$CC" # Let the user override the test.
  4601. else
  4602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4603. for as_dir in $PATH
  4604. do
  4605. IFS=$as_save_IFS
  4606. test -z "$as_dir" && as_dir=.
  4607. for ac_exec_ext in '' $ac_executable_extensions; do
  4608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4609. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4611. break 2
  4612. fi
  4613. done
  4614. done
  4615. IFS=$as_save_IFS
  4616. fi
  4617. fi
  4618. CC=$ac_cv_prog_CC
  4619. if test -n "$CC"; then
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4621. $as_echo "$CC" >&6; }
  4622. else
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4624. $as_echo "no" >&6; }
  4625. fi
  4626. fi
  4627. if test -z "$ac_cv_prog_CC"; then
  4628. ac_ct_CC=$CC
  4629. # Extract the first word of "gcc", so it can be a program name with args.
  4630. set dummy gcc; ac_word=$2
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4632. $as_echo_n "checking for $ac_word... " >&6; }
  4633. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4634. $as_echo_n "(cached) " >&6
  4635. else
  4636. if test -n "$ac_ct_CC"; then
  4637. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4638. else
  4639. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4640. for as_dir in $PATH
  4641. do
  4642. IFS=$as_save_IFS
  4643. test -z "$as_dir" && as_dir=.
  4644. for ac_exec_ext in '' $ac_executable_extensions; do
  4645. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4646. ac_cv_prog_ac_ct_CC="gcc"
  4647. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4648. break 2
  4649. fi
  4650. done
  4651. done
  4652. IFS=$as_save_IFS
  4653. fi
  4654. fi
  4655. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4656. if test -n "$ac_ct_CC"; then
  4657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4658. $as_echo "$ac_ct_CC" >&6; }
  4659. else
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4661. $as_echo "no" >&6; }
  4662. fi
  4663. if test "x$ac_ct_CC" = x; then
  4664. CC=""
  4665. else
  4666. case $cross_compiling:$ac_tool_warned in
  4667. yes:)
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4669. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4670. ac_tool_warned=yes ;;
  4671. esac
  4672. CC=$ac_ct_CC
  4673. fi
  4674. else
  4675. CC="$ac_cv_prog_CC"
  4676. fi
  4677. if test -z "$CC"; then
  4678. if test -n "$ac_tool_prefix"; then
  4679. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4680. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4682. $as_echo_n "checking for $ac_word... " >&6; }
  4683. if ${ac_cv_prog_CC+:} false; then :
  4684. $as_echo_n "(cached) " >&6
  4685. else
  4686. if test -n "$CC"; then
  4687. ac_cv_prog_CC="$CC" # Let the user override the test.
  4688. else
  4689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4690. for as_dir in $PATH
  4691. do
  4692. IFS=$as_save_IFS
  4693. test -z "$as_dir" && as_dir=.
  4694. for ac_exec_ext in '' $ac_executable_extensions; do
  4695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4696. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4698. break 2
  4699. fi
  4700. done
  4701. done
  4702. IFS=$as_save_IFS
  4703. fi
  4704. fi
  4705. CC=$ac_cv_prog_CC
  4706. if test -n "$CC"; then
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4708. $as_echo "$CC" >&6; }
  4709. else
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4711. $as_echo "no" >&6; }
  4712. fi
  4713. fi
  4714. fi
  4715. if test -z "$CC"; then
  4716. # Extract the first word of "cc", so it can be a program name with args.
  4717. set dummy cc; ac_word=$2
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4719. $as_echo_n "checking for $ac_word... " >&6; }
  4720. if ${ac_cv_prog_CC+:} false; then :
  4721. $as_echo_n "(cached) " >&6
  4722. else
  4723. if test -n "$CC"; then
  4724. ac_cv_prog_CC="$CC" # Let the user override the test.
  4725. else
  4726. ac_prog_rejected=no
  4727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4728. for as_dir in $PATH
  4729. do
  4730. IFS=$as_save_IFS
  4731. test -z "$as_dir" && as_dir=.
  4732. for ac_exec_ext in '' $ac_executable_extensions; do
  4733. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4734. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4735. ac_prog_rejected=yes
  4736. continue
  4737. fi
  4738. ac_cv_prog_CC="cc"
  4739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4740. break 2
  4741. fi
  4742. done
  4743. done
  4744. IFS=$as_save_IFS
  4745. if test $ac_prog_rejected = yes; then
  4746. # We found a bogon in the path, so make sure we never use it.
  4747. set dummy $ac_cv_prog_CC
  4748. shift
  4749. if test $# != 0; then
  4750. # We chose a different compiler from the bogus one.
  4751. # However, it has the same basename, so the bogon will be chosen
  4752. # first if we set CC to just the basename; use the full file name.
  4753. shift
  4754. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4755. fi
  4756. fi
  4757. fi
  4758. fi
  4759. CC=$ac_cv_prog_CC
  4760. if test -n "$CC"; then
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4762. $as_echo "$CC" >&6; }
  4763. else
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4765. $as_echo "no" >&6; }
  4766. fi
  4767. fi
  4768. if test -z "$CC"; then
  4769. if test -n "$ac_tool_prefix"; then
  4770. for ac_prog in cl.exe
  4771. do
  4772. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4773. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4775. $as_echo_n "checking for $ac_word... " >&6; }
  4776. if ${ac_cv_prog_CC+:} false; then :
  4777. $as_echo_n "(cached) " >&6
  4778. else
  4779. if test -n "$CC"; then
  4780. ac_cv_prog_CC="$CC" # Let the user override the test.
  4781. else
  4782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4783. for as_dir in $PATH
  4784. do
  4785. IFS=$as_save_IFS
  4786. test -z "$as_dir" && as_dir=.
  4787. for ac_exec_ext in '' $ac_executable_extensions; do
  4788. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4789. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4791. break 2
  4792. fi
  4793. done
  4794. done
  4795. IFS=$as_save_IFS
  4796. fi
  4797. fi
  4798. CC=$ac_cv_prog_CC
  4799. if test -n "$CC"; then
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4801. $as_echo "$CC" >&6; }
  4802. else
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4804. $as_echo "no" >&6; }
  4805. fi
  4806. test -n "$CC" && break
  4807. done
  4808. fi
  4809. if test -z "$CC"; then
  4810. ac_ct_CC=$CC
  4811. for ac_prog in cl.exe
  4812. do
  4813. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4814. set dummy $ac_prog; ac_word=$2
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4816. $as_echo_n "checking for $ac_word... " >&6; }
  4817. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4818. $as_echo_n "(cached) " >&6
  4819. else
  4820. if test -n "$ac_ct_CC"; then
  4821. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4822. else
  4823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4824. for as_dir in $PATH
  4825. do
  4826. IFS=$as_save_IFS
  4827. test -z "$as_dir" && as_dir=.
  4828. for ac_exec_ext in '' $ac_executable_extensions; do
  4829. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4830. ac_cv_prog_ac_ct_CC="$ac_prog"
  4831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4832. break 2
  4833. fi
  4834. done
  4835. done
  4836. IFS=$as_save_IFS
  4837. fi
  4838. fi
  4839. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4840. if test -n "$ac_ct_CC"; then
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4842. $as_echo "$ac_ct_CC" >&6; }
  4843. else
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4845. $as_echo "no" >&6; }
  4846. fi
  4847. test -n "$ac_ct_CC" && break
  4848. done
  4849. if test "x$ac_ct_CC" = x; then
  4850. CC=""
  4851. else
  4852. case $cross_compiling:$ac_tool_warned in
  4853. yes:)
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4855. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4856. ac_tool_warned=yes ;;
  4857. esac
  4858. CC=$ac_ct_CC
  4859. fi
  4860. fi
  4861. fi
  4862. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4863. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4864. as_fn_error $? "no acceptable C compiler found in \$PATH
  4865. See \`config.log' for more details" "$LINENO" 5; }
  4866. # Provide some information about the compiler.
  4867. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4868. set X $ac_compile
  4869. ac_compiler=$2
  4870. for ac_option in --version -v -V -qversion; do
  4871. { { ac_try="$ac_compiler $ac_option >&5"
  4872. case "(($ac_try" in
  4873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4874. *) ac_try_echo=$ac_try;;
  4875. esac
  4876. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4877. $as_echo "$ac_try_echo"; } >&5
  4878. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4879. ac_status=$?
  4880. if test -s conftest.err; then
  4881. sed '10a\
  4882. ... rest of stderr output deleted ...
  4883. 10q' conftest.err >conftest.er1
  4884. cat conftest.er1 >&5
  4885. fi
  4886. rm -f conftest.er1 conftest.err
  4887. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4888. test $ac_status = 0; }
  4889. done
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4891. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4892. if ${ac_cv_c_compiler_gnu+:} false; then :
  4893. $as_echo_n "(cached) " >&6
  4894. else
  4895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4896. /* end confdefs.h. */
  4897. int
  4898. main ()
  4899. {
  4900. #ifndef __GNUC__
  4901. choke me
  4902. #endif
  4903. ;
  4904. return 0;
  4905. }
  4906. _ACEOF
  4907. if ac_fn_c_try_compile "$LINENO"; then :
  4908. ac_compiler_gnu=yes
  4909. else
  4910. ac_compiler_gnu=no
  4911. fi
  4912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4913. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4914. fi
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4916. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4917. if test $ac_compiler_gnu = yes; then
  4918. GCC=yes
  4919. else
  4920. GCC=
  4921. fi
  4922. ac_test_CFLAGS=${CFLAGS+set}
  4923. ac_save_CFLAGS=$CFLAGS
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4925. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4926. if ${ac_cv_prog_cc_g+:} false; then :
  4927. $as_echo_n "(cached) " >&6
  4928. else
  4929. ac_save_c_werror_flag=$ac_c_werror_flag
  4930. ac_c_werror_flag=yes
  4931. ac_cv_prog_cc_g=no
  4932. CFLAGS="-g"
  4933. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4934. /* end confdefs.h. */
  4935. int
  4936. main ()
  4937. {
  4938. ;
  4939. return 0;
  4940. }
  4941. _ACEOF
  4942. if ac_fn_c_try_compile "$LINENO"; then :
  4943. ac_cv_prog_cc_g=yes
  4944. else
  4945. CFLAGS=""
  4946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4947. /* end confdefs.h. */
  4948. int
  4949. main ()
  4950. {
  4951. ;
  4952. return 0;
  4953. }
  4954. _ACEOF
  4955. if ac_fn_c_try_compile "$LINENO"; then :
  4956. else
  4957. ac_c_werror_flag=$ac_save_c_werror_flag
  4958. CFLAGS="-g"
  4959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4960. /* end confdefs.h. */
  4961. int
  4962. main ()
  4963. {
  4964. ;
  4965. return 0;
  4966. }
  4967. _ACEOF
  4968. if ac_fn_c_try_compile "$LINENO"; then :
  4969. ac_cv_prog_cc_g=yes
  4970. fi
  4971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4972. fi
  4973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4974. fi
  4975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4976. ac_c_werror_flag=$ac_save_c_werror_flag
  4977. fi
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4979. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4980. if test "$ac_test_CFLAGS" = set; then
  4981. CFLAGS=$ac_save_CFLAGS
  4982. elif test $ac_cv_prog_cc_g = yes; then
  4983. if test "$GCC" = yes; then
  4984. CFLAGS="-g -O2"
  4985. else
  4986. CFLAGS="-g"
  4987. fi
  4988. else
  4989. if test "$GCC" = yes; then
  4990. CFLAGS="-O2"
  4991. else
  4992. CFLAGS=
  4993. fi
  4994. fi
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4996. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4997. if ${ac_cv_prog_cc_c89+:} false; then :
  4998. $as_echo_n "(cached) " >&6
  4999. else
  5000. ac_cv_prog_cc_c89=no
  5001. ac_save_CC=$CC
  5002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5003. /* end confdefs.h. */
  5004. #include <stdarg.h>
  5005. #include <stdio.h>
  5006. struct stat;
  5007. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5008. struct buf { int x; };
  5009. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5010. static char *e (p, i)
  5011. char **p;
  5012. int i;
  5013. {
  5014. return p[i];
  5015. }
  5016. static char *f (char * (*g) (char **, int), char **p, ...)
  5017. {
  5018. char *s;
  5019. va_list v;
  5020. va_start (v,p);
  5021. s = g (p, va_arg (v,int));
  5022. va_end (v);
  5023. return s;
  5024. }
  5025. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5026. function prototypes and stuff, but not '\xHH' hex character constants.
  5027. These don't provoke an error unfortunately, instead are silently treated
  5028. as 'x'. The following induces an error, until -std is added to get
  5029. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5030. array size at least. It's necessary to write '\x00'==0 to get something
  5031. that's true only with -std. */
  5032. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5033. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5034. inside strings and character constants. */
  5035. #define FOO(x) 'x'
  5036. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5037. int test (int i, double x);
  5038. struct s1 {int (*f) (int a);};
  5039. struct s2 {int (*f) (double a);};
  5040. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5041. int argc;
  5042. char **argv;
  5043. int
  5044. main ()
  5045. {
  5046. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5047. ;
  5048. return 0;
  5049. }
  5050. _ACEOF
  5051. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5052. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5053. do
  5054. CC="$ac_save_CC $ac_arg"
  5055. if ac_fn_c_try_compile "$LINENO"; then :
  5056. ac_cv_prog_cc_c89=$ac_arg
  5057. fi
  5058. rm -f core conftest.err conftest.$ac_objext
  5059. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5060. done
  5061. rm -f conftest.$ac_ext
  5062. CC=$ac_save_CC
  5063. fi
  5064. # AC_CACHE_VAL
  5065. case "x$ac_cv_prog_cc_c89" in
  5066. x)
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5068. $as_echo "none needed" >&6; } ;;
  5069. xno)
  5070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5071. $as_echo "unsupported" >&6; } ;;
  5072. *)
  5073. CC="$CC $ac_cv_prog_cc_c89"
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5075. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5076. esac
  5077. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5078. fi
  5079. ac_ext=c
  5080. ac_cpp='$CPP $CPPFLAGS'
  5081. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5082. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5083. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5084. ac_ext=c
  5085. ac_cpp='$CPP $CPPFLAGS'
  5086. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5087. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5088. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  5090. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  5091. if ${am_cv_prog_cc_c_o+:} false; then :
  5092. $as_echo_n "(cached) " >&6
  5093. else
  5094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5095. /* end confdefs.h. */
  5096. int
  5097. main ()
  5098. {
  5099. ;
  5100. return 0;
  5101. }
  5102. _ACEOF
  5103. # Make sure it works both with $CC and with simple cc.
  5104. # Following AC_PROG_CC_C_O, we do the test twice because some
  5105. # compilers refuse to overwrite an existing .o file with -o,
  5106. # though they will create one.
  5107. am_cv_prog_cc_c_o=yes
  5108. for am_i in 1 2; do
  5109. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  5110. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  5111. ac_status=$?
  5112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5113. (exit $ac_status); } \
  5114. && test -f conftest2.$ac_objext; then
  5115. : OK
  5116. else
  5117. am_cv_prog_cc_c_o=no
  5118. break
  5119. fi
  5120. done
  5121. rm -f core conftest*
  5122. unset am_i
  5123. fi
  5124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  5125. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  5126. if test "$am_cv_prog_cc_c_o" != yes; then
  5127. # Losing compiler, so override with the script.
  5128. # FIXME: It is wrong to rewrite CC.
  5129. # But if we don't then we get into trouble of one sort or another.
  5130. # A longer-term fix would be to have automake use am__CC in this case,
  5131. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5132. CC="$am_aux_dir/compile $CC"
  5133. fi
  5134. ac_ext=c
  5135. ac_cpp='$CPP $CPPFLAGS'
  5136. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5137. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5138. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5139. ac_ext=cpp
  5140. ac_cpp='$CXXCPP $CPPFLAGS'
  5141. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5142. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5143. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5144. if test -z "$CXX"; then
  5145. if test -n "$CCC"; then
  5146. CXX=$CCC
  5147. else
  5148. if test -n "$ac_tool_prefix"; then
  5149. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5150. do
  5151. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5152. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5154. $as_echo_n "checking for $ac_word... " >&6; }
  5155. if ${ac_cv_prog_CXX+:} false; then :
  5156. $as_echo_n "(cached) " >&6
  5157. else
  5158. if test -n "$CXX"; then
  5159. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5160. else
  5161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5162. for as_dir in $PATH
  5163. do
  5164. IFS=$as_save_IFS
  5165. test -z "$as_dir" && as_dir=.
  5166. for ac_exec_ext in '' $ac_executable_extensions; do
  5167. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5168. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5169. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5170. break 2
  5171. fi
  5172. done
  5173. done
  5174. IFS=$as_save_IFS
  5175. fi
  5176. fi
  5177. CXX=$ac_cv_prog_CXX
  5178. if test -n "$CXX"; then
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  5180. $as_echo "$CXX" >&6; }
  5181. else
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5183. $as_echo "no" >&6; }
  5184. fi
  5185. test -n "$CXX" && break
  5186. done
  5187. fi
  5188. if test -z "$CXX"; then
  5189. ac_ct_CXX=$CXX
  5190. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  5191. do
  5192. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5193. set dummy $ac_prog; ac_word=$2
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5195. $as_echo_n "checking for $ac_word... " >&6; }
  5196. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  5197. $as_echo_n "(cached) " >&6
  5198. else
  5199. if test -n "$ac_ct_CXX"; then
  5200. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5201. else
  5202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5203. for as_dir in $PATH
  5204. do
  5205. IFS=$as_save_IFS
  5206. test -z "$as_dir" && as_dir=.
  5207. for ac_exec_ext in '' $ac_executable_extensions; do
  5208. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5209. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5211. break 2
  5212. fi
  5213. done
  5214. done
  5215. IFS=$as_save_IFS
  5216. fi
  5217. fi
  5218. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5219. if test -n "$ac_ct_CXX"; then
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  5221. $as_echo "$ac_ct_CXX" >&6; }
  5222. else
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5224. $as_echo "no" >&6; }
  5225. fi
  5226. test -n "$ac_ct_CXX" && break
  5227. done
  5228. if test "x$ac_ct_CXX" = x; then
  5229. CXX="g++"
  5230. else
  5231. case $cross_compiling:$ac_tool_warned in
  5232. yes:)
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5234. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5235. ac_tool_warned=yes ;;
  5236. esac
  5237. CXX=$ac_ct_CXX
  5238. fi
  5239. fi
  5240. fi
  5241. fi
  5242. # Provide some information about the compiler.
  5243. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  5244. set X $ac_compile
  5245. ac_compiler=$2
  5246. for ac_option in --version -v -V -qversion; do
  5247. { { ac_try="$ac_compiler $ac_option >&5"
  5248. case "(($ac_try" in
  5249. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5250. *) ac_try_echo=$ac_try;;
  5251. esac
  5252. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5253. $as_echo "$ac_try_echo"; } >&5
  5254. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5255. ac_status=$?
  5256. if test -s conftest.err; then
  5257. sed '10a\
  5258. ... rest of stderr output deleted ...
  5259. 10q' conftest.err >conftest.er1
  5260. cat conftest.er1 >&5
  5261. fi
  5262. rm -f conftest.er1 conftest.err
  5263. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5264. test $ac_status = 0; }
  5265. done
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  5267. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  5268. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  5269. $as_echo_n "(cached) " >&6
  5270. else
  5271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5272. /* end confdefs.h. */
  5273. int
  5274. main ()
  5275. {
  5276. #ifndef __GNUC__
  5277. choke me
  5278. #endif
  5279. ;
  5280. return 0;
  5281. }
  5282. _ACEOF
  5283. if ac_fn_cxx_try_compile "$LINENO"; then :
  5284. ac_compiler_gnu=yes
  5285. else
  5286. ac_compiler_gnu=no
  5287. fi
  5288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5289. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5290. fi
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5292. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  5293. if test $ac_compiler_gnu = yes; then
  5294. GXX=yes
  5295. else
  5296. GXX=
  5297. fi
  5298. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5299. ac_save_CXXFLAGS=$CXXFLAGS
  5300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5301. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  5302. if ${ac_cv_prog_cxx_g+:} false; then :
  5303. $as_echo_n "(cached) " >&6
  5304. else
  5305. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5306. ac_cxx_werror_flag=yes
  5307. ac_cv_prog_cxx_g=no
  5308. CXXFLAGS="-g"
  5309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5310. /* end confdefs.h. */
  5311. int
  5312. main ()
  5313. {
  5314. ;
  5315. return 0;
  5316. }
  5317. _ACEOF
  5318. if ac_fn_cxx_try_compile "$LINENO"; then :
  5319. ac_cv_prog_cxx_g=yes
  5320. else
  5321. CXXFLAGS=""
  5322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5323. /* end confdefs.h. */
  5324. int
  5325. main ()
  5326. {
  5327. ;
  5328. return 0;
  5329. }
  5330. _ACEOF
  5331. if ac_fn_cxx_try_compile "$LINENO"; then :
  5332. else
  5333. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5334. CXXFLAGS="-g"
  5335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5336. /* end confdefs.h. */
  5337. int
  5338. main ()
  5339. {
  5340. ;
  5341. return 0;
  5342. }
  5343. _ACEOF
  5344. if ac_fn_cxx_try_compile "$LINENO"; then :
  5345. ac_cv_prog_cxx_g=yes
  5346. fi
  5347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5348. fi
  5349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5350. fi
  5351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5352. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5353. fi
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5355. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5356. if test "$ac_test_CXXFLAGS" = set; then
  5357. CXXFLAGS=$ac_save_CXXFLAGS
  5358. elif test $ac_cv_prog_cxx_g = yes; then
  5359. if test "$GXX" = yes; then
  5360. CXXFLAGS="-g -O2"
  5361. else
  5362. CXXFLAGS="-g"
  5363. fi
  5364. else
  5365. if test "$GXX" = yes; then
  5366. CXXFLAGS="-O2"
  5367. else
  5368. CXXFLAGS=
  5369. fi
  5370. fi
  5371. ac_ext=c
  5372. ac_cpp='$CPP $CPPFLAGS'
  5373. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5374. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5375. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5376. depcc="$CXX" am_compiler_list=
  5377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5378. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5379. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  5380. $as_echo_n "(cached) " >&6
  5381. else
  5382. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5383. # We make a subdir and do the tests there. Otherwise we can end up
  5384. # making bogus files that we don't know about and never remove. For
  5385. # instance it was reported that on HP-UX the gcc test will end up
  5386. # making a dummy file named 'D' -- because '-MD' means "put the output
  5387. # in D".
  5388. rm -rf conftest.dir
  5389. mkdir conftest.dir
  5390. # Copy depcomp to subdir because otherwise we won't find it if we're
  5391. # using a relative directory.
  5392. cp "$am_depcomp" conftest.dir
  5393. cd conftest.dir
  5394. # We will build objects and dependencies in a subdirectory because
  5395. # it helps to detect inapplicable dependency modes. For instance
  5396. # both Tru64's cc and ICC support -MD to output dependencies as a
  5397. # side effect of compilation, but ICC will put the dependencies in
  5398. # the current directory while Tru64 will put them in the object
  5399. # directory.
  5400. mkdir sub
  5401. am_cv_CXX_dependencies_compiler_type=none
  5402. if test "$am_compiler_list" = ""; then
  5403. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5404. fi
  5405. am__universal=false
  5406. case " $depcc " in #(
  5407. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5408. esac
  5409. for depmode in $am_compiler_list; do
  5410. # Setup a source with many dependencies, because some compilers
  5411. # like to wrap large dependency lists on column 80 (with \), and
  5412. # we should not choose a depcomp mode which is confused by this.
  5413. #
  5414. # We need to recreate these files for each test, as the compiler may
  5415. # overwrite some of them when testing with obscure command lines.
  5416. # This happens at least with the AIX C compiler.
  5417. : > sub/conftest.c
  5418. for i in 1 2 3 4 5 6; do
  5419. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5420. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5421. # Solaris 10 /bin/sh.
  5422. echo '/* dummy */' > sub/conftst$i.h
  5423. done
  5424. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5425. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5426. # mode. It turns out that the SunPro C++ compiler does not properly
  5427. # handle '-M -o', and we need to detect this. Also, some Intel
  5428. # versions had trouble with output in subdirs.
  5429. am__obj=sub/conftest.${OBJEXT-o}
  5430. am__minus_obj="-o $am__obj"
  5431. case $depmode in
  5432. gcc)
  5433. # This depmode causes a compiler race in universal mode.
  5434. test "$am__universal" = false || continue
  5435. ;;
  5436. nosideeffect)
  5437. # After this tag, mechanisms are not by side-effect, so they'll
  5438. # only be used when explicitly requested.
  5439. if test "x$enable_dependency_tracking" = xyes; then
  5440. continue
  5441. else
  5442. break
  5443. fi
  5444. ;;
  5445. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5446. # This compiler won't grok '-c -o', but also, the minuso test has
  5447. # not run yet. These depmodes are late enough in the game, and
  5448. # so weak that their functioning should not be impacted.
  5449. am__obj=conftest.${OBJEXT-o}
  5450. am__minus_obj=
  5451. ;;
  5452. none) break ;;
  5453. esac
  5454. if depmode=$depmode \
  5455. source=sub/conftest.c object=$am__obj \
  5456. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5457. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5458. >/dev/null 2>conftest.err &&
  5459. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5460. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5461. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5462. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5463. # icc doesn't choke on unknown options, it will just issue warnings
  5464. # or remarks (even with -Werror). So we grep stderr for any message
  5465. # that says an option was ignored or not supported.
  5466. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5467. # icc: Command line warning: ignoring option '-M'; no argument required
  5468. # The diagnosis changed in icc 8.0:
  5469. # icc: Command line remark: option '-MP' not supported
  5470. if (grep 'ignoring option' conftest.err ||
  5471. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5472. am_cv_CXX_dependencies_compiler_type=$depmode
  5473. break
  5474. fi
  5475. fi
  5476. done
  5477. cd ..
  5478. rm -rf conftest.dir
  5479. else
  5480. am_cv_CXX_dependencies_compiler_type=none
  5481. fi
  5482. fi
  5483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5484. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  5485. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5486. if
  5487. test "x$enable_dependency_tracking" != xno \
  5488. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5489. am__fastdepCXX_TRUE=
  5490. am__fastdepCXX_FALSE='#'
  5491. else
  5492. am__fastdepCXX_TRUE='#'
  5493. am__fastdepCXX_FALSE=
  5494. fi
  5495. # By default we simply use the C compiler to build assembly code.
  5496. test "${CCAS+set}" = set || CCAS=$CC
  5497. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  5498. depcc="$CCAS" am_compiler_list=
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5500. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5501. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5505. # We make a subdir and do the tests there. Otherwise we can end up
  5506. # making bogus files that we don't know about and never remove. For
  5507. # instance it was reported that on HP-UX the gcc test will end up
  5508. # making a dummy file named 'D' -- because '-MD' means "put the output
  5509. # in D".
  5510. rm -rf conftest.dir
  5511. mkdir conftest.dir
  5512. # Copy depcomp to subdir because otherwise we won't find it if we're
  5513. # using a relative directory.
  5514. cp "$am_depcomp" conftest.dir
  5515. cd conftest.dir
  5516. # We will build objects and dependencies in a subdirectory because
  5517. # it helps to detect inapplicable dependency modes. For instance
  5518. # both Tru64's cc and ICC support -MD to output dependencies as a
  5519. # side effect of compilation, but ICC will put the dependencies in
  5520. # the current directory while Tru64 will put them in the object
  5521. # directory.
  5522. mkdir sub
  5523. am_cv_CCAS_dependencies_compiler_type=none
  5524. if test "$am_compiler_list" = ""; then
  5525. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5526. fi
  5527. am__universal=false
  5528. for depmode in $am_compiler_list; do
  5529. # Setup a source with many dependencies, because some compilers
  5530. # like to wrap large dependency lists on column 80 (with \), and
  5531. # we should not choose a depcomp mode which is confused by this.
  5532. #
  5533. # We need to recreate these files for each test, as the compiler may
  5534. # overwrite some of them when testing with obscure command lines.
  5535. # This happens at least with the AIX C compiler.
  5536. : > sub/conftest.c
  5537. for i in 1 2 3 4 5 6; do
  5538. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5539. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5540. # Solaris 10 /bin/sh.
  5541. echo '/* dummy */' > sub/conftst$i.h
  5542. done
  5543. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5544. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5545. # mode. It turns out that the SunPro C++ compiler does not properly
  5546. # handle '-M -o', and we need to detect this. Also, some Intel
  5547. # versions had trouble with output in subdirs.
  5548. am__obj=sub/conftest.${OBJEXT-o}
  5549. am__minus_obj="-o $am__obj"
  5550. case $depmode in
  5551. gcc)
  5552. # This depmode causes a compiler race in universal mode.
  5553. test "$am__universal" = false || continue
  5554. ;;
  5555. nosideeffect)
  5556. # After this tag, mechanisms are not by side-effect, so they'll
  5557. # only be used when explicitly requested.
  5558. if test "x$enable_dependency_tracking" = xyes; then
  5559. continue
  5560. else
  5561. break
  5562. fi
  5563. ;;
  5564. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5565. # This compiler won't grok '-c -o', but also, the minuso test has
  5566. # not run yet. These depmodes are late enough in the game, and
  5567. # so weak that their functioning should not be impacted.
  5568. am__obj=conftest.${OBJEXT-o}
  5569. am__minus_obj=
  5570. ;;
  5571. none) break ;;
  5572. esac
  5573. if depmode=$depmode \
  5574. source=sub/conftest.c object=$am__obj \
  5575. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5576. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5577. >/dev/null 2>conftest.err &&
  5578. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5579. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5580. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5581. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5582. # icc doesn't choke on unknown options, it will just issue warnings
  5583. # or remarks (even with -Werror). So we grep stderr for any message
  5584. # that says an option was ignored or not supported.
  5585. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5586. # icc: Command line warning: ignoring option '-M'; no argument required
  5587. # The diagnosis changed in icc 8.0:
  5588. # icc: Command line remark: option '-MP' not supported
  5589. if (grep 'ignoring option' conftest.err ||
  5590. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5591. am_cv_CCAS_dependencies_compiler_type=$depmode
  5592. break
  5593. fi
  5594. fi
  5595. done
  5596. cd ..
  5597. rm -rf conftest.dir
  5598. else
  5599. am_cv_CCAS_dependencies_compiler_type=none
  5600. fi
  5601. fi
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  5603. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  5604. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  5605. if
  5606. test "x$enable_dependency_tracking" != xno \
  5607. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  5608. am__fastdepCCAS_TRUE=
  5609. am__fastdepCCAS_FALSE='#'
  5610. else
  5611. am__fastdepCCAS_TRUE='#'
  5612. am__fastdepCCAS_FALSE=
  5613. fi
  5614. if test -n "$ac_tool_prefix"; then
  5615. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5616. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5618. $as_echo_n "checking for $ac_word... " >&6; }
  5619. if ${ac_cv_prog_RANLIB+:} false; then :
  5620. $as_echo_n "(cached) " >&6
  5621. else
  5622. if test -n "$RANLIB"; then
  5623. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5624. else
  5625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5626. for as_dir in $PATH
  5627. do
  5628. IFS=$as_save_IFS
  5629. test -z "$as_dir" && as_dir=.
  5630. for ac_exec_ext in '' $ac_executable_extensions; do
  5631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5632. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5634. break 2
  5635. fi
  5636. done
  5637. done
  5638. IFS=$as_save_IFS
  5639. fi
  5640. fi
  5641. RANLIB=$ac_cv_prog_RANLIB
  5642. if test -n "$RANLIB"; then
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5644. $as_echo "$RANLIB" >&6; }
  5645. else
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5647. $as_echo "no" >&6; }
  5648. fi
  5649. fi
  5650. if test -z "$ac_cv_prog_RANLIB"; then
  5651. ac_ct_RANLIB=$RANLIB
  5652. # Extract the first word of "ranlib", so it can be a program name with args.
  5653. set dummy ranlib; ac_word=$2
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5655. $as_echo_n "checking for $ac_word... " >&6; }
  5656. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5657. $as_echo_n "(cached) " >&6
  5658. else
  5659. if test -n "$ac_ct_RANLIB"; then
  5660. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5661. else
  5662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5663. for as_dir in $PATH
  5664. do
  5665. IFS=$as_save_IFS
  5666. test -z "$as_dir" && as_dir=.
  5667. for ac_exec_ext in '' $ac_executable_extensions; do
  5668. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5669. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5670. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5671. break 2
  5672. fi
  5673. done
  5674. done
  5675. IFS=$as_save_IFS
  5676. fi
  5677. fi
  5678. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5679. if test -n "$ac_ct_RANLIB"; then
  5680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5681. $as_echo "$ac_ct_RANLIB" >&6; }
  5682. else
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5684. $as_echo "no" >&6; }
  5685. fi
  5686. if test "x$ac_ct_RANLIB" = x; then
  5687. RANLIB=":"
  5688. else
  5689. case $cross_compiling:$ac_tool_warned in
  5690. yes:)
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5692. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5693. ac_tool_warned=yes ;;
  5694. esac
  5695. RANLIB=$ac_ct_RANLIB
  5696. fi
  5697. else
  5698. RANLIB="$ac_cv_prog_RANLIB"
  5699. fi
  5700. enable_dlopen=yes
  5701. case `pwd` in
  5702. *\ * | *\ *)
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5704. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5705. esac
  5706. macro_version='2.2.7a'
  5707. macro_revision='1.3134'
  5708. ltmain="$ac_aux_dir/ltmain.sh"
  5709. # Backslashify metacharacters that are still active within
  5710. # double-quoted strings.
  5711. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5712. # Same as above, but do not quote variable references.
  5713. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5714. # Sed substitution to delay expansion of an escaped shell variable in a
  5715. # double_quote_subst'ed string.
  5716. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5717. # Sed substitution to delay expansion of an escaped single quote.
  5718. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5719. # Sed substitution to avoid accidental globbing in evaled expressions
  5720. no_glob_subst='s/\*/\\\*/g'
  5721. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5722. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5723. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5725. $as_echo_n "checking how to print strings... " >&6; }
  5726. # Test print first, because it will be a builtin if present.
  5727. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  5728. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5729. ECHO='print -r --'
  5730. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5731. ECHO='printf %s\n'
  5732. else
  5733. # Use this function as a fallback that always works.
  5734. func_fallback_echo ()
  5735. {
  5736. eval 'cat <<_LTECHO_EOF
  5737. $1
  5738. _LTECHO_EOF'
  5739. }
  5740. ECHO='func_fallback_echo'
  5741. fi
  5742. # func_echo_all arg...
  5743. # Invoke $ECHO with all args, space-separated.
  5744. func_echo_all ()
  5745. {
  5746. $ECHO ""
  5747. }
  5748. case "$ECHO" in
  5749. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5750. $as_echo "printf" >&6; } ;;
  5751. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5752. $as_echo "print -r" >&6; } ;;
  5753. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5754. $as_echo "cat" >&6; } ;;
  5755. esac
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5757. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5758. if ${ac_cv_path_SED+:} false; then :
  5759. $as_echo_n "(cached) " >&6
  5760. else
  5761. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5762. for ac_i in 1 2 3 4 5 6 7; do
  5763. ac_script="$ac_script$as_nl$ac_script"
  5764. done
  5765. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5766. { ac_script=; unset ac_script;}
  5767. if test -z "$SED"; then
  5768. ac_path_SED_found=false
  5769. # Loop through the user's path and test for each of PROGNAME-LIST
  5770. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5771. for as_dir in $PATH
  5772. do
  5773. IFS=$as_save_IFS
  5774. test -z "$as_dir" && as_dir=.
  5775. for ac_prog in sed gsed; do
  5776. for ac_exec_ext in '' $ac_executable_extensions; do
  5777. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5778. as_fn_executable_p "$ac_path_SED" || continue
  5779. # Check for GNU ac_path_SED and select it if it is found.
  5780. # Check for GNU $ac_path_SED
  5781. case `"$ac_path_SED" --version 2>&1` in
  5782. *GNU*)
  5783. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5784. *)
  5785. ac_count=0
  5786. $as_echo_n 0123456789 >"conftest.in"
  5787. while :
  5788. do
  5789. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5790. mv "conftest.tmp" "conftest.in"
  5791. cp "conftest.in" "conftest.nl"
  5792. $as_echo '' >> "conftest.nl"
  5793. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5794. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5795. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5796. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5797. # Best one so far, save it but keep looking for a better one
  5798. ac_cv_path_SED="$ac_path_SED"
  5799. ac_path_SED_max=$ac_count
  5800. fi
  5801. # 10*(2^10) chars as input seems more than enough
  5802. test $ac_count -gt 10 && break
  5803. done
  5804. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5805. esac
  5806. $ac_path_SED_found && break 3
  5807. done
  5808. done
  5809. done
  5810. IFS=$as_save_IFS
  5811. if test -z "$ac_cv_path_SED"; then
  5812. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5813. fi
  5814. else
  5815. ac_cv_path_SED=$SED
  5816. fi
  5817. fi
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5819. $as_echo "$ac_cv_path_SED" >&6; }
  5820. SED="$ac_cv_path_SED"
  5821. rm -f conftest.sed
  5822. test -z "$SED" && SED=sed
  5823. Xsed="$SED -e 1s/^X//"
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5825. $as_echo_n "checking for fgrep... " >&6; }
  5826. if ${ac_cv_path_FGREP+:} false; then :
  5827. $as_echo_n "(cached) " >&6
  5828. else
  5829. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5830. then ac_cv_path_FGREP="$GREP -F"
  5831. else
  5832. if test -z "$FGREP"; then
  5833. ac_path_FGREP_found=false
  5834. # Loop through the user's path and test for each of PROGNAME-LIST
  5835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5836. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5837. do
  5838. IFS=$as_save_IFS
  5839. test -z "$as_dir" && as_dir=.
  5840. for ac_prog in fgrep; do
  5841. for ac_exec_ext in '' $ac_executable_extensions; do
  5842. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5843. as_fn_executable_p "$ac_path_FGREP" || continue
  5844. # Check for GNU ac_path_FGREP and select it if it is found.
  5845. # Check for GNU $ac_path_FGREP
  5846. case `"$ac_path_FGREP" --version 2>&1` in
  5847. *GNU*)
  5848. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5849. *)
  5850. ac_count=0
  5851. $as_echo_n 0123456789 >"conftest.in"
  5852. while :
  5853. do
  5854. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5855. mv "conftest.tmp" "conftest.in"
  5856. cp "conftest.in" "conftest.nl"
  5857. $as_echo 'FGREP' >> "conftest.nl"
  5858. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5859. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5860. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5861. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5862. # Best one so far, save it but keep looking for a better one
  5863. ac_cv_path_FGREP="$ac_path_FGREP"
  5864. ac_path_FGREP_max=$ac_count
  5865. fi
  5866. # 10*(2^10) chars as input seems more than enough
  5867. test $ac_count -gt 10 && break
  5868. done
  5869. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5870. esac
  5871. $ac_path_FGREP_found && break 3
  5872. done
  5873. done
  5874. done
  5875. IFS=$as_save_IFS
  5876. if test -z "$ac_cv_path_FGREP"; then
  5877. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5878. fi
  5879. else
  5880. ac_cv_path_FGREP=$FGREP
  5881. fi
  5882. fi
  5883. fi
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5885. $as_echo "$ac_cv_path_FGREP" >&6; }
  5886. FGREP="$ac_cv_path_FGREP"
  5887. test -z "$GREP" && GREP=grep
  5888. # Check whether --with-gnu-ld was given.
  5889. if test "${with_gnu_ld+set}" = set; then :
  5890. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5891. else
  5892. with_gnu_ld=no
  5893. fi
  5894. ac_prog=ld
  5895. if test "$GCC" = yes; then
  5896. # Check if gcc -print-prog-name=ld gives a path.
  5897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5898. $as_echo_n "checking for ld used by $CC... " >&6; }
  5899. case $host in
  5900. *-*-mingw*)
  5901. # gcc leaves a trailing carriage return which upsets mingw
  5902. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5903. *)
  5904. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5905. esac
  5906. case $ac_prog in
  5907. # Accept absolute paths.
  5908. [\\/]* | ?:[\\/]*)
  5909. re_direlt='/[^/][^/]*/\.\./'
  5910. # Canonicalize the pathname of ld
  5911. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5912. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5913. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5914. done
  5915. test -z "$LD" && LD="$ac_prog"
  5916. ;;
  5917. "")
  5918. # If it fails, then pretend we aren't using GCC.
  5919. ac_prog=ld
  5920. ;;
  5921. *)
  5922. # If it is relative, then search for the first ld in PATH.
  5923. with_gnu_ld=unknown
  5924. ;;
  5925. esac
  5926. elif test "$with_gnu_ld" = yes; then
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5928. $as_echo_n "checking for GNU ld... " >&6; }
  5929. else
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5931. $as_echo_n "checking for non-GNU ld... " >&6; }
  5932. fi
  5933. if ${lt_cv_path_LD+:} false; then :
  5934. $as_echo_n "(cached) " >&6
  5935. else
  5936. if test -z "$LD"; then
  5937. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5938. for ac_dir in $PATH; do
  5939. IFS="$lt_save_ifs"
  5940. test -z "$ac_dir" && ac_dir=.
  5941. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5942. lt_cv_path_LD="$ac_dir/$ac_prog"
  5943. # Check to see if the program is GNU ld. I'd rather use --version,
  5944. # but apparently some variants of GNU ld only accept -v.
  5945. # Break only if it was the GNU/non-GNU ld that we prefer.
  5946. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5947. *GNU* | *'with BFD'*)
  5948. test "$with_gnu_ld" != no && break
  5949. ;;
  5950. *)
  5951. test "$with_gnu_ld" != yes && break
  5952. ;;
  5953. esac
  5954. fi
  5955. done
  5956. IFS="$lt_save_ifs"
  5957. else
  5958. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5959. fi
  5960. fi
  5961. LD="$lt_cv_path_LD"
  5962. if test -n "$LD"; then
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5964. $as_echo "$LD" >&6; }
  5965. else
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5967. $as_echo "no" >&6; }
  5968. fi
  5969. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5971. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5972. if ${lt_cv_prog_gnu_ld+:} false; then :
  5973. $as_echo_n "(cached) " >&6
  5974. else
  5975. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5976. case `$LD -v 2>&1 </dev/null` in
  5977. *GNU* | *'with BFD'*)
  5978. lt_cv_prog_gnu_ld=yes
  5979. ;;
  5980. *)
  5981. lt_cv_prog_gnu_ld=no
  5982. ;;
  5983. esac
  5984. fi
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5986. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5987. with_gnu_ld=$lt_cv_prog_gnu_ld
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5989. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5990. if ${lt_cv_path_NM+:} false; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. if test -n "$NM"; then
  5994. # Let the user override the test.
  5995. lt_cv_path_NM="$NM"
  5996. else
  5997. lt_nm_to_check="${ac_tool_prefix}nm"
  5998. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5999. lt_nm_to_check="$lt_nm_to_check nm"
  6000. fi
  6001. for lt_tmp_nm in $lt_nm_to_check; do
  6002. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6003. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6004. IFS="$lt_save_ifs"
  6005. test -z "$ac_dir" && ac_dir=.
  6006. tmp_nm="$ac_dir/$lt_tmp_nm"
  6007. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6008. # Check to see if the nm accepts a BSD-compat flag.
  6009. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6010. # nm: unknown option "B" ignored
  6011. # Tru64's nm complains that /dev/null is an invalid object file
  6012. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6013. */dev/null* | *'Invalid file or object type'*)
  6014. lt_cv_path_NM="$tmp_nm -B"
  6015. break
  6016. ;;
  6017. *)
  6018. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6019. */dev/null*)
  6020. lt_cv_path_NM="$tmp_nm -p"
  6021. break
  6022. ;;
  6023. *)
  6024. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6025. continue # so that we can try to find one that supports BSD flags
  6026. ;;
  6027. esac
  6028. ;;
  6029. esac
  6030. fi
  6031. done
  6032. IFS="$lt_save_ifs"
  6033. done
  6034. : ${lt_cv_path_NM=no}
  6035. fi
  6036. fi
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  6038. $as_echo "$lt_cv_path_NM" >&6; }
  6039. if test "$lt_cv_path_NM" != "no"; then
  6040. NM="$lt_cv_path_NM"
  6041. else
  6042. # Didn't find any BSD compatible name lister, look for dumpbin.
  6043. if test -n "$DUMPBIN"; then :
  6044. # Let the user override the test.
  6045. else
  6046. if test -n "$ac_tool_prefix"; then
  6047. for ac_prog in dumpbin "link -dump"
  6048. do
  6049. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6050. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6052. $as_echo_n "checking for $ac_word... " >&6; }
  6053. if ${ac_cv_prog_DUMPBIN+:} false; then :
  6054. $as_echo_n "(cached) " >&6
  6055. else
  6056. if test -n "$DUMPBIN"; then
  6057. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  6058. else
  6059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6060. for as_dir in $PATH
  6061. do
  6062. IFS=$as_save_IFS
  6063. test -z "$as_dir" && as_dir=.
  6064. for ac_exec_ext in '' $ac_executable_extensions; do
  6065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6066. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  6067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6068. break 2
  6069. fi
  6070. done
  6071. done
  6072. IFS=$as_save_IFS
  6073. fi
  6074. fi
  6075. DUMPBIN=$ac_cv_prog_DUMPBIN
  6076. if test -n "$DUMPBIN"; then
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  6078. $as_echo "$DUMPBIN" >&6; }
  6079. else
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6081. $as_echo "no" >&6; }
  6082. fi
  6083. test -n "$DUMPBIN" && break
  6084. done
  6085. fi
  6086. if test -z "$DUMPBIN"; then
  6087. ac_ct_DUMPBIN=$DUMPBIN
  6088. for ac_prog in dumpbin "link -dump"
  6089. do
  6090. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6091. set dummy $ac_prog; ac_word=$2
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6093. $as_echo_n "checking for $ac_word... " >&6; }
  6094. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  6095. $as_echo_n "(cached) " >&6
  6096. else
  6097. if test -n "$ac_ct_DUMPBIN"; then
  6098. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  6099. else
  6100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6101. for as_dir in $PATH
  6102. do
  6103. IFS=$as_save_IFS
  6104. test -z "$as_dir" && as_dir=.
  6105. for ac_exec_ext in '' $ac_executable_extensions; do
  6106. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6107. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  6108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6109. break 2
  6110. fi
  6111. done
  6112. done
  6113. IFS=$as_save_IFS
  6114. fi
  6115. fi
  6116. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  6117. if test -n "$ac_ct_DUMPBIN"; then
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  6119. $as_echo "$ac_ct_DUMPBIN" >&6; }
  6120. else
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6122. $as_echo "no" >&6; }
  6123. fi
  6124. test -n "$ac_ct_DUMPBIN" && break
  6125. done
  6126. if test "x$ac_ct_DUMPBIN" = x; then
  6127. DUMPBIN=":"
  6128. else
  6129. case $cross_compiling:$ac_tool_warned in
  6130. yes:)
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6132. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6133. ac_tool_warned=yes ;;
  6134. esac
  6135. DUMPBIN=$ac_ct_DUMPBIN
  6136. fi
  6137. fi
  6138. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  6139. *COFF*)
  6140. DUMPBIN="$DUMPBIN -symbols"
  6141. ;;
  6142. *)
  6143. DUMPBIN=:
  6144. ;;
  6145. esac
  6146. fi
  6147. if test "$DUMPBIN" != ":"; then
  6148. NM="$DUMPBIN"
  6149. fi
  6150. fi
  6151. test -z "$NM" && NM=nm
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  6153. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  6154. if ${lt_cv_nm_interface+:} false; then :
  6155. $as_echo_n "(cached) " >&6
  6156. else
  6157. lt_cv_nm_interface="BSD nm"
  6158. echo "int some_variable = 0;" > conftest.$ac_ext
  6159. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  6160. (eval "$ac_compile" 2>conftest.err)
  6161. cat conftest.err >&5
  6162. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  6163. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6164. cat conftest.err >&5
  6165. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  6166. cat conftest.out >&5
  6167. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6168. lt_cv_nm_interface="MS dumpbin"
  6169. fi
  6170. rm -f conftest*
  6171. fi
  6172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  6173. $as_echo "$lt_cv_nm_interface" >&6; }
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6175. $as_echo_n "checking whether ln -s works... " >&6; }
  6176. LN_S=$as_ln_s
  6177. if test "$LN_S" = "ln -s"; then
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6179. $as_echo "yes" >&6; }
  6180. else
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6182. $as_echo "no, using $LN_S" >&6; }
  6183. fi
  6184. # find the maximum length of command line arguments
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  6186. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  6187. if ${lt_cv_sys_max_cmd_len+:} false; then :
  6188. $as_echo_n "(cached) " >&6
  6189. else
  6190. i=0
  6191. teststring="ABCD"
  6192. case $build_os in
  6193. msdosdjgpp*)
  6194. # On DJGPP, this test can blow up pretty badly due to problems in libc
  6195. # (any single argument exceeding 2000 bytes causes a buffer overrun
  6196. # during glob expansion). Even if it were fixed, the result of this
  6197. # check would be larger than it should be.
  6198. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  6199. ;;
  6200. gnu*)
  6201. # Under GNU Hurd, this test is not required because there is
  6202. # no limit to the length of command line arguments.
  6203. # Libtool will interpret -1 as no limit whatsoever
  6204. lt_cv_sys_max_cmd_len=-1;
  6205. ;;
  6206. cygwin* | mingw* | cegcc*)
  6207. # On Win9x/ME, this test blows up -- it succeeds, but takes
  6208. # about 5 minutes as the teststring grows exponentially.
  6209. # Worse, since 9x/ME are not pre-emptively multitasking,
  6210. # you end up with a "frozen" computer, even though with patience
  6211. # the test eventually succeeds (with a max line length of 256k).
  6212. # Instead, let's just punt: use the minimum linelength reported by
  6213. # all of the supported platforms: 8192 (on NT/2K/XP).
  6214. lt_cv_sys_max_cmd_len=8192;
  6215. ;;
  6216. mint*)
  6217. # On MiNT this can take a long time and run out of memory.
  6218. lt_cv_sys_max_cmd_len=8192;
  6219. ;;
  6220. amigaos*)
  6221. # On AmigaOS with pdksh, this test takes hours, literally.
  6222. # So we just punt and use a minimum line length of 8192.
  6223. lt_cv_sys_max_cmd_len=8192;
  6224. ;;
  6225. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  6226. # This has been around since 386BSD, at least. Likely further.
  6227. if test -x /sbin/sysctl; then
  6228. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  6229. elif test -x /usr/sbin/sysctl; then
  6230. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  6231. else
  6232. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  6233. fi
  6234. # And add a safety zone
  6235. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6236. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6237. ;;
  6238. interix*)
  6239. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  6240. lt_cv_sys_max_cmd_len=196608
  6241. ;;
  6242. osf*)
  6243. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  6244. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  6245. # nice to cause kernel panics so lets avoid the loop below.
  6246. # First set a reasonable default.
  6247. lt_cv_sys_max_cmd_len=16384
  6248. #
  6249. if test -x /sbin/sysconfig; then
  6250. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  6251. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  6252. esac
  6253. fi
  6254. ;;
  6255. sco3.2v5*)
  6256. lt_cv_sys_max_cmd_len=102400
  6257. ;;
  6258. sysv5* | sco5v6* | sysv4.2uw2*)
  6259. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6260. if test -n "$kargmax"; then
  6261. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6262. else
  6263. lt_cv_sys_max_cmd_len=32768
  6264. fi
  6265. ;;
  6266. *)
  6267. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6268. if test -n "$lt_cv_sys_max_cmd_len"; then
  6269. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6270. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6271. else
  6272. # Make teststring a little bigger before we do anything with it.
  6273. # a 1K string should be a reasonable start.
  6274. for i in 1 2 3 4 5 6 7 8 ; do
  6275. teststring=$teststring$teststring
  6276. done
  6277. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6278. # If test is not a shell built-in, we'll probably end up computing a
  6279. # maximum length that is only half of the actual maximum length, but
  6280. # we can't tell.
  6281. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  6282. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6283. test $i != 17 # 1/2 MB should be enough
  6284. do
  6285. i=`expr $i + 1`
  6286. teststring=$teststring$teststring
  6287. done
  6288. # Only check the string length outside the loop.
  6289. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6290. teststring=
  6291. # Add a significant safety factor because C++ compilers can tack on
  6292. # massive amounts of additional arguments before passing them to the
  6293. # linker. It appears as though 1/2 is a usable value.
  6294. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6295. fi
  6296. ;;
  6297. esac
  6298. fi
  6299. if test -n $lt_cv_sys_max_cmd_len ; then
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6301. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6302. else
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6304. $as_echo "none" >&6; }
  6305. fi
  6306. max_cmd_len=$lt_cv_sys_max_cmd_len
  6307. : ${CP="cp -f"}
  6308. : ${MV="mv -f"}
  6309. : ${RM="rm -f"}
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  6311. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  6312. # Try some XSI features
  6313. xsi_shell=no
  6314. ( _lt_dummy="a/b/c"
  6315. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  6316. = c,a/b,, \
  6317. && eval 'test $(( 1 + 1 )) -eq 2 \
  6318. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6319. && xsi_shell=yes
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  6321. $as_echo "$xsi_shell" >&6; }
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  6323. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  6324. lt_shell_append=no
  6325. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  6326. >/dev/null 2>&1 \
  6327. && lt_shell_append=yes
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  6329. $as_echo "$lt_shell_append" >&6; }
  6330. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6331. lt_unset=unset
  6332. else
  6333. lt_unset=false
  6334. fi
  6335. # test EBCDIC or ASCII
  6336. case `echo X|tr X '\101'` in
  6337. A) # ASCII based system
  6338. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6339. lt_SP2NL='tr \040 \012'
  6340. lt_NL2SP='tr \015\012 \040\040'
  6341. ;;
  6342. *) # EBCDIC based system
  6343. lt_SP2NL='tr \100 \n'
  6344. lt_NL2SP='tr \r\n \100\100'
  6345. ;;
  6346. esac
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6348. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6349. if ${lt_cv_ld_reload_flag+:} false; then :
  6350. $as_echo_n "(cached) " >&6
  6351. else
  6352. lt_cv_ld_reload_flag='-r'
  6353. fi
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6355. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6356. reload_flag=$lt_cv_ld_reload_flag
  6357. case $reload_flag in
  6358. "" | " "*) ;;
  6359. *) reload_flag=" $reload_flag" ;;
  6360. esac
  6361. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6362. case $host_os in
  6363. darwin*)
  6364. if test "$GCC" = yes; then
  6365. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6366. else
  6367. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6368. fi
  6369. ;;
  6370. esac
  6371. if test -n "$ac_tool_prefix"; then
  6372. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6373. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6375. $as_echo_n "checking for $ac_word... " >&6; }
  6376. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6377. $as_echo_n "(cached) " >&6
  6378. else
  6379. if test -n "$OBJDUMP"; then
  6380. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6381. else
  6382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6383. for as_dir in $PATH
  6384. do
  6385. IFS=$as_save_IFS
  6386. test -z "$as_dir" && as_dir=.
  6387. for ac_exec_ext in '' $ac_executable_extensions; do
  6388. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6389. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6391. break 2
  6392. fi
  6393. done
  6394. done
  6395. IFS=$as_save_IFS
  6396. fi
  6397. fi
  6398. OBJDUMP=$ac_cv_prog_OBJDUMP
  6399. if test -n "$OBJDUMP"; then
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6401. $as_echo "$OBJDUMP" >&6; }
  6402. else
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6404. $as_echo "no" >&6; }
  6405. fi
  6406. fi
  6407. if test -z "$ac_cv_prog_OBJDUMP"; then
  6408. ac_ct_OBJDUMP=$OBJDUMP
  6409. # Extract the first word of "objdump", so it can be a program name with args.
  6410. set dummy objdump; ac_word=$2
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6412. $as_echo_n "checking for $ac_word... " >&6; }
  6413. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6414. $as_echo_n "(cached) " >&6
  6415. else
  6416. if test -n "$ac_ct_OBJDUMP"; then
  6417. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6418. else
  6419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6420. for as_dir in $PATH
  6421. do
  6422. IFS=$as_save_IFS
  6423. test -z "$as_dir" && as_dir=.
  6424. for ac_exec_ext in '' $ac_executable_extensions; do
  6425. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6426. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6428. break 2
  6429. fi
  6430. done
  6431. done
  6432. IFS=$as_save_IFS
  6433. fi
  6434. fi
  6435. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6436. if test -n "$ac_ct_OBJDUMP"; then
  6437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6438. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6439. else
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6441. $as_echo "no" >&6; }
  6442. fi
  6443. if test "x$ac_ct_OBJDUMP" = x; then
  6444. OBJDUMP="false"
  6445. else
  6446. case $cross_compiling:$ac_tool_warned in
  6447. yes:)
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6449. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6450. ac_tool_warned=yes ;;
  6451. esac
  6452. OBJDUMP=$ac_ct_OBJDUMP
  6453. fi
  6454. else
  6455. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6456. fi
  6457. test -z "$OBJDUMP" && OBJDUMP=objdump
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6459. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6460. if ${lt_cv_deplibs_check_method+:} false; then :
  6461. $as_echo_n "(cached) " >&6
  6462. else
  6463. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6464. lt_cv_file_magic_test_file=
  6465. lt_cv_deplibs_check_method='unknown'
  6466. # Need to set the preceding variable on all platforms that support
  6467. # interlibrary dependencies.
  6468. # 'none' -- dependencies not supported.
  6469. # `unknown' -- same as none, but documents that we really don't know.
  6470. # 'pass_all' -- all dependencies passed with no checks.
  6471. # 'test_compile' -- check by making test program.
  6472. # 'file_magic [[regex]]' -- check by looking for files in library path
  6473. # which responds to the $file_magic_cmd with a given extended regex.
  6474. # If you have `file' or equivalent on your system and you're not sure
  6475. # whether `pass_all' will *always* work, you probably want this one.
  6476. case $host_os in
  6477. aix[4-9]*)
  6478. lt_cv_deplibs_check_method=pass_all
  6479. ;;
  6480. beos*)
  6481. lt_cv_deplibs_check_method=pass_all
  6482. ;;
  6483. bsdi[45]*)
  6484. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6485. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6486. lt_cv_file_magic_test_file=/shlib/libc.so
  6487. ;;
  6488. cygwin*)
  6489. # func_win32_libid is a shell function defined in ltmain.sh
  6490. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6491. lt_cv_file_magic_cmd='func_win32_libid'
  6492. ;;
  6493. mingw* | pw32*)
  6494. # Base MSYS/MinGW do not provide the 'file' command needed by
  6495. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6496. # unless we find 'file', for example because we are cross-compiling.
  6497. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6498. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6499. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6500. lt_cv_file_magic_cmd='func_win32_libid'
  6501. else
  6502. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6503. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6504. fi
  6505. ;;
  6506. cegcc*)
  6507. # use the weaker test based on 'objdump'. See mingw*.
  6508. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6509. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6510. ;;
  6511. darwin* | rhapsody*)
  6512. lt_cv_deplibs_check_method=pass_all
  6513. ;;
  6514. freebsd* | dragonfly*)
  6515. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6516. case $host_cpu in
  6517. i*86 )
  6518. # Not sure whether the presence of OpenBSD here was a mistake.
  6519. # Let's accept both of them until this is cleared up.
  6520. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6521. lt_cv_file_magic_cmd=/usr/bin/file
  6522. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6523. ;;
  6524. esac
  6525. else
  6526. lt_cv_deplibs_check_method=pass_all
  6527. fi
  6528. ;;
  6529. gnu*)
  6530. lt_cv_deplibs_check_method=pass_all
  6531. ;;
  6532. haiku*)
  6533. lt_cv_deplibs_check_method=pass_all
  6534. ;;
  6535. hpux10.20* | hpux11*)
  6536. lt_cv_file_magic_cmd=/usr/bin/file
  6537. case $host_cpu in
  6538. ia64*)
  6539. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6540. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6541. ;;
  6542. hppa*64*)
  6543. 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]'
  6544. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6545. ;;
  6546. *)
  6547. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6548. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6549. ;;
  6550. esac
  6551. ;;
  6552. interix[3-9]*)
  6553. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6554. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6555. ;;
  6556. irix5* | irix6* | nonstopux*)
  6557. case $LD in
  6558. *-32|*"-32 ") libmagic=32-bit;;
  6559. *-n32|*"-n32 ") libmagic=N32;;
  6560. *-64|*"-64 ") libmagic=64-bit;;
  6561. *) libmagic=never-match;;
  6562. esac
  6563. lt_cv_deplibs_check_method=pass_all
  6564. ;;
  6565. # This must be Linux ELF.
  6566. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  6567. lt_cv_deplibs_check_method=pass_all
  6568. ;;
  6569. netbsd*)
  6570. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6571. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6572. else
  6573. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6574. fi
  6575. ;;
  6576. newos6*)
  6577. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6578. lt_cv_file_magic_cmd=/usr/bin/file
  6579. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6580. ;;
  6581. *nto* | *qnx*)
  6582. lt_cv_deplibs_check_method=pass_all
  6583. ;;
  6584. openbsd*)
  6585. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6586. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6587. else
  6588. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6589. fi
  6590. ;;
  6591. osf3* | osf4* | osf5*)
  6592. lt_cv_deplibs_check_method=pass_all
  6593. ;;
  6594. rdos*)
  6595. lt_cv_deplibs_check_method=pass_all
  6596. ;;
  6597. solaris*)
  6598. lt_cv_deplibs_check_method=pass_all
  6599. ;;
  6600. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6601. lt_cv_deplibs_check_method=pass_all
  6602. ;;
  6603. sysv4 | sysv4.3*)
  6604. case $host_vendor in
  6605. motorola)
  6606. 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]'
  6607. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6608. ;;
  6609. ncr)
  6610. lt_cv_deplibs_check_method=pass_all
  6611. ;;
  6612. sequent)
  6613. lt_cv_file_magic_cmd='/bin/file'
  6614. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6615. ;;
  6616. sni)
  6617. lt_cv_file_magic_cmd='/bin/file'
  6618. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6619. lt_cv_file_magic_test_file=/lib/libc.so
  6620. ;;
  6621. siemens)
  6622. lt_cv_deplibs_check_method=pass_all
  6623. ;;
  6624. pc)
  6625. lt_cv_deplibs_check_method=pass_all
  6626. ;;
  6627. esac
  6628. ;;
  6629. tpf*)
  6630. lt_cv_deplibs_check_method=pass_all
  6631. ;;
  6632. esac
  6633. fi
  6634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6635. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6636. file_magic_cmd=$lt_cv_file_magic_cmd
  6637. deplibs_check_method=$lt_cv_deplibs_check_method
  6638. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6639. if test -n "$ac_tool_prefix"; then
  6640. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6641. set dummy ${ac_tool_prefix}ar; 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_AR+:} false; then :
  6645. $as_echo_n "(cached) " >&6
  6646. else
  6647. if test -n "$AR"; then
  6648. ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
  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. AR=$ac_cv_prog_AR
  6667. if test -n "$AR"; then
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6669. $as_echo "$AR" >&6; }
  6670. else
  6671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6672. $as_echo "no" >&6; }
  6673. fi
  6674. fi
  6675. if test -z "$ac_cv_prog_AR"; then
  6676. ac_ct_AR=$AR
  6677. # Extract the first word of "ar", so it can be a program name with args.
  6678. set dummy ar; ac_word=$2
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6680. $as_echo_n "checking for $ac_word... " >&6; }
  6681. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6682. $as_echo_n "(cached) " >&6
  6683. else
  6684. if test -n "$ac_ct_AR"; then
  6685. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6686. else
  6687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6688. for as_dir in $PATH
  6689. do
  6690. IFS=$as_save_IFS
  6691. test -z "$as_dir" && as_dir=.
  6692. for ac_exec_ext in '' $ac_executable_extensions; do
  6693. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6694. ac_cv_prog_ac_ct_AR="ar"
  6695. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6696. break 2
  6697. fi
  6698. done
  6699. done
  6700. IFS=$as_save_IFS
  6701. fi
  6702. fi
  6703. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6704. if test -n "$ac_ct_AR"; then
  6705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6706. $as_echo "$ac_ct_AR" >&6; }
  6707. else
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6709. $as_echo "no" >&6; }
  6710. fi
  6711. if test "x$ac_ct_AR" = x; then
  6712. AR="false"
  6713. else
  6714. case $cross_compiling:$ac_tool_warned in
  6715. yes:)
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6717. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6718. ac_tool_warned=yes ;;
  6719. esac
  6720. AR=$ac_ct_AR
  6721. fi
  6722. else
  6723. AR="$ac_cv_prog_AR"
  6724. fi
  6725. test -z "$AR" && AR=ar
  6726. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6727. if test -n "$ac_tool_prefix"; then
  6728. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6729. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6731. $as_echo_n "checking for $ac_word... " >&6; }
  6732. if ${ac_cv_prog_STRIP+:} false; then :
  6733. $as_echo_n "(cached) " >&6
  6734. else
  6735. if test -n "$STRIP"; then
  6736. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6737. else
  6738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6739. for as_dir in $PATH
  6740. do
  6741. IFS=$as_save_IFS
  6742. test -z "$as_dir" && as_dir=.
  6743. for ac_exec_ext in '' $ac_executable_extensions; do
  6744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6745. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6747. break 2
  6748. fi
  6749. done
  6750. done
  6751. IFS=$as_save_IFS
  6752. fi
  6753. fi
  6754. STRIP=$ac_cv_prog_STRIP
  6755. if test -n "$STRIP"; then
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6757. $as_echo "$STRIP" >&6; }
  6758. else
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6760. $as_echo "no" >&6; }
  6761. fi
  6762. fi
  6763. if test -z "$ac_cv_prog_STRIP"; then
  6764. ac_ct_STRIP=$STRIP
  6765. # Extract the first word of "strip", so it can be a program name with args.
  6766. set dummy strip; ac_word=$2
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6768. $as_echo_n "checking for $ac_word... " >&6; }
  6769. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6770. $as_echo_n "(cached) " >&6
  6771. else
  6772. if test -n "$ac_ct_STRIP"; then
  6773. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6774. else
  6775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6776. for as_dir in $PATH
  6777. do
  6778. IFS=$as_save_IFS
  6779. test -z "$as_dir" && as_dir=.
  6780. for ac_exec_ext in '' $ac_executable_extensions; do
  6781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6782. ac_cv_prog_ac_ct_STRIP="strip"
  6783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6784. break 2
  6785. fi
  6786. done
  6787. done
  6788. IFS=$as_save_IFS
  6789. fi
  6790. fi
  6791. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6792. if test -n "$ac_ct_STRIP"; then
  6793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6794. $as_echo "$ac_ct_STRIP" >&6; }
  6795. else
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6797. $as_echo "no" >&6; }
  6798. fi
  6799. if test "x$ac_ct_STRIP" = x; then
  6800. STRIP=":"
  6801. else
  6802. case $cross_compiling:$ac_tool_warned in
  6803. yes:)
  6804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6805. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6806. ac_tool_warned=yes ;;
  6807. esac
  6808. STRIP=$ac_ct_STRIP
  6809. fi
  6810. else
  6811. STRIP="$ac_cv_prog_STRIP"
  6812. fi
  6813. test -z "$STRIP" && STRIP=:
  6814. if test -n "$ac_tool_prefix"; then
  6815. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6816. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6818. $as_echo_n "checking for $ac_word... " >&6; }
  6819. if ${ac_cv_prog_RANLIB+:} false; then :
  6820. $as_echo_n "(cached) " >&6
  6821. else
  6822. if test -n "$RANLIB"; then
  6823. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6824. else
  6825. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6826. for as_dir in $PATH
  6827. do
  6828. IFS=$as_save_IFS
  6829. test -z "$as_dir" && as_dir=.
  6830. for ac_exec_ext in '' $ac_executable_extensions; do
  6831. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6832. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6833. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6834. break 2
  6835. fi
  6836. done
  6837. done
  6838. IFS=$as_save_IFS
  6839. fi
  6840. fi
  6841. RANLIB=$ac_cv_prog_RANLIB
  6842. if test -n "$RANLIB"; then
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6844. $as_echo "$RANLIB" >&6; }
  6845. else
  6846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6847. $as_echo "no" >&6; }
  6848. fi
  6849. fi
  6850. if test -z "$ac_cv_prog_RANLIB"; then
  6851. ac_ct_RANLIB=$RANLIB
  6852. # Extract the first word of "ranlib", so it can be a program name with args.
  6853. set dummy ranlib; ac_word=$2
  6854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6855. $as_echo_n "checking for $ac_word... " >&6; }
  6856. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6857. $as_echo_n "(cached) " >&6
  6858. else
  6859. if test -n "$ac_ct_RANLIB"; then
  6860. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6861. else
  6862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6863. for as_dir in $PATH
  6864. do
  6865. IFS=$as_save_IFS
  6866. test -z "$as_dir" && as_dir=.
  6867. for ac_exec_ext in '' $ac_executable_extensions; do
  6868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6869. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6871. break 2
  6872. fi
  6873. done
  6874. done
  6875. IFS=$as_save_IFS
  6876. fi
  6877. fi
  6878. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6879. if test -n "$ac_ct_RANLIB"; then
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6881. $as_echo "$ac_ct_RANLIB" >&6; }
  6882. else
  6883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6884. $as_echo "no" >&6; }
  6885. fi
  6886. if test "x$ac_ct_RANLIB" = x; then
  6887. RANLIB=":"
  6888. else
  6889. case $cross_compiling:$ac_tool_warned in
  6890. yes:)
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6892. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6893. ac_tool_warned=yes ;;
  6894. esac
  6895. RANLIB=$ac_ct_RANLIB
  6896. fi
  6897. else
  6898. RANLIB="$ac_cv_prog_RANLIB"
  6899. fi
  6900. test -z "$RANLIB" && RANLIB=:
  6901. # Determine commands to create old-style static archives.
  6902. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6903. old_postinstall_cmds='chmod 644 $oldlib'
  6904. old_postuninstall_cmds=
  6905. if test -n "$RANLIB"; then
  6906. case $host_os in
  6907. openbsd*)
  6908. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6909. ;;
  6910. *)
  6911. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6912. ;;
  6913. esac
  6914. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6915. fi
  6916. case $host_os in
  6917. darwin*)
  6918. lock_old_archive_extraction=yes ;;
  6919. *)
  6920. lock_old_archive_extraction=no ;;
  6921. esac
  6922. # If no C compiler was specified, use CC.
  6923. LTCC=${LTCC-"$CC"}
  6924. # If no C compiler flags were specified, use CFLAGS.
  6925. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6926. # Allow CC to be a program name with arguments.
  6927. compiler=$CC
  6928. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6930. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6931. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6932. $as_echo_n "(cached) " >&6
  6933. else
  6934. # These are sane defaults that work on at least a few old systems.
  6935. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6936. # Character class describing NM global symbol codes.
  6937. symcode='[BCDEGRST]'
  6938. # Regexp to match symbols that can be accessed directly from C.
  6939. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6940. # Define system-specific variables.
  6941. case $host_os in
  6942. aix*)
  6943. symcode='[BCDT]'
  6944. ;;
  6945. cygwin* | mingw* | pw32* | cegcc*)
  6946. symcode='[ABCDGISTW]'
  6947. ;;
  6948. hpux*)
  6949. if test "$host_cpu" = ia64; then
  6950. symcode='[ABCDEGRST]'
  6951. fi
  6952. ;;
  6953. irix* | nonstopux*)
  6954. symcode='[BCDEGRST]'
  6955. ;;
  6956. osf*)
  6957. symcode='[BCDEGQRST]'
  6958. ;;
  6959. solaris*)
  6960. symcode='[BDRT]'
  6961. ;;
  6962. sco3.2v5*)
  6963. symcode='[DT]'
  6964. ;;
  6965. sysv4.2uw2*)
  6966. symcode='[DT]'
  6967. ;;
  6968. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6969. symcode='[ABDT]'
  6970. ;;
  6971. sysv4)
  6972. symcode='[DFNSTU]'
  6973. ;;
  6974. esac
  6975. # If we're using GNU nm, then use its standard symbol codes.
  6976. case `$NM -V 2>&1` in
  6977. *GNU* | *'with BFD'*)
  6978. symcode='[ABCDGIRSTW]' ;;
  6979. esac
  6980. # Transform an extracted symbol line into a proper C declaration.
  6981. # Some systems (esp. on ia64) link data and code symbols differently,
  6982. # so use this general approach.
  6983. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6984. # Transform an extracted symbol line into symbol name and symbol address
  6985. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6986. 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'"
  6987. # Handle CRLF in mingw tool chain
  6988. opt_cr=
  6989. case $build_os in
  6990. mingw*)
  6991. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6992. ;;
  6993. esac
  6994. # Try without a prefix underscore, then with it.
  6995. for ac_symprfx in "" "_"; do
  6996. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6997. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6998. # Write the raw and C identifiers.
  6999. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  7000. # Fake it for dumpbin and say T for any non-static function
  7001. # and D for any global variable.
  7002. # Also find C++ and __fastcall symbols from MSVC++,
  7003. # which start with @ or ?.
  7004. lt_cv_sys_global_symbol_pipe="$AWK '"\
  7005. " {last_section=section; section=\$ 3};"\
  7006. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  7007. " \$ 0!~/External *\|/{next};"\
  7008. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  7009. " {if(hide[section]) next};"\
  7010. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  7011. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  7012. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  7013. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  7014. " ' prfx=^$ac_symprfx"
  7015. else
  7016. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7017. fi
  7018. # Check to see that the pipe works correctly.
  7019. pipe_works=no
  7020. rm -f conftest*
  7021. cat > conftest.$ac_ext <<_LT_EOF
  7022. #ifdef __cplusplus
  7023. extern "C" {
  7024. #endif
  7025. char nm_test_var;
  7026. void nm_test_func(void);
  7027. void nm_test_func(void){}
  7028. #ifdef __cplusplus
  7029. }
  7030. #endif
  7031. int main(){nm_test_var='a';nm_test_func();return(0);}
  7032. _LT_EOF
  7033. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7034. (eval $ac_compile) 2>&5
  7035. ac_status=$?
  7036. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7037. test $ac_status = 0; }; then
  7038. # Now try to grab the symbols.
  7039. nlist=conftest.nm
  7040. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  7041. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  7042. ac_status=$?
  7043. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7044. test $ac_status = 0; } && test -s "$nlist"; then
  7045. # Try sorting and uniquifying the output.
  7046. if sort "$nlist" | uniq > "$nlist"T; then
  7047. mv -f "$nlist"T "$nlist"
  7048. else
  7049. rm -f "$nlist"T
  7050. fi
  7051. # Make sure that we snagged all the symbols we need.
  7052. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  7053. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  7054. cat <<_LT_EOF > conftest.$ac_ext
  7055. #ifdef __cplusplus
  7056. extern "C" {
  7057. #endif
  7058. _LT_EOF
  7059. # Now generate the symbol file.
  7060. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  7061. cat <<_LT_EOF >> conftest.$ac_ext
  7062. /* The mapping between symbol names and symbols. */
  7063. const struct {
  7064. const char *name;
  7065. void *address;
  7066. }
  7067. lt__PROGRAM__LTX_preloaded_symbols[] =
  7068. {
  7069. { "@PROGRAM@", (void *) 0 },
  7070. _LT_EOF
  7071. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  7072. cat <<\_LT_EOF >> conftest.$ac_ext
  7073. {0, (void *) 0}
  7074. };
  7075. /* This works around a problem in FreeBSD linker */
  7076. #ifdef FREEBSD_WORKAROUND
  7077. static const void *lt_preloaded_setup() {
  7078. return lt__PROGRAM__LTX_preloaded_symbols;
  7079. }
  7080. #endif
  7081. #ifdef __cplusplus
  7082. }
  7083. #endif
  7084. _LT_EOF
  7085. # Now try linking the two files.
  7086. mv conftest.$ac_objext conftstm.$ac_objext
  7087. lt_save_LIBS="$LIBS"
  7088. lt_save_CFLAGS="$CFLAGS"
  7089. LIBS="conftstm.$ac_objext"
  7090. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7091. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7092. (eval $ac_link) 2>&5
  7093. ac_status=$?
  7094. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7095. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  7096. pipe_works=yes
  7097. fi
  7098. LIBS="$lt_save_LIBS"
  7099. CFLAGS="$lt_save_CFLAGS"
  7100. else
  7101. echo "cannot find nm_test_func in $nlist" >&5
  7102. fi
  7103. else
  7104. echo "cannot find nm_test_var in $nlist" >&5
  7105. fi
  7106. else
  7107. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7108. fi
  7109. else
  7110. echo "$progname: failed program was:" >&5
  7111. cat conftest.$ac_ext >&5
  7112. fi
  7113. rm -rf conftest* conftst*
  7114. # Do not use the global_symbol_pipe unless it works.
  7115. if test "$pipe_works" = yes; then
  7116. break
  7117. else
  7118. lt_cv_sys_global_symbol_pipe=
  7119. fi
  7120. done
  7121. fi
  7122. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7123. lt_cv_sys_global_symbol_to_cdecl=
  7124. fi
  7125. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  7127. $as_echo "failed" >&6; }
  7128. else
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  7130. $as_echo "ok" >&6; }
  7131. fi
  7132. # Check whether --enable-libtool-lock was given.
  7133. if test "${enable_libtool_lock+set}" = set; then :
  7134. enableval=$enable_libtool_lock;
  7135. fi
  7136. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7137. # Some flags need to be propagated to the compiler or linker for good
  7138. # libtool support.
  7139. case $host in
  7140. ia64-*-hpux*)
  7141. # Find out which ABI we are using.
  7142. echo 'int i;' > conftest.$ac_ext
  7143. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7144. (eval $ac_compile) 2>&5
  7145. ac_status=$?
  7146. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7147. test $ac_status = 0; }; then
  7148. case `/usr/bin/file conftest.$ac_objext` in
  7149. *ELF-32*)
  7150. HPUX_IA64_MODE="32"
  7151. ;;
  7152. *ELF-64*)
  7153. HPUX_IA64_MODE="64"
  7154. ;;
  7155. esac
  7156. fi
  7157. rm -rf conftest*
  7158. ;;
  7159. *-*-irix6*)
  7160. # Find out which ABI we are using.
  7161. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  7162. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7163. (eval $ac_compile) 2>&5
  7164. ac_status=$?
  7165. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7166. test $ac_status = 0; }; then
  7167. if test "$lt_cv_prog_gnu_ld" = yes; then
  7168. case `/usr/bin/file conftest.$ac_objext` in
  7169. *32-bit*)
  7170. LD="${LD-ld} -melf32bsmip"
  7171. ;;
  7172. *N32*)
  7173. LD="${LD-ld} -melf32bmipn32"
  7174. ;;
  7175. *64-bit*)
  7176. LD="${LD-ld} -melf64bmip"
  7177. ;;
  7178. esac
  7179. else
  7180. case `/usr/bin/file conftest.$ac_objext` in
  7181. *32-bit*)
  7182. LD="${LD-ld} -32"
  7183. ;;
  7184. *N32*)
  7185. LD="${LD-ld} -n32"
  7186. ;;
  7187. *64-bit*)
  7188. LD="${LD-ld} -64"
  7189. ;;
  7190. esac
  7191. fi
  7192. fi
  7193. rm -rf conftest*
  7194. ;;
  7195. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7196. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  7197. # Find out which ABI we are using.
  7198. echo 'int i;' > conftest.$ac_ext
  7199. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7200. (eval $ac_compile) 2>&5
  7201. ac_status=$?
  7202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7203. test $ac_status = 0; }; then
  7204. case `/usr/bin/file conftest.o` in
  7205. *32-bit*)
  7206. case $host in
  7207. x86_64-*kfreebsd*-gnu)
  7208. LD="${LD-ld} -m elf_i386_fbsd"
  7209. ;;
  7210. x86_64-*linux*)
  7211. case `/usr/bin/file conftest.o` in
  7212. *x86-64*)
  7213. LD="${LD-ld} -m elf32_x86_64"
  7214. ;;
  7215. *)
  7216. LD="${LD-ld} -m elf_i386"
  7217. ;;
  7218. esac
  7219. ;;
  7220. powerpc64le-*linux*)
  7221. LD="${LD-ld} -m elf32lppclinux"
  7222. ;;
  7223. powerpc64-*linux*)
  7224. LD="${LD-ld} -m elf32ppclinux"
  7225. ;;
  7226. s390x-*linux*)
  7227. LD="${LD-ld} -m elf_s390"
  7228. ;;
  7229. sparc64-*linux*)
  7230. LD="${LD-ld} -m elf32_sparc"
  7231. ;;
  7232. esac
  7233. ;;
  7234. *64-bit*)
  7235. case $host in
  7236. x86_64-*kfreebsd*-gnu)
  7237. LD="${LD-ld} -m elf_x86_64_fbsd"
  7238. ;;
  7239. x86_64-*linux*)
  7240. LD="${LD-ld} -m elf_x86_64"
  7241. ;;
  7242. powerpcle-*linux*)
  7243. LD="${LD-ld} -m elf64lppc"
  7244. ;;
  7245. powerpc-*linux*)
  7246. LD="${LD-ld} -m elf64ppc"
  7247. ;;
  7248. s390*-*linux*|s390*-*tpf*)
  7249. LD="${LD-ld} -m elf64_s390"
  7250. ;;
  7251. sparc*-*linux*)
  7252. LD="${LD-ld} -m elf64_sparc"
  7253. ;;
  7254. esac
  7255. ;;
  7256. esac
  7257. fi
  7258. rm -rf conftest*
  7259. ;;
  7260. *-*-sco3.2v5*)
  7261. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7262. SAVE_CFLAGS="$CFLAGS"
  7263. CFLAGS="$CFLAGS -belf"
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7265. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7266. if ${lt_cv_cc_needs_belf+:} false; then :
  7267. $as_echo_n "(cached) " >&6
  7268. else
  7269. ac_ext=c
  7270. ac_cpp='$CPP $CPPFLAGS'
  7271. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7272. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7273. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7275. /* end confdefs.h. */
  7276. int
  7277. main ()
  7278. {
  7279. ;
  7280. return 0;
  7281. }
  7282. _ACEOF
  7283. if ac_fn_c_try_link "$LINENO"; then :
  7284. lt_cv_cc_needs_belf=yes
  7285. else
  7286. lt_cv_cc_needs_belf=no
  7287. fi
  7288. rm -f core conftest.err conftest.$ac_objext \
  7289. conftest$ac_exeext conftest.$ac_ext
  7290. ac_ext=c
  7291. ac_cpp='$CPP $CPPFLAGS'
  7292. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7293. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7294. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7295. fi
  7296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7297. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7298. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7299. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7300. CFLAGS="$SAVE_CFLAGS"
  7301. fi
  7302. ;;
  7303. sparc*-*solaris*)
  7304. # Find out which ABI we are using.
  7305. echo 'int i;' > conftest.$ac_ext
  7306. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7307. (eval $ac_compile) 2>&5
  7308. ac_status=$?
  7309. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7310. test $ac_status = 0; }; then
  7311. case `/usr/bin/file conftest.o` in
  7312. *64-bit*)
  7313. case $lt_cv_prog_gnu_ld in
  7314. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7315. *)
  7316. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7317. LD="${LD-ld} -64"
  7318. fi
  7319. ;;
  7320. esac
  7321. ;;
  7322. esac
  7323. fi
  7324. rm -rf conftest*
  7325. ;;
  7326. esac
  7327. need_locks="$enable_libtool_lock"
  7328. case $host_os in
  7329. rhapsody* | darwin*)
  7330. if test -n "$ac_tool_prefix"; then
  7331. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7332. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7334. $as_echo_n "checking for $ac_word... " >&6; }
  7335. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7336. $as_echo_n "(cached) " >&6
  7337. else
  7338. if test -n "$DSYMUTIL"; then
  7339. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7340. else
  7341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7342. for as_dir in $PATH
  7343. do
  7344. IFS=$as_save_IFS
  7345. test -z "$as_dir" && as_dir=.
  7346. for ac_exec_ext in '' $ac_executable_extensions; do
  7347. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7348. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7350. break 2
  7351. fi
  7352. done
  7353. done
  7354. IFS=$as_save_IFS
  7355. fi
  7356. fi
  7357. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7358. if test -n "$DSYMUTIL"; then
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7360. $as_echo "$DSYMUTIL" >&6; }
  7361. else
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7363. $as_echo "no" >&6; }
  7364. fi
  7365. fi
  7366. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7367. ac_ct_DSYMUTIL=$DSYMUTIL
  7368. # Extract the first word of "dsymutil", so it can be a program name with args.
  7369. set dummy dsymutil; ac_word=$2
  7370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7371. $as_echo_n "checking for $ac_word... " >&6; }
  7372. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7373. $as_echo_n "(cached) " >&6
  7374. else
  7375. if test -n "$ac_ct_DSYMUTIL"; then
  7376. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7377. else
  7378. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7379. for as_dir in $PATH
  7380. do
  7381. IFS=$as_save_IFS
  7382. test -z "$as_dir" && as_dir=.
  7383. for ac_exec_ext in '' $ac_executable_extensions; do
  7384. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7385. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7386. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7387. break 2
  7388. fi
  7389. done
  7390. done
  7391. IFS=$as_save_IFS
  7392. fi
  7393. fi
  7394. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7395. if test -n "$ac_ct_DSYMUTIL"; then
  7396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7397. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7398. else
  7399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7400. $as_echo "no" >&6; }
  7401. fi
  7402. if test "x$ac_ct_DSYMUTIL" = x; then
  7403. DSYMUTIL=":"
  7404. else
  7405. case $cross_compiling:$ac_tool_warned in
  7406. yes:)
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7408. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7409. ac_tool_warned=yes ;;
  7410. esac
  7411. DSYMUTIL=$ac_ct_DSYMUTIL
  7412. fi
  7413. else
  7414. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7415. fi
  7416. if test -n "$ac_tool_prefix"; then
  7417. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7418. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7420. $as_echo_n "checking for $ac_word... " >&6; }
  7421. if ${ac_cv_prog_NMEDIT+:} false; then :
  7422. $as_echo_n "(cached) " >&6
  7423. else
  7424. if test -n "$NMEDIT"; then
  7425. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7426. else
  7427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7428. for as_dir in $PATH
  7429. do
  7430. IFS=$as_save_IFS
  7431. test -z "$as_dir" && as_dir=.
  7432. for ac_exec_ext in '' $ac_executable_extensions; do
  7433. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7434. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7436. break 2
  7437. fi
  7438. done
  7439. done
  7440. IFS=$as_save_IFS
  7441. fi
  7442. fi
  7443. NMEDIT=$ac_cv_prog_NMEDIT
  7444. if test -n "$NMEDIT"; then
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7446. $as_echo "$NMEDIT" >&6; }
  7447. else
  7448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7449. $as_echo "no" >&6; }
  7450. fi
  7451. fi
  7452. if test -z "$ac_cv_prog_NMEDIT"; then
  7453. ac_ct_NMEDIT=$NMEDIT
  7454. # Extract the first word of "nmedit", so it can be a program name with args.
  7455. set dummy nmedit; ac_word=$2
  7456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7457. $as_echo_n "checking for $ac_word... " >&6; }
  7458. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7459. $as_echo_n "(cached) " >&6
  7460. else
  7461. if test -n "$ac_ct_NMEDIT"; then
  7462. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7463. else
  7464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7465. for as_dir in $PATH
  7466. do
  7467. IFS=$as_save_IFS
  7468. test -z "$as_dir" && as_dir=.
  7469. for ac_exec_ext in '' $ac_executable_extensions; do
  7470. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7471. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7472. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7473. break 2
  7474. fi
  7475. done
  7476. done
  7477. IFS=$as_save_IFS
  7478. fi
  7479. fi
  7480. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7481. if test -n "$ac_ct_NMEDIT"; then
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7483. $as_echo "$ac_ct_NMEDIT" >&6; }
  7484. else
  7485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7486. $as_echo "no" >&6; }
  7487. fi
  7488. if test "x$ac_ct_NMEDIT" = x; then
  7489. NMEDIT=":"
  7490. else
  7491. case $cross_compiling:$ac_tool_warned in
  7492. yes:)
  7493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7494. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7495. ac_tool_warned=yes ;;
  7496. esac
  7497. NMEDIT=$ac_ct_NMEDIT
  7498. fi
  7499. else
  7500. NMEDIT="$ac_cv_prog_NMEDIT"
  7501. fi
  7502. if test -n "$ac_tool_prefix"; then
  7503. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7504. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7506. $as_echo_n "checking for $ac_word... " >&6; }
  7507. if ${ac_cv_prog_LIPO+:} false; then :
  7508. $as_echo_n "(cached) " >&6
  7509. else
  7510. if test -n "$LIPO"; then
  7511. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7512. else
  7513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7514. for as_dir in $PATH
  7515. do
  7516. IFS=$as_save_IFS
  7517. test -z "$as_dir" && as_dir=.
  7518. for ac_exec_ext in '' $ac_executable_extensions; do
  7519. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7520. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7522. break 2
  7523. fi
  7524. done
  7525. done
  7526. IFS=$as_save_IFS
  7527. fi
  7528. fi
  7529. LIPO=$ac_cv_prog_LIPO
  7530. if test -n "$LIPO"; then
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7532. $as_echo "$LIPO" >&6; }
  7533. else
  7534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7535. $as_echo "no" >&6; }
  7536. fi
  7537. fi
  7538. if test -z "$ac_cv_prog_LIPO"; then
  7539. ac_ct_LIPO=$LIPO
  7540. # Extract the first word of "lipo", so it can be a program name with args.
  7541. set dummy lipo; ac_word=$2
  7542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7543. $as_echo_n "checking for $ac_word... " >&6; }
  7544. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7545. $as_echo_n "(cached) " >&6
  7546. else
  7547. if test -n "$ac_ct_LIPO"; then
  7548. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7549. else
  7550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7551. for as_dir in $PATH
  7552. do
  7553. IFS=$as_save_IFS
  7554. test -z "$as_dir" && as_dir=.
  7555. for ac_exec_ext in '' $ac_executable_extensions; do
  7556. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7557. ac_cv_prog_ac_ct_LIPO="lipo"
  7558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7559. break 2
  7560. fi
  7561. done
  7562. done
  7563. IFS=$as_save_IFS
  7564. fi
  7565. fi
  7566. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7567. if test -n "$ac_ct_LIPO"; then
  7568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7569. $as_echo "$ac_ct_LIPO" >&6; }
  7570. else
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7572. $as_echo "no" >&6; }
  7573. fi
  7574. if test "x$ac_ct_LIPO" = x; then
  7575. LIPO=":"
  7576. else
  7577. case $cross_compiling:$ac_tool_warned in
  7578. yes:)
  7579. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7580. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7581. ac_tool_warned=yes ;;
  7582. esac
  7583. LIPO=$ac_ct_LIPO
  7584. fi
  7585. else
  7586. LIPO="$ac_cv_prog_LIPO"
  7587. fi
  7588. if test -n "$ac_tool_prefix"; then
  7589. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7590. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7592. $as_echo_n "checking for $ac_word... " >&6; }
  7593. if ${ac_cv_prog_OTOOL+:} false; then :
  7594. $as_echo_n "(cached) " >&6
  7595. else
  7596. if test -n "$OTOOL"; then
  7597. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7598. else
  7599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7600. for as_dir in $PATH
  7601. do
  7602. IFS=$as_save_IFS
  7603. test -z "$as_dir" && as_dir=.
  7604. for ac_exec_ext in '' $ac_executable_extensions; do
  7605. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7606. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7608. break 2
  7609. fi
  7610. done
  7611. done
  7612. IFS=$as_save_IFS
  7613. fi
  7614. fi
  7615. OTOOL=$ac_cv_prog_OTOOL
  7616. if test -n "$OTOOL"; then
  7617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7618. $as_echo "$OTOOL" >&6; }
  7619. else
  7620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7621. $as_echo "no" >&6; }
  7622. fi
  7623. fi
  7624. if test -z "$ac_cv_prog_OTOOL"; then
  7625. ac_ct_OTOOL=$OTOOL
  7626. # Extract the first word of "otool", so it can be a program name with args.
  7627. set dummy otool; ac_word=$2
  7628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7629. $as_echo_n "checking for $ac_word... " >&6; }
  7630. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7631. $as_echo_n "(cached) " >&6
  7632. else
  7633. if test -n "$ac_ct_OTOOL"; then
  7634. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7635. else
  7636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7637. for as_dir in $PATH
  7638. do
  7639. IFS=$as_save_IFS
  7640. test -z "$as_dir" && as_dir=.
  7641. for ac_exec_ext in '' $ac_executable_extensions; do
  7642. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7643. ac_cv_prog_ac_ct_OTOOL="otool"
  7644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7645. break 2
  7646. fi
  7647. done
  7648. done
  7649. IFS=$as_save_IFS
  7650. fi
  7651. fi
  7652. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7653. if test -n "$ac_ct_OTOOL"; then
  7654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7655. $as_echo "$ac_ct_OTOOL" >&6; }
  7656. else
  7657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7658. $as_echo "no" >&6; }
  7659. fi
  7660. if test "x$ac_ct_OTOOL" = x; then
  7661. OTOOL=":"
  7662. else
  7663. case $cross_compiling:$ac_tool_warned in
  7664. yes:)
  7665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7666. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7667. ac_tool_warned=yes ;;
  7668. esac
  7669. OTOOL=$ac_ct_OTOOL
  7670. fi
  7671. else
  7672. OTOOL="$ac_cv_prog_OTOOL"
  7673. fi
  7674. if test -n "$ac_tool_prefix"; then
  7675. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7676. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7678. $as_echo_n "checking for $ac_word... " >&6; }
  7679. if ${ac_cv_prog_OTOOL64+:} false; then :
  7680. $as_echo_n "(cached) " >&6
  7681. else
  7682. if test -n "$OTOOL64"; then
  7683. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7684. else
  7685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7686. for as_dir in $PATH
  7687. do
  7688. IFS=$as_save_IFS
  7689. test -z "$as_dir" && as_dir=.
  7690. for ac_exec_ext in '' $ac_executable_extensions; do
  7691. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7692. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7693. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7694. break 2
  7695. fi
  7696. done
  7697. done
  7698. IFS=$as_save_IFS
  7699. fi
  7700. fi
  7701. OTOOL64=$ac_cv_prog_OTOOL64
  7702. if test -n "$OTOOL64"; then
  7703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7704. $as_echo "$OTOOL64" >&6; }
  7705. else
  7706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7707. $as_echo "no" >&6; }
  7708. fi
  7709. fi
  7710. if test -z "$ac_cv_prog_OTOOL64"; then
  7711. ac_ct_OTOOL64=$OTOOL64
  7712. # Extract the first word of "otool64", so it can be a program name with args.
  7713. set dummy otool64; ac_word=$2
  7714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7715. $as_echo_n "checking for $ac_word... " >&6; }
  7716. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7717. $as_echo_n "(cached) " >&6
  7718. else
  7719. if test -n "$ac_ct_OTOOL64"; then
  7720. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7721. else
  7722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7723. for as_dir in $PATH
  7724. do
  7725. IFS=$as_save_IFS
  7726. test -z "$as_dir" && as_dir=.
  7727. for ac_exec_ext in '' $ac_executable_extensions; do
  7728. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7729. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7731. break 2
  7732. fi
  7733. done
  7734. done
  7735. IFS=$as_save_IFS
  7736. fi
  7737. fi
  7738. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7739. if test -n "$ac_ct_OTOOL64"; then
  7740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7741. $as_echo "$ac_ct_OTOOL64" >&6; }
  7742. else
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7744. $as_echo "no" >&6; }
  7745. fi
  7746. if test "x$ac_ct_OTOOL64" = x; then
  7747. OTOOL64=":"
  7748. else
  7749. case $cross_compiling:$ac_tool_warned in
  7750. yes:)
  7751. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7752. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7753. ac_tool_warned=yes ;;
  7754. esac
  7755. OTOOL64=$ac_ct_OTOOL64
  7756. fi
  7757. else
  7758. OTOOL64="$ac_cv_prog_OTOOL64"
  7759. fi
  7760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7761. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7762. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7763. $as_echo_n "(cached) " >&6
  7764. else
  7765. lt_cv_apple_cc_single_mod=no
  7766. if test -z "${LT_MULTI_MODULE}"; then
  7767. # By default we will add the -single_module flag. You can override
  7768. # by either setting the environment variable LT_MULTI_MODULE
  7769. # non-empty at configure time, or by adding -multi_module to the
  7770. # link flags.
  7771. rm -rf libconftest.dylib*
  7772. echo "int foo(void){return 1;}" > conftest.c
  7773. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7774. -dynamiclib -Wl,-single_module conftest.c" >&5
  7775. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7776. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7777. _lt_result=$?
  7778. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7779. lt_cv_apple_cc_single_mod=yes
  7780. else
  7781. cat conftest.err >&5
  7782. fi
  7783. rm -rf libconftest.dylib*
  7784. rm -f conftest.*
  7785. fi
  7786. fi
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7788. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7790. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7791. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7792. $as_echo_n "(cached) " >&6
  7793. else
  7794. lt_cv_ld_exported_symbols_list=no
  7795. save_LDFLAGS=$LDFLAGS
  7796. echo "_main" > conftest.sym
  7797. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7799. /* end confdefs.h. */
  7800. int
  7801. main ()
  7802. {
  7803. ;
  7804. return 0;
  7805. }
  7806. _ACEOF
  7807. if ac_fn_c_try_link "$LINENO"; then :
  7808. lt_cv_ld_exported_symbols_list=yes
  7809. else
  7810. lt_cv_ld_exported_symbols_list=no
  7811. fi
  7812. rm -f core conftest.err conftest.$ac_objext \
  7813. conftest$ac_exeext conftest.$ac_ext
  7814. LDFLAGS="$save_LDFLAGS"
  7815. fi
  7816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7817. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7819. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7820. if ${lt_cv_ld_force_load+:} false; then :
  7821. $as_echo_n "(cached) " >&6
  7822. else
  7823. lt_cv_ld_force_load=no
  7824. cat > conftest.c << _LT_EOF
  7825. int forced_loaded() { return 2;}
  7826. _LT_EOF
  7827. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7828. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7829. echo "$AR cru libconftest.a conftest.o" >&5
  7830. $AR cru libconftest.a conftest.o 2>&5
  7831. cat > conftest.c << _LT_EOF
  7832. int main() { return 0;}
  7833. _LT_EOF
  7834. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7835. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7836. _lt_result=$?
  7837. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7838. lt_cv_ld_force_load=yes
  7839. else
  7840. cat conftest.err >&5
  7841. fi
  7842. rm -f conftest.err libconftest.a conftest conftest.c
  7843. rm -rf conftest.dSYM
  7844. fi
  7845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7846. $as_echo "$lt_cv_ld_force_load" >&6; }
  7847. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  7848. # build without first building modern cctools / linker.
  7849. case $host_cpu-$host_os in
  7850. *-rhapsody* | *-darwin1.[012])
  7851. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7852. *-darwin1.*)
  7853. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7854. *-darwin*)
  7855. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  7856. # deployment target is forced to an earlier version.
  7857. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  7858. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  7859. ;;
  7860. 10.[012][,.]*)
  7861. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7862. ;;
  7863. *)
  7864. ;;
  7865. esac
  7866. ;;
  7867. esac
  7868. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7869. _lt_dar_single_mod='$single_module'
  7870. fi
  7871. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7872. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7873. else
  7874. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7875. fi
  7876. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7877. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7878. else
  7879. _lt_dsymutil=
  7880. fi
  7881. ;;
  7882. esac
  7883. for ac_header in dlfcn.h
  7884. do :
  7885. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7886. "
  7887. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7888. cat >>confdefs.h <<_ACEOF
  7889. #define HAVE_DLFCN_H 1
  7890. _ACEOF
  7891. fi
  7892. done
  7893. # Set options
  7894. enable_win32_dll=no
  7895. # Check whether --enable-shared was given.
  7896. if test "${enable_shared+set}" = set; then :
  7897. enableval=$enable_shared; p=${PACKAGE-default}
  7898. case $enableval in
  7899. yes) enable_shared=yes ;;
  7900. no) enable_shared=no ;;
  7901. *)
  7902. enable_shared=no
  7903. # Look at the argument we got. We use all the common list separators.
  7904. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7905. for pkg in $enableval; do
  7906. IFS="$lt_save_ifs"
  7907. if test "X$pkg" = "X$p"; then
  7908. enable_shared=yes
  7909. fi
  7910. done
  7911. IFS="$lt_save_ifs"
  7912. ;;
  7913. esac
  7914. else
  7915. enable_shared=yes
  7916. fi
  7917. # Check whether --enable-static was given.
  7918. if test "${enable_static+set}" = set; then :
  7919. enableval=$enable_static; p=${PACKAGE-default}
  7920. case $enableval in
  7921. yes) enable_static=yes ;;
  7922. no) enable_static=no ;;
  7923. *)
  7924. enable_static=no
  7925. # Look at the argument we got. We use all the common list separators.
  7926. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7927. for pkg in $enableval; do
  7928. IFS="$lt_save_ifs"
  7929. if test "X$pkg" = "X$p"; then
  7930. enable_static=yes
  7931. fi
  7932. done
  7933. IFS="$lt_save_ifs"
  7934. ;;
  7935. esac
  7936. else
  7937. enable_static=yes
  7938. fi
  7939. # Check whether --with-pic was given.
  7940. if test "${with_pic+set}" = set; then :
  7941. withval=$with_pic; pic_mode="$withval"
  7942. else
  7943. pic_mode=default
  7944. fi
  7945. test -z "$pic_mode" && pic_mode=default
  7946. # Check whether --enable-fast-install was given.
  7947. if test "${enable_fast_install+set}" = set; then :
  7948. enableval=$enable_fast_install; p=${PACKAGE-default}
  7949. case $enableval in
  7950. yes) enable_fast_install=yes ;;
  7951. no) enable_fast_install=no ;;
  7952. *)
  7953. enable_fast_install=no
  7954. # Look at the argument we got. We use all the common list separators.
  7955. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7956. for pkg in $enableval; do
  7957. IFS="$lt_save_ifs"
  7958. if test "X$pkg" = "X$p"; then
  7959. enable_fast_install=yes
  7960. fi
  7961. done
  7962. IFS="$lt_save_ifs"
  7963. ;;
  7964. esac
  7965. else
  7966. enable_fast_install=yes
  7967. fi
  7968. # This can be used to rebuild libtool when needed
  7969. LIBTOOL_DEPS="$ltmain"
  7970. # Always use our own libtool.
  7971. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7972. test -z "$LN_S" && LN_S="ln -s"
  7973. if test -n "${ZSH_VERSION+set}" ; then
  7974. setopt NO_GLOB_SUBST
  7975. fi
  7976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7977. $as_echo_n "checking for objdir... " >&6; }
  7978. if ${lt_cv_objdir+:} false; then :
  7979. $as_echo_n "(cached) " >&6
  7980. else
  7981. rm -f .libs 2>/dev/null
  7982. mkdir .libs 2>/dev/null
  7983. if test -d .libs; then
  7984. lt_cv_objdir=.libs
  7985. else
  7986. # MS-DOS does not allow filenames that begin with a dot.
  7987. lt_cv_objdir=_libs
  7988. fi
  7989. rmdir .libs 2>/dev/null
  7990. fi
  7991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7992. $as_echo "$lt_cv_objdir" >&6; }
  7993. objdir=$lt_cv_objdir
  7994. cat >>confdefs.h <<_ACEOF
  7995. #define LT_OBJDIR "$lt_cv_objdir/"
  7996. _ACEOF
  7997. case $host_os in
  7998. aix3*)
  7999. # AIX sometimes has problems with the GCC collect2 program. For some
  8000. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8001. # vanish in a puff of smoke.
  8002. if test "X${COLLECT_NAMES+set}" != Xset; then
  8003. COLLECT_NAMES=
  8004. export COLLECT_NAMES
  8005. fi
  8006. ;;
  8007. esac
  8008. # Global variables:
  8009. ofile=libtool
  8010. can_build_shared=yes
  8011. # All known linkers require a `.a' archive for static linking (except MSVC,
  8012. # which needs '.lib').
  8013. libext=a
  8014. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8015. old_CC="$CC"
  8016. old_CFLAGS="$CFLAGS"
  8017. # Set sane defaults for various variables
  8018. test -z "$CC" && CC=cc
  8019. test -z "$LTCC" && LTCC=$CC
  8020. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  8021. test -z "$LD" && LD=ld
  8022. test -z "$ac_objext" && ac_objext=o
  8023. for cc_temp in $compiler""; do
  8024. case $cc_temp in
  8025. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8026. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8027. \-*) ;;
  8028. *) break;;
  8029. esac
  8030. done
  8031. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  8032. # Only perform the check for file, if the check method requires it
  8033. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8034. case $deplibs_check_method in
  8035. file_magic*)
  8036. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8038. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8039. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8040. $as_echo_n "(cached) " >&6
  8041. else
  8042. case $MAGIC_CMD in
  8043. [\\/*] | ?:[\\/]*)
  8044. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8045. ;;
  8046. *)
  8047. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8048. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8049. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8050. for ac_dir in $ac_dummy; do
  8051. IFS="$lt_save_ifs"
  8052. test -z "$ac_dir" && ac_dir=.
  8053. if test -f $ac_dir/${ac_tool_prefix}file; then
  8054. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8055. if test -n "$file_magic_test_file"; then
  8056. case $deplibs_check_method in
  8057. "file_magic "*)
  8058. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8059. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8060. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8061. $EGREP "$file_magic_regex" > /dev/null; then
  8062. :
  8063. else
  8064. cat <<_LT_EOF 1>&2
  8065. *** Warning: the command libtool uses to detect shared libraries,
  8066. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8067. *** The result is that libtool may fail to recognize shared libraries
  8068. *** as such. This will affect the creation of libtool libraries that
  8069. *** depend on shared libraries, but programs linked with such libtool
  8070. *** libraries will work regardless of this problem. Nevertheless, you
  8071. *** may want to report the problem to your system manager and/or to
  8072. *** bug-libtool@gnu.org
  8073. _LT_EOF
  8074. fi ;;
  8075. esac
  8076. fi
  8077. break
  8078. fi
  8079. done
  8080. IFS="$lt_save_ifs"
  8081. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8082. ;;
  8083. esac
  8084. fi
  8085. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8086. if test -n "$MAGIC_CMD"; then
  8087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8088. $as_echo "$MAGIC_CMD" >&6; }
  8089. else
  8090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8091. $as_echo "no" >&6; }
  8092. fi
  8093. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8094. if test -n "$ac_tool_prefix"; then
  8095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8096. $as_echo_n "checking for file... " >&6; }
  8097. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  8098. $as_echo_n "(cached) " >&6
  8099. else
  8100. case $MAGIC_CMD in
  8101. [\\/*] | ?:[\\/]*)
  8102. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8103. ;;
  8104. *)
  8105. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8106. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8107. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8108. for ac_dir in $ac_dummy; do
  8109. IFS="$lt_save_ifs"
  8110. test -z "$ac_dir" && ac_dir=.
  8111. if test -f $ac_dir/file; then
  8112. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8113. if test -n "$file_magic_test_file"; then
  8114. case $deplibs_check_method in
  8115. "file_magic "*)
  8116. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8117. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8118. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8119. $EGREP "$file_magic_regex" > /dev/null; then
  8120. :
  8121. else
  8122. cat <<_LT_EOF 1>&2
  8123. *** Warning: the command libtool uses to detect shared libraries,
  8124. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8125. *** The result is that libtool may fail to recognize shared libraries
  8126. *** as such. This will affect the creation of libtool libraries that
  8127. *** depend on shared libraries, but programs linked with such libtool
  8128. *** libraries will work regardless of this problem. Nevertheless, you
  8129. *** may want to report the problem to your system manager and/or to
  8130. *** bug-libtool@gnu.org
  8131. _LT_EOF
  8132. fi ;;
  8133. esac
  8134. fi
  8135. break
  8136. fi
  8137. done
  8138. IFS="$lt_save_ifs"
  8139. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8140. ;;
  8141. esac
  8142. fi
  8143. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8144. if test -n "$MAGIC_CMD"; then
  8145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8146. $as_echo "$MAGIC_CMD" >&6; }
  8147. else
  8148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8149. $as_echo "no" >&6; }
  8150. fi
  8151. else
  8152. MAGIC_CMD=:
  8153. fi
  8154. fi
  8155. fi
  8156. ;;
  8157. esac
  8158. # Use C for the default configuration in the libtool script
  8159. lt_save_CC="$CC"
  8160. ac_ext=c
  8161. ac_cpp='$CPP $CPPFLAGS'
  8162. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8163. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8164. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8165. # Source file extension for C test sources.
  8166. ac_ext=c
  8167. # Object file extension for compiled C test sources.
  8168. objext=o
  8169. objext=$objext
  8170. # Code to be used in simple compile tests
  8171. lt_simple_compile_test_code="int some_variable = 0;"
  8172. # Code to be used in simple link tests
  8173. lt_simple_link_test_code='int main(){return(0);}'
  8174. # If no C compiler was specified, use CC.
  8175. LTCC=${LTCC-"$CC"}
  8176. # If no C compiler flags were specified, use CFLAGS.
  8177. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8178. # Allow CC to be a program name with arguments.
  8179. compiler=$CC
  8180. # Save the default compiler, since it gets overwritten when the other
  8181. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8182. compiler_DEFAULT=$CC
  8183. # save warnings/boilerplate of simple test code
  8184. ac_outfile=conftest.$ac_objext
  8185. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8186. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8187. _lt_compiler_boilerplate=`cat conftest.err`
  8188. $RM conftest*
  8189. ac_outfile=conftest.$ac_objext
  8190. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8191. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8192. _lt_linker_boilerplate=`cat conftest.err`
  8193. $RM -r conftest*
  8194. ## CAVEAT EMPTOR:
  8195. ## There is no encapsulation within the following macros, do not change
  8196. ## the running order or otherwise move them around unless you know exactly
  8197. ## what you are doing...
  8198. if test -n "$compiler"; then
  8199. lt_prog_compiler_no_builtin_flag=
  8200. if test "$GCC" = yes; then
  8201. case $cc_basename in
  8202. nvcc*)
  8203. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8204. *)
  8205. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8206. esac
  8207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8208. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8209. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8210. $as_echo_n "(cached) " >&6
  8211. else
  8212. lt_cv_prog_compiler_rtti_exceptions=no
  8213. ac_outfile=conftest.$ac_objext
  8214. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8215. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8216. # Insert the option either (1) after the last *FLAGS variable, or
  8217. # (2) before a word containing "conftest.", or (3) at the end.
  8218. # Note that $ac_compile itself does not contain backslashes and begins
  8219. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8220. # The option is referenced via a variable to avoid confusing sed.
  8221. lt_compile=`echo "$ac_compile" | $SED \
  8222. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8223. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8224. -e 's:$: $lt_compiler_flag:'`
  8225. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8226. (eval "$lt_compile" 2>conftest.err)
  8227. ac_status=$?
  8228. cat conftest.err >&5
  8229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8230. if (exit $ac_status) && test -s "$ac_outfile"; then
  8231. # The compiler can only warn and ignore the option if not recognized
  8232. # So say no if there are warnings other than the usual output.
  8233. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8234. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8235. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8236. lt_cv_prog_compiler_rtti_exceptions=yes
  8237. fi
  8238. fi
  8239. $RM conftest*
  8240. fi
  8241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8242. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8243. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8244. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8245. else
  8246. :
  8247. fi
  8248. fi
  8249. lt_prog_compiler_wl=
  8250. lt_prog_compiler_pic=
  8251. lt_prog_compiler_static=
  8252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8253. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8254. if test "$GCC" = yes; then
  8255. lt_prog_compiler_wl='-Wl,'
  8256. lt_prog_compiler_static='-static'
  8257. case $host_os in
  8258. aix*)
  8259. # All AIX code is PIC.
  8260. if test "$host_cpu" = ia64; then
  8261. # AIX 5 now supports IA64 processor
  8262. lt_prog_compiler_static='-Bstatic'
  8263. fi
  8264. lt_prog_compiler_pic='-fPIC'
  8265. ;;
  8266. amigaos*)
  8267. case $host_cpu in
  8268. powerpc)
  8269. # see comment about AmigaOS4 .so support
  8270. lt_prog_compiler_pic='-fPIC'
  8271. ;;
  8272. m68k)
  8273. # FIXME: we need at least 68020 code to build shared libraries, but
  8274. # adding the `-m68020' flag to GCC prevents building anything better,
  8275. # like `-m68040'.
  8276. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8277. ;;
  8278. esac
  8279. ;;
  8280. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8281. # PIC is the default for these OSes.
  8282. ;;
  8283. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8284. # This hack is so that the source file can tell whether it is being
  8285. # built for inclusion in a dll (and should export symbols for example).
  8286. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8287. # (--disable-auto-import) libraries
  8288. lt_prog_compiler_pic='-DDLL_EXPORT'
  8289. ;;
  8290. darwin* | rhapsody*)
  8291. # PIC is the default on this platform
  8292. # Common symbols not allowed in MH_DYLIB files
  8293. lt_prog_compiler_pic='-fno-common'
  8294. ;;
  8295. haiku*)
  8296. # PIC is the default for Haiku.
  8297. # The "-static" flag exists, but is broken.
  8298. lt_prog_compiler_static=
  8299. ;;
  8300. hpux*)
  8301. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8302. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8303. # sets the default TLS model and affects inlining.
  8304. case $host_cpu in
  8305. hppa*64*)
  8306. # +Z the default
  8307. ;;
  8308. *)
  8309. lt_prog_compiler_pic='-fPIC'
  8310. ;;
  8311. esac
  8312. ;;
  8313. interix[3-9]*)
  8314. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8315. # Instead, we relocate shared libraries at runtime.
  8316. ;;
  8317. msdosdjgpp*)
  8318. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8319. # on systems that don't support them.
  8320. lt_prog_compiler_can_build_shared=no
  8321. enable_shared=no
  8322. ;;
  8323. *nto* | *qnx*)
  8324. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8325. # it will coredump.
  8326. lt_prog_compiler_pic='-fPIC -shared'
  8327. ;;
  8328. sysv4*MP*)
  8329. if test -d /usr/nec; then
  8330. lt_prog_compiler_pic=-Kconform_pic
  8331. fi
  8332. ;;
  8333. *)
  8334. lt_prog_compiler_pic='-fPIC'
  8335. ;;
  8336. esac
  8337. case $cc_basename in
  8338. nvcc*) # Cuda Compiler Driver 2.2
  8339. lt_prog_compiler_wl='-Xlinker '
  8340. lt_prog_compiler_pic='-Xcompiler -fPIC'
  8341. ;;
  8342. esac
  8343. else
  8344. # PORTME Check for flag to pass linker flags through the system compiler.
  8345. case $host_os in
  8346. aix*)
  8347. lt_prog_compiler_wl='-Wl,'
  8348. if test "$host_cpu" = ia64; then
  8349. # AIX 5 now supports IA64 processor
  8350. lt_prog_compiler_static='-Bstatic'
  8351. else
  8352. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8353. fi
  8354. ;;
  8355. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8356. # This hack is so that the source file can tell whether it is being
  8357. # built for inclusion in a dll (and should export symbols for example).
  8358. lt_prog_compiler_pic='-DDLL_EXPORT'
  8359. ;;
  8360. hpux9* | hpux10* | hpux11*)
  8361. lt_prog_compiler_wl='-Wl,'
  8362. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8363. # not for PA HP-UX.
  8364. case $host_cpu in
  8365. hppa*64*|ia64*)
  8366. # +Z the default
  8367. ;;
  8368. *)
  8369. lt_prog_compiler_pic='+Z'
  8370. ;;
  8371. esac
  8372. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8373. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8374. ;;
  8375. irix5* | irix6* | nonstopux*)
  8376. lt_prog_compiler_wl='-Wl,'
  8377. # PIC (with -KPIC) is the default.
  8378. lt_prog_compiler_static='-non_shared'
  8379. ;;
  8380. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8381. case $cc_basename in
  8382. # old Intel for x86_64 which still supported -KPIC.
  8383. ecc*)
  8384. lt_prog_compiler_wl='-Wl,'
  8385. lt_prog_compiler_pic='-KPIC'
  8386. lt_prog_compiler_static='-static'
  8387. ;;
  8388. # icc used to be incompatible with GCC.
  8389. # ICC 10 doesn't accept -KPIC any more.
  8390. icc* | ifort*)
  8391. lt_prog_compiler_wl='-Wl,'
  8392. lt_prog_compiler_pic='-fPIC'
  8393. lt_prog_compiler_static='-static'
  8394. ;;
  8395. # Lahey Fortran 8.1.
  8396. lf95*)
  8397. lt_prog_compiler_wl='-Wl,'
  8398. lt_prog_compiler_pic='--shared'
  8399. lt_prog_compiler_static='--static'
  8400. ;;
  8401. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8402. # Portland Group compilers (*not* the Pentium gcc compiler,
  8403. # which looks to be a dead project)
  8404. lt_prog_compiler_wl='-Wl,'
  8405. lt_prog_compiler_pic='-fpic'
  8406. lt_prog_compiler_static='-Bstatic'
  8407. ;;
  8408. ccc*)
  8409. lt_prog_compiler_wl='-Wl,'
  8410. # All Alpha code is PIC.
  8411. lt_prog_compiler_static='-non_shared'
  8412. ;;
  8413. xl* | bgxl* | bgf* | mpixl*)
  8414. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8415. lt_prog_compiler_wl='-Wl,'
  8416. lt_prog_compiler_pic='-qpic'
  8417. lt_prog_compiler_static='-qstaticlink'
  8418. ;;
  8419. *)
  8420. case `$CC -V 2>&1 | sed 5q` in
  8421. *Sun\ F* | *Sun*Fortran*)
  8422. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8423. lt_prog_compiler_pic='-KPIC'
  8424. lt_prog_compiler_static='-Bstatic'
  8425. lt_prog_compiler_wl=''
  8426. ;;
  8427. *Sun\ C*)
  8428. # Sun C 5.9
  8429. lt_prog_compiler_pic='-KPIC'
  8430. lt_prog_compiler_static='-Bstatic'
  8431. lt_prog_compiler_wl='-Wl,'
  8432. ;;
  8433. esac
  8434. ;;
  8435. esac
  8436. ;;
  8437. newsos6)
  8438. lt_prog_compiler_pic='-KPIC'
  8439. lt_prog_compiler_static='-Bstatic'
  8440. ;;
  8441. *nto* | *qnx*)
  8442. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8443. # it will coredump.
  8444. lt_prog_compiler_pic='-fPIC -shared'
  8445. ;;
  8446. osf3* | osf4* | osf5*)
  8447. lt_prog_compiler_wl='-Wl,'
  8448. # All OSF/1 code is PIC.
  8449. lt_prog_compiler_static='-non_shared'
  8450. ;;
  8451. rdos*)
  8452. lt_prog_compiler_static='-non_shared'
  8453. ;;
  8454. solaris*)
  8455. lt_prog_compiler_pic='-KPIC'
  8456. lt_prog_compiler_static='-Bstatic'
  8457. case $cc_basename in
  8458. f77* | f90* | f95*)
  8459. lt_prog_compiler_wl='-Qoption ld ';;
  8460. *)
  8461. lt_prog_compiler_wl='-Wl,';;
  8462. esac
  8463. ;;
  8464. sunos4*)
  8465. lt_prog_compiler_wl='-Qoption ld '
  8466. lt_prog_compiler_pic='-PIC'
  8467. lt_prog_compiler_static='-Bstatic'
  8468. ;;
  8469. sysv4 | sysv4.2uw2* | sysv4.3*)
  8470. lt_prog_compiler_wl='-Wl,'
  8471. lt_prog_compiler_pic='-KPIC'
  8472. lt_prog_compiler_static='-Bstatic'
  8473. ;;
  8474. sysv4*MP*)
  8475. if test -d /usr/nec ;then
  8476. lt_prog_compiler_pic='-Kconform_pic'
  8477. lt_prog_compiler_static='-Bstatic'
  8478. fi
  8479. ;;
  8480. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8481. lt_prog_compiler_wl='-Wl,'
  8482. lt_prog_compiler_pic='-KPIC'
  8483. lt_prog_compiler_static='-Bstatic'
  8484. ;;
  8485. unicos*)
  8486. lt_prog_compiler_wl='-Wl,'
  8487. lt_prog_compiler_can_build_shared=no
  8488. ;;
  8489. uts4*)
  8490. lt_prog_compiler_pic='-pic'
  8491. lt_prog_compiler_static='-Bstatic'
  8492. ;;
  8493. *)
  8494. lt_prog_compiler_can_build_shared=no
  8495. ;;
  8496. esac
  8497. fi
  8498. case $host_os in
  8499. # For platforms which do not support PIC, -DPIC is meaningless:
  8500. *djgpp*)
  8501. lt_prog_compiler_pic=
  8502. ;;
  8503. *)
  8504. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8505. ;;
  8506. esac
  8507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8508. $as_echo "$lt_prog_compiler_pic" >&6; }
  8509. #
  8510. # Check to make sure the PIC flag actually works.
  8511. #
  8512. if test -n "$lt_prog_compiler_pic"; then
  8513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8514. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8515. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8516. $as_echo_n "(cached) " >&6
  8517. else
  8518. lt_cv_prog_compiler_pic_works=no
  8519. ac_outfile=conftest.$ac_objext
  8520. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8521. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8522. # Insert the option either (1) after the last *FLAGS variable, or
  8523. # (2) before a word containing "conftest.", or (3) at the end.
  8524. # Note that $ac_compile itself does not contain backslashes and begins
  8525. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8526. # The option is referenced via a variable to avoid confusing sed.
  8527. lt_compile=`echo "$ac_compile" | $SED \
  8528. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8529. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8530. -e 's:$: $lt_compiler_flag:'`
  8531. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8532. (eval "$lt_compile" 2>conftest.err)
  8533. ac_status=$?
  8534. cat conftest.err >&5
  8535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8536. if (exit $ac_status) && test -s "$ac_outfile"; then
  8537. # The compiler can only warn and ignore the option if not recognized
  8538. # So say no if there are warnings other than the usual output.
  8539. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8540. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8541. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8542. lt_cv_prog_compiler_pic_works=yes
  8543. fi
  8544. fi
  8545. $RM conftest*
  8546. fi
  8547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8548. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8549. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8550. case $lt_prog_compiler_pic in
  8551. "" | " "*) ;;
  8552. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8553. esac
  8554. else
  8555. lt_prog_compiler_pic=
  8556. lt_prog_compiler_can_build_shared=no
  8557. fi
  8558. fi
  8559. #
  8560. # Check to make sure the static flag actually works.
  8561. #
  8562. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8564. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8565. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8566. $as_echo_n "(cached) " >&6
  8567. else
  8568. lt_cv_prog_compiler_static_works=no
  8569. save_LDFLAGS="$LDFLAGS"
  8570. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8571. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8572. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8573. # The linker can only warn and ignore the option if not recognized
  8574. # So say no if there are warnings
  8575. if test -s conftest.err; then
  8576. # Append any errors to the config.log.
  8577. cat conftest.err 1>&5
  8578. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8579. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8580. if diff conftest.exp conftest.er2 >/dev/null; then
  8581. lt_cv_prog_compiler_static_works=yes
  8582. fi
  8583. else
  8584. lt_cv_prog_compiler_static_works=yes
  8585. fi
  8586. fi
  8587. $RM -r conftest*
  8588. LDFLAGS="$save_LDFLAGS"
  8589. fi
  8590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8591. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8592. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8593. :
  8594. else
  8595. lt_prog_compiler_static=
  8596. fi
  8597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8598. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8599. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8600. $as_echo_n "(cached) " >&6
  8601. else
  8602. lt_cv_prog_compiler_c_o=no
  8603. $RM -r conftest 2>/dev/null
  8604. mkdir conftest
  8605. cd conftest
  8606. mkdir out
  8607. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8608. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8609. # Insert the option either (1) after the last *FLAGS variable, or
  8610. # (2) before a word containing "conftest.", or (3) at the end.
  8611. # Note that $ac_compile itself does not contain backslashes and begins
  8612. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8613. lt_compile=`echo "$ac_compile" | $SED \
  8614. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8615. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8616. -e 's:$: $lt_compiler_flag:'`
  8617. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8618. (eval "$lt_compile" 2>out/conftest.err)
  8619. ac_status=$?
  8620. cat out/conftest.err >&5
  8621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8622. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8623. then
  8624. # The compiler can only warn and ignore the option if not recognized
  8625. # So say no if there are warnings
  8626. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8627. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8628. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8629. lt_cv_prog_compiler_c_o=yes
  8630. fi
  8631. fi
  8632. chmod u+w . 2>&5
  8633. $RM conftest*
  8634. # SGI C++ compiler will create directory out/ii_files/ for
  8635. # template instantiation
  8636. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8637. $RM out/* && rmdir out
  8638. cd ..
  8639. $RM -r conftest
  8640. $RM conftest*
  8641. fi
  8642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8643. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8645. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8646. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8647. $as_echo_n "(cached) " >&6
  8648. else
  8649. lt_cv_prog_compiler_c_o=no
  8650. $RM -r conftest 2>/dev/null
  8651. mkdir conftest
  8652. cd conftest
  8653. mkdir out
  8654. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8655. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8656. # Insert the option either (1) after the last *FLAGS variable, or
  8657. # (2) before a word containing "conftest.", or (3) at the end.
  8658. # Note that $ac_compile itself does not contain backslashes and begins
  8659. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8660. lt_compile=`echo "$ac_compile" | $SED \
  8661. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8662. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8663. -e 's:$: $lt_compiler_flag:'`
  8664. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8665. (eval "$lt_compile" 2>out/conftest.err)
  8666. ac_status=$?
  8667. cat out/conftest.err >&5
  8668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8669. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8670. then
  8671. # The compiler can only warn and ignore the option if not recognized
  8672. # So say no if there are warnings
  8673. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8674. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8675. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8676. lt_cv_prog_compiler_c_o=yes
  8677. fi
  8678. fi
  8679. chmod u+w . 2>&5
  8680. $RM conftest*
  8681. # SGI C++ compiler will create directory out/ii_files/ for
  8682. # template instantiation
  8683. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8684. $RM out/* && rmdir out
  8685. cd ..
  8686. $RM -r conftest
  8687. $RM conftest*
  8688. fi
  8689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8690. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8691. hard_links="nottested"
  8692. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8693. # do not overwrite the value of need_locks provided by the user
  8694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8695. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8696. hard_links=yes
  8697. $RM conftest*
  8698. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8699. touch conftest.a
  8700. ln conftest.a conftest.b 2>&5 || hard_links=no
  8701. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8703. $as_echo "$hard_links" >&6; }
  8704. if test "$hard_links" = no; then
  8705. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8706. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8707. need_locks=warn
  8708. fi
  8709. else
  8710. need_locks=no
  8711. fi
  8712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8713. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8714. runpath_var=
  8715. allow_undefined_flag=
  8716. always_export_symbols=no
  8717. archive_cmds=
  8718. archive_expsym_cmds=
  8719. compiler_needs_object=no
  8720. enable_shared_with_static_runtimes=no
  8721. export_dynamic_flag_spec=
  8722. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8723. hardcode_automatic=no
  8724. hardcode_direct=no
  8725. hardcode_direct_absolute=no
  8726. hardcode_libdir_flag_spec=
  8727. hardcode_libdir_flag_spec_ld=
  8728. hardcode_libdir_separator=
  8729. hardcode_minus_L=no
  8730. hardcode_shlibpath_var=unsupported
  8731. inherit_rpath=no
  8732. link_all_deplibs=unknown
  8733. module_cmds=
  8734. module_expsym_cmds=
  8735. old_archive_from_new_cmds=
  8736. old_archive_from_expsyms_cmds=
  8737. thread_safe_flag_spec=
  8738. whole_archive_flag_spec=
  8739. # include_expsyms should be a list of space-separated symbols to be *always*
  8740. # included in the symbol list
  8741. include_expsyms=
  8742. # exclude_expsyms can be an extended regexp of symbols to exclude
  8743. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8744. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8745. # as well as any symbol that contains `d'.
  8746. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8747. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8748. # platforms (ab)use it in PIC code, but their linkers get confused if
  8749. # the symbol is explicitly referenced. Since portable code cannot
  8750. # rely on this symbol name, it's probably fine to never include it in
  8751. # preloaded symbol tables.
  8752. # Exclude shared library initialization/finalization symbols.
  8753. extract_expsyms_cmds=
  8754. case $host_os in
  8755. cygwin* | mingw* | pw32* | cegcc*)
  8756. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8757. # When not using gcc, we currently assume that we are using
  8758. # Microsoft Visual C++.
  8759. if test "$GCC" != yes; then
  8760. with_gnu_ld=no
  8761. fi
  8762. ;;
  8763. interix*)
  8764. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8765. with_gnu_ld=yes
  8766. ;;
  8767. openbsd*)
  8768. with_gnu_ld=no
  8769. ;;
  8770. esac
  8771. ld_shlibs=yes
  8772. # On some targets, GNU ld is compatible enough with the native linker
  8773. # that we're better off using the native interface for both.
  8774. lt_use_gnu_ld_interface=no
  8775. if test "$with_gnu_ld" = yes; then
  8776. case $host_os in
  8777. aix*)
  8778. # The AIX port of GNU ld has always aspired to compatibility
  8779. # with the native linker. However, as the warning in the GNU ld
  8780. # block says, versions before 2.19.5* couldn't really create working
  8781. # shared libraries, regardless of the interface used.
  8782. case `$LD -v 2>&1` in
  8783. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8784. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8785. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8786. *)
  8787. lt_use_gnu_ld_interface=yes
  8788. ;;
  8789. esac
  8790. ;;
  8791. *)
  8792. lt_use_gnu_ld_interface=yes
  8793. ;;
  8794. esac
  8795. fi
  8796. if test "$lt_use_gnu_ld_interface" = yes; then
  8797. # If archive_cmds runs LD, not CC, wlarc should be empty
  8798. wlarc='${wl}'
  8799. # Set some defaults for GNU ld with shared library support. These
  8800. # are reset later if shared libraries are not supported. Putting them
  8801. # here allows them to be overridden if necessary.
  8802. runpath_var=LD_RUN_PATH
  8803. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8804. export_dynamic_flag_spec='${wl}--export-dynamic'
  8805. # ancient GNU ld didn't support --whole-archive et. al.
  8806. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8807. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8808. else
  8809. whole_archive_flag_spec=
  8810. fi
  8811. supports_anon_versioning=no
  8812. case `$LD -v 2>&1` in
  8813. *GNU\ gold*) supports_anon_versioning=yes ;;
  8814. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8815. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8816. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8817. *\ 2.11.*) ;; # other 2.11 versions
  8818. *) supports_anon_versioning=yes ;;
  8819. esac
  8820. # See if GNU ld supports shared libraries.
  8821. case $host_os in
  8822. aix[3-9]*)
  8823. # On AIX/PPC, the GNU linker is very broken
  8824. if test "$host_cpu" != ia64; then
  8825. ld_shlibs=no
  8826. cat <<_LT_EOF 1>&2
  8827. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8828. *** to be unable to reliably create shared libraries on AIX.
  8829. *** Therefore, libtool is disabling shared libraries support. If you
  8830. *** really care for shared libraries, you may want to install binutils
  8831. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8832. *** You will then need to restart the configuration process.
  8833. _LT_EOF
  8834. fi
  8835. ;;
  8836. amigaos*)
  8837. case $host_cpu in
  8838. powerpc)
  8839. # see comment about AmigaOS4 .so support
  8840. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8841. archive_expsym_cmds=''
  8842. ;;
  8843. m68k)
  8844. 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)'
  8845. hardcode_libdir_flag_spec='-L$libdir'
  8846. hardcode_minus_L=yes
  8847. ;;
  8848. esac
  8849. ;;
  8850. beos*)
  8851. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8852. allow_undefined_flag=unsupported
  8853. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8854. # support --undefined. This deserves some investigation. FIXME
  8855. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8856. else
  8857. ld_shlibs=no
  8858. fi
  8859. ;;
  8860. cygwin* | mingw* | pw32* | cegcc*)
  8861. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8862. # as there is no search path for DLLs.
  8863. hardcode_libdir_flag_spec='-L$libdir'
  8864. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8865. allow_undefined_flag=unsupported
  8866. always_export_symbols=no
  8867. enable_shared_with_static_runtimes=yes
  8868. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8869. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8870. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8871. # If the export-symbols file already is a .def file (1st line
  8872. # is EXPORTS), use it as is; otherwise, prepend...
  8873. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8874. cp $export_symbols $output_objdir/$soname.def;
  8875. else
  8876. echo EXPORTS > $output_objdir/$soname.def;
  8877. cat $export_symbols >> $output_objdir/$soname.def;
  8878. fi~
  8879. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8880. else
  8881. ld_shlibs=no
  8882. fi
  8883. ;;
  8884. haiku*)
  8885. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8886. link_all_deplibs=yes
  8887. ;;
  8888. interix[3-9]*)
  8889. hardcode_direct=no
  8890. hardcode_shlibpath_var=no
  8891. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8892. export_dynamic_flag_spec='${wl}-E'
  8893. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8894. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8895. # default) and relocated if they conflict, which is a slow very memory
  8896. # consuming and fragmenting process. To avoid this, we pick a random,
  8897. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8898. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8899. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8900. 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'
  8901. ;;
  8902. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  8903. tmp_diet=no
  8904. if test "$host_os" = linux-dietlibc; then
  8905. case $cc_basename in
  8906. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8907. esac
  8908. fi
  8909. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8910. && test "$tmp_diet" = no
  8911. then
  8912. tmp_addflag=' $pic_flag'
  8913. tmp_sharedflag='-shared'
  8914. case $cc_basename,$host_cpu in
  8915. pgcc*) # Portland Group C compiler
  8916. 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'
  8917. tmp_addflag=' $pic_flag'
  8918. ;;
  8919. pgf77* | pgf90* | pgf95* | pgfortran*)
  8920. # Portland Group f77 and f90 compilers
  8921. 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'
  8922. tmp_addflag=' $pic_flag -Mnomain' ;;
  8923. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8924. tmp_addflag=' -i_dynamic' ;;
  8925. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8926. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8927. ifc* | ifort*) # Intel Fortran compiler
  8928. tmp_addflag=' -nofor_main' ;;
  8929. lf95*) # Lahey Fortran 8.1
  8930. whole_archive_flag_spec=
  8931. tmp_sharedflag='--shared' ;;
  8932. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8933. tmp_sharedflag='-qmkshrobj'
  8934. tmp_addflag= ;;
  8935. nvcc*) # Cuda Compiler Driver 2.2
  8936. 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'
  8937. compiler_needs_object=yes
  8938. ;;
  8939. esac
  8940. case `$CC -V 2>&1 | sed 5q` in
  8941. *Sun\ C*) # Sun C 5.9
  8942. 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'
  8943. compiler_needs_object=yes
  8944. tmp_sharedflag='-G' ;;
  8945. *Sun\ F*) # Sun Fortran 8.3
  8946. tmp_sharedflag='-G' ;;
  8947. esac
  8948. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8949. if test "x$supports_anon_versioning" = xyes; then
  8950. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8951. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8952. echo "local: *; };" >> $output_objdir/$libname.ver~
  8953. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8954. fi
  8955. case $cc_basename in
  8956. xlf* | bgf* | bgxlf* | mpixlf*)
  8957. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8958. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8959. hardcode_libdir_flag_spec=
  8960. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8961. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8962. if test "x$supports_anon_versioning" = xyes; then
  8963. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8964. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8965. echo "local: *; };" >> $output_objdir/$libname.ver~
  8966. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8967. fi
  8968. ;;
  8969. esac
  8970. else
  8971. ld_shlibs=no
  8972. fi
  8973. ;;
  8974. netbsd*)
  8975. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8976. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8977. wlarc=
  8978. else
  8979. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8980. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8981. fi
  8982. ;;
  8983. solaris*)
  8984. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8985. ld_shlibs=no
  8986. cat <<_LT_EOF 1>&2
  8987. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8988. *** create shared libraries on Solaris systems. Therefore, libtool
  8989. *** is disabling shared libraries support. We urge you to upgrade GNU
  8990. *** binutils to release 2.9.1 or newer. Another option is to modify
  8991. *** your PATH or compiler configuration so that the native linker is
  8992. *** used, and then restart.
  8993. _LT_EOF
  8994. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8995. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8996. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8997. else
  8998. ld_shlibs=no
  8999. fi
  9000. ;;
  9001. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  9002. case `$LD -v 2>&1` in
  9003. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  9004. ld_shlibs=no
  9005. cat <<_LT_EOF 1>&2
  9006. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  9007. *** reliably create shared libraries on SCO systems. Therefore, libtool
  9008. *** is disabling shared libraries support. We urge you to upgrade GNU
  9009. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  9010. *** your PATH or compiler configuration so that the native linker is
  9011. *** used, and then restart.
  9012. _LT_EOF
  9013. ;;
  9014. *)
  9015. # For security reasons, it is highly recommended that you always
  9016. # use absolute paths for naming shared libraries, and exclude the
  9017. # DT_RUNPATH tag from executables and libraries. But doing so
  9018. # requires that you compile everything twice, which is a pain.
  9019. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9020. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9021. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9022. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9023. else
  9024. ld_shlibs=no
  9025. fi
  9026. ;;
  9027. esac
  9028. ;;
  9029. sunos4*)
  9030. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9031. wlarc=
  9032. hardcode_direct=yes
  9033. hardcode_shlibpath_var=no
  9034. ;;
  9035. *)
  9036. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9037. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9038. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9039. else
  9040. ld_shlibs=no
  9041. fi
  9042. ;;
  9043. esac
  9044. if test "$ld_shlibs" = no; then
  9045. runpath_var=
  9046. hardcode_libdir_flag_spec=
  9047. export_dynamic_flag_spec=
  9048. whole_archive_flag_spec=
  9049. fi
  9050. else
  9051. # PORTME fill in a description of your system's linker (not GNU ld)
  9052. case $host_os in
  9053. aix3*)
  9054. allow_undefined_flag=unsupported
  9055. always_export_symbols=yes
  9056. 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'
  9057. # Note: this linker hardcodes the directories in LIBPATH if there
  9058. # are no directories specified by -L.
  9059. hardcode_minus_L=yes
  9060. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  9061. # Neither direct hardcoding nor static linking is supported with a
  9062. # broken collect2.
  9063. hardcode_direct=unsupported
  9064. fi
  9065. ;;
  9066. aix[4-9]*)
  9067. if test "$host_cpu" = ia64; then
  9068. # On IA64, the linker does run time linking by default, so we don't
  9069. # have to do anything special.
  9070. aix_use_runtimelinking=no
  9071. exp_sym_flag='-Bexport'
  9072. no_entry_flag=""
  9073. else
  9074. # If we're using GNU nm, then we don't want the "-C" option.
  9075. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9076. # Also, AIX nm treats weak defined symbols like other global
  9077. # defined symbols, whereas GNU nm marks them as "W".
  9078. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9079. 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'
  9080. else
  9081. 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'
  9082. fi
  9083. aix_use_runtimelinking=no
  9084. # Test if we are trying to use run time linking or normal
  9085. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9086. # need to do runtime linking.
  9087. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9088. for ld_flag in $LDFLAGS; do
  9089. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9090. aix_use_runtimelinking=yes
  9091. break
  9092. fi
  9093. done
  9094. ;;
  9095. esac
  9096. exp_sym_flag='-bexport'
  9097. no_entry_flag='-bnoentry'
  9098. fi
  9099. # When large executables or shared objects are built, AIX ld can
  9100. # have problems creating the table of contents. If linking a library
  9101. # or program results in "error TOC overflow" add -mminimal-toc to
  9102. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9103. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9104. archive_cmds=''
  9105. hardcode_direct=yes
  9106. hardcode_direct_absolute=yes
  9107. hardcode_libdir_separator=':'
  9108. link_all_deplibs=yes
  9109. file_list_spec='${wl}-f,'
  9110. if test "$GCC" = yes; then
  9111. case $host_os in aix4.[012]|aix4.[012].*)
  9112. # We only want to do this on AIX 4.2 and lower, the check
  9113. # below for broken collect2 doesn't work under 4.3+
  9114. collect2name=`${CC} -print-prog-name=collect2`
  9115. if test -f "$collect2name" &&
  9116. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9117. then
  9118. # We have reworked collect2
  9119. :
  9120. else
  9121. # We have old collect2
  9122. hardcode_direct=unsupported
  9123. # It fails to find uninstalled libraries when the uninstalled
  9124. # path is not listed in the libpath. Setting hardcode_minus_L
  9125. # to unsupported forces relinking
  9126. hardcode_minus_L=yes
  9127. hardcode_libdir_flag_spec='-L$libdir'
  9128. hardcode_libdir_separator=
  9129. fi
  9130. ;;
  9131. esac
  9132. shared_flag='-shared'
  9133. if test "$aix_use_runtimelinking" = yes; then
  9134. shared_flag="$shared_flag "'${wl}-G'
  9135. fi
  9136. else
  9137. # not using gcc
  9138. if test "$host_cpu" = ia64; then
  9139. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9140. # chokes on -Wl,-G. The following line is correct:
  9141. shared_flag='-G'
  9142. else
  9143. if test "$aix_use_runtimelinking" = yes; then
  9144. shared_flag='${wl}-G'
  9145. else
  9146. shared_flag='${wl}-bM:SRE'
  9147. fi
  9148. fi
  9149. fi
  9150. export_dynamic_flag_spec='${wl}-bexpall'
  9151. # It seems that -bexpall does not export symbols beginning with
  9152. # underscore (_), so it is better to generate a list of symbols to export.
  9153. always_export_symbols=yes
  9154. if test "$aix_use_runtimelinking" = yes; then
  9155. # Warning - without using the other runtime loading flags (-brtl),
  9156. # -berok will link without error, but may produce a broken library.
  9157. allow_undefined_flag='-berok'
  9158. # Determine the default libpath from the value encoded in an
  9159. # empty executable.
  9160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9161. /* end confdefs.h. */
  9162. int
  9163. main ()
  9164. {
  9165. ;
  9166. return 0;
  9167. }
  9168. _ACEOF
  9169. if ac_fn_c_try_link "$LINENO"; then :
  9170. lt_aix_libpath_sed='
  9171. /Import File Strings/,/^$/ {
  9172. /^0/ {
  9173. s/^0 *\(.*\)$/\1/
  9174. p
  9175. }
  9176. }'
  9177. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9178. # Check for a 64-bit object if we didn't find anything.
  9179. if test -z "$aix_libpath"; then
  9180. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9181. fi
  9182. fi
  9183. rm -f core conftest.err conftest.$ac_objext \
  9184. conftest$ac_exeext conftest.$ac_ext
  9185. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9186. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9187. 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"
  9188. else
  9189. if test "$host_cpu" = ia64; then
  9190. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9191. allow_undefined_flag="-z nodefs"
  9192. 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"
  9193. else
  9194. # Determine the default libpath from the value encoded in an
  9195. # empty executable.
  9196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9197. /* end confdefs.h. */
  9198. int
  9199. main ()
  9200. {
  9201. ;
  9202. return 0;
  9203. }
  9204. _ACEOF
  9205. if ac_fn_c_try_link "$LINENO"; then :
  9206. lt_aix_libpath_sed='
  9207. /Import File Strings/,/^$/ {
  9208. /^0/ {
  9209. s/^0 *\(.*\)$/\1/
  9210. p
  9211. }
  9212. }'
  9213. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9214. # Check for a 64-bit object if we didn't find anything.
  9215. if test -z "$aix_libpath"; then
  9216. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9217. fi
  9218. fi
  9219. rm -f core conftest.err conftest.$ac_objext \
  9220. conftest$ac_exeext conftest.$ac_ext
  9221. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9222. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9223. # Warning - without using the other run time loading flags,
  9224. # -berok will link without error, but may produce a broken library.
  9225. no_undefined_flag=' ${wl}-bernotok'
  9226. allow_undefined_flag=' ${wl}-berok'
  9227. if test "$with_gnu_ld" = yes; then
  9228. # We only use this code for GNU lds that support --whole-archive.
  9229. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9230. else
  9231. # Exported symbols can be pulled into shared objects from archives
  9232. whole_archive_flag_spec='$convenience'
  9233. fi
  9234. archive_cmds_need_lc=yes
  9235. # This is similar to how AIX traditionally builds its shared libraries.
  9236. 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'
  9237. fi
  9238. fi
  9239. ;;
  9240. amigaos*)
  9241. case $host_cpu in
  9242. powerpc)
  9243. # see comment about AmigaOS4 .so support
  9244. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9245. archive_expsym_cmds=''
  9246. ;;
  9247. m68k)
  9248. 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)'
  9249. hardcode_libdir_flag_spec='-L$libdir'
  9250. hardcode_minus_L=yes
  9251. ;;
  9252. esac
  9253. ;;
  9254. bsdi[45]*)
  9255. export_dynamic_flag_spec=-rdynamic
  9256. ;;
  9257. cygwin* | mingw* | pw32* | cegcc*)
  9258. # When not using gcc, we currently assume that we are using
  9259. # Microsoft Visual C++.
  9260. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9261. # no search path for DLLs.
  9262. hardcode_libdir_flag_spec=' '
  9263. allow_undefined_flag=unsupported
  9264. # Tell ltmain to make .lib files, not .a files.
  9265. libext=lib
  9266. # Tell ltmain to make .dll files, not .so files.
  9267. shrext_cmds=".dll"
  9268. # FIXME: Setting linknames here is a bad hack.
  9269. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9270. # The linker will automatically build a .lib file if we build a DLL.
  9271. old_archive_from_new_cmds='true'
  9272. # FIXME: Should let the user specify the lib program.
  9273. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9274. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9275. enable_shared_with_static_runtimes=yes
  9276. ;;
  9277. darwin* | rhapsody*)
  9278. archive_cmds_need_lc=no
  9279. hardcode_direct=no
  9280. hardcode_automatic=yes
  9281. hardcode_shlibpath_var=unsupported
  9282. if test "$lt_cv_ld_force_load" = "yes"; then
  9283. 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\"`'
  9284. else
  9285. whole_archive_flag_spec=''
  9286. fi
  9287. link_all_deplibs=yes
  9288. allow_undefined_flag="$_lt_dar_allow_undefined"
  9289. case $cc_basename in
  9290. ifort*) _lt_dar_can_shared=yes ;;
  9291. *) _lt_dar_can_shared=$GCC ;;
  9292. esac
  9293. if test "$_lt_dar_can_shared" = "yes"; then
  9294. output_verbose_link_cmd=func_echo_all
  9295. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9296. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9297. 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}"
  9298. 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}"
  9299. else
  9300. ld_shlibs=no
  9301. fi
  9302. ;;
  9303. dgux*)
  9304. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9305. hardcode_libdir_flag_spec='-L$libdir'
  9306. hardcode_shlibpath_var=no
  9307. ;;
  9308. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9309. # support. Future versions do this automatically, but an explicit c++rt0.o
  9310. # does not break anything, and helps significantly (at the cost of a little
  9311. # extra space).
  9312. freebsd2.2*)
  9313. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9314. hardcode_libdir_flag_spec='-R$libdir'
  9315. hardcode_direct=yes
  9316. hardcode_shlibpath_var=no
  9317. ;;
  9318. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9319. freebsd2.*)
  9320. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9321. hardcode_direct=yes
  9322. hardcode_minus_L=yes
  9323. hardcode_shlibpath_var=no
  9324. ;;
  9325. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9326. freebsd* | dragonfly*)
  9327. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9328. hardcode_libdir_flag_spec='-R$libdir'
  9329. hardcode_direct=yes
  9330. hardcode_shlibpath_var=no
  9331. ;;
  9332. hpux9*)
  9333. if test "$GCC" = yes; then
  9334. 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'
  9335. else
  9336. 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'
  9337. fi
  9338. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9339. hardcode_libdir_separator=:
  9340. hardcode_direct=yes
  9341. # hardcode_minus_L: Not really in the search PATH,
  9342. # but as the default location of the library.
  9343. hardcode_minus_L=yes
  9344. export_dynamic_flag_spec='${wl}-E'
  9345. ;;
  9346. hpux10*)
  9347. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9348. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9349. else
  9350. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9351. fi
  9352. if test "$with_gnu_ld" = no; then
  9353. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9354. hardcode_libdir_flag_spec_ld='+b $libdir'
  9355. hardcode_libdir_separator=:
  9356. hardcode_direct=yes
  9357. hardcode_direct_absolute=yes
  9358. export_dynamic_flag_spec='${wl}-E'
  9359. # hardcode_minus_L: Not really in the search PATH,
  9360. # but as the default location of the library.
  9361. hardcode_minus_L=yes
  9362. fi
  9363. ;;
  9364. hpux11*)
  9365. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9366. case $host_cpu in
  9367. hppa*64*)
  9368. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9369. ;;
  9370. ia64*)
  9371. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9372. ;;
  9373. *)
  9374. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9375. ;;
  9376. esac
  9377. else
  9378. case $host_cpu in
  9379. hppa*64*)
  9380. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9381. ;;
  9382. ia64*)
  9383. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9384. ;;
  9385. *)
  9386. # Older versions of the 11.00 compiler do not understand -b yet
  9387. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9389. $as_echo_n "checking if $CC understands -b... " >&6; }
  9390. if ${lt_cv_prog_compiler__b+:} false; then :
  9391. $as_echo_n "(cached) " >&6
  9392. else
  9393. lt_cv_prog_compiler__b=no
  9394. save_LDFLAGS="$LDFLAGS"
  9395. LDFLAGS="$LDFLAGS -b"
  9396. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9397. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9398. # The linker can only warn and ignore the option if not recognized
  9399. # So say no if there are warnings
  9400. if test -s conftest.err; then
  9401. # Append any errors to the config.log.
  9402. cat conftest.err 1>&5
  9403. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9404. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9405. if diff conftest.exp conftest.er2 >/dev/null; then
  9406. lt_cv_prog_compiler__b=yes
  9407. fi
  9408. else
  9409. lt_cv_prog_compiler__b=yes
  9410. fi
  9411. fi
  9412. $RM -r conftest*
  9413. LDFLAGS="$save_LDFLAGS"
  9414. fi
  9415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9416. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9417. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9418. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9419. else
  9420. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9421. fi
  9422. ;;
  9423. esac
  9424. fi
  9425. if test "$with_gnu_ld" = no; then
  9426. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9427. hardcode_libdir_separator=:
  9428. case $host_cpu in
  9429. hppa*64*|ia64*)
  9430. hardcode_direct=no
  9431. hardcode_shlibpath_var=no
  9432. ;;
  9433. *)
  9434. hardcode_direct=yes
  9435. hardcode_direct_absolute=yes
  9436. export_dynamic_flag_spec='${wl}-E'
  9437. # hardcode_minus_L: Not really in the search PATH,
  9438. # but as the default location of the library.
  9439. hardcode_minus_L=yes
  9440. ;;
  9441. esac
  9442. fi
  9443. ;;
  9444. irix5* | irix6* | nonstopux*)
  9445. if test "$GCC" = yes; then
  9446. 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'
  9447. # Try to use the -exported_symbol ld option, if it does not
  9448. # work, assume that -exports_file does not work either and
  9449. # implicitly export all symbols.
  9450. save_LDFLAGS="$LDFLAGS"
  9451. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9453. /* end confdefs.h. */
  9454. int foo(void) {}
  9455. _ACEOF
  9456. if ac_fn_c_try_link "$LINENO"; then :
  9457. 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'
  9458. fi
  9459. rm -f core conftest.err conftest.$ac_objext \
  9460. conftest$ac_exeext conftest.$ac_ext
  9461. LDFLAGS="$save_LDFLAGS"
  9462. else
  9463. 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'
  9464. 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'
  9465. fi
  9466. archive_cmds_need_lc='no'
  9467. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9468. hardcode_libdir_separator=:
  9469. inherit_rpath=yes
  9470. link_all_deplibs=yes
  9471. ;;
  9472. netbsd*)
  9473. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9474. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9475. else
  9476. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9477. fi
  9478. hardcode_libdir_flag_spec='-R$libdir'
  9479. hardcode_direct=yes
  9480. hardcode_shlibpath_var=no
  9481. ;;
  9482. newsos6)
  9483. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9484. hardcode_direct=yes
  9485. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9486. hardcode_libdir_separator=:
  9487. hardcode_shlibpath_var=no
  9488. ;;
  9489. *nto* | *qnx*)
  9490. ;;
  9491. openbsd*)
  9492. if test -f /usr/libexec/ld.so; then
  9493. hardcode_direct=yes
  9494. hardcode_shlibpath_var=no
  9495. hardcode_direct_absolute=yes
  9496. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9497. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9498. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9499. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9500. export_dynamic_flag_spec='${wl}-E'
  9501. else
  9502. case $host_os in
  9503. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9504. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9505. hardcode_libdir_flag_spec='-R$libdir'
  9506. ;;
  9507. *)
  9508. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9509. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9510. ;;
  9511. esac
  9512. fi
  9513. else
  9514. ld_shlibs=no
  9515. fi
  9516. ;;
  9517. os2*)
  9518. hardcode_libdir_flag_spec='-L$libdir'
  9519. hardcode_minus_L=yes
  9520. allow_undefined_flag=unsupported
  9521. 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'
  9522. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9523. ;;
  9524. osf3*)
  9525. if test "$GCC" = yes; then
  9526. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9527. 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'
  9528. else
  9529. allow_undefined_flag=' -expect_unresolved \*'
  9530. 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'
  9531. fi
  9532. archive_cmds_need_lc='no'
  9533. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9534. hardcode_libdir_separator=:
  9535. ;;
  9536. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9537. if test "$GCC" = yes; then
  9538. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9539. 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'
  9540. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9541. else
  9542. allow_undefined_flag=' -expect_unresolved \*'
  9543. 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'
  9544. 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~
  9545. $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'
  9546. # Both c and cxx compiler support -rpath directly
  9547. hardcode_libdir_flag_spec='-rpath $libdir'
  9548. fi
  9549. archive_cmds_need_lc='no'
  9550. hardcode_libdir_separator=:
  9551. ;;
  9552. solaris*)
  9553. no_undefined_flag=' -z defs'
  9554. if test "$GCC" = yes; then
  9555. wlarc='${wl}'
  9556. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9557. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9558. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9559. else
  9560. case `$CC -V 2>&1` in
  9561. *"Compilers 5.0"*)
  9562. wlarc=''
  9563. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9564. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9565. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9566. ;;
  9567. *)
  9568. wlarc='${wl}'
  9569. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9570. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9571. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9572. ;;
  9573. esac
  9574. fi
  9575. hardcode_libdir_flag_spec='-R$libdir'
  9576. hardcode_shlibpath_var=no
  9577. case $host_os in
  9578. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9579. *)
  9580. # The compiler driver will combine and reorder linker options,
  9581. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9582. # but is careful enough not to reorder.
  9583. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9584. if test "$GCC" = yes; then
  9585. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9586. else
  9587. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9588. fi
  9589. ;;
  9590. esac
  9591. link_all_deplibs=yes
  9592. ;;
  9593. sunos4*)
  9594. if test "x$host_vendor" = xsequent; then
  9595. # Use $CC to link under sequent, because it throws in some extra .o
  9596. # files that make .init and .fini sections work.
  9597. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9598. else
  9599. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9600. fi
  9601. hardcode_libdir_flag_spec='-L$libdir'
  9602. hardcode_direct=yes
  9603. hardcode_minus_L=yes
  9604. hardcode_shlibpath_var=no
  9605. ;;
  9606. sysv4)
  9607. case $host_vendor in
  9608. sni)
  9609. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9610. hardcode_direct=yes # is this really true???
  9611. ;;
  9612. siemens)
  9613. ## LD is ld it makes a PLAMLIB
  9614. ## CC just makes a GrossModule.
  9615. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9616. reload_cmds='$CC -r -o $output$reload_objs'
  9617. hardcode_direct=no
  9618. ;;
  9619. motorola)
  9620. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9621. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9622. ;;
  9623. esac
  9624. runpath_var='LD_RUN_PATH'
  9625. hardcode_shlibpath_var=no
  9626. ;;
  9627. sysv4.3*)
  9628. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9629. hardcode_shlibpath_var=no
  9630. export_dynamic_flag_spec='-Bexport'
  9631. ;;
  9632. sysv4*MP*)
  9633. if test -d /usr/nec; then
  9634. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9635. hardcode_shlibpath_var=no
  9636. runpath_var=LD_RUN_PATH
  9637. hardcode_runpath_var=yes
  9638. ld_shlibs=yes
  9639. fi
  9640. ;;
  9641. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9642. no_undefined_flag='${wl}-z,text'
  9643. archive_cmds_need_lc=no
  9644. hardcode_shlibpath_var=no
  9645. runpath_var='LD_RUN_PATH'
  9646. if test "$GCC" = yes; then
  9647. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9648. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9649. else
  9650. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9651. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9652. fi
  9653. ;;
  9654. sysv5* | sco3.2v5* | sco5v6*)
  9655. # Note: We can NOT use -z defs as we might desire, because we do not
  9656. # link with -lc, and that would cause any symbols used from libc to
  9657. # always be unresolved, which means just about no library would
  9658. # ever link correctly. If we're not using GNU ld we use -z text
  9659. # though, which does catch some bad symbols but isn't as heavy-handed
  9660. # as -z defs.
  9661. no_undefined_flag='${wl}-z,text'
  9662. allow_undefined_flag='${wl}-z,nodefs'
  9663. archive_cmds_need_lc=no
  9664. hardcode_shlibpath_var=no
  9665. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9666. hardcode_libdir_separator=':'
  9667. link_all_deplibs=yes
  9668. export_dynamic_flag_spec='${wl}-Bexport'
  9669. runpath_var='LD_RUN_PATH'
  9670. if test "$GCC" = yes; then
  9671. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9672. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9673. else
  9674. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9675. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9676. fi
  9677. ;;
  9678. uts4*)
  9679. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9680. hardcode_libdir_flag_spec='-L$libdir'
  9681. hardcode_shlibpath_var=no
  9682. ;;
  9683. *)
  9684. ld_shlibs=no
  9685. ;;
  9686. esac
  9687. if test x$host_vendor = xsni; then
  9688. case $host in
  9689. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9690. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9691. ;;
  9692. esac
  9693. fi
  9694. fi
  9695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9696. $as_echo "$ld_shlibs" >&6; }
  9697. test "$ld_shlibs" = no && can_build_shared=no
  9698. with_gnu_ld=$with_gnu_ld
  9699. #
  9700. # Do we need to explicitly link libc?
  9701. #
  9702. case "x$archive_cmds_need_lc" in
  9703. x|xyes)
  9704. # Assume -lc should be added
  9705. archive_cmds_need_lc=yes
  9706. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9707. case $archive_cmds in
  9708. *'~'*)
  9709. # FIXME: we may have to deal with multi-command sequences.
  9710. ;;
  9711. '$CC '*)
  9712. # Test whether the compiler implicitly links with -lc since on some
  9713. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9714. # to ld, don't add -lc before -lgcc.
  9715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9716. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9717. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9718. $as_echo_n "(cached) " >&6
  9719. else
  9720. $RM conftest*
  9721. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9722. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9723. (eval $ac_compile) 2>&5
  9724. ac_status=$?
  9725. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9726. test $ac_status = 0; } 2>conftest.err; then
  9727. soname=conftest
  9728. lib=conftest
  9729. libobjs=conftest.$ac_objext
  9730. deplibs=
  9731. wl=$lt_prog_compiler_wl
  9732. pic_flag=$lt_prog_compiler_pic
  9733. compiler_flags=-v
  9734. linker_flags=-v
  9735. verstring=
  9736. output_objdir=.
  9737. libname=conftest
  9738. lt_save_allow_undefined_flag=$allow_undefined_flag
  9739. allow_undefined_flag=
  9740. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9741. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9742. ac_status=$?
  9743. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9744. test $ac_status = 0; }
  9745. then
  9746. lt_cv_archive_cmds_need_lc=no
  9747. else
  9748. lt_cv_archive_cmds_need_lc=yes
  9749. fi
  9750. allow_undefined_flag=$lt_save_allow_undefined_flag
  9751. else
  9752. cat conftest.err 1>&5
  9753. fi
  9754. $RM conftest*
  9755. fi
  9756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9757. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9758. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9759. ;;
  9760. esac
  9761. fi
  9762. ;;
  9763. esac
  9764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9765. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9766. if test "$GCC" = yes; then
  9767. case $host_os in
  9768. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9769. *) lt_awk_arg="/^libraries:/" ;;
  9770. esac
  9771. case $host_os in
  9772. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9773. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9774. esac
  9775. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9776. case $lt_search_path_spec in
  9777. *\;*)
  9778. # if the path contains ";" then we assume it to be the separator
  9779. # otherwise default to the standard path separator (i.e. ":") - it is
  9780. # assumed that no part of a normal pathname contains ";" but that should
  9781. # okay in the real world where ";" in dirpaths is itself problematic.
  9782. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9783. ;;
  9784. *)
  9785. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9786. ;;
  9787. esac
  9788. # Ok, now we have the path, separated by spaces, we can step through it
  9789. # and add multilib dir if necessary.
  9790. lt_tmp_lt_search_path_spec=
  9791. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9792. for lt_sys_path in $lt_search_path_spec; do
  9793. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9794. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9795. else
  9796. test -d "$lt_sys_path" && \
  9797. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9798. fi
  9799. done
  9800. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9801. BEGIN {RS=" "; FS="/|\n";} {
  9802. lt_foo="";
  9803. lt_count=0;
  9804. for (lt_i = NF; lt_i > 0; lt_i--) {
  9805. if ($lt_i != "" && $lt_i != ".") {
  9806. if ($lt_i == "..") {
  9807. lt_count++;
  9808. } else {
  9809. if (lt_count == 0) {
  9810. lt_foo="/" $lt_i lt_foo;
  9811. } else {
  9812. lt_count--;
  9813. }
  9814. }
  9815. }
  9816. }
  9817. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9818. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9819. }'`
  9820. # AWK program above erroneously prepends '/' to C:/dos/paths
  9821. # for these hosts.
  9822. case $host_os in
  9823. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9824. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9825. esac
  9826. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9827. else
  9828. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9829. fi
  9830. library_names_spec=
  9831. libname_spec='lib$name'
  9832. soname_spec=
  9833. shrext_cmds=".so"
  9834. postinstall_cmds=
  9835. postuninstall_cmds=
  9836. finish_cmds=
  9837. finish_eval=
  9838. shlibpath_var=
  9839. shlibpath_overrides_runpath=unknown
  9840. version_type=none
  9841. dynamic_linker="$host_os ld.so"
  9842. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9843. need_lib_prefix=unknown
  9844. hardcode_into_libs=no
  9845. # when you set need_version to no, make sure it does not cause -set_version
  9846. # flags to be left without arguments
  9847. need_version=unknown
  9848. case $host_os in
  9849. aix3*)
  9850. version_type=linux
  9851. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9852. shlibpath_var=LIBPATH
  9853. # AIX 3 has no versioning support, so we append a major version to the name.
  9854. soname_spec='${libname}${release}${shared_ext}$major'
  9855. ;;
  9856. aix[4-9]*)
  9857. version_type=linux
  9858. need_lib_prefix=no
  9859. need_version=no
  9860. hardcode_into_libs=yes
  9861. if test "$host_cpu" = ia64; then
  9862. # AIX 5 supports IA64
  9863. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9864. shlibpath_var=LD_LIBRARY_PATH
  9865. else
  9866. # With GCC up to 2.95.x, collect2 would create an import file
  9867. # for dependence libraries. The import file would start with
  9868. # the line `#! .'. This would cause the generated library to
  9869. # depend on `.', always an invalid library. This was fixed in
  9870. # development snapshots of GCC prior to 3.0.
  9871. case $host_os in
  9872. aix4 | aix4.[01] | aix4.[01].*)
  9873. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9874. echo ' yes '
  9875. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9876. :
  9877. else
  9878. can_build_shared=no
  9879. fi
  9880. ;;
  9881. esac
  9882. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9883. # soname into executable. Probably we can add versioning support to
  9884. # collect2, so additional links can be useful in future.
  9885. if test "$aix_use_runtimelinking" = yes; then
  9886. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9887. # instead of lib<name>.a to let people know that these are not
  9888. # typical AIX shared libraries.
  9889. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9890. else
  9891. # We preserve .a as extension for shared libraries through AIX4.2
  9892. # and later when we are not doing run time linking.
  9893. library_names_spec='${libname}${release}.a $libname.a'
  9894. soname_spec='${libname}${release}${shared_ext}$major'
  9895. fi
  9896. shlibpath_var=LIBPATH
  9897. fi
  9898. ;;
  9899. amigaos*)
  9900. case $host_cpu in
  9901. powerpc)
  9902. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9903. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9905. ;;
  9906. m68k)
  9907. library_names_spec='$libname.ixlibrary $libname.a'
  9908. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9909. 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'
  9910. ;;
  9911. esac
  9912. ;;
  9913. beos*)
  9914. library_names_spec='${libname}${shared_ext}'
  9915. dynamic_linker="$host_os ld.so"
  9916. shlibpath_var=LIBRARY_PATH
  9917. ;;
  9918. bsdi[45]*)
  9919. version_type=linux
  9920. need_version=no
  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. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9924. shlibpath_var=LD_LIBRARY_PATH
  9925. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9926. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9927. # the default ld.so.conf also contains /usr/contrib/lib and
  9928. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9929. # libtool to hard-code these into programs
  9930. ;;
  9931. cygwin* | mingw* | pw32* | cegcc*)
  9932. version_type=windows
  9933. shrext_cmds=".dll"
  9934. need_version=no
  9935. need_lib_prefix=no
  9936. case $GCC,$host_os in
  9937. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9938. library_names_spec='$libname.dll.a'
  9939. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9940. postinstall_cmds='base_file=`basename \${file}`~
  9941. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9942. dldir=$destdir/`dirname \$dlpath`~
  9943. test -d \$dldir || mkdir -p \$dldir~
  9944. $install_prog $dir/$dlname \$dldir/$dlname~
  9945. chmod a+x \$dldir/$dlname~
  9946. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9947. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9948. fi'
  9949. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9950. dlpath=$dir/\$dldll~
  9951. $RM \$dlpath'
  9952. shlibpath_overrides_runpath=yes
  9953. case $host_os in
  9954. cygwin*)
  9955. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9956. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9957. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9958. ;;
  9959. mingw* | cegcc*)
  9960. # MinGW DLLs use traditional 'lib' prefix
  9961. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9962. ;;
  9963. pw32*)
  9964. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9965. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9966. ;;
  9967. esac
  9968. ;;
  9969. *)
  9970. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9971. ;;
  9972. esac
  9973. dynamic_linker='Win32 ld.exe'
  9974. # FIXME: first we should search . and the directory the executable is in
  9975. shlibpath_var=PATH
  9976. ;;
  9977. darwin* | rhapsody*)
  9978. dynamic_linker="$host_os dyld"
  9979. version_type=darwin
  9980. need_lib_prefix=no
  9981. need_version=no
  9982. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9983. soname_spec='${libname}${release}${major}$shared_ext'
  9984. shlibpath_overrides_runpath=yes
  9985. shlibpath_var=DYLD_LIBRARY_PATH
  9986. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9987. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9988. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9989. ;;
  9990. dgux*)
  9991. version_type=linux
  9992. need_lib_prefix=no
  9993. need_version=no
  9994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9995. soname_spec='${libname}${release}${shared_ext}$major'
  9996. shlibpath_var=LD_LIBRARY_PATH
  9997. ;;
  9998. freebsd* | dragonfly*)
  9999. # DragonFly does not have aout. When/if they implement a new
  10000. # versioning mechanism, adjust this.
  10001. if test -x /usr/bin/objformat; then
  10002. objformat=`/usr/bin/objformat`
  10003. else
  10004. case $host_os in
  10005. freebsd[23].*) objformat=aout ;;
  10006. *) objformat=elf ;;
  10007. esac
  10008. fi
  10009. version_type=freebsd-$objformat
  10010. case $version_type in
  10011. freebsd-elf*)
  10012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10013. need_version=no
  10014. need_lib_prefix=no
  10015. ;;
  10016. freebsd-*)
  10017. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10018. need_version=yes
  10019. ;;
  10020. esac
  10021. shlibpath_var=LD_LIBRARY_PATH
  10022. case $host_os in
  10023. freebsd2.*)
  10024. shlibpath_overrides_runpath=yes
  10025. ;;
  10026. freebsd3.[01]* | freebsdelf3.[01]*)
  10027. shlibpath_overrides_runpath=yes
  10028. hardcode_into_libs=yes
  10029. ;;
  10030. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10031. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10032. shlibpath_overrides_runpath=no
  10033. hardcode_into_libs=yes
  10034. ;;
  10035. *) # from 4.6 on, and DragonFly
  10036. shlibpath_overrides_runpath=yes
  10037. hardcode_into_libs=yes
  10038. ;;
  10039. esac
  10040. ;;
  10041. haiku*)
  10042. version_type=linux
  10043. need_lib_prefix=no
  10044. need_version=no
  10045. dynamic_linker="$host_os runtime_loader"
  10046. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10047. soname_spec='${libname}${release}${shared_ext}$major'
  10048. shlibpath_var=LIBRARY_PATH
  10049. shlibpath_overrides_runpath=yes
  10050. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  10051. hardcode_into_libs=yes
  10052. ;;
  10053. hpux9* | hpux10* | hpux11*)
  10054. # Give a soname corresponding to the major version so that dld.sl refuses to
  10055. # link against other versions.
  10056. version_type=sunos
  10057. need_lib_prefix=no
  10058. need_version=no
  10059. case $host_cpu in
  10060. ia64*)
  10061. shrext_cmds='.so'
  10062. hardcode_into_libs=yes
  10063. dynamic_linker="$host_os dld.so"
  10064. shlibpath_var=LD_LIBRARY_PATH
  10065. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10066. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10067. soname_spec='${libname}${release}${shared_ext}$major'
  10068. if test "X$HPUX_IA64_MODE" = X32; then
  10069. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10070. else
  10071. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10072. fi
  10073. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10074. ;;
  10075. hppa*64*)
  10076. shrext_cmds='.sl'
  10077. hardcode_into_libs=yes
  10078. dynamic_linker="$host_os dld.sl"
  10079. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10080. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10082. soname_spec='${libname}${release}${shared_ext}$major'
  10083. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10084. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10085. ;;
  10086. *)
  10087. shrext_cmds='.sl'
  10088. dynamic_linker="$host_os dld.sl"
  10089. shlibpath_var=SHLIB_PATH
  10090. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10092. soname_spec='${libname}${release}${shared_ext}$major'
  10093. ;;
  10094. esac
  10095. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10096. postinstall_cmds='chmod 555 $lib'
  10097. # or fails outright, so override atomically:
  10098. install_override_mode=555
  10099. ;;
  10100. interix[3-9]*)
  10101. version_type=linux
  10102. need_lib_prefix=no
  10103. need_version=no
  10104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10105. soname_spec='${libname}${release}${shared_ext}$major'
  10106. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10107. shlibpath_var=LD_LIBRARY_PATH
  10108. shlibpath_overrides_runpath=no
  10109. hardcode_into_libs=yes
  10110. ;;
  10111. irix5* | irix6* | nonstopux*)
  10112. case $host_os in
  10113. nonstopux*) version_type=nonstopux ;;
  10114. *)
  10115. if test "$lt_cv_prog_gnu_ld" = yes; then
  10116. version_type=linux
  10117. else
  10118. version_type=irix
  10119. fi ;;
  10120. esac
  10121. need_lib_prefix=no
  10122. need_version=no
  10123. soname_spec='${libname}${release}${shared_ext}$major'
  10124. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10125. case $host_os in
  10126. irix5* | nonstopux*)
  10127. libsuff= shlibsuff=
  10128. ;;
  10129. *)
  10130. case $LD in # libtool.m4 will add one of these switches to LD
  10131. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10132. libsuff= shlibsuff= libmagic=32-bit;;
  10133. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10134. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10135. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10136. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10137. *) libsuff= shlibsuff= libmagic=never-match;;
  10138. esac
  10139. ;;
  10140. esac
  10141. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10142. shlibpath_overrides_runpath=no
  10143. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10144. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10145. hardcode_into_libs=yes
  10146. ;;
  10147. # No shared lib support for Linux oldld, aout, or coff.
  10148. linux*oldld* | linux*aout* | linux*coff*)
  10149. dynamic_linker=no
  10150. ;;
  10151. # This must be Linux ELF.
  10152. # uclinux* changes (here and below) have been submitted to the libtool
  10153. # project, but have not yet been accepted: they are GCC-local changes
  10154. # for the time being. (See
  10155. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  10156. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  10157. version_type=linux
  10158. need_lib_prefix=no
  10159. need_version=no
  10160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10161. soname_spec='${libname}${release}${shared_ext}$major'
  10162. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10163. shlibpath_var=LD_LIBRARY_PATH
  10164. shlibpath_overrides_runpath=no
  10165. # Some binutils ld are patched to set DT_RUNPATH
  10166. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10167. $as_echo_n "(cached) " >&6
  10168. else
  10169. lt_cv_shlibpath_overrides_runpath=no
  10170. save_LDFLAGS=$LDFLAGS
  10171. save_libdir=$libdir
  10172. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10173. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10175. /* end confdefs.h. */
  10176. int
  10177. main ()
  10178. {
  10179. ;
  10180. return 0;
  10181. }
  10182. _ACEOF
  10183. if ac_fn_c_try_link "$LINENO"; then :
  10184. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10185. lt_cv_shlibpath_overrides_runpath=yes
  10186. fi
  10187. fi
  10188. rm -f core conftest.err conftest.$ac_objext \
  10189. conftest$ac_exeext conftest.$ac_ext
  10190. LDFLAGS=$save_LDFLAGS
  10191. libdir=$save_libdir
  10192. fi
  10193. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10194. # This implies no fast_install, which is unacceptable.
  10195. # Some rework will be needed to allow for fast_install
  10196. # before this can be enabled.
  10197. hardcode_into_libs=yes
  10198. # Append ld.so.conf contents to the search path
  10199. if test -f /etc/ld.so.conf; then
  10200. 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' ' '`
  10201. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10202. fi
  10203. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10204. # powerpc, because MkLinux only supported shared libraries with the
  10205. # GNU dynamic linker. Since this was broken with cross compilers,
  10206. # most powerpc-linux boxes support dynamic linking these days and
  10207. # people can always --disable-shared, the test was removed, and we
  10208. # assume the GNU/Linux dynamic linker is in use.
  10209. dynamic_linker='GNU/Linux ld.so'
  10210. ;;
  10211. netbsd*)
  10212. version_type=sunos
  10213. need_lib_prefix=no
  10214. need_version=no
  10215. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10217. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10218. dynamic_linker='NetBSD (a.out) ld.so'
  10219. else
  10220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10221. soname_spec='${libname}${release}${shared_ext}$major'
  10222. dynamic_linker='NetBSD ld.elf_so'
  10223. fi
  10224. shlibpath_var=LD_LIBRARY_PATH
  10225. shlibpath_overrides_runpath=yes
  10226. hardcode_into_libs=yes
  10227. ;;
  10228. newsos6)
  10229. version_type=linux
  10230. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10231. shlibpath_var=LD_LIBRARY_PATH
  10232. shlibpath_overrides_runpath=yes
  10233. ;;
  10234. *nto* | *qnx*)
  10235. version_type=qnx
  10236. need_lib_prefix=no
  10237. need_version=no
  10238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10239. soname_spec='${libname}${release}${shared_ext}$major'
  10240. shlibpath_var=LD_LIBRARY_PATH
  10241. shlibpath_overrides_runpath=no
  10242. hardcode_into_libs=yes
  10243. dynamic_linker='ldqnx.so'
  10244. ;;
  10245. openbsd*)
  10246. version_type=sunos
  10247. sys_lib_dlsearch_path_spec="/usr/lib"
  10248. need_lib_prefix=no
  10249. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10250. case $host_os in
  10251. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10252. *) need_version=no ;;
  10253. esac
  10254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10255. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10256. shlibpath_var=LD_LIBRARY_PATH
  10257. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10258. case $host_os in
  10259. openbsd2.[89] | openbsd2.[89].*)
  10260. shlibpath_overrides_runpath=no
  10261. ;;
  10262. *)
  10263. shlibpath_overrides_runpath=yes
  10264. ;;
  10265. esac
  10266. else
  10267. shlibpath_overrides_runpath=yes
  10268. fi
  10269. ;;
  10270. os2*)
  10271. libname_spec='$name'
  10272. shrext_cmds=".dll"
  10273. need_lib_prefix=no
  10274. library_names_spec='$libname${shared_ext} $libname.a'
  10275. dynamic_linker='OS/2 ld.exe'
  10276. shlibpath_var=LIBPATH
  10277. ;;
  10278. osf3* | osf4* | osf5*)
  10279. version_type=osf
  10280. need_lib_prefix=no
  10281. need_version=no
  10282. soname_spec='${libname}${release}${shared_ext}$major'
  10283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10284. shlibpath_var=LD_LIBRARY_PATH
  10285. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10286. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10287. ;;
  10288. rdos*)
  10289. dynamic_linker=no
  10290. ;;
  10291. solaris*)
  10292. version_type=linux
  10293. need_lib_prefix=no
  10294. need_version=no
  10295. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10296. soname_spec='${libname}${release}${shared_ext}$major'
  10297. shlibpath_var=LD_LIBRARY_PATH
  10298. shlibpath_overrides_runpath=yes
  10299. hardcode_into_libs=yes
  10300. # ldd complains unless libraries are executable
  10301. postinstall_cmds='chmod +x $lib'
  10302. ;;
  10303. sunos4*)
  10304. version_type=sunos
  10305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10306. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10307. shlibpath_var=LD_LIBRARY_PATH
  10308. shlibpath_overrides_runpath=yes
  10309. if test "$with_gnu_ld" = yes; then
  10310. need_lib_prefix=no
  10311. fi
  10312. need_version=yes
  10313. ;;
  10314. sysv4 | sysv4.3*)
  10315. version_type=linux
  10316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10317. soname_spec='${libname}${release}${shared_ext}$major'
  10318. shlibpath_var=LD_LIBRARY_PATH
  10319. case $host_vendor in
  10320. sni)
  10321. shlibpath_overrides_runpath=no
  10322. need_lib_prefix=no
  10323. runpath_var=LD_RUN_PATH
  10324. ;;
  10325. siemens)
  10326. need_lib_prefix=no
  10327. ;;
  10328. motorola)
  10329. need_lib_prefix=no
  10330. need_version=no
  10331. shlibpath_overrides_runpath=no
  10332. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10333. ;;
  10334. esac
  10335. ;;
  10336. sysv4*MP*)
  10337. if test -d /usr/nec ;then
  10338. version_type=linux
  10339. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10340. soname_spec='$libname${shared_ext}.$major'
  10341. shlibpath_var=LD_LIBRARY_PATH
  10342. fi
  10343. ;;
  10344. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10345. version_type=freebsd-elf
  10346. need_lib_prefix=no
  10347. need_version=no
  10348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10349. soname_spec='${libname}${release}${shared_ext}$major'
  10350. shlibpath_var=LD_LIBRARY_PATH
  10351. shlibpath_overrides_runpath=yes
  10352. hardcode_into_libs=yes
  10353. if test "$with_gnu_ld" = yes; then
  10354. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10355. else
  10356. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10357. case $host_os in
  10358. sco3.2v5*)
  10359. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10360. ;;
  10361. esac
  10362. fi
  10363. sys_lib_dlsearch_path_spec='/usr/lib'
  10364. ;;
  10365. tpf*)
  10366. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10367. version_type=linux
  10368. need_lib_prefix=no
  10369. need_version=no
  10370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10371. shlibpath_var=LD_LIBRARY_PATH
  10372. shlibpath_overrides_runpath=no
  10373. hardcode_into_libs=yes
  10374. ;;
  10375. uts4*)
  10376. version_type=linux
  10377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10378. soname_spec='${libname}${release}${shared_ext}$major'
  10379. shlibpath_var=LD_LIBRARY_PATH
  10380. ;;
  10381. *)
  10382. dynamic_linker=no
  10383. ;;
  10384. esac
  10385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10386. $as_echo "$dynamic_linker" >&6; }
  10387. test "$dynamic_linker" = no && can_build_shared=no
  10388. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10389. if test "$GCC" = yes; then
  10390. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10391. fi
  10392. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10393. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10394. fi
  10395. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10396. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10397. fi
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10399. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10400. hardcode_action=
  10401. if test -n "$hardcode_libdir_flag_spec" ||
  10402. test -n "$runpath_var" ||
  10403. test "X$hardcode_automatic" = "Xyes" ; then
  10404. # We can hardcode non-existent directories.
  10405. if test "$hardcode_direct" != no &&
  10406. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10407. # have to relink, otherwise we might link with an installed library
  10408. # when we should be linking with a yet-to-be-installed one
  10409. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10410. test "$hardcode_minus_L" != no; then
  10411. # Linking always hardcodes the temporary library directory.
  10412. hardcode_action=relink
  10413. else
  10414. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10415. hardcode_action=immediate
  10416. fi
  10417. else
  10418. # We cannot hardcode anything, or else we can only hardcode existing
  10419. # directories.
  10420. hardcode_action=unsupported
  10421. fi
  10422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10423. $as_echo "$hardcode_action" >&6; }
  10424. if test "$hardcode_action" = relink ||
  10425. test "$inherit_rpath" = yes; then
  10426. # Fast installation is not supported
  10427. enable_fast_install=no
  10428. elif test "$shlibpath_overrides_runpath" = yes ||
  10429. test "$enable_shared" = no; then
  10430. # Fast installation is not necessary
  10431. enable_fast_install=needless
  10432. fi
  10433. if test "x$enable_dlopen" != xyes; then
  10434. enable_dlopen=unknown
  10435. enable_dlopen_self=unknown
  10436. enable_dlopen_self_static=unknown
  10437. else
  10438. lt_cv_dlopen=no
  10439. lt_cv_dlopen_libs=
  10440. case $host_os in
  10441. beos*)
  10442. lt_cv_dlopen="load_add_on"
  10443. lt_cv_dlopen_libs=
  10444. lt_cv_dlopen_self=yes
  10445. ;;
  10446. mingw* | pw32* | cegcc*)
  10447. lt_cv_dlopen="LoadLibrary"
  10448. lt_cv_dlopen_libs=
  10449. ;;
  10450. cygwin*)
  10451. lt_cv_dlopen="dlopen"
  10452. lt_cv_dlopen_libs=
  10453. ;;
  10454. darwin*)
  10455. # if libdl is installed we need to link against it
  10456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10457. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10458. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10459. $as_echo_n "(cached) " >&6
  10460. else
  10461. ac_check_lib_save_LIBS=$LIBS
  10462. LIBS="-ldl $LIBS"
  10463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10464. /* end confdefs.h. */
  10465. /* Override any GCC internal prototype to avoid an error.
  10466. Use char because int might match the return type of a GCC
  10467. builtin and then its argument prototype would still apply. */
  10468. #ifdef __cplusplus
  10469. extern "C"
  10470. #endif
  10471. char dlopen ();
  10472. int
  10473. main ()
  10474. {
  10475. return dlopen ();
  10476. ;
  10477. return 0;
  10478. }
  10479. _ACEOF
  10480. if ac_fn_c_try_link "$LINENO"; then :
  10481. ac_cv_lib_dl_dlopen=yes
  10482. else
  10483. ac_cv_lib_dl_dlopen=no
  10484. fi
  10485. rm -f core conftest.err conftest.$ac_objext \
  10486. conftest$ac_exeext conftest.$ac_ext
  10487. LIBS=$ac_check_lib_save_LIBS
  10488. fi
  10489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10490. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10491. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10492. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10493. else
  10494. lt_cv_dlopen="dyld"
  10495. lt_cv_dlopen_libs=
  10496. lt_cv_dlopen_self=yes
  10497. fi
  10498. ;;
  10499. *)
  10500. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10501. if test "x$ac_cv_func_shl_load" = xyes; then :
  10502. lt_cv_dlopen="shl_load"
  10503. else
  10504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10505. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10506. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10507. $as_echo_n "(cached) " >&6
  10508. else
  10509. ac_check_lib_save_LIBS=$LIBS
  10510. LIBS="-ldld $LIBS"
  10511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10512. /* end confdefs.h. */
  10513. /* Override any GCC internal prototype to avoid an error.
  10514. Use char because int might match the return type of a GCC
  10515. builtin and then its argument prototype would still apply. */
  10516. #ifdef __cplusplus
  10517. extern "C"
  10518. #endif
  10519. char shl_load ();
  10520. int
  10521. main ()
  10522. {
  10523. return shl_load ();
  10524. ;
  10525. return 0;
  10526. }
  10527. _ACEOF
  10528. if ac_fn_c_try_link "$LINENO"; then :
  10529. ac_cv_lib_dld_shl_load=yes
  10530. else
  10531. ac_cv_lib_dld_shl_load=no
  10532. fi
  10533. rm -f core conftest.err conftest.$ac_objext \
  10534. conftest$ac_exeext conftest.$ac_ext
  10535. LIBS=$ac_check_lib_save_LIBS
  10536. fi
  10537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10538. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10539. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10540. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10541. else
  10542. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10543. if test "x$ac_cv_func_dlopen" = xyes; then :
  10544. lt_cv_dlopen="dlopen"
  10545. else
  10546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10547. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10548. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10549. $as_echo_n "(cached) " >&6
  10550. else
  10551. ac_check_lib_save_LIBS=$LIBS
  10552. LIBS="-ldl $LIBS"
  10553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10554. /* end confdefs.h. */
  10555. /* Override any GCC internal prototype to avoid an error.
  10556. Use char because int might match the return type of a GCC
  10557. builtin and then its argument prototype would still apply. */
  10558. #ifdef __cplusplus
  10559. extern "C"
  10560. #endif
  10561. char dlopen ();
  10562. int
  10563. main ()
  10564. {
  10565. return dlopen ();
  10566. ;
  10567. return 0;
  10568. }
  10569. _ACEOF
  10570. if ac_fn_c_try_link "$LINENO"; then :
  10571. ac_cv_lib_dl_dlopen=yes
  10572. else
  10573. ac_cv_lib_dl_dlopen=no
  10574. fi
  10575. rm -f core conftest.err conftest.$ac_objext \
  10576. conftest$ac_exeext conftest.$ac_ext
  10577. LIBS=$ac_check_lib_save_LIBS
  10578. fi
  10579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10580. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10581. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10582. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10583. else
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10585. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10586. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10587. $as_echo_n "(cached) " >&6
  10588. else
  10589. ac_check_lib_save_LIBS=$LIBS
  10590. LIBS="-lsvld $LIBS"
  10591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10592. /* end confdefs.h. */
  10593. /* Override any GCC internal prototype to avoid an error.
  10594. Use char because int might match the return type of a GCC
  10595. builtin and then its argument prototype would still apply. */
  10596. #ifdef __cplusplus
  10597. extern "C"
  10598. #endif
  10599. char dlopen ();
  10600. int
  10601. main ()
  10602. {
  10603. return dlopen ();
  10604. ;
  10605. return 0;
  10606. }
  10607. _ACEOF
  10608. if ac_fn_c_try_link "$LINENO"; then :
  10609. ac_cv_lib_svld_dlopen=yes
  10610. else
  10611. ac_cv_lib_svld_dlopen=no
  10612. fi
  10613. rm -f core conftest.err conftest.$ac_objext \
  10614. conftest$ac_exeext conftest.$ac_ext
  10615. LIBS=$ac_check_lib_save_LIBS
  10616. fi
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10618. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10619. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10620. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10621. else
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10623. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10624. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10625. $as_echo_n "(cached) " >&6
  10626. else
  10627. ac_check_lib_save_LIBS=$LIBS
  10628. LIBS="-ldld $LIBS"
  10629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10630. /* end confdefs.h. */
  10631. /* Override any GCC internal prototype to avoid an error.
  10632. Use char because int might match the return type of a GCC
  10633. builtin and then its argument prototype would still apply. */
  10634. #ifdef __cplusplus
  10635. extern "C"
  10636. #endif
  10637. char dld_link ();
  10638. int
  10639. main ()
  10640. {
  10641. return dld_link ();
  10642. ;
  10643. return 0;
  10644. }
  10645. _ACEOF
  10646. if ac_fn_c_try_link "$LINENO"; then :
  10647. ac_cv_lib_dld_dld_link=yes
  10648. else
  10649. ac_cv_lib_dld_dld_link=no
  10650. fi
  10651. rm -f core conftest.err conftest.$ac_objext \
  10652. conftest$ac_exeext conftest.$ac_ext
  10653. LIBS=$ac_check_lib_save_LIBS
  10654. fi
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10656. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10657. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10658. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10659. fi
  10660. fi
  10661. fi
  10662. fi
  10663. fi
  10664. fi
  10665. ;;
  10666. esac
  10667. if test "x$lt_cv_dlopen" != xno; then
  10668. enable_dlopen=yes
  10669. else
  10670. enable_dlopen=no
  10671. fi
  10672. case $lt_cv_dlopen in
  10673. dlopen)
  10674. save_CPPFLAGS="$CPPFLAGS"
  10675. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10676. save_LDFLAGS="$LDFLAGS"
  10677. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10678. save_LIBS="$LIBS"
  10679. LIBS="$lt_cv_dlopen_libs $LIBS"
  10680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10681. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10682. if ${lt_cv_dlopen_self+:} false; then :
  10683. $as_echo_n "(cached) " >&6
  10684. else
  10685. if test "$cross_compiling" = yes; then :
  10686. lt_cv_dlopen_self=cross
  10687. else
  10688. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10689. lt_status=$lt_dlunknown
  10690. cat > conftest.$ac_ext <<_LT_EOF
  10691. #line 12362 "configure"
  10692. #include "confdefs.h"
  10693. #if HAVE_DLFCN_H
  10694. #include <dlfcn.h>
  10695. #endif
  10696. #include <stdio.h>
  10697. #ifdef RTLD_GLOBAL
  10698. # define LT_DLGLOBAL RTLD_GLOBAL
  10699. #else
  10700. # ifdef DL_GLOBAL
  10701. # define LT_DLGLOBAL DL_GLOBAL
  10702. # else
  10703. # define LT_DLGLOBAL 0
  10704. # endif
  10705. #endif
  10706. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10707. find out it does not work in some platform. */
  10708. #ifndef LT_DLLAZY_OR_NOW
  10709. # ifdef RTLD_LAZY
  10710. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10711. # else
  10712. # ifdef DL_LAZY
  10713. # define LT_DLLAZY_OR_NOW DL_LAZY
  10714. # else
  10715. # ifdef RTLD_NOW
  10716. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10717. # else
  10718. # ifdef DL_NOW
  10719. # define LT_DLLAZY_OR_NOW DL_NOW
  10720. # else
  10721. # define LT_DLLAZY_OR_NOW 0
  10722. # endif
  10723. # endif
  10724. # endif
  10725. # endif
  10726. #endif
  10727. /* When -fvisbility=hidden is used, assume the code has been annotated
  10728. correspondingly for the symbols needed. */
  10729. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10730. void fnord () __attribute__((visibility("default")));
  10731. #endif
  10732. void fnord () { int i=42; }
  10733. int main ()
  10734. {
  10735. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10736. int status = $lt_dlunknown;
  10737. if (self)
  10738. {
  10739. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10740. else
  10741. {
  10742. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10743. else puts (dlerror ());
  10744. }
  10745. /* dlclose (self); */
  10746. }
  10747. else
  10748. puts (dlerror ());
  10749. return status;
  10750. }
  10751. _LT_EOF
  10752. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10753. (eval $ac_link) 2>&5
  10754. ac_status=$?
  10755. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10756. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10757. (./conftest; exit; ) >&5 2>/dev/null
  10758. lt_status=$?
  10759. case x$lt_status in
  10760. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10761. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10762. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10763. esac
  10764. else :
  10765. # compilation failed
  10766. lt_cv_dlopen_self=no
  10767. fi
  10768. fi
  10769. rm -fr conftest*
  10770. fi
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10772. $as_echo "$lt_cv_dlopen_self" >&6; }
  10773. if test "x$lt_cv_dlopen_self" = xyes; then
  10774. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10776. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10777. if ${lt_cv_dlopen_self_static+:} false; then :
  10778. $as_echo_n "(cached) " >&6
  10779. else
  10780. if test "$cross_compiling" = yes; then :
  10781. lt_cv_dlopen_self_static=cross
  10782. else
  10783. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10784. lt_status=$lt_dlunknown
  10785. cat > conftest.$ac_ext <<_LT_EOF
  10786. #line 12468 "configure"
  10787. #include "confdefs.h"
  10788. #if HAVE_DLFCN_H
  10789. #include <dlfcn.h>
  10790. #endif
  10791. #include <stdio.h>
  10792. #ifdef RTLD_GLOBAL
  10793. # define LT_DLGLOBAL RTLD_GLOBAL
  10794. #else
  10795. # ifdef DL_GLOBAL
  10796. # define LT_DLGLOBAL DL_GLOBAL
  10797. # else
  10798. # define LT_DLGLOBAL 0
  10799. # endif
  10800. #endif
  10801. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10802. find out it does not work in some platform. */
  10803. #ifndef LT_DLLAZY_OR_NOW
  10804. # ifdef RTLD_LAZY
  10805. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10806. # else
  10807. # ifdef DL_LAZY
  10808. # define LT_DLLAZY_OR_NOW DL_LAZY
  10809. # else
  10810. # ifdef RTLD_NOW
  10811. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10812. # else
  10813. # ifdef DL_NOW
  10814. # define LT_DLLAZY_OR_NOW DL_NOW
  10815. # else
  10816. # define LT_DLLAZY_OR_NOW 0
  10817. # endif
  10818. # endif
  10819. # endif
  10820. # endif
  10821. #endif
  10822. /* When -fvisbility=hidden is used, assume the code has been annotated
  10823. correspondingly for the symbols needed. */
  10824. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10825. void fnord () __attribute__((visibility("default")));
  10826. #endif
  10827. void fnord () { int i=42; }
  10828. int main ()
  10829. {
  10830. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10831. int status = $lt_dlunknown;
  10832. if (self)
  10833. {
  10834. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10835. else
  10836. {
  10837. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10838. else puts (dlerror ());
  10839. }
  10840. /* dlclose (self); */
  10841. }
  10842. else
  10843. puts (dlerror ());
  10844. return status;
  10845. }
  10846. _LT_EOF
  10847. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10848. (eval $ac_link) 2>&5
  10849. ac_status=$?
  10850. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10851. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10852. (./conftest; exit; ) >&5 2>/dev/null
  10853. lt_status=$?
  10854. case x$lt_status in
  10855. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10856. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10857. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10858. esac
  10859. else :
  10860. # compilation failed
  10861. lt_cv_dlopen_self_static=no
  10862. fi
  10863. fi
  10864. rm -fr conftest*
  10865. fi
  10866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10867. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10868. fi
  10869. CPPFLAGS="$save_CPPFLAGS"
  10870. LDFLAGS="$save_LDFLAGS"
  10871. LIBS="$save_LIBS"
  10872. ;;
  10873. esac
  10874. case $lt_cv_dlopen_self in
  10875. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10876. *) enable_dlopen_self=unknown ;;
  10877. esac
  10878. case $lt_cv_dlopen_self_static in
  10879. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10880. *) enable_dlopen_self_static=unknown ;;
  10881. esac
  10882. fi
  10883. striplib=
  10884. old_striplib=
  10885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10886. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10887. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10888. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10889. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10891. $as_echo "yes" >&6; }
  10892. else
  10893. # FIXME - insert some real tests, host_os isn't really good enough
  10894. case $host_os in
  10895. darwin*)
  10896. if test -n "$STRIP" ; then
  10897. striplib="$STRIP -x"
  10898. old_striplib="$STRIP -S"
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10900. $as_echo "yes" >&6; }
  10901. else
  10902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10903. $as_echo "no" >&6; }
  10904. fi
  10905. ;;
  10906. *)
  10907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10908. $as_echo "no" >&6; }
  10909. ;;
  10910. esac
  10911. fi
  10912. # Report which library types will actually be built
  10913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10914. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10916. $as_echo "$can_build_shared" >&6; }
  10917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10918. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10919. test "$can_build_shared" = "no" && enable_shared=no
  10920. # On AIX, shared libraries and static libraries use the same namespace, and
  10921. # are all built from PIC.
  10922. case $host_os in
  10923. aix3*)
  10924. test "$enable_shared" = yes && enable_static=no
  10925. if test -n "$RANLIB"; then
  10926. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10927. postinstall_cmds='$RANLIB $lib'
  10928. fi
  10929. ;;
  10930. aix[4-9]*)
  10931. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10932. test "$enable_shared" = yes && enable_static=no
  10933. fi
  10934. ;;
  10935. esac
  10936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10937. $as_echo "$enable_shared" >&6; }
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10939. $as_echo_n "checking whether to build static libraries... " >&6; }
  10940. # Make sure either enable_shared or enable_static is yes.
  10941. test "$enable_shared" = yes || enable_static=yes
  10942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10943. $as_echo "$enable_static" >&6; }
  10944. fi
  10945. ac_ext=c
  10946. ac_cpp='$CPP $CPPFLAGS'
  10947. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10948. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10949. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10950. CC="$lt_save_CC"
  10951. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10952. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10953. (test "X$CXX" != "Xg++"))) ; then
  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. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10960. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10961. if test -z "$CXXCPP"; then
  10962. if ${ac_cv_prog_CXXCPP+:} false; then :
  10963. $as_echo_n "(cached) " >&6
  10964. else
  10965. # Double quotes because CXXCPP needs to be expanded
  10966. for CXXCPP in "$CXX -E" "/lib/cpp"
  10967. do
  10968. ac_preproc_ok=false
  10969. for ac_cxx_preproc_warn_flag in '' yes
  10970. do
  10971. # Use a header file that comes with gcc, so configuring glibc
  10972. # with a fresh cross-compiler works.
  10973. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10974. # <limits.h> exists even on freestanding compilers.
  10975. # On the NeXT, cc -E runs the code through the compiler's parser,
  10976. # not just through cpp. "Syntax error" is here to catch this case.
  10977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10978. /* end confdefs.h. */
  10979. #ifdef __STDC__
  10980. # include <limits.h>
  10981. #else
  10982. # include <assert.h>
  10983. #endif
  10984. Syntax error
  10985. _ACEOF
  10986. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10987. else
  10988. # Broken: fails on valid input.
  10989. continue
  10990. fi
  10991. rm -f conftest.err conftest.i conftest.$ac_ext
  10992. # OK, works on sane cases. Now check whether nonexistent headers
  10993. # can be detected and how.
  10994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10995. /* end confdefs.h. */
  10996. #include <ac_nonexistent.h>
  10997. _ACEOF
  10998. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10999. # Broken: success on invalid input.
  11000. continue
  11001. else
  11002. # Passes both tests.
  11003. ac_preproc_ok=:
  11004. break
  11005. fi
  11006. rm -f conftest.err conftest.i conftest.$ac_ext
  11007. done
  11008. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11009. rm -f conftest.i conftest.err conftest.$ac_ext
  11010. if $ac_preproc_ok; then :
  11011. break
  11012. fi
  11013. done
  11014. ac_cv_prog_CXXCPP=$CXXCPP
  11015. fi
  11016. CXXCPP=$ac_cv_prog_CXXCPP
  11017. else
  11018. ac_cv_prog_CXXCPP=$CXXCPP
  11019. fi
  11020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11021. $as_echo "$CXXCPP" >&6; }
  11022. ac_preproc_ok=false
  11023. for ac_cxx_preproc_warn_flag in '' yes
  11024. do
  11025. # Use a header file that comes with gcc, so configuring glibc
  11026. # with a fresh cross-compiler works.
  11027. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11028. # <limits.h> exists even on freestanding compilers.
  11029. # On the NeXT, cc -E runs the code through the compiler's parser,
  11030. # not just through cpp. "Syntax error" is here to catch this case.
  11031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11032. /* end confdefs.h. */
  11033. #ifdef __STDC__
  11034. # include <limits.h>
  11035. #else
  11036. # include <assert.h>
  11037. #endif
  11038. Syntax error
  11039. _ACEOF
  11040. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11041. else
  11042. # Broken: fails on valid input.
  11043. continue
  11044. fi
  11045. rm -f conftest.err conftest.i conftest.$ac_ext
  11046. # OK, works on sane cases. Now check whether nonexistent headers
  11047. # can be detected and how.
  11048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11049. /* end confdefs.h. */
  11050. #include <ac_nonexistent.h>
  11051. _ACEOF
  11052. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11053. # Broken: success on invalid input.
  11054. continue
  11055. else
  11056. # Passes both tests.
  11057. ac_preproc_ok=:
  11058. break
  11059. fi
  11060. rm -f conftest.err conftest.i conftest.$ac_ext
  11061. done
  11062. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11063. rm -f conftest.i conftest.err conftest.$ac_ext
  11064. if $ac_preproc_ok; then :
  11065. else
  11066. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11067. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11068. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11069. See \`config.log' for more details" "$LINENO" 5; }
  11070. fi
  11071. ac_ext=c
  11072. ac_cpp='$CPP $CPPFLAGS'
  11073. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11074. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11075. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11076. else
  11077. _lt_caught_CXX_error=yes
  11078. fi
  11079. ac_ext=cpp
  11080. ac_cpp='$CXXCPP $CPPFLAGS'
  11081. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11082. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11083. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11084. archive_cmds_need_lc_CXX=no
  11085. allow_undefined_flag_CXX=
  11086. always_export_symbols_CXX=no
  11087. archive_expsym_cmds_CXX=
  11088. compiler_needs_object_CXX=no
  11089. export_dynamic_flag_spec_CXX=
  11090. hardcode_direct_CXX=no
  11091. hardcode_direct_absolute_CXX=no
  11092. hardcode_libdir_flag_spec_CXX=
  11093. hardcode_libdir_flag_spec_ld_CXX=
  11094. hardcode_libdir_separator_CXX=
  11095. hardcode_minus_L_CXX=no
  11096. hardcode_shlibpath_var_CXX=unsupported
  11097. hardcode_automatic_CXX=no
  11098. inherit_rpath_CXX=no
  11099. module_cmds_CXX=
  11100. module_expsym_cmds_CXX=
  11101. link_all_deplibs_CXX=unknown
  11102. old_archive_cmds_CXX=$old_archive_cmds
  11103. reload_flag_CXX=$reload_flag
  11104. reload_cmds_CXX=$reload_cmds
  11105. no_undefined_flag_CXX=
  11106. whole_archive_flag_spec_CXX=
  11107. enable_shared_with_static_runtimes_CXX=no
  11108. # Source file extension for C++ test sources.
  11109. ac_ext=cpp
  11110. # Object file extension for compiled C++ test sources.
  11111. objext=o
  11112. objext_CXX=$objext
  11113. # No sense in running all these tests if we already determined that
  11114. # the CXX compiler isn't working. Some variables (like enable_shared)
  11115. # are currently assumed to apply to all compilers on this platform,
  11116. # and will be corrupted by setting them based on a non-working compiler.
  11117. if test "$_lt_caught_CXX_error" != yes; then
  11118. # Code to be used in simple compile tests
  11119. lt_simple_compile_test_code="int some_variable = 0;"
  11120. # Code to be used in simple link tests
  11121. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11122. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11123. # If no C compiler was specified, use CC.
  11124. LTCC=${LTCC-"$CC"}
  11125. # If no C compiler flags were specified, use CFLAGS.
  11126. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11127. # Allow CC to be a program name with arguments.
  11128. compiler=$CC
  11129. # save warnings/boilerplate of simple test code
  11130. ac_outfile=conftest.$ac_objext
  11131. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11132. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11133. _lt_compiler_boilerplate=`cat conftest.err`
  11134. $RM conftest*
  11135. ac_outfile=conftest.$ac_objext
  11136. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11137. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11138. _lt_linker_boilerplate=`cat conftest.err`
  11139. $RM -r conftest*
  11140. # Allow CC to be a program name with arguments.
  11141. lt_save_CC=$CC
  11142. lt_save_LD=$LD
  11143. lt_save_GCC=$GCC
  11144. GCC=$GXX
  11145. lt_save_with_gnu_ld=$with_gnu_ld
  11146. lt_save_path_LD=$lt_cv_path_LD
  11147. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11148. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11149. else
  11150. $as_unset lt_cv_prog_gnu_ld
  11151. fi
  11152. if test -n "${lt_cv_path_LDCXX+set}"; then
  11153. lt_cv_path_LD=$lt_cv_path_LDCXX
  11154. else
  11155. $as_unset lt_cv_path_LD
  11156. fi
  11157. test -z "${LDCXX+set}" || LD=$LDCXX
  11158. CC=${CXX-"c++"}
  11159. compiler=$CC
  11160. compiler_CXX=$CC
  11161. for cc_temp in $compiler""; do
  11162. case $cc_temp in
  11163. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11164. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11165. \-*) ;;
  11166. *) break;;
  11167. esac
  11168. done
  11169. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11170. if test -n "$compiler"; then
  11171. # We don't want -fno-exception when compiling C++ code, so set the
  11172. # no_builtin_flag separately
  11173. if test "$GXX" = yes; then
  11174. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11175. else
  11176. lt_prog_compiler_no_builtin_flag_CXX=
  11177. fi
  11178. if test "$GXX" = yes; then
  11179. # Set up default GNU C++ configuration
  11180. # Check whether --with-gnu-ld was given.
  11181. if test "${with_gnu_ld+set}" = set; then :
  11182. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11183. else
  11184. with_gnu_ld=no
  11185. fi
  11186. ac_prog=ld
  11187. if test "$GCC" = yes; then
  11188. # Check if gcc -print-prog-name=ld gives a path.
  11189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11190. $as_echo_n "checking for ld used by $CC... " >&6; }
  11191. case $host in
  11192. *-*-mingw*)
  11193. # gcc leaves a trailing carriage return which upsets mingw
  11194. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11195. *)
  11196. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11197. esac
  11198. case $ac_prog in
  11199. # Accept absolute paths.
  11200. [\\/]* | ?:[\\/]*)
  11201. re_direlt='/[^/][^/]*/\.\./'
  11202. # Canonicalize the pathname of ld
  11203. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11204. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11205. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11206. done
  11207. test -z "$LD" && LD="$ac_prog"
  11208. ;;
  11209. "")
  11210. # If it fails, then pretend we aren't using GCC.
  11211. ac_prog=ld
  11212. ;;
  11213. *)
  11214. # If it is relative, then search for the first ld in PATH.
  11215. with_gnu_ld=unknown
  11216. ;;
  11217. esac
  11218. elif test "$with_gnu_ld" = yes; then
  11219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11220. $as_echo_n "checking for GNU ld... " >&6; }
  11221. else
  11222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11223. $as_echo_n "checking for non-GNU ld... " >&6; }
  11224. fi
  11225. if ${lt_cv_path_LD+:} false; then :
  11226. $as_echo_n "(cached) " >&6
  11227. else
  11228. if test -z "$LD"; then
  11229. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11230. for ac_dir in $PATH; do
  11231. IFS="$lt_save_ifs"
  11232. test -z "$ac_dir" && ac_dir=.
  11233. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11234. lt_cv_path_LD="$ac_dir/$ac_prog"
  11235. # Check to see if the program is GNU ld. I'd rather use --version,
  11236. # but apparently some variants of GNU ld only accept -v.
  11237. # Break only if it was the GNU/non-GNU ld that we prefer.
  11238. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11239. *GNU* | *'with BFD'*)
  11240. test "$with_gnu_ld" != no && break
  11241. ;;
  11242. *)
  11243. test "$with_gnu_ld" != yes && break
  11244. ;;
  11245. esac
  11246. fi
  11247. done
  11248. IFS="$lt_save_ifs"
  11249. else
  11250. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11251. fi
  11252. fi
  11253. LD="$lt_cv_path_LD"
  11254. if test -n "$LD"; then
  11255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11256. $as_echo "$LD" >&6; }
  11257. else
  11258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11259. $as_echo "no" >&6; }
  11260. fi
  11261. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11263. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11264. if ${lt_cv_prog_gnu_ld+:} false; then :
  11265. $as_echo_n "(cached) " >&6
  11266. else
  11267. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11268. case `$LD -v 2>&1 </dev/null` in
  11269. *GNU* | *'with BFD'*)
  11270. lt_cv_prog_gnu_ld=yes
  11271. ;;
  11272. *)
  11273. lt_cv_prog_gnu_ld=no
  11274. ;;
  11275. esac
  11276. fi
  11277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11278. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11279. with_gnu_ld=$lt_cv_prog_gnu_ld
  11280. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11281. # archiving commands below assume that GNU ld is being used.
  11282. if test "$with_gnu_ld" = yes; then
  11283. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11284. 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'
  11285. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11286. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11287. # If archive_cmds runs LD, not CC, wlarc should be empty
  11288. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11289. # investigate it a little bit more. (MM)
  11290. wlarc='${wl}'
  11291. # ancient GNU ld didn't support --whole-archive et. al.
  11292. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11293. $GREP 'no-whole-archive' > /dev/null; then
  11294. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11295. else
  11296. whole_archive_flag_spec_CXX=
  11297. fi
  11298. else
  11299. with_gnu_ld=no
  11300. wlarc=
  11301. # A generic and very simple default shared library creation
  11302. # command for GNU C++ for the case where it uses the native
  11303. # linker, instead of GNU ld. If possible, this setting should
  11304. # overridden to take advantage of the native linker features on
  11305. # the platform it is being used on.
  11306. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11307. fi
  11308. # Commands to make compiler produce verbose output that lists
  11309. # what "hidden" libraries, object files and flags are used when
  11310. # linking a shared library.
  11311. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11312. else
  11313. GXX=no
  11314. with_gnu_ld=no
  11315. wlarc=
  11316. fi
  11317. # PORTME: fill in a description of your system's C++ link characteristics
  11318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11319. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11320. ld_shlibs_CXX=yes
  11321. case $host_os in
  11322. aix3*)
  11323. # FIXME: insert proper C++ library support
  11324. ld_shlibs_CXX=no
  11325. ;;
  11326. aix[4-9]*)
  11327. if test "$host_cpu" = ia64; then
  11328. # On IA64, the linker does run time linking by default, so we don't
  11329. # have to do anything special.
  11330. aix_use_runtimelinking=no
  11331. exp_sym_flag='-Bexport'
  11332. no_entry_flag=""
  11333. else
  11334. aix_use_runtimelinking=no
  11335. # Test if we are trying to use run time linking or normal
  11336. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11337. # need to do runtime linking.
  11338. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11339. for ld_flag in $LDFLAGS; do
  11340. case $ld_flag in
  11341. *-brtl*)
  11342. aix_use_runtimelinking=yes
  11343. break
  11344. ;;
  11345. esac
  11346. done
  11347. ;;
  11348. esac
  11349. exp_sym_flag='-bexport'
  11350. no_entry_flag='-bnoentry'
  11351. fi
  11352. # When large executables or shared objects are built, AIX ld can
  11353. # have problems creating the table of contents. If linking a library
  11354. # or program results in "error TOC overflow" add -mminimal-toc to
  11355. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11356. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11357. archive_cmds_CXX=''
  11358. hardcode_direct_CXX=yes
  11359. hardcode_direct_absolute_CXX=yes
  11360. hardcode_libdir_separator_CXX=':'
  11361. link_all_deplibs_CXX=yes
  11362. file_list_spec_CXX='${wl}-f,'
  11363. if test "$GXX" = yes; then
  11364. case $host_os in aix4.[012]|aix4.[012].*)
  11365. # We only want to do this on AIX 4.2 and lower, the check
  11366. # below for broken collect2 doesn't work under 4.3+
  11367. collect2name=`${CC} -print-prog-name=collect2`
  11368. if test -f "$collect2name" &&
  11369. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11370. then
  11371. # We have reworked collect2
  11372. :
  11373. else
  11374. # We have old collect2
  11375. hardcode_direct_CXX=unsupported
  11376. # It fails to find uninstalled libraries when the uninstalled
  11377. # path is not listed in the libpath. Setting hardcode_minus_L
  11378. # to unsupported forces relinking
  11379. hardcode_minus_L_CXX=yes
  11380. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11381. hardcode_libdir_separator_CXX=
  11382. fi
  11383. esac
  11384. shared_flag='-shared'
  11385. if test "$aix_use_runtimelinking" = yes; then
  11386. shared_flag="$shared_flag "'${wl}-G'
  11387. fi
  11388. else
  11389. # not using gcc
  11390. if test "$host_cpu" = ia64; then
  11391. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11392. # chokes on -Wl,-G. The following line is correct:
  11393. shared_flag='-G'
  11394. else
  11395. if test "$aix_use_runtimelinking" = yes; then
  11396. shared_flag='${wl}-G'
  11397. else
  11398. shared_flag='${wl}-bM:SRE'
  11399. fi
  11400. fi
  11401. fi
  11402. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11403. # It seems that -bexpall does not export symbols beginning with
  11404. # underscore (_), so it is better to generate a list of symbols to
  11405. # export.
  11406. always_export_symbols_CXX=yes
  11407. if test "$aix_use_runtimelinking" = yes; then
  11408. # Warning - without using the other runtime loading flags (-brtl),
  11409. # -berok will link without error, but may produce a broken library.
  11410. allow_undefined_flag_CXX='-berok'
  11411. # Determine the default libpath from the value encoded in an empty
  11412. # executable.
  11413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11414. /* end confdefs.h. */
  11415. int
  11416. main ()
  11417. {
  11418. ;
  11419. return 0;
  11420. }
  11421. _ACEOF
  11422. if ac_fn_cxx_try_link "$LINENO"; then :
  11423. lt_aix_libpath_sed='
  11424. /Import File Strings/,/^$/ {
  11425. /^0/ {
  11426. s/^0 *\(.*\)$/\1/
  11427. p
  11428. }
  11429. }'
  11430. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11431. # Check for a 64-bit object if we didn't find anything.
  11432. if test -z "$aix_libpath"; then
  11433. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11434. fi
  11435. fi
  11436. rm -f core conftest.err conftest.$ac_objext \
  11437. conftest$ac_exeext conftest.$ac_ext
  11438. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11439. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11440. 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"
  11441. else
  11442. if test "$host_cpu" = ia64; then
  11443. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11444. allow_undefined_flag_CXX="-z nodefs"
  11445. 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"
  11446. else
  11447. # Determine the default libpath from the value encoded in an
  11448. # empty executable.
  11449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11450. /* end confdefs.h. */
  11451. int
  11452. main ()
  11453. {
  11454. ;
  11455. return 0;
  11456. }
  11457. _ACEOF
  11458. if ac_fn_cxx_try_link "$LINENO"; then :
  11459. lt_aix_libpath_sed='
  11460. /Import File Strings/,/^$/ {
  11461. /^0/ {
  11462. s/^0 *\(.*\)$/\1/
  11463. p
  11464. }
  11465. }'
  11466. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11467. # Check for a 64-bit object if we didn't find anything.
  11468. if test -z "$aix_libpath"; then
  11469. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11470. fi
  11471. fi
  11472. rm -f core conftest.err conftest.$ac_objext \
  11473. conftest$ac_exeext conftest.$ac_ext
  11474. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11475. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11476. # Warning - without using the other run time loading flags,
  11477. # -berok will link without error, but may produce a broken library.
  11478. no_undefined_flag_CXX=' ${wl}-bernotok'
  11479. allow_undefined_flag_CXX=' ${wl}-berok'
  11480. if test "$with_gnu_ld" = yes; then
  11481. # We only use this code for GNU lds that support --whole-archive.
  11482. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11483. else
  11484. # Exported symbols can be pulled into shared objects from archives
  11485. whole_archive_flag_spec_CXX='$convenience'
  11486. fi
  11487. archive_cmds_need_lc_CXX=yes
  11488. # This is similar to how AIX traditionally builds its shared
  11489. # libraries.
  11490. 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'
  11491. fi
  11492. fi
  11493. ;;
  11494. beos*)
  11495. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11496. allow_undefined_flag_CXX=unsupported
  11497. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11498. # support --undefined. This deserves some investigation. FIXME
  11499. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11500. else
  11501. ld_shlibs_CXX=no
  11502. fi
  11503. ;;
  11504. chorus*)
  11505. case $cc_basename in
  11506. *)
  11507. # FIXME: insert proper C++ library support
  11508. ld_shlibs_CXX=no
  11509. ;;
  11510. esac
  11511. ;;
  11512. cygwin* | mingw* | pw32* | cegcc*)
  11513. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11514. # as there is no search path for DLLs.
  11515. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11516. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11517. allow_undefined_flag_CXX=unsupported
  11518. always_export_symbols_CXX=no
  11519. enable_shared_with_static_runtimes_CXX=yes
  11520. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11521. 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'
  11522. # If the export-symbols file already is a .def file (1st line
  11523. # is EXPORTS), use it as is; otherwise, prepend...
  11524. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11525. cp $export_symbols $output_objdir/$soname.def;
  11526. else
  11527. echo EXPORTS > $output_objdir/$soname.def;
  11528. cat $export_symbols >> $output_objdir/$soname.def;
  11529. fi~
  11530. $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'
  11531. else
  11532. ld_shlibs_CXX=no
  11533. fi
  11534. ;;
  11535. darwin* | rhapsody*)
  11536. archive_cmds_need_lc_CXX=no
  11537. hardcode_direct_CXX=no
  11538. hardcode_automatic_CXX=yes
  11539. hardcode_shlibpath_var_CXX=unsupported
  11540. if test "$lt_cv_ld_force_load" = "yes"; then
  11541. 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\"`'
  11542. else
  11543. whole_archive_flag_spec_CXX=''
  11544. fi
  11545. link_all_deplibs_CXX=yes
  11546. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11547. case $cc_basename in
  11548. ifort*) _lt_dar_can_shared=yes ;;
  11549. *) _lt_dar_can_shared=$GCC ;;
  11550. esac
  11551. if test "$_lt_dar_can_shared" = "yes"; then
  11552. output_verbose_link_cmd=func_echo_all
  11553. 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}"
  11554. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11555. 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}"
  11556. 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}"
  11557. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11558. 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}"
  11559. 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}"
  11560. fi
  11561. else
  11562. ld_shlibs_CXX=no
  11563. fi
  11564. ;;
  11565. dgux*)
  11566. case $cc_basename in
  11567. ec++*)
  11568. # FIXME: insert proper C++ library support
  11569. ld_shlibs_CXX=no
  11570. ;;
  11571. ghcx*)
  11572. # Green Hills C++ Compiler
  11573. # FIXME: insert proper C++ library support
  11574. ld_shlibs_CXX=no
  11575. ;;
  11576. *)
  11577. # FIXME: insert proper C++ library support
  11578. ld_shlibs_CXX=no
  11579. ;;
  11580. esac
  11581. ;;
  11582. freebsd2.*)
  11583. # C++ shared libraries reported to be fairly broken before
  11584. # switch to ELF
  11585. ld_shlibs_CXX=no
  11586. ;;
  11587. freebsd-elf*)
  11588. archive_cmds_need_lc_CXX=no
  11589. ;;
  11590. freebsd* | dragonfly*)
  11591. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11592. # conventions
  11593. ld_shlibs_CXX=yes
  11594. ;;
  11595. gnu*)
  11596. ;;
  11597. haiku*)
  11598. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11599. link_all_deplibs_CXX=yes
  11600. ;;
  11601. hpux9*)
  11602. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11603. hardcode_libdir_separator_CXX=:
  11604. export_dynamic_flag_spec_CXX='${wl}-E'
  11605. hardcode_direct_CXX=yes
  11606. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11607. # but as the default
  11608. # location of the library.
  11609. case $cc_basename in
  11610. CC*)
  11611. # FIXME: insert proper C++ library support
  11612. ld_shlibs_CXX=no
  11613. ;;
  11614. aCC*)
  11615. 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'
  11616. # Commands to make compiler produce verbose output that lists
  11617. # what "hidden" libraries, object files and flags are used when
  11618. # linking a shared library.
  11619. #
  11620. # There doesn't appear to be a way to prevent this compiler from
  11621. # explicitly linking system object files so we need to strip them
  11622. # from the output so that they don't get included in the library
  11623. # dependencies.
  11624. 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"'
  11625. ;;
  11626. *)
  11627. if test "$GXX" = yes; then
  11628. 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'
  11629. else
  11630. # FIXME: insert proper C++ library support
  11631. ld_shlibs_CXX=no
  11632. fi
  11633. ;;
  11634. esac
  11635. ;;
  11636. hpux10*|hpux11*)
  11637. if test $with_gnu_ld = no; then
  11638. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11639. hardcode_libdir_separator_CXX=:
  11640. case $host_cpu in
  11641. hppa*64*|ia64*)
  11642. ;;
  11643. *)
  11644. export_dynamic_flag_spec_CXX='${wl}-E'
  11645. ;;
  11646. esac
  11647. fi
  11648. case $host_cpu in
  11649. hppa*64*|ia64*)
  11650. hardcode_direct_CXX=no
  11651. hardcode_shlibpath_var_CXX=no
  11652. ;;
  11653. *)
  11654. hardcode_direct_CXX=yes
  11655. hardcode_direct_absolute_CXX=yes
  11656. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11657. # but as the default
  11658. # location of the library.
  11659. ;;
  11660. esac
  11661. case $cc_basename in
  11662. CC*)
  11663. # FIXME: insert proper C++ library support
  11664. ld_shlibs_CXX=no
  11665. ;;
  11666. aCC*)
  11667. case $host_cpu in
  11668. hppa*64*)
  11669. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11670. ;;
  11671. ia64*)
  11672. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11673. ;;
  11674. *)
  11675. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11676. ;;
  11677. esac
  11678. # Commands to make compiler produce verbose output that lists
  11679. # what "hidden" libraries, object files and flags are used when
  11680. # linking a shared library.
  11681. #
  11682. # There doesn't appear to be a way to prevent this compiler from
  11683. # explicitly linking system object files so we need to strip them
  11684. # from the output so that they don't get included in the library
  11685. # dependencies.
  11686. 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"'
  11687. ;;
  11688. *)
  11689. if test "$GXX" = yes; then
  11690. if test $with_gnu_ld = no; then
  11691. case $host_cpu in
  11692. hppa*64*)
  11693. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11694. ;;
  11695. ia64*)
  11696. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11697. ;;
  11698. *)
  11699. 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'
  11700. ;;
  11701. esac
  11702. fi
  11703. else
  11704. # FIXME: insert proper C++ library support
  11705. ld_shlibs_CXX=no
  11706. fi
  11707. ;;
  11708. esac
  11709. ;;
  11710. interix[3-9]*)
  11711. hardcode_direct_CXX=no
  11712. hardcode_shlibpath_var_CXX=no
  11713. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11714. export_dynamic_flag_spec_CXX='${wl}-E'
  11715. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11716. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11717. # default) and relocated if they conflict, which is a slow very memory
  11718. # consuming and fragmenting process. To avoid this, we pick a random,
  11719. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11720. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11721. 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'
  11722. 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'
  11723. ;;
  11724. irix5* | irix6*)
  11725. case $cc_basename in
  11726. CC*)
  11727. # SGI C++
  11728. 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'
  11729. # Archives containing C++ object files must be created using
  11730. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11731. # necessary to make sure instantiated templates are included
  11732. # in the archive.
  11733. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11734. ;;
  11735. *)
  11736. if test "$GXX" = yes; then
  11737. if test "$with_gnu_ld" = no; then
  11738. 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'
  11739. else
  11740. 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'
  11741. fi
  11742. fi
  11743. link_all_deplibs_CXX=yes
  11744. ;;
  11745. esac
  11746. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11747. hardcode_libdir_separator_CXX=:
  11748. inherit_rpath_CXX=yes
  11749. ;;
  11750. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11751. case $cc_basename in
  11752. KCC*)
  11753. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11754. # KCC will only create a shared library if the output file
  11755. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11756. # to its proper name (with version) after linking.
  11757. 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'
  11758. 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'
  11759. # Commands to make compiler produce verbose output that lists
  11760. # what "hidden" libraries, object files and flags are used when
  11761. # linking a shared library.
  11762. #
  11763. # There doesn't appear to be a way to prevent this compiler from
  11764. # explicitly linking system object files so we need to strip them
  11765. # from the output so that they don't get included in the library
  11766. # dependencies.
  11767. 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"'
  11768. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11769. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11770. # Archives containing C++ object files must be created using
  11771. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11772. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11773. ;;
  11774. icpc* | ecpc* )
  11775. # Intel C++
  11776. with_gnu_ld=yes
  11777. # version 8.0 and above of icpc choke on multiply defined symbols
  11778. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11779. # earlier do not add the objects themselves.
  11780. case `$CC -V 2>&1` in
  11781. *"Version 7."*)
  11782. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11783. 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'
  11784. ;;
  11785. *) # Version 8.0 or newer
  11786. tmp_idyn=
  11787. case $host_cpu in
  11788. ia64*) tmp_idyn=' -i_dynamic';;
  11789. esac
  11790. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11791. 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'
  11792. ;;
  11793. esac
  11794. archive_cmds_need_lc_CXX=no
  11795. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11796. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11797. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11798. ;;
  11799. pgCC* | pgcpp*)
  11800. # Portland Group C++ compiler
  11801. case `$CC -V` in
  11802. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11803. prelink_cmds_CXX='tpldir=Template.dir~
  11804. rm -rf $tpldir~
  11805. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11806. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11807. old_archive_cmds_CXX='tpldir=Template.dir~
  11808. rm -rf $tpldir~
  11809. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11810. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11811. $RANLIB $oldlib'
  11812. archive_cmds_CXX='tpldir=Template.dir~
  11813. rm -rf $tpldir~
  11814. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11815. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11816. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11817. rm -rf $tpldir~
  11818. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11819. $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'
  11820. ;;
  11821. *) # Version 6 and above use weak symbols
  11822. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11823. 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'
  11824. ;;
  11825. esac
  11826. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11827. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11828. 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'
  11829. ;;
  11830. cxx*)
  11831. # Compaq C++
  11832. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11833. 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'
  11834. runpath_var=LD_RUN_PATH
  11835. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11836. hardcode_libdir_separator_CXX=:
  11837. # Commands to make compiler produce verbose output that lists
  11838. # what "hidden" libraries, object files and flags are used when
  11839. # linking a shared library.
  11840. #
  11841. # There doesn't appear to be a way to prevent this compiler from
  11842. # explicitly linking system object files so we need to strip them
  11843. # from the output so that they don't get included in the library
  11844. # dependencies.
  11845. 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'
  11846. ;;
  11847. xl* | mpixl* | bgxl*)
  11848. # IBM XL 8.0 on PPC, with GNU ld
  11849. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11850. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11851. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11852. if test "x$supports_anon_versioning" = xyes; then
  11853. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11854. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11855. echo "local: *; };" >> $output_objdir/$libname.ver~
  11856. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11857. fi
  11858. ;;
  11859. *)
  11860. case `$CC -V 2>&1 | sed 5q` in
  11861. *Sun\ C*)
  11862. # Sun C++ 5.9
  11863. no_undefined_flag_CXX=' -zdefs'
  11864. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11865. 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'
  11866. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11867. 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'
  11868. compiler_needs_object_CXX=yes
  11869. # Not sure whether something based on
  11870. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11871. # would be better.
  11872. output_verbose_link_cmd='func_echo_all'
  11873. # Archives containing C++ object files must be created using
  11874. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11875. # necessary to make sure instantiated templates are included
  11876. # in the archive.
  11877. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11878. ;;
  11879. esac
  11880. ;;
  11881. esac
  11882. ;;
  11883. lynxos*)
  11884. # FIXME: insert proper C++ library support
  11885. ld_shlibs_CXX=no
  11886. ;;
  11887. m88k*)
  11888. # FIXME: insert proper C++ library support
  11889. ld_shlibs_CXX=no
  11890. ;;
  11891. mvs*)
  11892. case $cc_basename in
  11893. cxx*)
  11894. # FIXME: insert proper C++ library support
  11895. ld_shlibs_CXX=no
  11896. ;;
  11897. *)
  11898. # FIXME: insert proper C++ library support
  11899. ld_shlibs_CXX=no
  11900. ;;
  11901. esac
  11902. ;;
  11903. netbsd*)
  11904. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11905. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11906. wlarc=
  11907. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11908. hardcode_direct_CXX=yes
  11909. hardcode_shlibpath_var_CXX=no
  11910. fi
  11911. # Workaround some broken pre-1.5 toolchains
  11912. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11913. ;;
  11914. *nto* | *qnx*)
  11915. ld_shlibs_CXX=yes
  11916. ;;
  11917. openbsd2*)
  11918. # C++ shared libraries are fairly broken
  11919. ld_shlibs_CXX=no
  11920. ;;
  11921. openbsd*)
  11922. if test -f /usr/libexec/ld.so; then
  11923. hardcode_direct_CXX=yes
  11924. hardcode_shlibpath_var_CXX=no
  11925. hardcode_direct_absolute_CXX=yes
  11926. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11927. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11928. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11929. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11930. export_dynamic_flag_spec_CXX='${wl}-E'
  11931. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11932. fi
  11933. output_verbose_link_cmd=func_echo_all
  11934. else
  11935. ld_shlibs_CXX=no
  11936. fi
  11937. ;;
  11938. osf3* | osf4* | osf5*)
  11939. case $cc_basename in
  11940. KCC*)
  11941. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11942. # KCC will only create a shared library if the output file
  11943. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11944. # to its proper name (with version) after linking.
  11945. 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'
  11946. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11947. hardcode_libdir_separator_CXX=:
  11948. # Archives containing C++ object files must be created using
  11949. # the KAI C++ compiler.
  11950. case $host in
  11951. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11952. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11953. esac
  11954. ;;
  11955. RCC*)
  11956. # Rational C++ 2.4.1
  11957. # FIXME: insert proper C++ library support
  11958. ld_shlibs_CXX=no
  11959. ;;
  11960. cxx*)
  11961. case $host in
  11962. osf3*)
  11963. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11964. 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'
  11965. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11966. ;;
  11967. *)
  11968. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11969. 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'
  11970. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11971. echo "-hidden">> $lib.exp~
  11972. $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~
  11973. $RM $lib.exp'
  11974. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11975. ;;
  11976. esac
  11977. hardcode_libdir_separator_CXX=:
  11978. # Commands to make compiler produce verbose output that lists
  11979. # what "hidden" libraries, object files and flags are used when
  11980. # linking a shared library.
  11981. #
  11982. # There doesn't appear to be a way to prevent this compiler from
  11983. # explicitly linking system object files so we need to strip them
  11984. # from the output so that they don't get included in the library
  11985. # dependencies.
  11986. 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"'
  11987. ;;
  11988. *)
  11989. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11990. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11991. case $host in
  11992. osf3*)
  11993. 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'
  11994. ;;
  11995. *)
  11996. 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'
  11997. ;;
  11998. esac
  11999. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12000. hardcode_libdir_separator_CXX=:
  12001. # Commands to make compiler produce verbose output that lists
  12002. # what "hidden" libraries, object files and flags are used when
  12003. # linking a shared library.
  12004. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12005. else
  12006. # FIXME: insert proper C++ library support
  12007. ld_shlibs_CXX=no
  12008. fi
  12009. ;;
  12010. esac
  12011. ;;
  12012. psos*)
  12013. # FIXME: insert proper C++ library support
  12014. ld_shlibs_CXX=no
  12015. ;;
  12016. sunos4*)
  12017. case $cc_basename in
  12018. CC*)
  12019. # Sun C++ 4.x
  12020. # FIXME: insert proper C++ library support
  12021. ld_shlibs_CXX=no
  12022. ;;
  12023. lcc*)
  12024. # Lucid
  12025. # FIXME: insert proper C++ library support
  12026. ld_shlibs_CXX=no
  12027. ;;
  12028. *)
  12029. # FIXME: insert proper C++ library support
  12030. ld_shlibs_CXX=no
  12031. ;;
  12032. esac
  12033. ;;
  12034. solaris*)
  12035. case $cc_basename in
  12036. CC*)
  12037. # Sun C++ 4.2, 5.x and Centerline C++
  12038. archive_cmds_need_lc_CXX=yes
  12039. no_undefined_flag_CXX=' -zdefs'
  12040. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12041. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12042. $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'
  12043. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12044. hardcode_shlibpath_var_CXX=no
  12045. case $host_os in
  12046. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12047. *)
  12048. # The compiler driver will combine and reorder linker options,
  12049. # but understands `-z linker_flag'.
  12050. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12051. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12052. ;;
  12053. esac
  12054. link_all_deplibs_CXX=yes
  12055. output_verbose_link_cmd='func_echo_all'
  12056. # Archives containing C++ object files must be created using
  12057. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12058. # necessary to make sure instantiated templates are included
  12059. # in the archive.
  12060. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12061. ;;
  12062. gcx*)
  12063. # Green Hills C++ Compiler
  12064. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12065. # The C++ compiler must be used to create the archive.
  12066. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12067. ;;
  12068. *)
  12069. # GNU C++ compiler with Solaris linker
  12070. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12071. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12072. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12073. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12074. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12075. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12076. # Commands to make compiler produce verbose output that lists
  12077. # what "hidden" libraries, object files and flags are used when
  12078. # linking a shared library.
  12079. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12080. else
  12081. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12082. # platform.
  12083. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12084. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12085. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12086. # Commands to make compiler produce verbose output that lists
  12087. # what "hidden" libraries, object files and flags are used when
  12088. # linking a shared library.
  12089. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12090. fi
  12091. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12092. case $host_os in
  12093. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12094. *)
  12095. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12096. ;;
  12097. esac
  12098. fi
  12099. ;;
  12100. esac
  12101. ;;
  12102. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12103. no_undefined_flag_CXX='${wl}-z,text'
  12104. archive_cmds_need_lc_CXX=no
  12105. hardcode_shlibpath_var_CXX=no
  12106. runpath_var='LD_RUN_PATH'
  12107. case $cc_basename in
  12108. CC*)
  12109. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12110. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12111. ;;
  12112. *)
  12113. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12114. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12115. ;;
  12116. esac
  12117. ;;
  12118. sysv5* | sco3.2v5* | sco5v6*)
  12119. # Note: We can NOT use -z defs as we might desire, because we do not
  12120. # link with -lc, and that would cause any symbols used from libc to
  12121. # always be unresolved, which means just about no library would
  12122. # ever link correctly. If we're not using GNU ld we use -z text
  12123. # though, which does catch some bad symbols but isn't as heavy-handed
  12124. # as -z defs.
  12125. no_undefined_flag_CXX='${wl}-z,text'
  12126. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12127. archive_cmds_need_lc_CXX=no
  12128. hardcode_shlibpath_var_CXX=no
  12129. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12130. hardcode_libdir_separator_CXX=':'
  12131. link_all_deplibs_CXX=yes
  12132. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12133. runpath_var='LD_RUN_PATH'
  12134. case $cc_basename in
  12135. CC*)
  12136. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12137. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12138. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12139. '"$old_archive_cmds_CXX"
  12140. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12141. '"$reload_cmds_CXX"
  12142. ;;
  12143. *)
  12144. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12145. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12146. ;;
  12147. esac
  12148. ;;
  12149. tandem*)
  12150. case $cc_basename in
  12151. NCC*)
  12152. # NonStop-UX NCC 3.20
  12153. # FIXME: insert proper C++ library support
  12154. ld_shlibs_CXX=no
  12155. ;;
  12156. *)
  12157. # FIXME: insert proper C++ library support
  12158. ld_shlibs_CXX=no
  12159. ;;
  12160. esac
  12161. ;;
  12162. vxworks*)
  12163. # FIXME: insert proper C++ library support
  12164. ld_shlibs_CXX=no
  12165. ;;
  12166. *)
  12167. # FIXME: insert proper C++ library support
  12168. ld_shlibs_CXX=no
  12169. ;;
  12170. esac
  12171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12172. $as_echo "$ld_shlibs_CXX" >&6; }
  12173. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12174. GCC_CXX="$GXX"
  12175. LD_CXX="$LD"
  12176. ## CAVEAT EMPTOR:
  12177. ## There is no encapsulation within the following macros, do not change
  12178. ## the running order or otherwise move them around unless you know exactly
  12179. ## what you are doing...
  12180. # Dependencies to place before and after the object being linked:
  12181. predep_objects_CXX=
  12182. postdep_objects_CXX=
  12183. predeps_CXX=
  12184. postdeps_CXX=
  12185. compiler_lib_search_path_CXX=
  12186. cat > conftest.$ac_ext <<_LT_EOF
  12187. class Foo
  12188. {
  12189. public:
  12190. Foo (void) { a = 0; }
  12191. private:
  12192. int a;
  12193. };
  12194. _LT_EOF
  12195. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12196. (eval $ac_compile) 2>&5
  12197. ac_status=$?
  12198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12199. test $ac_status = 0; }; then
  12200. # Parse the compiler output and extract the necessary
  12201. # objects, libraries and library flags.
  12202. # Sentinel used to keep track of whether or not we are before
  12203. # the conftest object file.
  12204. pre_test_object_deps_done=no
  12205. for p in `eval "$output_verbose_link_cmd"`; do
  12206. case $p in
  12207. -L* | -R* | -l*)
  12208. # Some compilers place space between "-{L,R}" and the path.
  12209. # Remove the space.
  12210. if test $p = "-L" ||
  12211. test $p = "-R"; then
  12212. prev=$p
  12213. continue
  12214. else
  12215. prev=
  12216. fi
  12217. if test "$pre_test_object_deps_done" = no; then
  12218. case $p in
  12219. -L* | -R*)
  12220. # Internal compiler library paths should come after those
  12221. # provided the user. The postdeps already come after the
  12222. # user supplied libs so there is no need to process them.
  12223. if test -z "$compiler_lib_search_path_CXX"; then
  12224. compiler_lib_search_path_CXX="${prev}${p}"
  12225. else
  12226. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12227. fi
  12228. ;;
  12229. # The "-l" case would never come before the object being
  12230. # linked, so don't bother handling this case.
  12231. esac
  12232. else
  12233. if test -z "$postdeps_CXX"; then
  12234. postdeps_CXX="${prev}${p}"
  12235. else
  12236. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12237. fi
  12238. fi
  12239. ;;
  12240. *.$objext)
  12241. # This assumes that the test object file only shows up
  12242. # once in the compiler output.
  12243. if test "$p" = "conftest.$objext"; then
  12244. pre_test_object_deps_done=yes
  12245. continue
  12246. fi
  12247. if test "$pre_test_object_deps_done" = no; then
  12248. if test -z "$predep_objects_CXX"; then
  12249. predep_objects_CXX="$p"
  12250. else
  12251. predep_objects_CXX="$predep_objects_CXX $p"
  12252. fi
  12253. else
  12254. if test -z "$postdep_objects_CXX"; then
  12255. postdep_objects_CXX="$p"
  12256. else
  12257. postdep_objects_CXX="$postdep_objects_CXX $p"
  12258. fi
  12259. fi
  12260. ;;
  12261. *) ;; # Ignore the rest.
  12262. esac
  12263. done
  12264. # Clean up.
  12265. rm -f a.out a.exe
  12266. else
  12267. echo "libtool.m4: error: problem compiling CXX test program"
  12268. fi
  12269. $RM -f confest.$objext
  12270. # PORTME: override above test on systems where it is broken
  12271. case $host_os in
  12272. interix[3-9]*)
  12273. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12274. # hack all around it, let's just trust "g++" to DTRT.
  12275. predep_objects_CXX=
  12276. postdep_objects_CXX=
  12277. postdeps_CXX=
  12278. ;;
  12279. linux*)
  12280. case `$CC -V 2>&1 | sed 5q` in
  12281. *Sun\ C*)
  12282. # Sun C++ 5.9
  12283. # The more standards-conforming stlport4 library is
  12284. # incompatible with the Cstd library. Avoid specifying
  12285. # it if it's in CXXFLAGS. Ignore libCrun as
  12286. # -library=stlport4 depends on it.
  12287. case " $CXX $CXXFLAGS " in
  12288. *" -library=stlport4 "*)
  12289. solaris_use_stlport4=yes
  12290. ;;
  12291. esac
  12292. if test "$solaris_use_stlport4" != yes; then
  12293. postdeps_CXX='-library=Cstd -library=Crun'
  12294. fi
  12295. ;;
  12296. esac
  12297. ;;
  12298. solaris*)
  12299. case $cc_basename in
  12300. CC*)
  12301. # The more standards-conforming stlport4 library is
  12302. # incompatible with the Cstd library. Avoid specifying
  12303. # it if it's in CXXFLAGS. Ignore libCrun as
  12304. # -library=stlport4 depends on it.
  12305. case " $CXX $CXXFLAGS " in
  12306. *" -library=stlport4 "*)
  12307. solaris_use_stlport4=yes
  12308. ;;
  12309. esac
  12310. # Adding this requires a known-good setup of shared libraries for
  12311. # Sun compiler versions before 5.6, else PIC objects from an old
  12312. # archive will be linked into the output, leading to subtle bugs.
  12313. if test "$solaris_use_stlport4" != yes; then
  12314. postdeps_CXX='-library=Cstd -library=Crun'
  12315. fi
  12316. ;;
  12317. esac
  12318. ;;
  12319. esac
  12320. case " $postdeps_CXX " in
  12321. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12322. esac
  12323. compiler_lib_search_dirs_CXX=
  12324. if test -n "${compiler_lib_search_path_CXX}"; then
  12325. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12326. fi
  12327. lt_prog_compiler_wl_CXX=
  12328. lt_prog_compiler_pic_CXX=
  12329. lt_prog_compiler_static_CXX=
  12330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12331. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12332. # C++ specific cases for pic, static, wl, etc.
  12333. if test "$GXX" = yes; then
  12334. lt_prog_compiler_wl_CXX='-Wl,'
  12335. lt_prog_compiler_static_CXX='-static'
  12336. case $host_os in
  12337. aix*)
  12338. # All AIX code is PIC.
  12339. if test "$host_cpu" = ia64; then
  12340. # AIX 5 now supports IA64 processor
  12341. lt_prog_compiler_static_CXX='-Bstatic'
  12342. fi
  12343. lt_prog_compiler_pic_CXX='-fPIC'
  12344. ;;
  12345. amigaos*)
  12346. case $host_cpu in
  12347. powerpc)
  12348. # see comment about AmigaOS4 .so support
  12349. lt_prog_compiler_pic_CXX='-fPIC'
  12350. ;;
  12351. m68k)
  12352. # FIXME: we need at least 68020 code to build shared libraries, but
  12353. # adding the `-m68020' flag to GCC prevents building anything better,
  12354. # like `-m68040'.
  12355. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12356. ;;
  12357. esac
  12358. ;;
  12359. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12360. # PIC is the default for these OSes.
  12361. ;;
  12362. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12363. # This hack is so that the source file can tell whether it is being
  12364. # built for inclusion in a dll (and should export symbols for example).
  12365. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12366. # (--disable-auto-import) libraries
  12367. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12368. ;;
  12369. darwin* | rhapsody*)
  12370. # PIC is the default on this platform
  12371. # Common symbols not allowed in MH_DYLIB files
  12372. lt_prog_compiler_pic_CXX='-fno-common'
  12373. ;;
  12374. *djgpp*)
  12375. # DJGPP does not support shared libraries at all
  12376. lt_prog_compiler_pic_CXX=
  12377. ;;
  12378. haiku*)
  12379. # PIC is the default for Haiku.
  12380. # The "-static" flag exists, but is broken.
  12381. lt_prog_compiler_static_CXX=
  12382. ;;
  12383. interix[3-9]*)
  12384. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12385. # Instead, we relocate shared libraries at runtime.
  12386. ;;
  12387. sysv4*MP*)
  12388. if test -d /usr/nec; then
  12389. lt_prog_compiler_pic_CXX=-Kconform_pic
  12390. fi
  12391. ;;
  12392. hpux*)
  12393. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12394. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12395. # sets the default TLS model and affects inlining.
  12396. case $host_cpu in
  12397. hppa*64*)
  12398. ;;
  12399. *)
  12400. lt_prog_compiler_pic_CXX='-fPIC'
  12401. ;;
  12402. esac
  12403. ;;
  12404. *qnx* | *nto*)
  12405. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12406. # it will coredump.
  12407. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12408. ;;
  12409. *)
  12410. lt_prog_compiler_pic_CXX='-fPIC'
  12411. ;;
  12412. esac
  12413. else
  12414. case $host_os in
  12415. aix[4-9]*)
  12416. # All AIX code is PIC.
  12417. if test "$host_cpu" = ia64; then
  12418. # AIX 5 now supports IA64 processor
  12419. lt_prog_compiler_static_CXX='-Bstatic'
  12420. else
  12421. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12422. fi
  12423. ;;
  12424. chorus*)
  12425. case $cc_basename in
  12426. cxch68*)
  12427. # Green Hills C++ Compiler
  12428. # _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"
  12429. ;;
  12430. esac
  12431. ;;
  12432. dgux*)
  12433. case $cc_basename in
  12434. ec++*)
  12435. lt_prog_compiler_pic_CXX='-KPIC'
  12436. ;;
  12437. ghcx*)
  12438. # Green Hills C++ Compiler
  12439. lt_prog_compiler_pic_CXX='-pic'
  12440. ;;
  12441. *)
  12442. ;;
  12443. esac
  12444. ;;
  12445. freebsd* | dragonfly*)
  12446. # FreeBSD uses GNU C++
  12447. ;;
  12448. hpux9* | hpux10* | hpux11*)
  12449. case $cc_basename in
  12450. CC*)
  12451. lt_prog_compiler_wl_CXX='-Wl,'
  12452. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12453. if test "$host_cpu" != ia64; then
  12454. lt_prog_compiler_pic_CXX='+Z'
  12455. fi
  12456. ;;
  12457. aCC*)
  12458. lt_prog_compiler_wl_CXX='-Wl,'
  12459. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12460. case $host_cpu in
  12461. hppa*64*|ia64*)
  12462. # +Z the default
  12463. ;;
  12464. *)
  12465. lt_prog_compiler_pic_CXX='+Z'
  12466. ;;
  12467. esac
  12468. ;;
  12469. *)
  12470. ;;
  12471. esac
  12472. ;;
  12473. interix*)
  12474. # This is c89, which is MS Visual C++ (no shared libs)
  12475. # Anyone wants to do a port?
  12476. ;;
  12477. irix5* | irix6* | nonstopux*)
  12478. case $cc_basename in
  12479. CC*)
  12480. lt_prog_compiler_wl_CXX='-Wl,'
  12481. lt_prog_compiler_static_CXX='-non_shared'
  12482. # CC pic flag -KPIC is the default.
  12483. ;;
  12484. *)
  12485. ;;
  12486. esac
  12487. ;;
  12488. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12489. case $cc_basename in
  12490. KCC*)
  12491. # KAI C++ Compiler
  12492. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12493. lt_prog_compiler_pic_CXX='-fPIC'
  12494. ;;
  12495. ecpc* )
  12496. # old Intel C++ for x86_64 which still supported -KPIC.
  12497. lt_prog_compiler_wl_CXX='-Wl,'
  12498. lt_prog_compiler_pic_CXX='-KPIC'
  12499. lt_prog_compiler_static_CXX='-static'
  12500. ;;
  12501. icpc* )
  12502. # Intel C++, used to be incompatible with GCC.
  12503. # ICC 10 doesn't accept -KPIC any more.
  12504. lt_prog_compiler_wl_CXX='-Wl,'
  12505. lt_prog_compiler_pic_CXX='-fPIC'
  12506. lt_prog_compiler_static_CXX='-static'
  12507. ;;
  12508. pgCC* | pgcpp*)
  12509. # Portland Group C++ compiler
  12510. lt_prog_compiler_wl_CXX='-Wl,'
  12511. lt_prog_compiler_pic_CXX='-fpic'
  12512. lt_prog_compiler_static_CXX='-Bstatic'
  12513. ;;
  12514. cxx*)
  12515. # Compaq C++
  12516. # Make sure the PIC flag is empty. It appears that all Alpha
  12517. # Linux and Compaq Tru64 Unix objects are PIC.
  12518. lt_prog_compiler_pic_CXX=
  12519. lt_prog_compiler_static_CXX='-non_shared'
  12520. ;;
  12521. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12522. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12523. lt_prog_compiler_wl_CXX='-Wl,'
  12524. lt_prog_compiler_pic_CXX='-qpic'
  12525. lt_prog_compiler_static_CXX='-qstaticlink'
  12526. ;;
  12527. *)
  12528. case `$CC -V 2>&1 | sed 5q` in
  12529. *Sun\ C*)
  12530. # Sun C++ 5.9
  12531. lt_prog_compiler_pic_CXX='-KPIC'
  12532. lt_prog_compiler_static_CXX='-Bstatic'
  12533. lt_prog_compiler_wl_CXX='-Qoption ld '
  12534. ;;
  12535. esac
  12536. ;;
  12537. esac
  12538. ;;
  12539. lynxos*)
  12540. ;;
  12541. m88k*)
  12542. ;;
  12543. mvs*)
  12544. case $cc_basename in
  12545. cxx*)
  12546. lt_prog_compiler_pic_CXX='-W c,exportall'
  12547. ;;
  12548. *)
  12549. ;;
  12550. esac
  12551. ;;
  12552. netbsd*)
  12553. ;;
  12554. *qnx* | *nto*)
  12555. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12556. # it will coredump.
  12557. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12558. ;;
  12559. osf3* | osf4* | osf5*)
  12560. case $cc_basename in
  12561. KCC*)
  12562. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12563. ;;
  12564. RCC*)
  12565. # Rational C++ 2.4.1
  12566. lt_prog_compiler_pic_CXX='-pic'
  12567. ;;
  12568. cxx*)
  12569. # Digital/Compaq C++
  12570. lt_prog_compiler_wl_CXX='-Wl,'
  12571. # Make sure the PIC flag is empty. It appears that all Alpha
  12572. # Linux and Compaq Tru64 Unix objects are PIC.
  12573. lt_prog_compiler_pic_CXX=
  12574. lt_prog_compiler_static_CXX='-non_shared'
  12575. ;;
  12576. *)
  12577. ;;
  12578. esac
  12579. ;;
  12580. psos*)
  12581. ;;
  12582. solaris*)
  12583. case $cc_basename in
  12584. CC*)
  12585. # Sun C++ 4.2, 5.x and Centerline C++
  12586. lt_prog_compiler_pic_CXX='-KPIC'
  12587. lt_prog_compiler_static_CXX='-Bstatic'
  12588. lt_prog_compiler_wl_CXX='-Qoption ld '
  12589. ;;
  12590. gcx*)
  12591. # Green Hills C++ Compiler
  12592. lt_prog_compiler_pic_CXX='-PIC'
  12593. ;;
  12594. *)
  12595. ;;
  12596. esac
  12597. ;;
  12598. sunos4*)
  12599. case $cc_basename in
  12600. CC*)
  12601. # Sun C++ 4.x
  12602. lt_prog_compiler_pic_CXX='-pic'
  12603. lt_prog_compiler_static_CXX='-Bstatic'
  12604. ;;
  12605. lcc*)
  12606. # Lucid
  12607. lt_prog_compiler_pic_CXX='-pic'
  12608. ;;
  12609. *)
  12610. ;;
  12611. esac
  12612. ;;
  12613. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12614. case $cc_basename in
  12615. CC*)
  12616. lt_prog_compiler_wl_CXX='-Wl,'
  12617. lt_prog_compiler_pic_CXX='-KPIC'
  12618. lt_prog_compiler_static_CXX='-Bstatic'
  12619. ;;
  12620. esac
  12621. ;;
  12622. tandem*)
  12623. case $cc_basename in
  12624. NCC*)
  12625. # NonStop-UX NCC 3.20
  12626. lt_prog_compiler_pic_CXX='-KPIC'
  12627. ;;
  12628. *)
  12629. ;;
  12630. esac
  12631. ;;
  12632. vxworks*)
  12633. ;;
  12634. *)
  12635. lt_prog_compiler_can_build_shared_CXX=no
  12636. ;;
  12637. esac
  12638. fi
  12639. case $host_os in
  12640. # For platforms which do not support PIC, -DPIC is meaningless:
  12641. *djgpp*)
  12642. lt_prog_compiler_pic_CXX=
  12643. ;;
  12644. *)
  12645. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12646. ;;
  12647. esac
  12648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  12649. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12650. #
  12651. # Check to make sure the PIC flag actually works.
  12652. #
  12653. if test -n "$lt_prog_compiler_pic_CXX"; then
  12654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12655. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12656. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12657. $as_echo_n "(cached) " >&6
  12658. else
  12659. lt_cv_prog_compiler_pic_works_CXX=no
  12660. ac_outfile=conftest.$ac_objext
  12661. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12662. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12663. # Insert the option either (1) after the last *FLAGS variable, or
  12664. # (2) before a word containing "conftest.", or (3) at the end.
  12665. # Note that $ac_compile itself does not contain backslashes and begins
  12666. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12667. # The option is referenced via a variable to avoid confusing sed.
  12668. lt_compile=`echo "$ac_compile" | $SED \
  12669. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12670. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12671. -e 's:$: $lt_compiler_flag:'`
  12672. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12673. (eval "$lt_compile" 2>conftest.err)
  12674. ac_status=$?
  12675. cat conftest.err >&5
  12676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12677. if (exit $ac_status) && test -s "$ac_outfile"; then
  12678. # The compiler can only warn and ignore the option if not recognized
  12679. # So say no if there are warnings other than the usual output.
  12680. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12681. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12682. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12683. lt_cv_prog_compiler_pic_works_CXX=yes
  12684. fi
  12685. fi
  12686. $RM conftest*
  12687. fi
  12688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12689. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12690. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12691. case $lt_prog_compiler_pic_CXX in
  12692. "" | " "*) ;;
  12693. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12694. esac
  12695. else
  12696. lt_prog_compiler_pic_CXX=
  12697. lt_prog_compiler_can_build_shared_CXX=no
  12698. fi
  12699. fi
  12700. #
  12701. # Check to make sure the static flag actually works.
  12702. #
  12703. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12705. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12706. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12707. $as_echo_n "(cached) " >&6
  12708. else
  12709. lt_cv_prog_compiler_static_works_CXX=no
  12710. save_LDFLAGS="$LDFLAGS"
  12711. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12712. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12713. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12714. # The linker can only warn and ignore the option if not recognized
  12715. # So say no if there are warnings
  12716. if test -s conftest.err; then
  12717. # Append any errors to the config.log.
  12718. cat conftest.err 1>&5
  12719. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12720. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12721. if diff conftest.exp conftest.er2 >/dev/null; then
  12722. lt_cv_prog_compiler_static_works_CXX=yes
  12723. fi
  12724. else
  12725. lt_cv_prog_compiler_static_works_CXX=yes
  12726. fi
  12727. fi
  12728. $RM -r conftest*
  12729. LDFLAGS="$save_LDFLAGS"
  12730. fi
  12731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12732. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12733. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12734. :
  12735. else
  12736. lt_prog_compiler_static_CXX=
  12737. fi
  12738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12739. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12740. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12741. $as_echo_n "(cached) " >&6
  12742. else
  12743. lt_cv_prog_compiler_c_o_CXX=no
  12744. $RM -r conftest 2>/dev/null
  12745. mkdir conftest
  12746. cd conftest
  12747. mkdir out
  12748. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12749. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12750. # Insert the option either (1) after the last *FLAGS variable, or
  12751. # (2) before a word containing "conftest.", or (3) at the end.
  12752. # Note that $ac_compile itself does not contain backslashes and begins
  12753. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12754. lt_compile=`echo "$ac_compile" | $SED \
  12755. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12756. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12757. -e 's:$: $lt_compiler_flag:'`
  12758. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12759. (eval "$lt_compile" 2>out/conftest.err)
  12760. ac_status=$?
  12761. cat out/conftest.err >&5
  12762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12763. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12764. then
  12765. # The compiler can only warn and ignore the option if not recognized
  12766. # So say no if there are warnings
  12767. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12768. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12769. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12770. lt_cv_prog_compiler_c_o_CXX=yes
  12771. fi
  12772. fi
  12773. chmod u+w . 2>&5
  12774. $RM conftest*
  12775. # SGI C++ compiler will create directory out/ii_files/ for
  12776. # template instantiation
  12777. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12778. $RM out/* && rmdir out
  12779. cd ..
  12780. $RM -r conftest
  12781. $RM conftest*
  12782. fi
  12783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12784. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12786. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12787. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12788. $as_echo_n "(cached) " >&6
  12789. else
  12790. lt_cv_prog_compiler_c_o_CXX=no
  12791. $RM -r conftest 2>/dev/null
  12792. mkdir conftest
  12793. cd conftest
  12794. mkdir out
  12795. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12796. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12797. # Insert the option either (1) after the last *FLAGS variable, or
  12798. # (2) before a word containing "conftest.", or (3) at the end.
  12799. # Note that $ac_compile itself does not contain backslashes and begins
  12800. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12801. lt_compile=`echo "$ac_compile" | $SED \
  12802. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12803. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12804. -e 's:$: $lt_compiler_flag:'`
  12805. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12806. (eval "$lt_compile" 2>out/conftest.err)
  12807. ac_status=$?
  12808. cat out/conftest.err >&5
  12809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12810. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12811. then
  12812. # The compiler can only warn and ignore the option if not recognized
  12813. # So say no if there are warnings
  12814. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12815. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12816. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12817. lt_cv_prog_compiler_c_o_CXX=yes
  12818. fi
  12819. fi
  12820. chmod u+w . 2>&5
  12821. $RM conftest*
  12822. # SGI C++ compiler will create directory out/ii_files/ for
  12823. # template instantiation
  12824. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12825. $RM out/* && rmdir out
  12826. cd ..
  12827. $RM -r conftest
  12828. $RM conftest*
  12829. fi
  12830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12831. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12832. hard_links="nottested"
  12833. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12834. # do not overwrite the value of need_locks provided by the user
  12835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12836. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12837. hard_links=yes
  12838. $RM conftest*
  12839. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12840. touch conftest.a
  12841. ln conftest.a conftest.b 2>&5 || hard_links=no
  12842. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12844. $as_echo "$hard_links" >&6; }
  12845. if test "$hard_links" = no; then
  12846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12847. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12848. need_locks=warn
  12849. fi
  12850. else
  12851. need_locks=no
  12852. fi
  12853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12854. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12855. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12856. case $host_os in
  12857. aix[4-9]*)
  12858. # If we're using GNU nm, then we don't want the "-C" option.
  12859. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12860. # Also, AIX nm treats weak defined symbols like other global defined
  12861. # symbols, whereas GNU nm marks them as "W".
  12862. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12863. 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'
  12864. else
  12865. 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'
  12866. fi
  12867. ;;
  12868. pw32*)
  12869. export_symbols_cmds_CXX="$ltdll_cmds"
  12870. ;;
  12871. cygwin* | mingw* | cegcc*)
  12872. 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'
  12873. ;;
  12874. *)
  12875. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12876. ;;
  12877. esac
  12878. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12880. $as_echo "$ld_shlibs_CXX" >&6; }
  12881. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12882. with_gnu_ld_CXX=$with_gnu_ld
  12883. #
  12884. # Do we need to explicitly link libc?
  12885. #
  12886. case "x$archive_cmds_need_lc_CXX" in
  12887. x|xyes)
  12888. # Assume -lc should be added
  12889. archive_cmds_need_lc_CXX=yes
  12890. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12891. case $archive_cmds_CXX in
  12892. *'~'*)
  12893. # FIXME: we may have to deal with multi-command sequences.
  12894. ;;
  12895. '$CC '*)
  12896. # Test whether the compiler implicitly links with -lc since on some
  12897. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12898. # to ld, don't add -lc before -lgcc.
  12899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12900. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12901. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12902. $as_echo_n "(cached) " >&6
  12903. else
  12904. $RM conftest*
  12905. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12906. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12907. (eval $ac_compile) 2>&5
  12908. ac_status=$?
  12909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12910. test $ac_status = 0; } 2>conftest.err; then
  12911. soname=conftest
  12912. lib=conftest
  12913. libobjs=conftest.$ac_objext
  12914. deplibs=
  12915. wl=$lt_prog_compiler_wl_CXX
  12916. pic_flag=$lt_prog_compiler_pic_CXX
  12917. compiler_flags=-v
  12918. linker_flags=-v
  12919. verstring=
  12920. output_objdir=.
  12921. libname=conftest
  12922. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12923. allow_undefined_flag_CXX=
  12924. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12925. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12926. ac_status=$?
  12927. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12928. test $ac_status = 0; }
  12929. then
  12930. lt_cv_archive_cmds_need_lc_CXX=no
  12931. else
  12932. lt_cv_archive_cmds_need_lc_CXX=yes
  12933. fi
  12934. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12935. else
  12936. cat conftest.err 1>&5
  12937. fi
  12938. $RM conftest*
  12939. fi
  12940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12941. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12942. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12943. ;;
  12944. esac
  12945. fi
  12946. ;;
  12947. esac
  12948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12949. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12950. library_names_spec=
  12951. libname_spec='lib$name'
  12952. soname_spec=
  12953. shrext_cmds=".so"
  12954. postinstall_cmds=
  12955. postuninstall_cmds=
  12956. finish_cmds=
  12957. finish_eval=
  12958. shlibpath_var=
  12959. shlibpath_overrides_runpath=unknown
  12960. version_type=none
  12961. dynamic_linker="$host_os ld.so"
  12962. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12963. need_lib_prefix=unknown
  12964. hardcode_into_libs=no
  12965. # when you set need_version to no, make sure it does not cause -set_version
  12966. # flags to be left without arguments
  12967. need_version=unknown
  12968. case $host_os in
  12969. aix3*)
  12970. version_type=linux
  12971. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12972. shlibpath_var=LIBPATH
  12973. # AIX 3 has no versioning support, so we append a major version to the name.
  12974. soname_spec='${libname}${release}${shared_ext}$major'
  12975. ;;
  12976. aix[4-9]*)
  12977. version_type=linux
  12978. need_lib_prefix=no
  12979. need_version=no
  12980. hardcode_into_libs=yes
  12981. if test "$host_cpu" = ia64; then
  12982. # AIX 5 supports IA64
  12983. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12984. shlibpath_var=LD_LIBRARY_PATH
  12985. else
  12986. # With GCC up to 2.95.x, collect2 would create an import file
  12987. # for dependence libraries. The import file would start with
  12988. # the line `#! .'. This would cause the generated library to
  12989. # depend on `.', always an invalid library. This was fixed in
  12990. # development snapshots of GCC prior to 3.0.
  12991. case $host_os in
  12992. aix4 | aix4.[01] | aix4.[01].*)
  12993. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12994. echo ' yes '
  12995. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12996. :
  12997. else
  12998. can_build_shared=no
  12999. fi
  13000. ;;
  13001. esac
  13002. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13003. # soname into executable. Probably we can add versioning support to
  13004. # collect2, so additional links can be useful in future.
  13005. if test "$aix_use_runtimelinking" = yes; then
  13006. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13007. # instead of lib<name>.a to let people know that these are not
  13008. # typical AIX shared libraries.
  13009. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13010. else
  13011. # We preserve .a as extension for shared libraries through AIX4.2
  13012. # and later when we are not doing run time linking.
  13013. library_names_spec='${libname}${release}.a $libname.a'
  13014. soname_spec='${libname}${release}${shared_ext}$major'
  13015. fi
  13016. shlibpath_var=LIBPATH
  13017. fi
  13018. ;;
  13019. amigaos*)
  13020. case $host_cpu in
  13021. powerpc)
  13022. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13023. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13025. ;;
  13026. m68k)
  13027. library_names_spec='$libname.ixlibrary $libname.a'
  13028. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13029. 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'
  13030. ;;
  13031. esac
  13032. ;;
  13033. beos*)
  13034. library_names_spec='${libname}${shared_ext}'
  13035. dynamic_linker="$host_os ld.so"
  13036. shlibpath_var=LIBRARY_PATH
  13037. ;;
  13038. bsdi[45]*)
  13039. version_type=linux
  13040. need_version=no
  13041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13042. soname_spec='${libname}${release}${shared_ext}$major'
  13043. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13044. shlibpath_var=LD_LIBRARY_PATH
  13045. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13046. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13047. # the default ld.so.conf also contains /usr/contrib/lib and
  13048. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13049. # libtool to hard-code these into programs
  13050. ;;
  13051. cygwin* | mingw* | pw32* | cegcc*)
  13052. version_type=windows
  13053. shrext_cmds=".dll"
  13054. need_version=no
  13055. need_lib_prefix=no
  13056. case $GCC,$host_os in
  13057. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  13058. library_names_spec='$libname.dll.a'
  13059. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13060. postinstall_cmds='base_file=`basename \${file}`~
  13061. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13062. dldir=$destdir/`dirname \$dlpath`~
  13063. test -d \$dldir || mkdir -p \$dldir~
  13064. $install_prog $dir/$dlname \$dldir/$dlname~
  13065. chmod a+x \$dldir/$dlname~
  13066. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13067. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13068. fi'
  13069. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13070. dlpath=$dir/\$dldll~
  13071. $RM \$dlpath'
  13072. shlibpath_overrides_runpath=yes
  13073. case $host_os in
  13074. cygwin*)
  13075. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13076. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13077. ;;
  13078. mingw* | cegcc*)
  13079. # MinGW DLLs use traditional 'lib' prefix
  13080. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13081. ;;
  13082. pw32*)
  13083. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13084. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13085. ;;
  13086. esac
  13087. ;;
  13088. *)
  13089. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13090. ;;
  13091. esac
  13092. dynamic_linker='Win32 ld.exe'
  13093. # FIXME: first we should search . and the directory the executable is in
  13094. shlibpath_var=PATH
  13095. ;;
  13096. darwin* | rhapsody*)
  13097. dynamic_linker="$host_os dyld"
  13098. version_type=darwin
  13099. need_lib_prefix=no
  13100. need_version=no
  13101. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13102. soname_spec='${libname}${release}${major}$shared_ext'
  13103. shlibpath_overrides_runpath=yes
  13104. shlibpath_var=DYLD_LIBRARY_PATH
  13105. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13106. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13107. ;;
  13108. dgux*)
  13109. version_type=linux
  13110. need_lib_prefix=no
  13111. need_version=no
  13112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13113. soname_spec='${libname}${release}${shared_ext}$major'
  13114. shlibpath_var=LD_LIBRARY_PATH
  13115. ;;
  13116. freebsd* | dragonfly*)
  13117. # DragonFly does not have aout. When/if they implement a new
  13118. # versioning mechanism, adjust this.
  13119. if test -x /usr/bin/objformat; then
  13120. objformat=`/usr/bin/objformat`
  13121. else
  13122. case $host_os in
  13123. freebsd[23].*) objformat=aout ;;
  13124. *) objformat=elf ;;
  13125. esac
  13126. fi
  13127. version_type=freebsd-$objformat
  13128. case $version_type in
  13129. freebsd-elf*)
  13130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13131. need_version=no
  13132. need_lib_prefix=no
  13133. ;;
  13134. freebsd-*)
  13135. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13136. need_version=yes
  13137. ;;
  13138. esac
  13139. shlibpath_var=LD_LIBRARY_PATH
  13140. case $host_os in
  13141. freebsd2.*)
  13142. shlibpath_overrides_runpath=yes
  13143. ;;
  13144. freebsd3.[01]* | freebsdelf3.[01]*)
  13145. shlibpath_overrides_runpath=yes
  13146. hardcode_into_libs=yes
  13147. ;;
  13148. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13149. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13150. shlibpath_overrides_runpath=no
  13151. hardcode_into_libs=yes
  13152. ;;
  13153. *) # from 4.6 on, and DragonFly
  13154. shlibpath_overrides_runpath=yes
  13155. hardcode_into_libs=yes
  13156. ;;
  13157. esac
  13158. ;;
  13159. haiku*)
  13160. version_type=linux
  13161. need_lib_prefix=no
  13162. need_version=no
  13163. dynamic_linker="$host_os runtime_loader"
  13164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13165. soname_spec='${libname}${release}${shared_ext}$major'
  13166. shlibpath_var=LIBRARY_PATH
  13167. shlibpath_overrides_runpath=yes
  13168. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  13169. hardcode_into_libs=yes
  13170. ;;
  13171. hpux9* | hpux10* | hpux11*)
  13172. # Give a soname corresponding to the major version so that dld.sl refuses to
  13173. # link against other versions.
  13174. version_type=sunos
  13175. need_lib_prefix=no
  13176. need_version=no
  13177. case $host_cpu in
  13178. ia64*)
  13179. shrext_cmds='.so'
  13180. hardcode_into_libs=yes
  13181. dynamic_linker="$host_os dld.so"
  13182. shlibpath_var=LD_LIBRARY_PATH
  13183. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13185. soname_spec='${libname}${release}${shared_ext}$major'
  13186. if test "X$HPUX_IA64_MODE" = X32; then
  13187. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13188. else
  13189. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13190. fi
  13191. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13192. ;;
  13193. hppa*64*)
  13194. shrext_cmds='.sl'
  13195. hardcode_into_libs=yes
  13196. dynamic_linker="$host_os dld.sl"
  13197. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13198. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13200. soname_spec='${libname}${release}${shared_ext}$major'
  13201. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13202. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13203. ;;
  13204. *)
  13205. shrext_cmds='.sl'
  13206. dynamic_linker="$host_os dld.sl"
  13207. shlibpath_var=SHLIB_PATH
  13208. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13210. soname_spec='${libname}${release}${shared_ext}$major'
  13211. ;;
  13212. esac
  13213. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13214. postinstall_cmds='chmod 555 $lib'
  13215. # or fails outright, so override atomically:
  13216. install_override_mode=555
  13217. ;;
  13218. interix[3-9]*)
  13219. version_type=linux
  13220. need_lib_prefix=no
  13221. need_version=no
  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='Interix 3.x ld.so.1 (PE, like ELF)'
  13225. shlibpath_var=LD_LIBRARY_PATH
  13226. shlibpath_overrides_runpath=no
  13227. hardcode_into_libs=yes
  13228. ;;
  13229. irix5* | irix6* | nonstopux*)
  13230. case $host_os in
  13231. nonstopux*) version_type=nonstopux ;;
  13232. *)
  13233. if test "$lt_cv_prog_gnu_ld" = yes; then
  13234. version_type=linux
  13235. else
  13236. version_type=irix
  13237. fi ;;
  13238. esac
  13239. need_lib_prefix=no
  13240. need_version=no
  13241. soname_spec='${libname}${release}${shared_ext}$major'
  13242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13243. case $host_os in
  13244. irix5* | nonstopux*)
  13245. libsuff= shlibsuff=
  13246. ;;
  13247. *)
  13248. case $LD in # libtool.m4 will add one of these switches to LD
  13249. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13250. libsuff= shlibsuff= libmagic=32-bit;;
  13251. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13252. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13253. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13254. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13255. *) libsuff= shlibsuff= libmagic=never-match;;
  13256. esac
  13257. ;;
  13258. esac
  13259. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13260. shlibpath_overrides_runpath=no
  13261. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13262. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13263. hardcode_into_libs=yes
  13264. ;;
  13265. # No shared lib support for Linux oldld, aout, or coff.
  13266. linux*oldld* | linux*aout* | linux*coff*)
  13267. dynamic_linker=no
  13268. ;;
  13269. # This must be Linux ELF.
  13270. # uclinux* changes (here and below) have been submitted to the libtool
  13271. # project, but have not yet been accepted: they are GCC-local changes
  13272. # for the time being. (See
  13273. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  13274. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  13275. version_type=linux
  13276. need_lib_prefix=no
  13277. need_version=no
  13278. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13279. soname_spec='${libname}${release}${shared_ext}$major'
  13280. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13281. shlibpath_var=LD_LIBRARY_PATH
  13282. shlibpath_overrides_runpath=no
  13283. # Some binutils ld are patched to set DT_RUNPATH
  13284. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13285. $as_echo_n "(cached) " >&6
  13286. else
  13287. lt_cv_shlibpath_overrides_runpath=no
  13288. save_LDFLAGS=$LDFLAGS
  13289. save_libdir=$libdir
  13290. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13291. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13293. /* end confdefs.h. */
  13294. int
  13295. main ()
  13296. {
  13297. ;
  13298. return 0;
  13299. }
  13300. _ACEOF
  13301. if ac_fn_cxx_try_link "$LINENO"; then :
  13302. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13303. lt_cv_shlibpath_overrides_runpath=yes
  13304. fi
  13305. fi
  13306. rm -f core conftest.err conftest.$ac_objext \
  13307. conftest$ac_exeext conftest.$ac_ext
  13308. LDFLAGS=$save_LDFLAGS
  13309. libdir=$save_libdir
  13310. fi
  13311. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13312. # This implies no fast_install, which is unacceptable.
  13313. # Some rework will be needed to allow for fast_install
  13314. # before this can be enabled.
  13315. hardcode_into_libs=yes
  13316. # Append ld.so.conf contents to the search path
  13317. if test -f /etc/ld.so.conf; then
  13318. 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' ' '`
  13319. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13320. fi
  13321. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13322. # powerpc, because MkLinux only supported shared libraries with the
  13323. # GNU dynamic linker. Since this was broken with cross compilers,
  13324. # most powerpc-linux boxes support dynamic linking these days and
  13325. # people can always --disable-shared, the test was removed, and we
  13326. # assume the GNU/Linux dynamic linker is in use.
  13327. dynamic_linker='GNU/Linux ld.so'
  13328. ;;
  13329. netbsd*)
  13330. version_type=sunos
  13331. need_lib_prefix=no
  13332. need_version=no
  13333. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13335. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13336. dynamic_linker='NetBSD (a.out) ld.so'
  13337. else
  13338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13339. soname_spec='${libname}${release}${shared_ext}$major'
  13340. dynamic_linker='NetBSD ld.elf_so'
  13341. fi
  13342. shlibpath_var=LD_LIBRARY_PATH
  13343. shlibpath_overrides_runpath=yes
  13344. hardcode_into_libs=yes
  13345. ;;
  13346. newsos6)
  13347. version_type=linux
  13348. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13349. shlibpath_var=LD_LIBRARY_PATH
  13350. shlibpath_overrides_runpath=yes
  13351. ;;
  13352. *nto* | *qnx*)
  13353. version_type=qnx
  13354. need_lib_prefix=no
  13355. need_version=no
  13356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13357. soname_spec='${libname}${release}${shared_ext}$major'
  13358. shlibpath_var=LD_LIBRARY_PATH
  13359. shlibpath_overrides_runpath=no
  13360. hardcode_into_libs=yes
  13361. dynamic_linker='ldqnx.so'
  13362. ;;
  13363. openbsd*)
  13364. version_type=sunos
  13365. sys_lib_dlsearch_path_spec="/usr/lib"
  13366. need_lib_prefix=no
  13367. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13368. case $host_os in
  13369. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13370. *) need_version=no ;;
  13371. esac
  13372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13373. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13374. shlibpath_var=LD_LIBRARY_PATH
  13375. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13376. case $host_os in
  13377. openbsd2.[89] | openbsd2.[89].*)
  13378. shlibpath_overrides_runpath=no
  13379. ;;
  13380. *)
  13381. shlibpath_overrides_runpath=yes
  13382. ;;
  13383. esac
  13384. else
  13385. shlibpath_overrides_runpath=yes
  13386. fi
  13387. ;;
  13388. os2*)
  13389. libname_spec='$name'
  13390. shrext_cmds=".dll"
  13391. need_lib_prefix=no
  13392. library_names_spec='$libname${shared_ext} $libname.a'
  13393. dynamic_linker='OS/2 ld.exe'
  13394. shlibpath_var=LIBPATH
  13395. ;;
  13396. osf3* | osf4* | osf5*)
  13397. version_type=osf
  13398. need_lib_prefix=no
  13399. need_version=no
  13400. soname_spec='${libname}${release}${shared_ext}$major'
  13401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13402. shlibpath_var=LD_LIBRARY_PATH
  13403. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13404. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13405. ;;
  13406. rdos*)
  13407. dynamic_linker=no
  13408. ;;
  13409. solaris*)
  13410. version_type=linux
  13411. need_lib_prefix=no
  13412. need_version=no
  13413. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13414. soname_spec='${libname}${release}${shared_ext}$major'
  13415. shlibpath_var=LD_LIBRARY_PATH
  13416. shlibpath_overrides_runpath=yes
  13417. hardcode_into_libs=yes
  13418. # ldd complains unless libraries are executable
  13419. postinstall_cmds='chmod +x $lib'
  13420. ;;
  13421. sunos4*)
  13422. version_type=sunos
  13423. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13424. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13425. shlibpath_var=LD_LIBRARY_PATH
  13426. shlibpath_overrides_runpath=yes
  13427. if test "$with_gnu_ld" = yes; then
  13428. need_lib_prefix=no
  13429. fi
  13430. need_version=yes
  13431. ;;
  13432. sysv4 | sysv4.3*)
  13433. version_type=linux
  13434. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13435. soname_spec='${libname}${release}${shared_ext}$major'
  13436. shlibpath_var=LD_LIBRARY_PATH
  13437. case $host_vendor in
  13438. sni)
  13439. shlibpath_overrides_runpath=no
  13440. need_lib_prefix=no
  13441. runpath_var=LD_RUN_PATH
  13442. ;;
  13443. siemens)
  13444. need_lib_prefix=no
  13445. ;;
  13446. motorola)
  13447. need_lib_prefix=no
  13448. need_version=no
  13449. shlibpath_overrides_runpath=no
  13450. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13451. ;;
  13452. esac
  13453. ;;
  13454. sysv4*MP*)
  13455. if test -d /usr/nec ;then
  13456. version_type=linux
  13457. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13458. soname_spec='$libname${shared_ext}.$major'
  13459. shlibpath_var=LD_LIBRARY_PATH
  13460. fi
  13461. ;;
  13462. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13463. version_type=freebsd-elf
  13464. need_lib_prefix=no
  13465. need_version=no
  13466. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13467. soname_spec='${libname}${release}${shared_ext}$major'
  13468. shlibpath_var=LD_LIBRARY_PATH
  13469. shlibpath_overrides_runpath=yes
  13470. hardcode_into_libs=yes
  13471. if test "$with_gnu_ld" = yes; then
  13472. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13473. else
  13474. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13475. case $host_os in
  13476. sco3.2v5*)
  13477. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13478. ;;
  13479. esac
  13480. fi
  13481. sys_lib_dlsearch_path_spec='/usr/lib'
  13482. ;;
  13483. tpf*)
  13484. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13485. version_type=linux
  13486. need_lib_prefix=no
  13487. need_version=no
  13488. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13489. shlibpath_var=LD_LIBRARY_PATH
  13490. shlibpath_overrides_runpath=no
  13491. hardcode_into_libs=yes
  13492. ;;
  13493. uts4*)
  13494. version_type=linux
  13495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13496. soname_spec='${libname}${release}${shared_ext}$major'
  13497. shlibpath_var=LD_LIBRARY_PATH
  13498. ;;
  13499. *)
  13500. dynamic_linker=no
  13501. ;;
  13502. esac
  13503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13504. $as_echo "$dynamic_linker" >&6; }
  13505. test "$dynamic_linker" = no && can_build_shared=no
  13506. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13507. if test "$GCC" = yes; then
  13508. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13509. fi
  13510. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13511. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13512. fi
  13513. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13514. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13515. fi
  13516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13517. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13518. hardcode_action_CXX=
  13519. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13520. test -n "$runpath_var_CXX" ||
  13521. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13522. # We can hardcode non-existent directories.
  13523. if test "$hardcode_direct_CXX" != no &&
  13524. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13525. # have to relink, otherwise we might link with an installed library
  13526. # when we should be linking with a yet-to-be-installed one
  13527. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13528. test "$hardcode_minus_L_CXX" != no; then
  13529. # Linking always hardcodes the temporary library directory.
  13530. hardcode_action_CXX=relink
  13531. else
  13532. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13533. hardcode_action_CXX=immediate
  13534. fi
  13535. else
  13536. # We cannot hardcode anything, or else we can only hardcode existing
  13537. # directories.
  13538. hardcode_action_CXX=unsupported
  13539. fi
  13540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13541. $as_echo "$hardcode_action_CXX" >&6; }
  13542. if test "$hardcode_action_CXX" = relink ||
  13543. test "$inherit_rpath_CXX" = yes; then
  13544. # Fast installation is not supported
  13545. enable_fast_install=no
  13546. elif test "$shlibpath_overrides_runpath" = yes ||
  13547. test "$enable_shared" = no; then
  13548. # Fast installation is not necessary
  13549. enable_fast_install=needless
  13550. fi
  13551. fi # test -n "$compiler"
  13552. CC=$lt_save_CC
  13553. LDCXX=$LD
  13554. LD=$lt_save_LD
  13555. GCC=$lt_save_GCC
  13556. with_gnu_ld=$lt_save_with_gnu_ld
  13557. lt_cv_path_LDCXX=$lt_cv_path_LD
  13558. lt_cv_path_LD=$lt_save_path_LD
  13559. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13560. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13561. fi # test "$_lt_caught_CXX_error" != yes
  13562. ac_ext=c
  13563. ac_cpp='$CPP $CPPFLAGS'
  13564. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13565. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13566. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13567. ac_config_commands="$ac_config_commands libtool"
  13568. # Only expand once:
  13569. for ac_prog in gawk mawk nawk awk
  13570. do
  13571. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13572. set dummy $ac_prog; ac_word=$2
  13573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13574. $as_echo_n "checking for $ac_word... " >&6; }
  13575. if ${ac_cv_prog_AWK+:} false; then :
  13576. $as_echo_n "(cached) " >&6
  13577. else
  13578. if test -n "$AWK"; then
  13579. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  13580. else
  13581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13582. for as_dir in $PATH
  13583. do
  13584. IFS=$as_save_IFS
  13585. test -z "$as_dir" && as_dir=.
  13586. for ac_exec_ext in '' $ac_executable_extensions; do
  13587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13588. ac_cv_prog_AWK="$ac_prog"
  13589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13590. break 2
  13591. fi
  13592. done
  13593. done
  13594. IFS=$as_save_IFS
  13595. fi
  13596. fi
  13597. AWK=$ac_cv_prog_AWK
  13598. if test -n "$AWK"; then
  13599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  13600. $as_echo "$AWK" >&6; }
  13601. else
  13602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13603. $as_echo "no" >&6; }
  13604. fi
  13605. test -n "$AWK" && break
  13606. done
  13607. case "$AWK" in
  13608. "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
  13609. esac
  13610. # The cast to long int works around a bug in the HP C Compiler
  13611. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13612. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13613. # This bug is HP SR number 8606223364.
  13614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  13615. $as_echo_n "checking size of void *... " >&6; }
  13616. if ${ac_cv_sizeof_void_p+:} false; then :
  13617. $as_echo_n "(cached) " >&6
  13618. else
  13619. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  13620. else
  13621. if test "$ac_cv_type_void_p" = yes; then
  13622. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13623. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13624. as_fn_error 77 "cannot compute sizeof (void *)
  13625. See \`config.log' for more details" "$LINENO" 5; }
  13626. else
  13627. ac_cv_sizeof_void_p=0
  13628. fi
  13629. fi
  13630. fi
  13631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  13632. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  13633. cat >>confdefs.h <<_ACEOF
  13634. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  13635. _ACEOF
  13636. if test "${multilib}" = "yes"; then
  13637. multilib_arg="--enable-multilib"
  13638. else
  13639. multilib_arg=
  13640. fi
  13641. # Get target configury.
  13642. unset TSAN_SUPPORTED
  13643. unset LSAN_SUPPORTED
  13644. unset HWASAN_SUPPORTED
  13645. . ${srcdir}/configure.tgt
  13646. if test "x$TSAN_SUPPORTED" = "xyes"; then
  13647. TSAN_SUPPORTED_TRUE=
  13648. TSAN_SUPPORTED_FALSE='#'
  13649. else
  13650. TSAN_SUPPORTED_TRUE='#'
  13651. TSAN_SUPPORTED_FALSE=
  13652. fi
  13653. if test "x$LSAN_SUPPORTED" = "xyes"; then
  13654. LSAN_SUPPORTED_TRUE=
  13655. LSAN_SUPPORTED_FALSE='#'
  13656. else
  13657. LSAN_SUPPORTED_TRUE='#'
  13658. LSAN_SUPPORTED_FALSE=
  13659. fi
  13660. if test "x$HWASAN_SUPPORTED" = "xyes"; then
  13661. HWASAN_SUPPORTED_TRUE=
  13662. HWASAN_SUPPORTED_FALSE='#'
  13663. else
  13664. HWASAN_SUPPORTED_TRUE='#'
  13665. HWASAN_SUPPORTED_FALSE=
  13666. fi
  13667. # Check for functions needed.
  13668. for ac_func in clock_getres clock_gettime clock_settime lstat readlink
  13669. do :
  13670. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13671. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13672. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13673. cat >>confdefs.h <<_ACEOF
  13674. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13675. _ACEOF
  13676. fi
  13677. done
  13678. # Common libraries that we need to link against for all sanitizer libs.
  13679. link_sanitizer_common='-lpthread -lm'
  13680. # At least for glibc, shm_open is in librt. But don't pull that
  13681. # in if it still doesn't give us the function we want. This
  13682. # test is copied from libgomp.
  13683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
  13684. $as_echo_n "checking for shm_open in -lrt... " >&6; }
  13685. if ${ac_cv_lib_rt_shm_open+:} false; then :
  13686. $as_echo_n "(cached) " >&6
  13687. else
  13688. ac_check_lib_save_LIBS=$LIBS
  13689. LIBS="-lrt $LIBS"
  13690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13691. /* end confdefs.h. */
  13692. /* Override any GCC internal prototype to avoid an error.
  13693. Use char because int might match the return type of a GCC
  13694. builtin and then its argument prototype would still apply. */
  13695. #ifdef __cplusplus
  13696. extern "C"
  13697. #endif
  13698. char shm_open ();
  13699. int
  13700. main ()
  13701. {
  13702. return shm_open ();
  13703. ;
  13704. return 0;
  13705. }
  13706. _ACEOF
  13707. if ac_fn_c_try_link "$LINENO"; then :
  13708. ac_cv_lib_rt_shm_open=yes
  13709. else
  13710. ac_cv_lib_rt_shm_open=no
  13711. fi
  13712. rm -f core conftest.err conftest.$ac_objext \
  13713. conftest$ac_exeext conftest.$ac_ext
  13714. LIBS=$ac_check_lib_save_LIBS
  13715. fi
  13716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
  13717. $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
  13718. if test "x$ac_cv_lib_rt_shm_open" = xyes; then :
  13719. link_sanitizer_common="-lrt $link_sanitizer_common"
  13720. fi
  13721. # Do a configure time check for -ldl
  13722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
  13723. $as_echo_n "checking for dlsym in -ldl... " >&6; }
  13724. if ${ac_cv_lib_dl_dlsym+:} false; then :
  13725. $as_echo_n "(cached) " >&6
  13726. else
  13727. ac_check_lib_save_LIBS=$LIBS
  13728. LIBS="-ldl $LIBS"
  13729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13730. /* end confdefs.h. */
  13731. /* Override any GCC internal prototype to avoid an error.
  13732. Use char because int might match the return type of a GCC
  13733. builtin and then its argument prototype would still apply. */
  13734. #ifdef __cplusplus
  13735. extern "C"
  13736. #endif
  13737. char dlsym ();
  13738. int
  13739. main ()
  13740. {
  13741. return dlsym ();
  13742. ;
  13743. return 0;
  13744. }
  13745. _ACEOF
  13746. if ac_fn_c_try_link "$LINENO"; then :
  13747. ac_cv_lib_dl_dlsym=yes
  13748. else
  13749. ac_cv_lib_dl_dlsym=no
  13750. fi
  13751. rm -f core conftest.err conftest.$ac_objext \
  13752. conftest$ac_exeext conftest.$ac_ext
  13753. LIBS=$ac_check_lib_save_LIBS
  13754. fi
  13755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
  13756. $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
  13757. if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
  13758. link_sanitizer_common="-ldl $link_sanitizer_common"
  13759. fi
  13760. # Set up the set of additional libraries that we need to link against for libasan.
  13761. link_libasan=$link_sanitizer_common
  13762. # Set up the set of additional libraries that we need to link against for libhwasan.
  13763. link_libhwasan=$link_sanitizer_common
  13764. # Set up the set of additional libraries that we need to link against for libtsan.
  13765. link_libtsan=$link_sanitizer_common
  13766. # Set up the set of additional libraries that we need to link against for libubsan.
  13767. link_libubsan=$link_sanitizer_common
  13768. # Set up the set of additional libraries that we need to link against for liblsan.
  13769. link_liblsan=$link_sanitizer_common
  13770. # At least for glibc, clock_gettime is in librt. But don't pull that
  13771. # in if it still doesn't give us the function we want. This
  13772. # test is copied from libgomp.
  13773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  13774. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  13775. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  13776. $as_echo_n "(cached) " >&6
  13777. else
  13778. ac_check_lib_save_LIBS=$LIBS
  13779. LIBS="-lrt $LIBS"
  13780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13781. /* end confdefs.h. */
  13782. /* Override any GCC internal prototype to avoid an error.
  13783. Use char because int might match the return type of a GCC
  13784. builtin and then its argument prototype would still apply. */
  13785. #ifdef __cplusplus
  13786. extern "C"
  13787. #endif
  13788. char clock_gettime ();
  13789. int
  13790. main ()
  13791. {
  13792. return clock_gettime ();
  13793. ;
  13794. return 0;
  13795. }
  13796. _ACEOF
  13797. if ac_fn_c_try_link "$LINENO"; then :
  13798. ac_cv_lib_rt_clock_gettime=yes
  13799. else
  13800. ac_cv_lib_rt_clock_gettime=no
  13801. fi
  13802. rm -f core conftest.err conftest.$ac_objext \
  13803. conftest$ac_exeext conftest.$ac_ext
  13804. LIBS=$ac_check_lib_save_LIBS
  13805. fi
  13806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  13807. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  13808. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  13809. link_libasan="-lrt $link_libasan"
  13810. link_libtsan="-lrt $link_libtsan"
  13811. # Other sanitizers do not override clock_* API
  13812. fi
  13813. case "$host" in
  13814. *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
  13815. *) MAC_INTERPOSE=false ;;
  13816. esac
  13817. if $MAC_INTERPOSE; then
  13818. USING_MAC_INTERPOSE_TRUE=
  13819. USING_MAC_INTERPOSE_FALSE='#'
  13820. else
  13821. USING_MAC_INTERPOSE_TRUE='#'
  13822. USING_MAC_INTERPOSE_FALSE=
  13823. fi
  13824. backtrace_supported=yes
  13825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
  13826. $as_echo_n "checking for necessary platform features... " >&6; }
  13827. case "$target" in
  13828. *-*-linux*)
  13829. # Some old Linux distributions miss required syscalls.
  13830. sanitizer_supported=no
  13831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13832. /* end confdefs.h. */
  13833. #include <sys/syscall.h>
  13834. int
  13835. main ()
  13836. {
  13837. syscall (__NR_gettid);
  13838. syscall (__NR_futex);
  13839. syscall (__NR_exit_group);
  13840. ;
  13841. return 0;
  13842. }
  13843. _ACEOF
  13844. if ac_fn_c_try_compile "$LINENO"; then :
  13845. sanitizer_supported=yes
  13846. fi
  13847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13848. ;;
  13849. *)
  13850. sanitizer_supported=yes
  13851. ;;
  13852. esac
  13853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
  13854. $as_echo "$sanitizer_supported" >&6; }
  13855. if test "$sanitizer_supported" = yes; then
  13856. SANITIZER_SUPPORTED_TRUE=
  13857. SANITIZER_SUPPORTED_FALSE='#'
  13858. else
  13859. SANITIZER_SUPPORTED_TRUE='#'
  13860. SANITIZER_SUPPORTED_FALSE=
  13861. fi
  13862. # Test for __sync support.
  13863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
  13864. $as_echo_n "checking __sync extensions... " >&6; }
  13865. if ${libsanitizer_cv_sys_sync+:} false; then :
  13866. $as_echo_n "(cached) " >&6
  13867. else
  13868. if test -n "${with_target_subdir}"; then
  13869. libsanitizer_cv_sys_sync=yes
  13870. else
  13871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13872. /* end confdefs.h. */
  13873. int i;
  13874. int
  13875. main ()
  13876. {
  13877. __sync_bool_compare_and_swap (&i, i, i);
  13878. __sync_lock_test_and_set (&i, 1);
  13879. __sync_lock_release (&i);
  13880. ;
  13881. return 0;
  13882. }
  13883. _ACEOF
  13884. if ac_fn_c_try_link "$LINENO"; then :
  13885. libsanitizer_cv_sys_sync=yes
  13886. else
  13887. libsanitizer_cv_sys_sync=no
  13888. fi
  13889. rm -f core conftest.err conftest.$ac_objext \
  13890. conftest$ac_exeext conftest.$ac_ext
  13891. fi
  13892. fi
  13893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
  13894. $as_echo "$libsanitizer_cv_sys_sync" >&6; }
  13895. if test "$libsanitizer_cv_sys_sync" = "yes"; then
  13896. $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
  13897. fi
  13898. # Test for __atomic support.
  13899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
  13900. $as_echo_n "checking __atomic extensions... " >&6; }
  13901. if ${libsanitizer_cv_sys_atomic+:} false; then :
  13902. $as_echo_n "(cached) " >&6
  13903. else
  13904. if test -n "${with_target_subdir}"; then
  13905. libsanitizer_cv_sys_atomic=yes
  13906. else
  13907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13908. /* end confdefs.h. */
  13909. int i;
  13910. int
  13911. main ()
  13912. {
  13913. __atomic_load_n (&i, __ATOMIC_ACQUIRE);
  13914. __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
  13915. ;
  13916. return 0;
  13917. }
  13918. _ACEOF
  13919. if ac_fn_c_try_link "$LINENO"; then :
  13920. libsanitizer_cv_sys_atomic=yes
  13921. else
  13922. libsanitizer_cv_sys_atomic=no
  13923. fi
  13924. rm -f core conftest.err conftest.$ac_objext \
  13925. conftest$ac_exeext conftest.$ac_ext
  13926. fi
  13927. fi
  13928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
  13929. $as_echo "$libsanitizer_cv_sys_atomic" >&6; }
  13930. if test "$libsanitizer_cv_sys_atomic" = "yes"; then
  13931. $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
  13932. fi
  13933. # The library needs to be able to read the executable itself. Compile
  13934. # a file to determine the executable format. The awk script
  13935. # filetype.awk prints out the file type.
  13936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
  13937. $as_echo_n "checking output filetype... " >&6; }
  13938. if ${libsanitizer_cv_sys_filetype+:} false; then :
  13939. $as_echo_n "(cached) " >&6
  13940. else
  13941. filetype=
  13942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13943. /* end confdefs.h. */
  13944. int i;
  13945. int
  13946. main ()
  13947. {
  13948. int j;
  13949. ;
  13950. return 0;
  13951. }
  13952. _ACEOF
  13953. if ac_fn_c_try_compile "$LINENO"; then :
  13954. filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
  13955. else
  13956. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13957. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13958. as_fn_error $? "compiler failed
  13959. See \`config.log' for more details" "$LINENO" 5; }
  13960. fi
  13961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13962. libsanitizer_cv_sys_filetype=$filetype
  13963. fi
  13964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
  13965. $as_echo "$libsanitizer_cv_sys_filetype" >&6; }
  13966. # Match the file type to decide what files to compile.
  13967. FORMAT_FILE=
  13968. case "$libsanitizer_cv_sys_filetype" in
  13969. elf*) FORMAT_FILE="elf.lo" ;;
  13970. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
  13971. $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
  13972. FORMAT_FILE="unknown.lo"
  13973. backtrace_supported=no
  13974. ;;
  13975. esac
  13976. # ELF defines.
  13977. elfsize=
  13978. case "$libsanitizer_cv_sys_filetype" in
  13979. elf32) elfsize=32 ;;
  13980. elf64) elfsize=64 ;;
  13981. esac
  13982. cat >>confdefs.h <<_ACEOF
  13983. #define BACKTRACE_ELF_SIZE $elfsize
  13984. _ACEOF
  13985. BACKTRACE_SUPPORTED=0
  13986. if test "$backtrace_supported" = "yes"; then
  13987. BACKTRACE_SUPPORTED=1
  13988. fi
  13989. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  13990. acx_cv_header_stdint=stddef.h
  13991. acx_cv_header_stdint_kind="(already complete)"
  13992. for i in stdint.h $inttype_headers; do
  13993. unset ac_cv_type_uintptr_t
  13994. unset ac_cv_type_uintmax_t
  13995. unset ac_cv_type_int_least32_t
  13996. unset ac_cv_type_int_fast32_t
  13997. unset ac_cv_type_uint64_t
  13998. $as_echo_n "looking for a compliant stdint.h in $i, " >&6
  13999. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
  14000. #include <$i>
  14001. "
  14002. if test "x$ac_cv_type_uintmax_t" = xyes; then :
  14003. acx_cv_header_stdint=$i
  14004. else
  14005. continue
  14006. fi
  14007. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  14008. #include <$i>
  14009. "
  14010. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  14011. else
  14012. acx_cv_header_stdint_kind="(mostly complete)"
  14013. fi
  14014. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
  14015. #include <$i>
  14016. "
  14017. if test "x$ac_cv_type_int_least32_t" = xyes; then :
  14018. else
  14019. acx_cv_header_stdint_kind="(mostly complete)"
  14020. fi
  14021. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
  14022. #include <$i>
  14023. "
  14024. if test "x$ac_cv_type_int_fast32_t" = xyes; then :
  14025. else
  14026. acx_cv_header_stdint_kind="(mostly complete)"
  14027. fi
  14028. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  14029. #include <$i>
  14030. "
  14031. if test "x$ac_cv_type_uint64_t" = xyes; then :
  14032. else
  14033. acx_cv_header_stdint_kind="(lacks uint64_t)"
  14034. fi
  14035. break
  14036. done
  14037. if test "$acx_cv_header_stdint" = stddef.h; then
  14038. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  14039. for i in stdint.h $inttype_headers; do
  14040. unset ac_cv_type_uintptr_t
  14041. unset ac_cv_type_uint32_t
  14042. unset ac_cv_type_uint64_t
  14043. $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
  14044. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
  14045. #include <$i>
  14046. "
  14047. if test "x$ac_cv_type_uint32_t" = xyes; then :
  14048. acx_cv_header_stdint=$i
  14049. else
  14050. continue
  14051. fi
  14052. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  14053. #include <$i>
  14054. "
  14055. if test "x$ac_cv_type_uint64_t" = xyes; then :
  14056. fi
  14057. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  14058. #include <$i>
  14059. "
  14060. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  14061. fi
  14062. break
  14063. done
  14064. fi
  14065. if test "$acx_cv_header_stdint" = stddef.h; then
  14066. acx_cv_header_stdint_kind="(u_intXX_t style)"
  14067. for i in sys/types.h $inttype_headers; do
  14068. unset ac_cv_type_u_int32_t
  14069. unset ac_cv_type_u_int64_t
  14070. $as_echo_n "looking for u_intXX_t types in $i, " >&6
  14071. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
  14072. #include <$i>
  14073. "
  14074. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  14075. acx_cv_header_stdint=$i
  14076. else
  14077. continue
  14078. fi
  14079. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
  14080. #include <$i>
  14081. "
  14082. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  14083. fi
  14084. break
  14085. done
  14086. fi
  14087. if test "$acx_cv_header_stdint" = stddef.h; then
  14088. acx_cv_header_stdint_kind="(using manual detection)"
  14089. fi
  14090. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  14091. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  14092. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  14093. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  14094. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  14095. # ----------------- Summarize what we found so far
  14096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
  14097. $as_echo_n "checking what to include in gstdint.h... " >&6; }
  14098. case `$as_basename -- gstdint.h ||
  14099. $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
  14100. Xgstdint.h : 'X\(//\)$' \| \
  14101. Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
  14102. $as_echo X/gstdint.h |
  14103. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14104. s//\1/
  14105. q
  14106. }
  14107. /^X\/\(\/\/\)$/{
  14108. s//\1/
  14109. q
  14110. }
  14111. /^X\/\(\/\).*/{
  14112. s//\1/
  14113. q
  14114. }
  14115. s/.*/./; q'` in
  14116. stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  14117. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  14118. inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  14119. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  14120. *) ;;
  14121. esac
  14122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  14123. $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
  14124. # ----------------- done included file, check C basic types --------
  14125. # Lacking an uintptr_t? Test size of void *
  14126. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  14127. stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
  14128. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14129. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14130. # This bug is HP SR number 8606223364.
  14131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  14132. $as_echo_n "checking size of void *... " >&6; }
  14133. if ${ac_cv_sizeof_void_p+:} false; then :
  14134. $as_echo_n "(cached) " >&6
  14135. else
  14136. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  14137. else
  14138. if test "$ac_cv_type_void_p" = yes; then
  14139. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14140. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14141. as_fn_error 77 "cannot compute sizeof (void *)
  14142. See \`config.log' for more details" "$LINENO" 5; }
  14143. else
  14144. ac_cv_sizeof_void_p=0
  14145. fi
  14146. fi
  14147. fi
  14148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  14149. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  14150. cat >>confdefs.h <<_ACEOF
  14151. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  14152. _ACEOF
  14153. ;;
  14154. esac
  14155. # Lacking an uint64_t? Test size of long
  14156. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  14157. stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
  14158. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14159. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14160. # This bug is HP SR number 8606223364.
  14161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14162. $as_echo_n "checking size of long... " >&6; }
  14163. if ${ac_cv_sizeof_long+:} false; then :
  14164. $as_echo_n "(cached) " >&6
  14165. else
  14166. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14167. else
  14168. if test "$ac_cv_type_long" = yes; then
  14169. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14170. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14171. as_fn_error 77 "cannot compute sizeof (long)
  14172. See \`config.log' for more details" "$LINENO" 5; }
  14173. else
  14174. ac_cv_sizeof_long=0
  14175. fi
  14176. fi
  14177. fi
  14178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14179. $as_echo "$ac_cv_sizeof_long" >&6; }
  14180. cat >>confdefs.h <<_ACEOF
  14181. #define SIZEOF_LONG $ac_cv_sizeof_long
  14182. _ACEOF
  14183. ;;
  14184. esac
  14185. if test $acx_cv_header_stdint = stddef.h; then
  14186. # Lacking a good header? Test size of everything and deduce all types.
  14187. # The cast to long int works around a bug in the HP C Compiler
  14188. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14189. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14190. # This bug is HP SR number 8606223364.
  14191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  14192. $as_echo_n "checking size of int... " >&6; }
  14193. if ${ac_cv_sizeof_int+:} false; then :
  14194. $as_echo_n "(cached) " >&6
  14195. else
  14196. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  14197. else
  14198. if test "$ac_cv_type_int" = yes; then
  14199. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14200. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14201. as_fn_error 77 "cannot compute sizeof (int)
  14202. See \`config.log' for more details" "$LINENO" 5; }
  14203. else
  14204. ac_cv_sizeof_int=0
  14205. fi
  14206. fi
  14207. fi
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  14209. $as_echo "$ac_cv_sizeof_int" >&6; }
  14210. cat >>confdefs.h <<_ACEOF
  14211. #define SIZEOF_INT $ac_cv_sizeof_int
  14212. _ACEOF
  14213. # The cast to long int works around a bug in the HP C Compiler
  14214. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14215. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14216. # This bug is HP SR number 8606223364.
  14217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  14218. $as_echo_n "checking size of short... " >&6; }
  14219. if ${ac_cv_sizeof_short+:} false; then :
  14220. $as_echo_n "(cached) " >&6
  14221. else
  14222. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  14223. else
  14224. if test "$ac_cv_type_short" = yes; then
  14225. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14226. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14227. as_fn_error 77 "cannot compute sizeof (short)
  14228. See \`config.log' for more details" "$LINENO" 5; }
  14229. else
  14230. ac_cv_sizeof_short=0
  14231. fi
  14232. fi
  14233. fi
  14234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  14235. $as_echo "$ac_cv_sizeof_short" >&6; }
  14236. cat >>confdefs.h <<_ACEOF
  14237. #define SIZEOF_SHORT $ac_cv_sizeof_short
  14238. _ACEOF
  14239. # The cast to long int works around a bug in the HP C Compiler
  14240. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14241. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14242. # This bug is HP SR number 8606223364.
  14243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  14244. $as_echo_n "checking size of char... " >&6; }
  14245. if ${ac_cv_sizeof_char+:} false; then :
  14246. $as_echo_n "(cached) " >&6
  14247. else
  14248. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  14249. else
  14250. if test "$ac_cv_type_char" = yes; then
  14251. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14252. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14253. as_fn_error 77 "cannot compute sizeof (char)
  14254. See \`config.log' for more details" "$LINENO" 5; }
  14255. else
  14256. ac_cv_sizeof_char=0
  14257. fi
  14258. fi
  14259. fi
  14260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  14261. $as_echo "$ac_cv_sizeof_char" >&6; }
  14262. cat >>confdefs.h <<_ACEOF
  14263. #define SIZEOF_CHAR $ac_cv_sizeof_char
  14264. _ACEOF
  14265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
  14266. $as_echo_n "checking for type equivalent to int8_t... " >&6; }
  14267. case "$ac_cv_sizeof_char" in
  14268. 1) acx_cv_type_int8_t=char ;;
  14269. *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
  14270. esac
  14271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
  14272. $as_echo "$acx_cv_type_int8_t" >&6; }
  14273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
  14274. $as_echo_n "checking for type equivalent to int16_t... " >&6; }
  14275. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  14276. 2:*) acx_cv_type_int16_t=int ;;
  14277. *:2) acx_cv_type_int16_t=short ;;
  14278. *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
  14279. esac
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
  14281. $as_echo "$acx_cv_type_int16_t" >&6; }
  14282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
  14283. $as_echo_n "checking for type equivalent to int32_t... " >&6; }
  14284. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  14285. 4:*) acx_cv_type_int32_t=int ;;
  14286. *:4) acx_cv_type_int32_t=long ;;
  14287. *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
  14288. esac
  14289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
  14290. $as_echo "$acx_cv_type_int32_t" >&6; }
  14291. fi
  14292. # These tests are here to make the output prettier
  14293. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  14294. case "$ac_cv_sizeof_long" in
  14295. 8) acx_cv_type_int64_t=long ;;
  14296. esac
  14297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
  14298. $as_echo_n "checking for type equivalent to int64_t... " >&6; }
  14299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  14300. $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
  14301. fi
  14302. # Now we can use the above types
  14303. if test "$ac_cv_type_uintptr_t" != yes; then
  14304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
  14305. $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
  14306. case $ac_cv_sizeof_void_p in
  14307. 2) acx_cv_type_intptr_t=int16_t ;;
  14308. 4) acx_cv_type_intptr_t=int32_t ;;
  14309. 8) acx_cv_type_intptr_t=int64_t ;;
  14310. *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
  14311. esac
  14312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
  14313. $as_echo "$acx_cv_type_intptr_t" >&6; }
  14314. fi
  14315. # ----------------- done all checks, emit header -------------
  14316. ac_config_commands="$ac_config_commands gstdint.h"
  14317. for ac_header in sys/mman.h alloca.h
  14318. do :
  14319. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14320. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14321. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14322. cat >>confdefs.h <<_ACEOF
  14323. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14324. _ACEOF
  14325. fi
  14326. done
  14327. if test "$ac_cv_header_sys_mman_h" = "no"; then
  14328. have_mmap=no
  14329. else
  14330. if test -n "${with_target_subdir}"; then
  14331. # When built as a GCC target library, we can't do a link test. We
  14332. # simply assume that if we have mman.h, we have mmap.
  14333. have_mmap=yes
  14334. else
  14335. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  14336. if test "x$ac_cv_func_mmap" = xyes; then :
  14337. have_mmap=yes
  14338. else
  14339. have_mmap=no
  14340. fi
  14341. fi
  14342. fi
  14343. if test "$have_mmap" = "no"; then
  14344. VIEW_FILE=read.lo
  14345. ALLOC_FILE=alloc.lo
  14346. else
  14347. VIEW_FILE=mmapio.lo
  14348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14349. /* end confdefs.h. */
  14350. #include <sys/mman.h>
  14351. #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
  14352. #error no MAP_ANONYMOUS
  14353. #endif
  14354. _ACEOF
  14355. if ac_fn_c_try_cpp "$LINENO"; then :
  14356. ALLOC_FILE=mmap.lo
  14357. else
  14358. ALLOC_FILE=alloc.lo
  14359. fi
  14360. rm -f conftest.err conftest.i conftest.$ac_ext
  14361. fi
  14362. BACKTRACE_USES_MALLOC=0
  14363. if test "$ALLOC_FILE" = "alloc.lo"; then
  14364. BACKTRACE_USES_MALLOC=1
  14365. fi
  14366. # Don't care about thread support
  14367. BACKTRACE_SUPPORTS_THREADS=0
  14368. # Check for dl_iterate_phdr.
  14369. for ac_header in link.h
  14370. do :
  14371. ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
  14372. if test "x$ac_cv_header_link_h" = xyes; then :
  14373. cat >>confdefs.h <<_ACEOF
  14374. #define HAVE_LINK_H 1
  14375. _ACEOF
  14376. fi
  14377. done
  14378. if test "$ac_cv_header_link_h" = "no"; then
  14379. have_dl_iterate_phdr=no
  14380. else
  14381. # When built as a GCC target library, we can't do a link test.
  14382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14383. /* end confdefs.h. */
  14384. #include <link.h>
  14385. _ACEOF
  14386. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14387. $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
  14388. have_dl_iterate_phdr=yes
  14389. else
  14390. have_dl_iterate_phdr=no
  14391. fi
  14392. rm -f conftest*
  14393. fi
  14394. if test "$have_dl_iterate_phdr" = "yes"; then
  14395. $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
  14396. fi
  14397. # Check for the fcntl function.
  14398. if test -n "${with_target_subdir}"; then
  14399. case "${host}" in
  14400. *-*-mingw*) have_fcntl=no ;;
  14401. *) have_fcntl=yes ;;
  14402. esac
  14403. else
  14404. ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
  14405. if test "x$ac_cv_func_fcntl" = xyes; then :
  14406. have_fcntl=yes
  14407. else
  14408. have_fcntl=no
  14409. fi
  14410. fi
  14411. if test "$have_fcntl" = "yes"; then
  14412. $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
  14413. fi
  14414. ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
  14415. if test "x$ac_cv_have_decl_strnlen" = xyes; then :
  14416. ac_have_decl=1
  14417. else
  14418. ac_have_decl=0
  14419. fi
  14420. cat >>confdefs.h <<_ACEOF
  14421. #define HAVE_DECL_STRNLEN $ac_have_decl
  14422. _ACEOF
  14423. # Check for getexecname function.
  14424. if test -n "${with_target_subdir}"; then
  14425. case "${host}" in
  14426. *-*-solaris2*) have_getexecname=yes ;;
  14427. *) have_getexecname=no ;;
  14428. esac
  14429. else
  14430. ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
  14431. if test "x$ac_cv_func_getexecname" = xyes; then :
  14432. have_getexecname=yes
  14433. else
  14434. have_getexecname=no
  14435. fi
  14436. fi
  14437. if test "$have_getexecname" = "yes"; then
  14438. $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
  14439. fi
  14440. # Check for rpc/xdr.h
  14441. for ac_header in rpc/xdr.h
  14442. do :
  14443. ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
  14444. if test "x$ac_cv_header_rpc_xdr_h" = xyes; then :
  14445. cat >>confdefs.h <<_ACEOF
  14446. #define HAVE_RPC_XDR_H 1
  14447. _ACEOF
  14448. fi
  14449. done
  14450. if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
  14451. rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
  14452. else
  14453. rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
  14454. fi
  14455. # Check for tirpc/rpc/xdr.h
  14456. for ac_header in tirpc/rpc/xdr.h
  14457. do :
  14458. ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
  14459. if test "x$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then :
  14460. cat >>confdefs.h <<_ACEOF
  14461. #define HAVE_TIRPC_RPC_XDR_H 1
  14462. _ACEOF
  14463. fi
  14464. done
  14465. if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
  14466. rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
  14467. else
  14468. rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
  14469. fi
  14470. RPC_DEFS=$rpc_defs
  14471. if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
  14472. LIBBACKTRACE_SUPPORTED_TRUE=
  14473. LIBBACKTRACE_SUPPORTED_FALSE='#'
  14474. else
  14475. LIBBACKTRACE_SUPPORTED_TRUE='#'
  14476. LIBBACKTRACE_SUPPORTED_FALSE=
  14477. fi
  14478. ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
  14479. ac_config_headers="$ac_config_headers config.h"
  14480. ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
  14481. if test "x$TSAN_SUPPORTED" = "xyes"; then
  14482. ac_config_files="$ac_config_files tsan/Makefile"
  14483. fi
  14484. if test "x$HWASAN_SUPPORTED" = "xyes"; then
  14485. ac_config_files="$ac_config_files hwasan/Makefile"
  14486. fi
  14487. # Check whether --enable-werror was given.
  14488. if test "${enable_werror+set}" = set; then :
  14489. enableval=$enable_werror;
  14490. fi
  14491. ac_ext=c
  14492. ac_cpp='$CPP $CPPFLAGS'
  14493. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14494. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14495. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14496. WARN_FLAGS=
  14497. save_CFLAGS="$CFLAGS"
  14498. for real_option in -Wextra -Wall -Wwrite-strings \
  14499. -Wmissing-format-attribute -Wcast-qual; do
  14500. # Do the check with the no- prefix removed since gcc silently
  14501. # accepts any -Wno-* option on purpose
  14502. case $real_option in
  14503. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  14504. *) option=$real_option ;;
  14505. esac
  14506. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  14507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  14508. $as_echo_n "checking whether $CC supports $option... " >&6; }
  14509. if eval \${$as_acx_Woption+:} false; then :
  14510. $as_echo_n "(cached) " >&6
  14511. else
  14512. CFLAGS="$option"
  14513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14514. /* end confdefs.h. */
  14515. int
  14516. main ()
  14517. {
  14518. ;
  14519. return 0;
  14520. }
  14521. _ACEOF
  14522. if ac_fn_c_try_compile "$LINENO"; then :
  14523. eval "$as_acx_Woption=yes"
  14524. else
  14525. eval "$as_acx_Woption=no"
  14526. fi
  14527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14528. fi
  14529. eval ac_res=\$$as_acx_Woption
  14530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14531. $as_echo "$ac_res" >&6; }
  14532. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  14533. WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
  14534. fi
  14535. done
  14536. CFLAGS="$save_CFLAGS"
  14537. ac_ext=c
  14538. ac_cpp='$CPP $CPPFLAGS'
  14539. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14540. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14541. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14542. if test "x$enable_werror" != "xno"; then :
  14543. WARN_FLAGS="$WARN_FLAGS -Werror"
  14544. fi
  14545. # Determine what GCC version number to use in filesystem paths.
  14546. get_gcc_base_ver="cat"
  14547. # Check whether --with-gcc-major-version-only was given.
  14548. if test "${with_gcc_major_version_only+set}" = set; then :
  14549. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  14550. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  14551. fi
  14552. fi
  14553. # Add CET specific flags if Intel CET is enabled.
  14554. # Check whether --enable-cet was given.
  14555. if test "${enable_cet+set}" = set; then :
  14556. enableval=$enable_cet;
  14557. case "$enableval" in
  14558. yes|no|auto) ;;
  14559. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  14560. esac
  14561. else
  14562. enable_cet=auto
  14563. fi
  14564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  14565. $as_echo_n "checking for CET support... " >&6; }
  14566. # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
  14567. case "$host" in
  14568. i[34567]86-*-linux* | x86_64-*-linux*)
  14569. case "$enable_cet" in
  14570. auto)
  14571. # Check if target supports multi-byte NOPs
  14572. # and if compiler and assembler support CET insn.
  14573. cet_save_CFLAGS="$CFLAGS"
  14574. CFLAGS="$CFLAGS -fcf-protection"
  14575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14576. /* end confdefs.h. */
  14577. int
  14578. main ()
  14579. {
  14580. #if !defined(__SSE2__)
  14581. #error target does not support multi-byte NOPs
  14582. #else
  14583. asm ("setssbsy");
  14584. #endif
  14585. ;
  14586. return 0;
  14587. }
  14588. _ACEOF
  14589. if ac_fn_c_try_compile "$LINENO"; then :
  14590. enable_cet=yes
  14591. else
  14592. enable_cet=no
  14593. fi
  14594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14595. CFLAGS="$cet_save_CFLAGS"
  14596. ;;
  14597. yes)
  14598. # Check if assembler supports CET.
  14599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14600. /* end confdefs.h. */
  14601. int
  14602. main ()
  14603. {
  14604. asm ("setssbsy");
  14605. ;
  14606. return 0;
  14607. }
  14608. _ACEOF
  14609. if ac_fn_c_try_compile "$LINENO"; then :
  14610. else
  14611. as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
  14612. fi
  14613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14614. ;;
  14615. esac
  14616. ;;
  14617. *)
  14618. enable_cet=no
  14619. ;;
  14620. esac
  14621. if test x$enable_cet = xyes; then
  14622. CET_FLAGS="-fcf-protection -mshstk"
  14623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14624. $as_echo "yes" >&6; }
  14625. else
  14626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14627. $as_echo "no" >&6; }
  14628. fi
  14629. EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS"
  14630. EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $CET_FLAGS"
  14631. EXTRA_ASFLAGS=$CET_FLAGS
  14632. cat >confcache <<\_ACEOF
  14633. # This file is a shell script that caches the results of configure
  14634. # tests run on this system so they can be shared between configure
  14635. # scripts and configure runs, see configure's option --config-cache.
  14636. # It is not useful on other systems. If it contains results you don't
  14637. # want to keep, you may remove or edit it.
  14638. #
  14639. # config.status only pays attention to the cache file if you give it
  14640. # the --recheck option to rerun configure.
  14641. #
  14642. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14643. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14644. # following values.
  14645. _ACEOF
  14646. # The following way of writing the cache mishandles newlines in values,
  14647. # but we know of no workaround that is simple, portable, and efficient.
  14648. # So, we kill variables containing newlines.
  14649. # Ultrix sh set writes to stderr and can't be redirected directly,
  14650. # and sets the high bit in the cache file unless we assign to the vars.
  14651. (
  14652. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14653. eval ac_val=\$$ac_var
  14654. case $ac_val in #(
  14655. *${as_nl}*)
  14656. case $ac_var in #(
  14657. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14658. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14659. esac
  14660. case $ac_var in #(
  14661. _ | IFS | as_nl) ;; #(
  14662. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14663. *) { eval $ac_var=; unset $ac_var;} ;;
  14664. esac ;;
  14665. esac
  14666. done
  14667. (set) 2>&1 |
  14668. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14669. *${as_nl}ac_space=\ *)
  14670. # `set' does not quote correctly, so add quotes: double-quote
  14671. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14672. sed -n \
  14673. "s/'/'\\\\''/g;
  14674. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14675. ;; #(
  14676. *)
  14677. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14678. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14679. ;;
  14680. esac |
  14681. sort
  14682. ) |
  14683. sed '
  14684. /^ac_cv_env_/b end
  14685. t clear
  14686. :clear
  14687. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14688. t end
  14689. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14690. :end' >>confcache
  14691. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14692. if test -w "$cache_file"; then
  14693. if test "x$cache_file" != "x/dev/null"; then
  14694. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14695. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14696. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14697. cat confcache >"$cache_file"
  14698. else
  14699. case $cache_file in #(
  14700. */* | ?:*)
  14701. mv -f confcache "$cache_file"$$ &&
  14702. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14703. *)
  14704. mv -f confcache "$cache_file" ;;
  14705. esac
  14706. fi
  14707. fi
  14708. else
  14709. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14710. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14711. fi
  14712. fi
  14713. rm -f confcache
  14714. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14715. # Let make expand exec_prefix.
  14716. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14717. DEFS=-DHAVE_CONFIG_H
  14718. ac_libobjs=
  14719. ac_ltlibobjs=
  14720. U=
  14721. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14722. # 1. Remove the extension, and $U if already installed.
  14723. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14724. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14725. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14726. # will be set to the directory where LIBOBJS objects are built.
  14727. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14728. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14729. done
  14730. LIBOBJS=$ac_libobjs
  14731. LTLIBOBJS=$ac_ltlibobjs
  14732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14733. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14734. if test -n "$am_sleep_pid"; then
  14735. # Hide warnings about reused PIDs.
  14736. wait $am_sleep_pid 2>/dev/null
  14737. fi
  14738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14739. $as_echo "done" >&6; }
  14740. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14741. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14742. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14743. fi
  14744. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14745. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14746. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14747. fi
  14748. if test -n "$EXEEXT"; then
  14749. am__EXEEXT_TRUE=
  14750. am__EXEEXT_FALSE='#'
  14751. else
  14752. am__EXEEXT_TRUE='#'
  14753. am__EXEEXT_FALSE=
  14754. fi
  14755. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14756. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  14757. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14758. fi
  14759. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14760. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14761. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14762. fi
  14763. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  14764. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  14765. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14766. fi
  14767. if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
  14768. as_fn_error $? "conditional \"TSAN_SUPPORTED\" was never defined.
  14769. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14770. fi
  14771. if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
  14772. as_fn_error $? "conditional \"LSAN_SUPPORTED\" was never defined.
  14773. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14774. fi
  14775. if test -z "${HWASAN_SUPPORTED_TRUE}" && test -z "${HWASAN_SUPPORTED_FALSE}"; then
  14776. as_fn_error $? "conditional \"HWASAN_SUPPORTED\" was never defined.
  14777. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14778. fi
  14779. if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
  14780. as_fn_error $? "conditional \"USING_MAC_INTERPOSE\" was never defined.
  14781. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14782. fi
  14783. if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
  14784. as_fn_error $? "conditional \"SANITIZER_SUPPORTED\" was never defined.
  14785. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14786. fi
  14787. if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
  14788. as_fn_error $? "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
  14789. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14790. fi
  14791. : "${CONFIG_STATUS=./config.status}"
  14792. ac_write_fail=0
  14793. ac_clean_files_save=$ac_clean_files
  14794. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14795. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14796. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14797. as_write_fail=0
  14798. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14799. #! $SHELL
  14800. # Generated by $as_me.
  14801. # Run this file to recreate the current configuration.
  14802. # Compiler output produced by configure, useful for debugging
  14803. # configure, is in config.log if it exists.
  14804. debug=false
  14805. ac_cs_recheck=false
  14806. ac_cs_silent=false
  14807. SHELL=\${CONFIG_SHELL-$SHELL}
  14808. export SHELL
  14809. _ASEOF
  14810. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14811. ## -------------------- ##
  14812. ## M4sh Initialization. ##
  14813. ## -------------------- ##
  14814. # Be more Bourne compatible
  14815. DUALCASE=1; export DUALCASE # for MKS sh
  14816. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14817. emulate sh
  14818. NULLCMD=:
  14819. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14820. # is contrary to our usage. Disable this feature.
  14821. alias -g '${1+"$@"}'='"$@"'
  14822. setopt NO_GLOB_SUBST
  14823. else
  14824. case `(set -o) 2>/dev/null` in #(
  14825. *posix*) :
  14826. set -o posix ;; #(
  14827. *) :
  14828. ;;
  14829. esac
  14830. fi
  14831. as_nl='
  14832. '
  14833. export as_nl
  14834. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14835. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14836. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14837. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14838. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14839. # but without wasting forks for bash or zsh.
  14840. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14841. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14842. as_echo='print -r --'
  14843. as_echo_n='print -rn --'
  14844. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14845. as_echo='printf %s\n'
  14846. as_echo_n='printf %s'
  14847. else
  14848. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14849. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14850. as_echo_n='/usr/ucb/echo -n'
  14851. else
  14852. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14853. as_echo_n_body='eval
  14854. arg=$1;
  14855. case $arg in #(
  14856. *"$as_nl"*)
  14857. expr "X$arg" : "X\\(.*\\)$as_nl";
  14858. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14859. esac;
  14860. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14861. '
  14862. export as_echo_n_body
  14863. as_echo_n='sh -c $as_echo_n_body as_echo'
  14864. fi
  14865. export as_echo_body
  14866. as_echo='sh -c $as_echo_body as_echo'
  14867. fi
  14868. # The user is always right.
  14869. if test "${PATH_SEPARATOR+set}" != set; then
  14870. PATH_SEPARATOR=:
  14871. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14872. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14873. PATH_SEPARATOR=';'
  14874. }
  14875. fi
  14876. # IFS
  14877. # We need space, tab and new line, in precisely that order. Quoting is
  14878. # there to prevent editors from complaining about space-tab.
  14879. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14880. # splitting by setting IFS to empty value.)
  14881. IFS=" "" $as_nl"
  14882. # Find who we are. Look in the path if we contain no directory separator.
  14883. as_myself=
  14884. case $0 in #((
  14885. *[\\/]* ) as_myself=$0 ;;
  14886. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14887. for as_dir in $PATH
  14888. do
  14889. IFS=$as_save_IFS
  14890. test -z "$as_dir" && as_dir=.
  14891. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14892. done
  14893. IFS=$as_save_IFS
  14894. ;;
  14895. esac
  14896. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14897. # in which case we are not to be found in the path.
  14898. if test "x$as_myself" = x; then
  14899. as_myself=$0
  14900. fi
  14901. if test ! -f "$as_myself"; then
  14902. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14903. exit 1
  14904. fi
  14905. # Unset variables that we do not need and which cause bugs (e.g. in
  14906. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14907. # suppresses any "Segmentation fault" message there. '((' could
  14908. # trigger a bug in pdksh 5.2.14.
  14909. for as_var in BASH_ENV ENV MAIL MAILPATH
  14910. do eval test x\${$as_var+set} = xset \
  14911. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14912. done
  14913. PS1='$ '
  14914. PS2='> '
  14915. PS4='+ '
  14916. # NLS nuisances.
  14917. LC_ALL=C
  14918. export LC_ALL
  14919. LANGUAGE=C
  14920. export LANGUAGE
  14921. # CDPATH.
  14922. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14923. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14924. # ----------------------------------------
  14925. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14926. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14927. # script with STATUS, using 1 if that was 0.
  14928. as_fn_error ()
  14929. {
  14930. as_status=$1; test $as_status -eq 0 && as_status=1
  14931. if test "$4"; then
  14932. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14933. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14934. fi
  14935. $as_echo "$as_me: error: $2" >&2
  14936. as_fn_exit $as_status
  14937. } # as_fn_error
  14938. # as_fn_set_status STATUS
  14939. # -----------------------
  14940. # Set $? to STATUS, without forking.
  14941. as_fn_set_status ()
  14942. {
  14943. return $1
  14944. } # as_fn_set_status
  14945. # as_fn_exit STATUS
  14946. # -----------------
  14947. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14948. as_fn_exit ()
  14949. {
  14950. set +e
  14951. as_fn_set_status $1
  14952. exit $1
  14953. } # as_fn_exit
  14954. # as_fn_unset VAR
  14955. # ---------------
  14956. # Portably unset VAR.
  14957. as_fn_unset ()
  14958. {
  14959. { eval $1=; unset $1;}
  14960. }
  14961. as_unset=as_fn_unset
  14962. # as_fn_append VAR VALUE
  14963. # ----------------------
  14964. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14965. # advantage of any shell optimizations that allow amortized linear growth over
  14966. # repeated appends, instead of the typical quadratic growth present in naive
  14967. # implementations.
  14968. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14969. eval 'as_fn_append ()
  14970. {
  14971. eval $1+=\$2
  14972. }'
  14973. else
  14974. as_fn_append ()
  14975. {
  14976. eval $1=\$$1\$2
  14977. }
  14978. fi # as_fn_append
  14979. # as_fn_arith ARG...
  14980. # ------------------
  14981. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14982. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14983. # must be portable across $(()) and expr.
  14984. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14985. eval 'as_fn_arith ()
  14986. {
  14987. as_val=$(( $* ))
  14988. }'
  14989. else
  14990. as_fn_arith ()
  14991. {
  14992. as_val=`expr "$@" || test $? -eq 1`
  14993. }
  14994. fi # as_fn_arith
  14995. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14996. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14997. as_expr=expr
  14998. else
  14999. as_expr=false
  15000. fi
  15001. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15002. as_basename=basename
  15003. else
  15004. as_basename=false
  15005. fi
  15006. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15007. as_dirname=dirname
  15008. else
  15009. as_dirname=false
  15010. fi
  15011. as_me=`$as_basename -- "$0" ||
  15012. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15013. X"$0" : 'X\(//\)$' \| \
  15014. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15015. $as_echo X/"$0" |
  15016. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15017. s//\1/
  15018. q
  15019. }
  15020. /^X\/\(\/\/\)$/{
  15021. s//\1/
  15022. q
  15023. }
  15024. /^X\/\(\/\).*/{
  15025. s//\1/
  15026. q
  15027. }
  15028. s/.*/./; q'`
  15029. # Avoid depending upon Character Ranges.
  15030. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15031. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15032. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15033. as_cr_digits='0123456789'
  15034. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15035. ECHO_C= ECHO_N= ECHO_T=
  15036. case `echo -n x` in #(((((
  15037. -n*)
  15038. case `echo 'xy\c'` in
  15039. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15040. xy) ECHO_C='\c';;
  15041. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15042. ECHO_T=' ';;
  15043. esac;;
  15044. *)
  15045. ECHO_N='-n';;
  15046. esac
  15047. rm -f conf$$ conf$$.exe conf$$.file
  15048. if test -d conf$$.dir; then
  15049. rm -f conf$$.dir/conf$$.file
  15050. else
  15051. rm -f conf$$.dir
  15052. mkdir conf$$.dir 2>/dev/null
  15053. fi
  15054. if (echo >conf$$.file) 2>/dev/null; then
  15055. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15056. as_ln_s='ln -s'
  15057. # ... but there are two gotchas:
  15058. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15059. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15060. # In both cases, we have to default to `cp -pR'.
  15061. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15062. as_ln_s='cp -pR'
  15063. elif ln conf$$.file conf$$ 2>/dev/null; then
  15064. as_ln_s=ln
  15065. else
  15066. as_ln_s='cp -pR'
  15067. fi
  15068. else
  15069. as_ln_s='cp -pR'
  15070. fi
  15071. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15072. rmdir conf$$.dir 2>/dev/null
  15073. # as_fn_mkdir_p
  15074. # -------------
  15075. # Create "$as_dir" as a directory, including parents if necessary.
  15076. as_fn_mkdir_p ()
  15077. {
  15078. case $as_dir in #(
  15079. -*) as_dir=./$as_dir;;
  15080. esac
  15081. test -d "$as_dir" || eval $as_mkdir_p || {
  15082. as_dirs=
  15083. while :; do
  15084. case $as_dir in #(
  15085. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15086. *) as_qdir=$as_dir;;
  15087. esac
  15088. as_dirs="'$as_qdir' $as_dirs"
  15089. as_dir=`$as_dirname -- "$as_dir" ||
  15090. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15091. X"$as_dir" : 'X\(//\)[^/]' \| \
  15092. X"$as_dir" : 'X\(//\)$' \| \
  15093. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15094. $as_echo X"$as_dir" |
  15095. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15096. s//\1/
  15097. q
  15098. }
  15099. /^X\(\/\/\)[^/].*/{
  15100. s//\1/
  15101. q
  15102. }
  15103. /^X\(\/\/\)$/{
  15104. s//\1/
  15105. q
  15106. }
  15107. /^X\(\/\).*/{
  15108. s//\1/
  15109. q
  15110. }
  15111. s/.*/./; q'`
  15112. test -d "$as_dir" && break
  15113. done
  15114. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15115. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15116. } # as_fn_mkdir_p
  15117. if mkdir -p . 2>/dev/null; then
  15118. as_mkdir_p='mkdir -p "$as_dir"'
  15119. else
  15120. test -d ./-p && rmdir ./-p
  15121. as_mkdir_p=false
  15122. fi
  15123. # as_fn_executable_p FILE
  15124. # -----------------------
  15125. # Test if FILE is an executable regular file.
  15126. as_fn_executable_p ()
  15127. {
  15128. test -f "$1" && test -x "$1"
  15129. } # as_fn_executable_p
  15130. as_test_x='test -x'
  15131. as_executable_p=as_fn_executable_p
  15132. # Sed expression to map a string onto a valid CPP name.
  15133. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15134. # Sed expression to map a string onto a valid variable name.
  15135. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15136. exec 6>&1
  15137. ## ----------------------------------- ##
  15138. ## Main body of $CONFIG_STATUS script. ##
  15139. ## ----------------------------------- ##
  15140. _ASEOF
  15141. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15142. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15143. # Save the log message, to keep $0 and so on meaningful, and to
  15144. # report actual input values of CONFIG_FILES etc. instead of their
  15145. # values after options handling.
  15146. ac_log="
  15147. This file was extended by package-unused $as_me version-unused, which was
  15148. generated by GNU Autoconf 2.69. Invocation command line was
  15149. CONFIG_FILES = $CONFIG_FILES
  15150. CONFIG_HEADERS = $CONFIG_HEADERS
  15151. CONFIG_LINKS = $CONFIG_LINKS
  15152. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15153. $ $0 $@
  15154. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15155. "
  15156. _ACEOF
  15157. case $ac_config_files in *"
  15158. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15159. esac
  15160. case $ac_config_headers in *"
  15161. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15162. esac
  15163. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15164. # Files that config.status was made for.
  15165. config_files="$ac_config_files"
  15166. config_headers="$ac_config_headers"
  15167. config_commands="$ac_config_commands"
  15168. _ACEOF
  15169. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15170. ac_cs_usage="\
  15171. \`$as_me' instantiates files and other configuration actions
  15172. from templates according to the current configuration. Unless the files
  15173. and actions are specified as TAGs, all are instantiated by default.
  15174. Usage: $0 [OPTION]... [TAG]...
  15175. -h, --help print this help, then exit
  15176. -V, --version print version number and configuration settings, then exit
  15177. --config print configuration, then exit
  15178. -q, --quiet, --silent
  15179. do not print progress messages
  15180. -d, --debug don't remove temporary files
  15181. --recheck update $as_me by reconfiguring in the same conditions
  15182. --file=FILE[:TEMPLATE]
  15183. instantiate the configuration file FILE
  15184. --header=FILE[:TEMPLATE]
  15185. instantiate the configuration header FILE
  15186. Configuration files:
  15187. $config_files
  15188. Configuration headers:
  15189. $config_headers
  15190. Configuration commands:
  15191. $config_commands
  15192. Report bugs to <libsanitizer>."
  15193. _ACEOF
  15194. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15195. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15196. ac_cs_version="\\
  15197. package-unused config.status version-unused
  15198. configured by $0, generated by GNU Autoconf 2.69,
  15199. with options \\"\$ac_cs_config\\"
  15200. Copyright (C) 2012 Free Software Foundation, Inc.
  15201. This config.status script is free software; the Free Software Foundation
  15202. gives unlimited permission to copy, distribute and modify it."
  15203. ac_pwd='$ac_pwd'
  15204. srcdir='$srcdir'
  15205. INSTALL='$INSTALL'
  15206. MKDIR_P='$MKDIR_P'
  15207. AWK='$AWK'
  15208. test -n "\$AWK" || AWK=awk
  15209. _ACEOF
  15210. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15211. # The default lists apply if the user does not specify any file.
  15212. ac_need_defaults=:
  15213. while test $# != 0
  15214. do
  15215. case $1 in
  15216. --*=?*)
  15217. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15218. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15219. ac_shift=:
  15220. ;;
  15221. --*=)
  15222. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15223. ac_optarg=
  15224. ac_shift=:
  15225. ;;
  15226. *)
  15227. ac_option=$1
  15228. ac_optarg=$2
  15229. ac_shift=shift
  15230. ;;
  15231. esac
  15232. case $ac_option in
  15233. # Handling of the options.
  15234. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15235. ac_cs_recheck=: ;;
  15236. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15237. $as_echo "$ac_cs_version"; exit ;;
  15238. --config | --confi | --conf | --con | --co | --c )
  15239. $as_echo "$ac_cs_config"; exit ;;
  15240. --debug | --debu | --deb | --de | --d | -d )
  15241. debug=: ;;
  15242. --file | --fil | --fi | --f )
  15243. $ac_shift
  15244. case $ac_optarg in
  15245. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15246. '') as_fn_error $? "missing file argument" ;;
  15247. esac
  15248. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15249. ac_need_defaults=false;;
  15250. --header | --heade | --head | --hea )
  15251. $ac_shift
  15252. case $ac_optarg in
  15253. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15254. esac
  15255. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15256. ac_need_defaults=false;;
  15257. --he | --h)
  15258. # Conflict between --help and --header
  15259. as_fn_error $? "ambiguous option: \`$1'
  15260. Try \`$0 --help' for more information.";;
  15261. --help | --hel | -h )
  15262. $as_echo "$ac_cs_usage"; exit ;;
  15263. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15264. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15265. ac_cs_silent=: ;;
  15266. # This is an error.
  15267. -*) as_fn_error $? "unrecognized option: \`$1'
  15268. Try \`$0 --help' for more information." ;;
  15269. *) as_fn_append ac_config_targets " $1"
  15270. ac_need_defaults=false ;;
  15271. esac
  15272. shift
  15273. done
  15274. ac_configure_extra_args=
  15275. if $ac_cs_silent; then
  15276. exec 6>/dev/null
  15277. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15278. fi
  15279. _ACEOF
  15280. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15281. if \$ac_cs_recheck; then
  15282. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15283. shift
  15284. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15285. CONFIG_SHELL='$SHELL'
  15286. export CONFIG_SHELL
  15287. exec "\$@"
  15288. fi
  15289. _ACEOF
  15290. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15291. exec 5>>config.log
  15292. {
  15293. echo
  15294. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15295. ## Running $as_me. ##
  15296. _ASBOX
  15297. $as_echo "$ac_log"
  15298. } >&5
  15299. _ACEOF
  15300. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15301. #
  15302. # INIT-COMMANDS
  15303. #
  15304. srcdir="$srcdir"
  15305. host="$host"
  15306. target="$target"
  15307. with_multisubdir="$with_multisubdir"
  15308. with_multisrctop="$with_multisrctop"
  15309. with_target_subdir="$with_target_subdir"
  15310. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  15311. multi_basedir="$multi_basedir"
  15312. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  15313. CC="$CC"
  15314. CXX="$CXX"
  15315. GFORTRAN="$GFORTRAN"
  15316. GDC="$GDC"
  15317. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15318. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15319. # if CDPATH is set.
  15320. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15321. sed_quote_subst='$sed_quote_subst'
  15322. double_quote_subst='$double_quote_subst'
  15323. delay_variable_subst='$delay_variable_subst'
  15324. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15325. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15326. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15327. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15328. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15329. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15330. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15331. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15332. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15333. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15334. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15335. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15336. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15337. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15338. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15339. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15340. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15341. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15342. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15343. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15344. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15345. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15346. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15347. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15348. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15349. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15350. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15351. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15352. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15353. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15354. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15355. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15356. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15357. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15358. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15359. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15360. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15361. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15362. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15363. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15364. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15365. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15366. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15367. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15368. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15369. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15370. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15371. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15372. 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"`'
  15373. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15374. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15375. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15376. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15377. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15378. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15379. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15380. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15381. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15382. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15383. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15384. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15385. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15386. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15387. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15388. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15389. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15390. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15391. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15392. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15393. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15394. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15395. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15396. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15397. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15398. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15399. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15400. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15401. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15402. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15403. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15404. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  15405. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15406. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15407. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15408. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15409. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15410. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15411. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15412. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15413. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  15414. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15415. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15416. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15417. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15418. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15419. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15420. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15421. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15422. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15423. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15424. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15425. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15426. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15427. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15428. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15429. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15430. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15431. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15432. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15433. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15434. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15435. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15436. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15437. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15438. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15439. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15440. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15441. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15442. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15443. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15444. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15445. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15446. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15447. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15448. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15449. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15450. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15451. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15452. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15453. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15454. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15455. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15456. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15457. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15458. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15459. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15460. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15461. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15462. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15463. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15464. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15465. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15466. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15467. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15468. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15469. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15470. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15471. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15472. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15473. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15474. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15475. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15476. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15477. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15478. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15479. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15480. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15481. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15482. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15483. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15484. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15485. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  15486. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15487. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15488. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15489. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15490. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15491. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15492. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15493. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15494. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15495. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15496. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15497. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15498. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15499. LTCC='$LTCC'
  15500. LTCFLAGS='$LTCFLAGS'
  15501. compiler='$compiler_DEFAULT'
  15502. # A function that is used when there is no print builtin or printf.
  15503. func_fallback_echo ()
  15504. {
  15505. eval 'cat <<_LTECHO_EOF
  15506. \$1
  15507. _LTECHO_EOF'
  15508. }
  15509. # Quote evaled strings.
  15510. for var in SHELL \
  15511. ECHO \
  15512. SED \
  15513. GREP \
  15514. EGREP \
  15515. FGREP \
  15516. LD \
  15517. NM \
  15518. LN_S \
  15519. lt_SP2NL \
  15520. lt_NL2SP \
  15521. reload_flag \
  15522. OBJDUMP \
  15523. deplibs_check_method \
  15524. file_magic_cmd \
  15525. AR \
  15526. AR_FLAGS \
  15527. STRIP \
  15528. RANLIB \
  15529. CC \
  15530. CFLAGS \
  15531. compiler \
  15532. lt_cv_sys_global_symbol_pipe \
  15533. lt_cv_sys_global_symbol_to_cdecl \
  15534. lt_cv_sys_global_symbol_to_c_name_address \
  15535. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15536. lt_prog_compiler_no_builtin_flag \
  15537. lt_prog_compiler_wl \
  15538. lt_prog_compiler_pic \
  15539. lt_prog_compiler_static \
  15540. lt_cv_prog_compiler_c_o \
  15541. need_locks \
  15542. DSYMUTIL \
  15543. NMEDIT \
  15544. LIPO \
  15545. OTOOL \
  15546. OTOOL64 \
  15547. shrext_cmds \
  15548. export_dynamic_flag_spec \
  15549. whole_archive_flag_spec \
  15550. compiler_needs_object \
  15551. with_gnu_ld \
  15552. allow_undefined_flag \
  15553. no_undefined_flag \
  15554. hardcode_libdir_flag_spec \
  15555. hardcode_libdir_flag_spec_ld \
  15556. hardcode_libdir_separator \
  15557. fix_srcfile_path \
  15558. exclude_expsyms \
  15559. include_expsyms \
  15560. file_list_spec \
  15561. variables_saved_for_relink \
  15562. libname_spec \
  15563. library_names_spec \
  15564. soname_spec \
  15565. install_override_mode \
  15566. finish_eval \
  15567. old_striplib \
  15568. striplib \
  15569. compiler_lib_search_dirs \
  15570. predep_objects \
  15571. postdep_objects \
  15572. predeps \
  15573. postdeps \
  15574. compiler_lib_search_path \
  15575. LD_CXX \
  15576. reload_flag_CXX \
  15577. compiler_CXX \
  15578. lt_prog_compiler_no_builtin_flag_CXX \
  15579. lt_prog_compiler_wl_CXX \
  15580. lt_prog_compiler_pic_CXX \
  15581. lt_prog_compiler_static_CXX \
  15582. lt_cv_prog_compiler_c_o_CXX \
  15583. export_dynamic_flag_spec_CXX \
  15584. whole_archive_flag_spec_CXX \
  15585. compiler_needs_object_CXX \
  15586. with_gnu_ld_CXX \
  15587. allow_undefined_flag_CXX \
  15588. no_undefined_flag_CXX \
  15589. hardcode_libdir_flag_spec_CXX \
  15590. hardcode_libdir_flag_spec_ld_CXX \
  15591. hardcode_libdir_separator_CXX \
  15592. fix_srcfile_path_CXX \
  15593. exclude_expsyms_CXX \
  15594. include_expsyms_CXX \
  15595. file_list_spec_CXX \
  15596. compiler_lib_search_dirs_CXX \
  15597. predep_objects_CXX \
  15598. postdep_objects_CXX \
  15599. predeps_CXX \
  15600. postdeps_CXX \
  15601. compiler_lib_search_path_CXX; do
  15602. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15603. *[\\\\\\\`\\"\\\$]*)
  15604. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15605. ;;
  15606. *)
  15607. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15608. ;;
  15609. esac
  15610. done
  15611. # Double-quote double-evaled strings.
  15612. for var in reload_cmds \
  15613. old_postinstall_cmds \
  15614. old_postuninstall_cmds \
  15615. old_archive_cmds \
  15616. extract_expsyms_cmds \
  15617. old_archive_from_new_cmds \
  15618. old_archive_from_expsyms_cmds \
  15619. archive_cmds \
  15620. archive_expsym_cmds \
  15621. module_cmds \
  15622. module_expsym_cmds \
  15623. export_symbols_cmds \
  15624. prelink_cmds \
  15625. postinstall_cmds \
  15626. postuninstall_cmds \
  15627. finish_cmds \
  15628. sys_lib_search_path_spec \
  15629. sys_lib_dlsearch_path_spec \
  15630. reload_cmds_CXX \
  15631. old_archive_cmds_CXX \
  15632. old_archive_from_new_cmds_CXX \
  15633. old_archive_from_expsyms_cmds_CXX \
  15634. archive_cmds_CXX \
  15635. archive_expsym_cmds_CXX \
  15636. module_cmds_CXX \
  15637. module_expsym_cmds_CXX \
  15638. export_symbols_cmds_CXX \
  15639. prelink_cmds_CXX; do
  15640. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15641. *[\\\\\\\`\\"\\\$]*)
  15642. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15643. ;;
  15644. *)
  15645. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15646. ;;
  15647. esac
  15648. done
  15649. ac_aux_dir='$ac_aux_dir'
  15650. xsi_shell='$xsi_shell'
  15651. lt_shell_append='$lt_shell_append'
  15652. # See if we are running on zsh, and set the options which allow our
  15653. # commands through without removal of \ escapes INIT.
  15654. if test -n "\${ZSH_VERSION+set}" ; then
  15655. setopt NO_GLOB_SUBST
  15656. fi
  15657. PACKAGE='$PACKAGE'
  15658. VERSION='$VERSION'
  15659. TIMESTAMP='$TIMESTAMP'
  15660. RM='$RM'
  15661. ofile='$ofile'
  15662. GCC="$GCC"
  15663. CC="$CC"
  15664. acx_cv_header_stdint="$acx_cv_header_stdint"
  15665. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  15666. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  15667. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  15668. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  15669. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  15670. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  15671. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  15672. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  15673. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  15674. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  15675. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  15676. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  15677. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  15678. _ACEOF
  15679. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15680. # Handling of arguments.
  15681. for ac_config_target in $ac_config_targets
  15682. do
  15683. case $ac_config_target in
  15684. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  15685. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15686. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15687. "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
  15688. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15689. "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
  15690. "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
  15691. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15692. "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
  15693. "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
  15694. "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
  15695. "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
  15696. "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
  15697. "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
  15698. "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
  15699. "hwasan/Makefile") CONFIG_FILES="$CONFIG_FILES hwasan/Makefile" ;;
  15700. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15701. esac
  15702. done
  15703. # If the user did not use the arguments to specify the items to instantiate,
  15704. # then the envvar interface is used. Set only those that are not.
  15705. # We use the long form for the default assignment because of an extremely
  15706. # bizarre bug on SunOS 4.1.3.
  15707. if $ac_need_defaults; then
  15708. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15709. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15710. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15711. fi
  15712. # Have a temporary directory for convenience. Make it in the build tree
  15713. # simply because there is no reason against having it here, and in addition,
  15714. # creating and moving files from /tmp can sometimes cause problems.
  15715. # Hook for its removal unless debugging.
  15716. # Note that there is a small window in which the directory will not be cleaned:
  15717. # after its creation but before its name has been assigned to `$tmp'.
  15718. $debug ||
  15719. {
  15720. tmp= ac_tmp=
  15721. trap 'exit_status=$?
  15722. : "${ac_tmp:=$tmp}"
  15723. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15724. ' 0
  15725. trap 'as_fn_exit 1' 1 2 13 15
  15726. }
  15727. # Create a (secure) tmp directory for tmp files.
  15728. {
  15729. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15730. test -d "$tmp"
  15731. } ||
  15732. {
  15733. tmp=./conf$$-$RANDOM
  15734. (umask 077 && mkdir "$tmp")
  15735. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15736. ac_tmp=$tmp
  15737. # Set up the scripts for CONFIG_FILES section.
  15738. # No need to generate them if there are no CONFIG_FILES.
  15739. # This happens for instance with `./config.status config.h'.
  15740. if test -n "$CONFIG_FILES"; then
  15741. ac_cr=`echo X | tr X '\015'`
  15742. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15743. # But we know of no other shell where ac_cr would be empty at this
  15744. # point, so we can use a bashism as a fallback.
  15745. if test "x$ac_cr" = x; then
  15746. eval ac_cr=\$\'\\r\'
  15747. fi
  15748. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15749. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15750. ac_cs_awk_cr='\\r'
  15751. else
  15752. ac_cs_awk_cr=$ac_cr
  15753. fi
  15754. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15755. _ACEOF
  15756. {
  15757. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15758. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15759. echo "_ACEOF"
  15760. } >conf$$subs.sh ||
  15761. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15762. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15763. ac_delim='%!_!# '
  15764. for ac_last_try in false false false false false :; do
  15765. . ./conf$$subs.sh ||
  15766. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15767. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15768. if test $ac_delim_n = $ac_delim_num; then
  15769. break
  15770. elif $ac_last_try; then
  15771. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15772. else
  15773. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15774. fi
  15775. done
  15776. rm -f conf$$subs.sh
  15777. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15778. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15779. _ACEOF
  15780. sed -n '
  15781. h
  15782. s/^/S["/; s/!.*/"]=/
  15783. p
  15784. g
  15785. s/^[^!]*!//
  15786. :repl
  15787. t repl
  15788. s/'"$ac_delim"'$//
  15789. t delim
  15790. :nl
  15791. h
  15792. s/\(.\{148\}\)..*/\1/
  15793. t more1
  15794. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15795. p
  15796. n
  15797. b repl
  15798. :more1
  15799. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15800. p
  15801. g
  15802. s/.\{148\}//
  15803. t nl
  15804. :delim
  15805. h
  15806. s/\(.\{148\}\)..*/\1/
  15807. t more2
  15808. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15809. p
  15810. b
  15811. :more2
  15812. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15813. p
  15814. g
  15815. s/.\{148\}//
  15816. t delim
  15817. ' <conf$$subs.awk | sed '
  15818. /^[^""]/{
  15819. N
  15820. s/\n//
  15821. }
  15822. ' >>$CONFIG_STATUS || ac_write_fail=1
  15823. rm -f conf$$subs.awk
  15824. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15825. _ACAWK
  15826. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15827. for (key in S) S_is_set[key] = 1
  15828. FS = ""
  15829. }
  15830. {
  15831. line = $ 0
  15832. nfields = split(line, field, "@")
  15833. substed = 0
  15834. len = length(field[1])
  15835. for (i = 2; i < nfields; i++) {
  15836. key = field[i]
  15837. keylen = length(key)
  15838. if (S_is_set[key]) {
  15839. value = S[key]
  15840. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15841. len += length(value) + length(field[++i])
  15842. substed = 1
  15843. } else
  15844. len += 1 + keylen
  15845. }
  15846. print line
  15847. }
  15848. _ACAWK
  15849. _ACEOF
  15850. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15851. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15852. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15853. else
  15854. cat
  15855. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15856. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15857. _ACEOF
  15858. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15859. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15860. # trailing colons and then remove the whole line if VPATH becomes empty
  15861. # (actually we leave an empty line to preserve line numbers).
  15862. if test "x$srcdir" = x.; then
  15863. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15864. h
  15865. s///
  15866. s/^/:/
  15867. s/[ ]*$/:/
  15868. s/:\$(srcdir):/:/g
  15869. s/:\${srcdir}:/:/g
  15870. s/:@srcdir@:/:/g
  15871. s/^:*//
  15872. s/:*$//
  15873. x
  15874. s/\(=[ ]*\).*/\1/
  15875. G
  15876. s/\n//
  15877. s/^[^=]*=[ ]*$//
  15878. }'
  15879. fi
  15880. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15881. fi # test -n "$CONFIG_FILES"
  15882. # Set up the scripts for CONFIG_HEADERS section.
  15883. # No need to generate them if there are no CONFIG_HEADERS.
  15884. # This happens for instance with `./config.status Makefile'.
  15885. if test -n "$CONFIG_HEADERS"; then
  15886. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15887. BEGIN {
  15888. _ACEOF
  15889. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15890. # here-document in config.status, that substitutes the proper values into
  15891. # config.h.in to produce config.h.
  15892. # Create a delimiter string that does not exist in confdefs.h, to ease
  15893. # handling of long lines.
  15894. ac_delim='%!_!# '
  15895. for ac_last_try in false false :; do
  15896. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15897. if test -z "$ac_tt"; then
  15898. break
  15899. elif $ac_last_try; then
  15900. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15901. else
  15902. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15903. fi
  15904. done
  15905. # For the awk script, D is an array of macro values keyed by name,
  15906. # likewise P contains macro parameters if any. Preserve backslash
  15907. # newline sequences.
  15908. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15909. sed -n '
  15910. s/.\{148\}/&'"$ac_delim"'/g
  15911. t rset
  15912. :rset
  15913. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15914. t def
  15915. d
  15916. :def
  15917. s/\\$//
  15918. t bsnl
  15919. s/["\\]/\\&/g
  15920. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15921. D["\1"]=" \3"/p
  15922. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15923. d
  15924. :bsnl
  15925. s/["\\]/\\&/g
  15926. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15927. D["\1"]=" \3\\\\\\n"\\/p
  15928. t cont
  15929. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15930. t cont
  15931. d
  15932. :cont
  15933. n
  15934. s/.\{148\}/&'"$ac_delim"'/g
  15935. t clear
  15936. :clear
  15937. s/\\$//
  15938. t bsnlc
  15939. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15940. d
  15941. :bsnlc
  15942. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15943. b cont
  15944. ' <confdefs.h | sed '
  15945. s/'"$ac_delim"'/"\\\
  15946. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15947. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15948. for (key in D) D_is_set[key] = 1
  15949. FS = ""
  15950. }
  15951. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15952. line = \$ 0
  15953. split(line, arg, " ")
  15954. if (arg[1] == "#") {
  15955. defundef = arg[2]
  15956. mac1 = arg[3]
  15957. } else {
  15958. defundef = substr(arg[1], 2)
  15959. mac1 = arg[2]
  15960. }
  15961. split(mac1, mac2, "(") #)
  15962. macro = mac2[1]
  15963. prefix = substr(line, 1, index(line, defundef) - 1)
  15964. if (D_is_set[macro]) {
  15965. # Preserve the white space surrounding the "#".
  15966. print prefix "define", macro P[macro] D[macro]
  15967. next
  15968. } else {
  15969. # Replace #undef with comments. This is necessary, for example,
  15970. # in the case of _POSIX_SOURCE, which is predefined and required
  15971. # on some systems where configure will not decide to define it.
  15972. if (defundef == "undef") {
  15973. print "/*", prefix defundef, macro, "*/"
  15974. next
  15975. }
  15976. }
  15977. }
  15978. { print }
  15979. _ACAWK
  15980. _ACEOF
  15981. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15982. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15983. fi # test -n "$CONFIG_HEADERS"
  15984. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15985. shift
  15986. for ac_tag
  15987. do
  15988. case $ac_tag in
  15989. :[FHLC]) ac_mode=$ac_tag; continue;;
  15990. esac
  15991. case $ac_mode$ac_tag in
  15992. :[FHL]*:*);;
  15993. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15994. :[FH]-) ac_tag=-:-;;
  15995. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15996. esac
  15997. ac_save_IFS=$IFS
  15998. IFS=:
  15999. set x $ac_tag
  16000. IFS=$ac_save_IFS
  16001. shift
  16002. ac_file=$1
  16003. shift
  16004. case $ac_mode in
  16005. :L) ac_source=$1;;
  16006. :[FH])
  16007. ac_file_inputs=
  16008. for ac_f
  16009. do
  16010. case $ac_f in
  16011. -) ac_f="$ac_tmp/stdin";;
  16012. *) # Look for the file first in the build tree, then in the source tree
  16013. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16014. # because $ac_f cannot contain `:'.
  16015. test -f "$ac_f" ||
  16016. case $ac_f in
  16017. [\\/$]*) false;;
  16018. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16019. esac ||
  16020. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16021. esac
  16022. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16023. as_fn_append ac_file_inputs " '$ac_f'"
  16024. done
  16025. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16026. # use $as_me), people would be surprised to read:
  16027. # /* config.h. Generated by config.status. */
  16028. configure_input='Generated from '`
  16029. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16030. `' by configure.'
  16031. if test x"$ac_file" != x-; then
  16032. configure_input="$ac_file. $configure_input"
  16033. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16034. $as_echo "$as_me: creating $ac_file" >&6;}
  16035. fi
  16036. # Neutralize special characters interpreted by sed in replacement strings.
  16037. case $configure_input in #(
  16038. *\&* | *\|* | *\\* )
  16039. ac_sed_conf_input=`$as_echo "$configure_input" |
  16040. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16041. *) ac_sed_conf_input=$configure_input;;
  16042. esac
  16043. case $ac_tag in
  16044. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16045. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16046. esac
  16047. ;;
  16048. esac
  16049. ac_dir=`$as_dirname -- "$ac_file" ||
  16050. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16051. X"$ac_file" : 'X\(//\)[^/]' \| \
  16052. X"$ac_file" : 'X\(//\)$' \| \
  16053. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16054. $as_echo X"$ac_file" |
  16055. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16056. s//\1/
  16057. q
  16058. }
  16059. /^X\(\/\/\)[^/].*/{
  16060. s//\1/
  16061. q
  16062. }
  16063. /^X\(\/\/\)$/{
  16064. s//\1/
  16065. q
  16066. }
  16067. /^X\(\/\).*/{
  16068. s//\1/
  16069. q
  16070. }
  16071. s/.*/./; q'`
  16072. as_dir="$ac_dir"; as_fn_mkdir_p
  16073. ac_builddir=.
  16074. case "$ac_dir" in
  16075. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16076. *)
  16077. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16078. # A ".." for each directory in $ac_dir_suffix.
  16079. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16080. case $ac_top_builddir_sub in
  16081. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16082. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16083. esac ;;
  16084. esac
  16085. ac_abs_top_builddir=$ac_pwd
  16086. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16087. # for backward compatibility:
  16088. ac_top_builddir=$ac_top_build_prefix
  16089. case $srcdir in
  16090. .) # We are building in place.
  16091. ac_srcdir=.
  16092. ac_top_srcdir=$ac_top_builddir_sub
  16093. ac_abs_top_srcdir=$ac_pwd ;;
  16094. [\\/]* | ?:[\\/]* ) # Absolute name.
  16095. ac_srcdir=$srcdir$ac_dir_suffix;
  16096. ac_top_srcdir=$srcdir
  16097. ac_abs_top_srcdir=$srcdir ;;
  16098. *) # Relative name.
  16099. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16100. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16101. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16102. esac
  16103. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16104. case $ac_mode in
  16105. :F)
  16106. #
  16107. # CONFIG_FILE
  16108. #
  16109. case $INSTALL in
  16110. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16111. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16112. esac
  16113. ac_MKDIR_P=$MKDIR_P
  16114. case $MKDIR_P in
  16115. [\\/$]* | ?:[\\/]* ) ;;
  16116. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16117. esac
  16118. _ACEOF
  16119. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16120. # If the template does not know about datarootdir, expand it.
  16121. # FIXME: This hack should be removed a few years after 2.60.
  16122. ac_datarootdir_hack=; ac_datarootdir_seen=
  16123. ac_sed_dataroot='
  16124. /datarootdir/ {
  16125. p
  16126. q
  16127. }
  16128. /@datadir@/p
  16129. /@docdir@/p
  16130. /@infodir@/p
  16131. /@localedir@/p
  16132. /@mandir@/p'
  16133. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16134. *datarootdir*) ac_datarootdir_seen=yes;;
  16135. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16136. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16137. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16138. _ACEOF
  16139. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16140. ac_datarootdir_hack='
  16141. s&@datadir@&$datadir&g
  16142. s&@docdir@&$docdir&g
  16143. s&@infodir@&$infodir&g
  16144. s&@localedir@&$localedir&g
  16145. s&@mandir@&$mandir&g
  16146. s&\\\${datarootdir}&$datarootdir&g' ;;
  16147. esac
  16148. _ACEOF
  16149. # Neutralize VPATH when `$srcdir' = `.'.
  16150. # Shell code in configure.ac might set extrasub.
  16151. # FIXME: do we really want to maintain this feature?
  16152. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16153. ac_sed_extra="$ac_vpsub
  16154. $extrasub
  16155. _ACEOF
  16156. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16157. :t
  16158. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16159. s|@configure_input@|$ac_sed_conf_input|;t t
  16160. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16161. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16162. s&@srcdir@&$ac_srcdir&;t t
  16163. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16164. s&@top_srcdir@&$ac_top_srcdir&;t t
  16165. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16166. s&@builddir@&$ac_builddir&;t t
  16167. s&@abs_builddir@&$ac_abs_builddir&;t t
  16168. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16169. s&@INSTALL@&$ac_INSTALL&;t t
  16170. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16171. $ac_datarootdir_hack
  16172. "
  16173. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16174. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16175. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16176. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16177. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16178. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16179. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16180. which seems to be undefined. Please make sure it is defined" >&5
  16181. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16182. which seems to be undefined. Please make sure it is defined" >&2;}
  16183. rm -f "$ac_tmp/stdin"
  16184. case $ac_file in
  16185. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16186. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16187. esac \
  16188. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16189. ;;
  16190. :H)
  16191. #
  16192. # CONFIG_HEADER
  16193. #
  16194. if test x"$ac_file" != x-; then
  16195. {
  16196. $as_echo "/* $configure_input */" \
  16197. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16198. } >"$ac_tmp/config.h" \
  16199. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16200. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16201. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16202. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16203. else
  16204. rm -f "$ac_file"
  16205. mv "$ac_tmp/config.h" "$ac_file" \
  16206. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16207. fi
  16208. else
  16209. $as_echo "/* $configure_input */" \
  16210. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16211. || as_fn_error $? "could not create -" "$LINENO" 5
  16212. fi
  16213. # Compute "$ac_file"'s index in $config_headers.
  16214. _am_arg="$ac_file"
  16215. _am_stamp_count=1
  16216. for _am_header in $config_headers :; do
  16217. case $_am_header in
  16218. $_am_arg | $_am_arg:* )
  16219. break ;;
  16220. * )
  16221. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16222. esac
  16223. done
  16224. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16225. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16226. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16227. X"$_am_arg" : 'X\(//\)$' \| \
  16228. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16229. $as_echo X"$_am_arg" |
  16230. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16231. s//\1/
  16232. q
  16233. }
  16234. /^X\(\/\/\)[^/].*/{
  16235. s//\1/
  16236. q
  16237. }
  16238. /^X\(\/\/\)$/{
  16239. s//\1/
  16240. q
  16241. }
  16242. /^X\(\/\).*/{
  16243. s//\1/
  16244. q
  16245. }
  16246. s/.*/./; q'`/stamp-h$_am_stamp_count
  16247. ;;
  16248. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16249. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16250. ;;
  16251. esac
  16252. case $ac_file$ac_mode in
  16253. "default-1":C)
  16254. # Only add multilib support code if we just rebuilt the top-level
  16255. # Makefile.
  16256. case " $CONFIG_FILES " in
  16257. *" Makefile "*)
  16258. ac_file=Makefile . ${multi_basedir}/config-ml.in
  16259. ;;
  16260. esac ;;
  16261. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16262. # Older Autoconf quotes --file arguments for eval, but not when files
  16263. # are listed without --file. Let's play safe and only enable the eval
  16264. # if we detect the quoting.
  16265. case $CONFIG_FILES in
  16266. *\'*) eval set x "$CONFIG_FILES" ;;
  16267. *) set x $CONFIG_FILES ;;
  16268. esac
  16269. shift
  16270. for mf
  16271. do
  16272. # Strip MF so we end up with the name of the file.
  16273. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16274. # Check whether this is an Automake generated Makefile or not.
  16275. # We used to match only the files named 'Makefile.in', but
  16276. # some people rename them; so instead we look at the file content.
  16277. # Grep'ing the first line is not enough: some people post-process
  16278. # each Makefile.in and add a new line on top of each file to say so.
  16279. # Grep'ing the whole file is not good either: AIX grep has a line
  16280. # limit of 2048, but all sed's we know have understand at least 4000.
  16281. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16282. dirpart=`$as_dirname -- "$mf" ||
  16283. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16284. X"$mf" : 'X\(//\)[^/]' \| \
  16285. X"$mf" : 'X\(//\)$' \| \
  16286. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16287. $as_echo X"$mf" |
  16288. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16289. s//\1/
  16290. q
  16291. }
  16292. /^X\(\/\/\)[^/].*/{
  16293. s//\1/
  16294. q
  16295. }
  16296. /^X\(\/\/\)$/{
  16297. s//\1/
  16298. q
  16299. }
  16300. /^X\(\/\).*/{
  16301. s//\1/
  16302. q
  16303. }
  16304. s/.*/./; q'`
  16305. else
  16306. continue
  16307. fi
  16308. # Extract the definition of DEPDIR, am__include, and am__quote
  16309. # from the Makefile without running 'make'.
  16310. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16311. test -z "$DEPDIR" && continue
  16312. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16313. test -z "$am__include" && continue
  16314. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16315. # Find all dependency output files, they are included files with
  16316. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16317. # simplest approach to changing $(DEPDIR) to its actual value in the
  16318. # expansion.
  16319. for file in `sed -n "
  16320. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16321. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  16322. # Make sure the directory exists.
  16323. test -f "$dirpart/$file" && continue
  16324. fdir=`$as_dirname -- "$file" ||
  16325. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16326. X"$file" : 'X\(//\)[^/]' \| \
  16327. X"$file" : 'X\(//\)$' \| \
  16328. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16329. $as_echo X"$file" |
  16330. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16331. s//\1/
  16332. q
  16333. }
  16334. /^X\(\/\/\)[^/].*/{
  16335. s//\1/
  16336. q
  16337. }
  16338. /^X\(\/\/\)$/{
  16339. s//\1/
  16340. q
  16341. }
  16342. /^X\(\/\).*/{
  16343. s//\1/
  16344. q
  16345. }
  16346. s/.*/./; q'`
  16347. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16348. # echo "creating $dirpart/$file"
  16349. echo '# dummy' > "$dirpart/$file"
  16350. done
  16351. done
  16352. }
  16353. ;;
  16354. "libtool":C)
  16355. # See if we are running on zsh, and set the options which allow our
  16356. # commands through without removal of \ escapes.
  16357. if test -n "${ZSH_VERSION+set}" ; then
  16358. setopt NO_GLOB_SUBST
  16359. fi
  16360. cfgfile="${ofile}T"
  16361. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16362. $RM "$cfgfile"
  16363. cat <<_LT_EOF >> "$cfgfile"
  16364. #! $SHELL
  16365. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16366. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16367. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16368. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16369. #
  16370. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16371. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  16372. # Written by Gordon Matzigkeit, 1996
  16373. #
  16374. # This file is part of GNU Libtool.
  16375. #
  16376. # GNU Libtool is free software; you can redistribute it and/or
  16377. # modify it under the terms of the GNU General Public License as
  16378. # published by the Free Software Foundation; either version 2 of
  16379. # the License, or (at your option) any later version.
  16380. #
  16381. # As a special exception to the GNU General Public License,
  16382. # if you distribute this file as part of a program or library that
  16383. # is built using GNU Libtool, you may include this file under the
  16384. # same distribution terms that you use for the rest of that program.
  16385. #
  16386. # GNU Libtool is distributed in the hope that it will be useful,
  16387. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16388. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16389. # GNU General Public License for more details.
  16390. #
  16391. # You should have received a copy of the GNU General Public License
  16392. # along with GNU Libtool; see the file COPYING. If not, a copy
  16393. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16394. # obtained by writing to the Free Software Foundation, Inc.,
  16395. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16396. # The names of the tagged configurations supported by this script.
  16397. available_tags="CXX "
  16398. # ### BEGIN LIBTOOL CONFIG
  16399. # Which release of libtool.m4 was used?
  16400. macro_version=$macro_version
  16401. macro_revision=$macro_revision
  16402. # Whether or not to build shared libraries.
  16403. build_libtool_libs=$enable_shared
  16404. # Whether or not to build static libraries.
  16405. build_old_libs=$enable_static
  16406. # What type of objects to build.
  16407. pic_mode=$pic_mode
  16408. # Whether or not to optimize for fast installation.
  16409. fast_install=$enable_fast_install
  16410. # Shell to use when invoking shell scripts.
  16411. SHELL=$lt_SHELL
  16412. # An echo program that protects backslashes.
  16413. ECHO=$lt_ECHO
  16414. # The host system.
  16415. host_alias=$host_alias
  16416. host=$host
  16417. host_os=$host_os
  16418. # The build system.
  16419. build_alias=$build_alias
  16420. build=$build
  16421. build_os=$build_os
  16422. # A sed program that does not truncate output.
  16423. SED=$lt_SED
  16424. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16425. Xsed="\$SED -e 1s/^X//"
  16426. # A grep program that handles long lines.
  16427. GREP=$lt_GREP
  16428. # An ERE matcher.
  16429. EGREP=$lt_EGREP
  16430. # A literal string matcher.
  16431. FGREP=$lt_FGREP
  16432. # A BSD- or MS-compatible name lister.
  16433. NM=$lt_NM
  16434. # Whether we need soft or hard links.
  16435. LN_S=$lt_LN_S
  16436. # What is the maximum length of a command?
  16437. max_cmd_len=$max_cmd_len
  16438. # Object file suffix (normally "o").
  16439. objext=$ac_objext
  16440. # Executable file suffix (normally "").
  16441. exeext=$exeext
  16442. # whether the shell understands "unset".
  16443. lt_unset=$lt_unset
  16444. # turn spaces into newlines.
  16445. SP2NL=$lt_lt_SP2NL
  16446. # turn newlines into spaces.
  16447. NL2SP=$lt_lt_NL2SP
  16448. # An object symbol dumper.
  16449. OBJDUMP=$lt_OBJDUMP
  16450. # Method to check whether dependent libraries are shared objects.
  16451. deplibs_check_method=$lt_deplibs_check_method
  16452. # Command to use when deplibs_check_method == "file_magic".
  16453. file_magic_cmd=$lt_file_magic_cmd
  16454. # The archiver.
  16455. AR=$lt_AR
  16456. AR_FLAGS=$lt_AR_FLAGS
  16457. # A symbol stripping program.
  16458. STRIP=$lt_STRIP
  16459. # Commands used to install an old-style archive.
  16460. RANLIB=$lt_RANLIB
  16461. old_postinstall_cmds=$lt_old_postinstall_cmds
  16462. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16463. # Whether to use a lock for old archive extraction.
  16464. lock_old_archive_extraction=$lock_old_archive_extraction
  16465. # A C compiler.
  16466. LTCC=$lt_CC
  16467. # LTCC compiler flags.
  16468. LTCFLAGS=$lt_CFLAGS
  16469. # Take the output of nm and produce a listing of raw symbols and C names.
  16470. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16471. # Transform the output of nm in a proper C declaration.
  16472. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16473. # Transform the output of nm in a C name address pair.
  16474. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16475. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16476. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16477. # The name of the directory that contains temporary libtool files.
  16478. objdir=$objdir
  16479. # Used to examine libraries when file_magic_cmd begins with "file".
  16480. MAGIC_CMD=$MAGIC_CMD
  16481. # Must we lock files when doing compilation?
  16482. need_locks=$lt_need_locks
  16483. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16484. DSYMUTIL=$lt_DSYMUTIL
  16485. # Tool to change global to local symbols on Mac OS X.
  16486. NMEDIT=$lt_NMEDIT
  16487. # Tool to manipulate fat objects and archives on Mac OS X.
  16488. LIPO=$lt_LIPO
  16489. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16490. OTOOL=$lt_OTOOL
  16491. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16492. OTOOL64=$lt_OTOOL64
  16493. # Old archive suffix (normally "a").
  16494. libext=$libext
  16495. # Shared library suffix (normally ".so").
  16496. shrext_cmds=$lt_shrext_cmds
  16497. # The commands to extract the exported symbol list from a shared archive.
  16498. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16499. # Variables whose values should be saved in libtool wrapper scripts and
  16500. # restored at link time.
  16501. variables_saved_for_relink=$lt_variables_saved_for_relink
  16502. # Do we need the "lib" prefix for modules?
  16503. need_lib_prefix=$need_lib_prefix
  16504. # Do we need a version for libraries?
  16505. need_version=$need_version
  16506. # Library versioning type.
  16507. version_type=$version_type
  16508. # Shared library runtime path variable.
  16509. runpath_var=$runpath_var
  16510. # Shared library path variable.
  16511. shlibpath_var=$shlibpath_var
  16512. # Is shlibpath searched before the hard-coded library search path?
  16513. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16514. # Format of library name prefix.
  16515. libname_spec=$lt_libname_spec
  16516. # List of archive names. First name is the real one, the rest are links.
  16517. # The last name is the one that the linker finds with -lNAME
  16518. library_names_spec=$lt_library_names_spec
  16519. # The coded name of the library, if different from the real name.
  16520. soname_spec=$lt_soname_spec
  16521. # Permission mode override for installation of shared libraries.
  16522. install_override_mode=$lt_install_override_mode
  16523. # Command to use after installation of a shared archive.
  16524. postinstall_cmds=$lt_postinstall_cmds
  16525. # Command to use after uninstallation of a shared archive.
  16526. postuninstall_cmds=$lt_postuninstall_cmds
  16527. # Commands used to finish a libtool library installation in a directory.
  16528. finish_cmds=$lt_finish_cmds
  16529. # As "finish_cmds", except a single script fragment to be evaled but
  16530. # not shown.
  16531. finish_eval=$lt_finish_eval
  16532. # Whether we should hardcode library paths into libraries.
  16533. hardcode_into_libs=$hardcode_into_libs
  16534. # Compile-time system search path for libraries.
  16535. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16536. # Run-time system search path for libraries.
  16537. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16538. # Whether dlopen is supported.
  16539. dlopen_support=$enable_dlopen
  16540. # Whether dlopen of programs is supported.
  16541. dlopen_self=$enable_dlopen_self
  16542. # Whether dlopen of statically linked programs is supported.
  16543. dlopen_self_static=$enable_dlopen_self_static
  16544. # Commands to strip libraries.
  16545. old_striplib=$lt_old_striplib
  16546. striplib=$lt_striplib
  16547. # The linker used to build libraries.
  16548. LD=$lt_LD
  16549. # How to create reloadable object files.
  16550. reload_flag=$lt_reload_flag
  16551. reload_cmds=$lt_reload_cmds
  16552. # Commands used to build an old-style archive.
  16553. old_archive_cmds=$lt_old_archive_cmds
  16554. # A language specific compiler.
  16555. CC=$lt_compiler
  16556. # Is the compiler the GNU compiler?
  16557. with_gcc=$GCC
  16558. # Compiler flag to turn off builtin functions.
  16559. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16560. # How to pass a linker flag through the compiler.
  16561. wl=$lt_lt_prog_compiler_wl
  16562. # Additional compiler flags for building library objects.
  16563. pic_flag=$lt_lt_prog_compiler_pic
  16564. # Compiler flag to prevent dynamic linking.
  16565. link_static_flag=$lt_lt_prog_compiler_static
  16566. # Does compiler simultaneously support -c and -o options?
  16567. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16568. # Whether or not to add -lc for building shared libraries.
  16569. build_libtool_need_lc=$archive_cmds_need_lc
  16570. # Whether or not to disallow shared libs when runtime libs are static.
  16571. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16572. # Compiler flag to allow reflexive dlopens.
  16573. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16574. # Compiler flag to generate shared objects directly from archives.
  16575. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16576. # Whether the compiler copes with passing no objects directly.
  16577. compiler_needs_object=$lt_compiler_needs_object
  16578. # Create an old-style archive from a shared archive.
  16579. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16580. # Create a temporary old-style archive to link instead of a shared archive.
  16581. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16582. # Commands used to build a shared archive.
  16583. archive_cmds=$lt_archive_cmds
  16584. archive_expsym_cmds=$lt_archive_expsym_cmds
  16585. # Commands used to build a loadable module if different from building
  16586. # a shared archive.
  16587. module_cmds=$lt_module_cmds
  16588. module_expsym_cmds=$lt_module_expsym_cmds
  16589. # Whether we are building with GNU ld or not.
  16590. with_gnu_ld=$lt_with_gnu_ld
  16591. # Flag that allows shared libraries with undefined symbols to be built.
  16592. allow_undefined_flag=$lt_allow_undefined_flag
  16593. # Flag that enforces no undefined symbols.
  16594. no_undefined_flag=$lt_no_undefined_flag
  16595. # Flag to hardcode \$libdir into a binary during linking.
  16596. # This must work even if \$libdir does not exist
  16597. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16598. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16599. # during linking. This must work even if \$libdir does not exist.
  16600. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16601. # Whether we need a single "-rpath" flag with a separated argument.
  16602. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16603. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16604. # DIR into the resulting binary.
  16605. hardcode_direct=$hardcode_direct
  16606. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16607. # DIR into the resulting binary and the resulting library dependency is
  16608. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16609. # library is relocated.
  16610. hardcode_direct_absolute=$hardcode_direct_absolute
  16611. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16612. # into the resulting binary.
  16613. hardcode_minus_L=$hardcode_minus_L
  16614. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16615. # into the resulting binary.
  16616. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16617. # Set to "yes" if building a shared library automatically hardcodes DIR
  16618. # into the library and all subsequent libraries and executables linked
  16619. # against it.
  16620. hardcode_automatic=$hardcode_automatic
  16621. # Set to yes if linker adds runtime paths of dependent libraries
  16622. # to runtime path list.
  16623. inherit_rpath=$inherit_rpath
  16624. # Whether libtool must link a program against all its dependency libraries.
  16625. link_all_deplibs=$link_all_deplibs
  16626. # Fix the shell variable \$srcfile for the compiler.
  16627. fix_srcfile_path=$lt_fix_srcfile_path
  16628. # Set to "yes" if exported symbols are required.
  16629. always_export_symbols=$always_export_symbols
  16630. # The commands to list exported symbols.
  16631. export_symbols_cmds=$lt_export_symbols_cmds
  16632. # Symbols that should not be listed in the preloaded symbols.
  16633. exclude_expsyms=$lt_exclude_expsyms
  16634. # Symbols that must always be exported.
  16635. include_expsyms=$lt_include_expsyms
  16636. # Commands necessary for linking programs (against libraries) with templates.
  16637. prelink_cmds=$lt_prelink_cmds
  16638. # Specify filename containing input files.
  16639. file_list_spec=$lt_file_list_spec
  16640. # How to hardcode a shared library path into an executable.
  16641. hardcode_action=$hardcode_action
  16642. # The directories searched by this compiler when creating a shared library.
  16643. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16644. # Dependencies to place before and after the objects being linked to
  16645. # create a shared library.
  16646. predep_objects=$lt_predep_objects
  16647. postdep_objects=$lt_postdep_objects
  16648. predeps=$lt_predeps
  16649. postdeps=$lt_postdeps
  16650. # The library search path used internally by the compiler when linking
  16651. # a shared library.
  16652. compiler_lib_search_path=$lt_compiler_lib_search_path
  16653. # ### END LIBTOOL CONFIG
  16654. _LT_EOF
  16655. case $host_os in
  16656. aix3*)
  16657. cat <<\_LT_EOF >> "$cfgfile"
  16658. # AIX sometimes has problems with the GCC collect2 program. For some
  16659. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16660. # vanish in a puff of smoke.
  16661. if test "X${COLLECT_NAMES+set}" != Xset; then
  16662. COLLECT_NAMES=
  16663. export COLLECT_NAMES
  16664. fi
  16665. _LT_EOF
  16666. ;;
  16667. esac
  16668. ltmain="$ac_aux_dir/ltmain.sh"
  16669. # We use sed instead of cat because bash on DJGPP gets confused if
  16670. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16671. # text mode, it properly converts lines to CR/LF. This bash problem
  16672. # is reportedly fixed, but why not run on old versions too?
  16673. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  16674. || (rm -f "$cfgfile"; exit 1)
  16675. case $xsi_shell in
  16676. yes)
  16677. cat << \_LT_EOF >> "$cfgfile"
  16678. # func_dirname file append nondir_replacement
  16679. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16680. # otherwise set result to NONDIR_REPLACEMENT.
  16681. func_dirname ()
  16682. {
  16683. case ${1} in
  16684. */*) func_dirname_result="${1%/*}${2}" ;;
  16685. * ) func_dirname_result="${3}" ;;
  16686. esac
  16687. }
  16688. # func_basename file
  16689. func_basename ()
  16690. {
  16691. func_basename_result="${1##*/}"
  16692. }
  16693. # func_dirname_and_basename file append nondir_replacement
  16694. # perform func_basename and func_dirname in a single function
  16695. # call:
  16696. # dirname: Compute the dirname of FILE. If nonempty,
  16697. # add APPEND to the result, otherwise set result
  16698. # to NONDIR_REPLACEMENT.
  16699. # value returned in "$func_dirname_result"
  16700. # basename: Compute filename of FILE.
  16701. # value retuned in "$func_basename_result"
  16702. # Implementation must be kept synchronized with func_dirname
  16703. # and func_basename. For efficiency, we do not delegate to
  16704. # those functions but instead duplicate the functionality here.
  16705. func_dirname_and_basename ()
  16706. {
  16707. case ${1} in
  16708. */*) func_dirname_result="${1%/*}${2}" ;;
  16709. * ) func_dirname_result="${3}" ;;
  16710. esac
  16711. func_basename_result="${1##*/}"
  16712. }
  16713. # func_stripname prefix suffix name
  16714. # strip PREFIX and SUFFIX off of NAME.
  16715. # PREFIX and SUFFIX must not contain globbing or regex special
  16716. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16717. # dot (in which case that matches only a dot).
  16718. func_stripname ()
  16719. {
  16720. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16721. # positional parameters, so assign one to ordinary parameter first.
  16722. func_stripname_result=${3}
  16723. func_stripname_result=${func_stripname_result#"${1}"}
  16724. func_stripname_result=${func_stripname_result%"${2}"}
  16725. }
  16726. # func_opt_split
  16727. func_opt_split ()
  16728. {
  16729. func_opt_split_opt=${1%%=*}
  16730. func_opt_split_arg=${1#*=}
  16731. }
  16732. # func_lo2o object
  16733. func_lo2o ()
  16734. {
  16735. case ${1} in
  16736. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16737. *) func_lo2o_result=${1} ;;
  16738. esac
  16739. }
  16740. # func_xform libobj-or-source
  16741. func_xform ()
  16742. {
  16743. func_xform_result=${1%.*}.lo
  16744. }
  16745. # func_arith arithmetic-term...
  16746. func_arith ()
  16747. {
  16748. func_arith_result=$(( $* ))
  16749. }
  16750. # func_len string
  16751. # STRING may not start with a hyphen.
  16752. func_len ()
  16753. {
  16754. func_len_result=${#1}
  16755. }
  16756. _LT_EOF
  16757. ;;
  16758. *) # Bourne compatible functions.
  16759. cat << \_LT_EOF >> "$cfgfile"
  16760. # func_dirname file append nondir_replacement
  16761. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16762. # otherwise set result to NONDIR_REPLACEMENT.
  16763. func_dirname ()
  16764. {
  16765. # Extract subdirectory from the argument.
  16766. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  16767. if test "X$func_dirname_result" = "X${1}"; then
  16768. func_dirname_result="${3}"
  16769. else
  16770. func_dirname_result="$func_dirname_result${2}"
  16771. fi
  16772. }
  16773. # func_basename file
  16774. func_basename ()
  16775. {
  16776. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  16777. }
  16778. # func_stripname prefix suffix name
  16779. # strip PREFIX and SUFFIX off of NAME.
  16780. # PREFIX and SUFFIX must not contain globbing or regex special
  16781. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16782. # dot (in which case that matches only a dot).
  16783. # func_strip_suffix prefix name
  16784. func_stripname ()
  16785. {
  16786. case ${2} in
  16787. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  16788. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  16789. esac
  16790. }
  16791. # sed scripts:
  16792. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16793. my_sed_long_arg='1s/^-[^=]*=//'
  16794. # func_opt_split
  16795. func_opt_split ()
  16796. {
  16797. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  16798. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  16799. }
  16800. # func_lo2o object
  16801. func_lo2o ()
  16802. {
  16803. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  16804. }
  16805. # func_xform libobj-or-source
  16806. func_xform ()
  16807. {
  16808. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  16809. }
  16810. # func_arith arithmetic-term...
  16811. func_arith ()
  16812. {
  16813. func_arith_result=`expr "$@"`
  16814. }
  16815. # func_len string
  16816. # STRING may not start with a hyphen.
  16817. func_len ()
  16818. {
  16819. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16820. }
  16821. _LT_EOF
  16822. esac
  16823. case $lt_shell_append in
  16824. yes)
  16825. cat << \_LT_EOF >> "$cfgfile"
  16826. # func_append var value
  16827. # Append VALUE to the end of shell variable VAR.
  16828. func_append ()
  16829. {
  16830. eval "$1+=\$2"
  16831. }
  16832. _LT_EOF
  16833. ;;
  16834. *)
  16835. cat << \_LT_EOF >> "$cfgfile"
  16836. # func_append var value
  16837. # Append VALUE to the end of shell variable VAR.
  16838. func_append ()
  16839. {
  16840. eval "$1=\$$1\$2"
  16841. }
  16842. _LT_EOF
  16843. ;;
  16844. esac
  16845. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16846. || (rm -f "$cfgfile"; exit 1)
  16847. mv -f "$cfgfile" "$ofile" ||
  16848. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16849. chmod +x "$ofile"
  16850. cat <<_LT_EOF >> "$ofile"
  16851. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16852. # The linker used to build libraries.
  16853. LD=$lt_LD_CXX
  16854. # How to create reloadable object files.
  16855. reload_flag=$lt_reload_flag_CXX
  16856. reload_cmds=$lt_reload_cmds_CXX
  16857. # Commands used to build an old-style archive.
  16858. old_archive_cmds=$lt_old_archive_cmds_CXX
  16859. # A language specific compiler.
  16860. CC=$lt_compiler_CXX
  16861. # Is the compiler the GNU compiler?
  16862. with_gcc=$GCC_CXX
  16863. # Compiler flag to turn off builtin functions.
  16864. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16865. # How to pass a linker flag through the compiler.
  16866. wl=$lt_lt_prog_compiler_wl_CXX
  16867. # Additional compiler flags for building library objects.
  16868. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16869. # Compiler flag to prevent dynamic linking.
  16870. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16871. # Does compiler simultaneously support -c and -o options?
  16872. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16873. # Whether or not to add -lc for building shared libraries.
  16874. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16875. # Whether or not to disallow shared libs when runtime libs are static.
  16876. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16877. # Compiler flag to allow reflexive dlopens.
  16878. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16879. # Compiler flag to generate shared objects directly from archives.
  16880. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16881. # Whether the compiler copes with passing no objects directly.
  16882. compiler_needs_object=$lt_compiler_needs_object_CXX
  16883. # Create an old-style archive from a shared archive.
  16884. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16885. # Create a temporary old-style archive to link instead of a shared archive.
  16886. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16887. # Commands used to build a shared archive.
  16888. archive_cmds=$lt_archive_cmds_CXX
  16889. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16890. # Commands used to build a loadable module if different from building
  16891. # a shared archive.
  16892. module_cmds=$lt_module_cmds_CXX
  16893. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16894. # Whether we are building with GNU ld or not.
  16895. with_gnu_ld=$lt_with_gnu_ld_CXX
  16896. # Flag that allows shared libraries with undefined symbols to be built.
  16897. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16898. # Flag that enforces no undefined symbols.
  16899. no_undefined_flag=$lt_no_undefined_flag_CXX
  16900. # Flag to hardcode \$libdir into a binary during linking.
  16901. # This must work even if \$libdir does not exist
  16902. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16903. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16904. # during linking. This must work even if \$libdir does not exist.
  16905. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  16906. # Whether we need a single "-rpath" flag with a separated argument.
  16907. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16908. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16909. # DIR into the resulting binary.
  16910. hardcode_direct=$hardcode_direct_CXX
  16911. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16912. # DIR into the resulting binary and the resulting library dependency is
  16913. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16914. # library is relocated.
  16915. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16916. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16917. # into the resulting binary.
  16918. hardcode_minus_L=$hardcode_minus_L_CXX
  16919. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16920. # into the resulting binary.
  16921. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16922. # Set to "yes" if building a shared library automatically hardcodes DIR
  16923. # into the library and all subsequent libraries and executables linked
  16924. # against it.
  16925. hardcode_automatic=$hardcode_automatic_CXX
  16926. # Set to yes if linker adds runtime paths of dependent libraries
  16927. # to runtime path list.
  16928. inherit_rpath=$inherit_rpath_CXX
  16929. # Whether libtool must link a program against all its dependency libraries.
  16930. link_all_deplibs=$link_all_deplibs_CXX
  16931. # Fix the shell variable \$srcfile for the compiler.
  16932. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  16933. # Set to "yes" if exported symbols are required.
  16934. always_export_symbols=$always_export_symbols_CXX
  16935. # The commands to list exported symbols.
  16936. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16937. # Symbols that should not be listed in the preloaded symbols.
  16938. exclude_expsyms=$lt_exclude_expsyms_CXX
  16939. # Symbols that must always be exported.
  16940. include_expsyms=$lt_include_expsyms_CXX
  16941. # Commands necessary for linking programs (against libraries) with templates.
  16942. prelink_cmds=$lt_prelink_cmds_CXX
  16943. # Specify filename containing input files.
  16944. file_list_spec=$lt_file_list_spec_CXX
  16945. # How to hardcode a shared library path into an executable.
  16946. hardcode_action=$hardcode_action_CXX
  16947. # The directories searched by this compiler when creating a shared library.
  16948. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16949. # Dependencies to place before and after the objects being linked to
  16950. # create a shared library.
  16951. predep_objects=$lt_predep_objects_CXX
  16952. postdep_objects=$lt_postdep_objects_CXX
  16953. predeps=$lt_predeps_CXX
  16954. postdeps=$lt_postdeps_CXX
  16955. # The library search path used internally by the compiler when linking
  16956. # a shared library.
  16957. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16958. # ### END LIBTOOL TAG CONFIG: CXX
  16959. _LT_EOF
  16960. ;;
  16961. "gstdint.h":C)
  16962. if test "$GCC" = yes; then
  16963. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  16964. else
  16965. echo "/* generated for $CC */" > tmp-stdint.h
  16966. fi
  16967. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16968. #ifndef GCC_GENERATED_STDINT_H
  16969. #define GCC_GENERATED_STDINT_H 1
  16970. #include <sys/types.h>
  16971. EOF
  16972. if test "$acx_cv_header_stdint" != stdint.h; then
  16973. echo "#include <stddef.h>" >> tmp-stdint.h
  16974. fi
  16975. if test "$acx_cv_header_stdint" != stddef.h; then
  16976. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  16977. fi
  16978. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16979. /* glibc uses these symbols as guards to prevent redefinitions. */
  16980. #ifdef __int8_t_defined
  16981. #define _INT8_T
  16982. #define _INT16_T
  16983. #define _INT32_T
  16984. #endif
  16985. #ifdef __uint32_t_defined
  16986. #define _UINT32_T
  16987. #endif
  16988. EOF
  16989. # ----------------- done header, emit basic int types -------------
  16990. if test "$acx_cv_header_stdint" = stddef.h; then
  16991. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16992. #ifndef _UINT8_T
  16993. #define _UINT8_T
  16994. #ifndef __uint8_t_defined
  16995. #define __uint8_t_defined
  16996. #ifndef uint8_t
  16997. typedef unsigned $acx_cv_type_int8_t uint8_t;
  16998. #endif
  16999. #endif
  17000. #endif
  17001. #ifndef _UINT16_T
  17002. #define _UINT16_T
  17003. #ifndef __uint16_t_defined
  17004. #define __uint16_t_defined
  17005. #ifndef uint16_t
  17006. typedef unsigned $acx_cv_type_int16_t uint16_t;
  17007. #endif
  17008. #endif
  17009. #endif
  17010. #ifndef _UINT32_T
  17011. #define _UINT32_T
  17012. #ifndef __uint32_t_defined
  17013. #define __uint32_t_defined
  17014. #ifndef uint32_t
  17015. typedef unsigned $acx_cv_type_int32_t uint32_t;
  17016. #endif
  17017. #endif
  17018. #endif
  17019. #ifndef _INT8_T
  17020. #define _INT8_T
  17021. #ifndef __int8_t_defined
  17022. #define __int8_t_defined
  17023. #ifndef int8_t
  17024. typedef $acx_cv_type_int8_t int8_t;
  17025. #endif
  17026. #endif
  17027. #endif
  17028. #ifndef _INT16_T
  17029. #define _INT16_T
  17030. #ifndef __int16_t_defined
  17031. #define __int16_t_defined
  17032. #ifndef int16_t
  17033. typedef $acx_cv_type_int16_t int16_t;
  17034. #endif
  17035. #endif
  17036. #endif
  17037. #ifndef _INT32_T
  17038. #define _INT32_T
  17039. #ifndef __int32_t_defined
  17040. #define __int32_t_defined
  17041. #ifndef int32_t
  17042. typedef $acx_cv_type_int32_t int32_t;
  17043. #endif
  17044. #endif
  17045. #endif
  17046. EOF
  17047. elif test "$ac_cv_type_u_int32_t" = yes; then
  17048. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17049. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  17050. #ifndef _INT8_T
  17051. #define _INT8_T
  17052. #endif
  17053. #ifndef _INT16_T
  17054. #define _INT16_T
  17055. #endif
  17056. #ifndef _INT32_T
  17057. #define _INT32_T
  17058. #endif
  17059. #ifndef _UINT8_T
  17060. #define _UINT8_T
  17061. #ifndef __uint8_t_defined
  17062. #define __uint8_t_defined
  17063. #ifndef uint8_t
  17064. typedef u_int8_t uint8_t;
  17065. #endif
  17066. #endif
  17067. #endif
  17068. #ifndef _UINT16_T
  17069. #define _UINT16_T
  17070. #ifndef __uint16_t_defined
  17071. #define __uint16_t_defined
  17072. #ifndef uint16_t
  17073. typedef u_int16_t uint16_t;
  17074. #endif
  17075. #endif
  17076. #endif
  17077. #ifndef _UINT32_T
  17078. #define _UINT32_T
  17079. #ifndef __uint32_t_defined
  17080. #define __uint32_t_defined
  17081. #ifndef uint32_t
  17082. typedef u_int32_t uint32_t;
  17083. #endif
  17084. #endif
  17085. #endif
  17086. EOF
  17087. else
  17088. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17089. /* Some systems have guard macros to prevent redefinitions, define them. */
  17090. #ifndef _INT8_T
  17091. #define _INT8_T
  17092. #endif
  17093. #ifndef _INT16_T
  17094. #define _INT16_T
  17095. #endif
  17096. #ifndef _INT32_T
  17097. #define _INT32_T
  17098. #endif
  17099. #ifndef _UINT8_T
  17100. #define _UINT8_T
  17101. #endif
  17102. #ifndef _UINT16_T
  17103. #define _UINT16_T
  17104. #endif
  17105. #ifndef _UINT32_T
  17106. #define _UINT32_T
  17107. #endif
  17108. EOF
  17109. fi
  17110. # ------------- done basic int types, emit int64_t types ------------
  17111. if test "$ac_cv_type_uint64_t" = yes; then
  17112. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17113. /* system headers have good uint64_t and int64_t */
  17114. #ifndef _INT64_T
  17115. #define _INT64_T
  17116. #endif
  17117. #ifndef _UINT64_T
  17118. #define _UINT64_T
  17119. #endif
  17120. EOF
  17121. elif test "$ac_cv_type_u_int64_t" = yes; then
  17122. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17123. /* system headers have an u_int64_t (and int64_t) */
  17124. #ifndef _INT64_T
  17125. #define _INT64_T
  17126. #endif
  17127. #ifndef _UINT64_T
  17128. #define _UINT64_T
  17129. #ifndef __uint64_t_defined
  17130. #define __uint64_t_defined
  17131. #ifndef uint64_t
  17132. typedef u_int64_t uint64_t;
  17133. #endif
  17134. #endif
  17135. #endif
  17136. EOF
  17137. elif test -n "$acx_cv_type_int64_t"; then
  17138. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17139. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  17140. #ifndef _INT64_T
  17141. #define _INT64_T
  17142. #ifndef int64_t
  17143. typedef $acx_cv_type_int64_t int64_t;
  17144. #endif
  17145. #endif
  17146. #ifndef _UINT64_T
  17147. #define _UINT64_T
  17148. #ifndef __uint64_t_defined
  17149. #define __uint64_t_defined
  17150. #ifndef uint64_t
  17151. typedef unsigned $acx_cv_type_int64_t uint64_t;
  17152. #endif
  17153. #endif
  17154. #endif
  17155. EOF
  17156. else
  17157. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17158. /* some common heuristics for int64_t, using compiler-specific tests */
  17159. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  17160. #ifndef _INT64_T
  17161. #define _INT64_T
  17162. #ifndef __int64_t_defined
  17163. #ifndef int64_t
  17164. typedef long long int64_t;
  17165. #endif
  17166. #endif
  17167. #endif
  17168. #ifndef _UINT64_T
  17169. #define _UINT64_T
  17170. #ifndef uint64_t
  17171. typedef unsigned long long uint64_t;
  17172. #endif
  17173. #endif
  17174. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  17175. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  17176. does not implement __extension__. But that compiler doesn't define
  17177. __GNUC_MINOR__. */
  17178. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  17179. # define __extension__
  17180. # endif
  17181. # ifndef _INT64_T
  17182. # define _INT64_T
  17183. # ifndef int64_t
  17184. __extension__ typedef long long int64_t;
  17185. # endif
  17186. # endif
  17187. # ifndef _UINT64_T
  17188. # define _UINT64_T
  17189. # ifndef uint64_t
  17190. __extension__ typedef unsigned long long uint64_t;
  17191. # endif
  17192. # endif
  17193. #elif !defined __STRICT_ANSI__
  17194. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  17195. # ifndef _INT64_T
  17196. # define _INT64_T
  17197. # ifndef int64_t
  17198. typedef __int64 int64_t;
  17199. # endif
  17200. # endif
  17201. # ifndef _UINT64_T
  17202. # define _UINT64_T
  17203. # ifndef uint64_t
  17204. typedef unsigned __int64 uint64_t;
  17205. # endif
  17206. # endif
  17207. # endif /* compiler */
  17208. #endif /* ANSI version */
  17209. EOF
  17210. fi
  17211. # ------------- done int64_t types, emit intptr types ------------
  17212. if test "$ac_cv_type_uintptr_t" != yes; then
  17213. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17214. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  17215. #ifndef __uintptr_t_defined
  17216. #ifndef uintptr_t
  17217. typedef u$acx_cv_type_intptr_t uintptr_t;
  17218. #endif
  17219. #endif
  17220. #ifndef __intptr_t_defined
  17221. #ifndef intptr_t
  17222. typedef $acx_cv_type_intptr_t intptr_t;
  17223. #endif
  17224. #endif
  17225. EOF
  17226. fi
  17227. # ------------- done intptr types, emit int_least types ------------
  17228. if test "$ac_cv_type_int_least32_t" != yes; then
  17229. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17230. /* Define int_least types */
  17231. typedef int8_t int_least8_t;
  17232. typedef int16_t int_least16_t;
  17233. typedef int32_t int_least32_t;
  17234. #ifdef _INT64_T
  17235. typedef int64_t int_least64_t;
  17236. #endif
  17237. typedef uint8_t uint_least8_t;
  17238. typedef uint16_t uint_least16_t;
  17239. typedef uint32_t uint_least32_t;
  17240. #ifdef _UINT64_T
  17241. typedef uint64_t uint_least64_t;
  17242. #endif
  17243. EOF
  17244. fi
  17245. # ------------- done intptr types, emit int_fast types ------------
  17246. if test "$ac_cv_type_int_fast32_t" != yes; then
  17247. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17248. /* Define int_fast types. short is often slow */
  17249. typedef int8_t int_fast8_t;
  17250. typedef int int_fast16_t;
  17251. typedef int32_t int_fast32_t;
  17252. #ifdef _INT64_T
  17253. typedef int64_t int_fast64_t;
  17254. #endif
  17255. typedef uint8_t uint_fast8_t;
  17256. typedef unsigned int uint_fast16_t;
  17257. typedef uint32_t uint_fast32_t;
  17258. #ifdef _UINT64_T
  17259. typedef uint64_t uint_fast64_t;
  17260. #endif
  17261. EOF
  17262. fi
  17263. if test "$ac_cv_type_uintmax_t" != yes; then
  17264. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17265. /* Define intmax based on what we found */
  17266. #ifndef intmax_t
  17267. #ifdef _INT64_T
  17268. typedef int64_t intmax_t;
  17269. #else
  17270. typedef long intmax_t;
  17271. #endif
  17272. #endif
  17273. #ifndef uintmax_t
  17274. #ifdef _UINT64_T
  17275. typedef uint64_t uintmax_t;
  17276. #else
  17277. typedef unsigned long uintmax_t;
  17278. #endif
  17279. #endif
  17280. EOF
  17281. fi
  17282. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17283. #endif /* GCC_GENERATED_STDINT_H */
  17284. EOF
  17285. if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
  17286. rm -f tmp-stdint.h
  17287. else
  17288. mv -f tmp-stdint.h gstdint.h
  17289. fi
  17290. ;;
  17291. "interception/Makefile":F) cat > vpsed$$ << \_EOF
  17292. s!`test -f '$<' || echo '$(srcdir)/'`!!
  17293. _EOF
  17294. sed -f vpsed$$ $ac_file > tmp$$
  17295. mv tmp$$ $ac_file
  17296. rm vpsed$$
  17297. echo 'MULTISUBDIR =' >> $ac_file
  17298. ml_norecursion=yes
  17299. . ${multi_basedir}/config-ml.in
  17300. { ml_norecursion=; unset ml_norecursion;}
  17301. ;;
  17302. "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
  17303. s!`test -f '$<' || echo '$(srcdir)/'`!!
  17304. _EOF
  17305. sed -f vpsed$$ $ac_file > tmp$$
  17306. mv tmp$$ $ac_file
  17307. rm vpsed$$
  17308. echo 'MULTISUBDIR =' >> $ac_file
  17309. ml_norecursion=yes
  17310. . ${multi_basedir}/config-ml.in
  17311. { ml_norecursion=; unset ml_norecursion;}
  17312. ;;
  17313. "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
  17314. s!`test -f '$<' || echo '$(srcdir)/'`!!
  17315. _EOF
  17316. sed -f vpsed$$ $ac_file > tmp$$
  17317. mv tmp$$ $ac_file
  17318. rm vpsed$$
  17319. echo 'MULTISUBDIR =' >> $ac_file
  17320. ml_norecursion=yes
  17321. . ${multi_basedir}/config-ml.in
  17322. { ml_norecursion=; unset ml_norecursion;}
  17323. ;;
  17324. "lsan/Makefile":F) cat > vpsed$$ << \_EOF
  17325. s!`test -f '$<' || echo '$(srcdir)/'`!!
  17326. _EOF
  17327. sed -f vpsed$$ $ac_file > tmp$$
  17328. mv tmp$$ $ac_file
  17329. rm vpsed$$
  17330. echo 'MULTISUBDIR =' >> $ac_file
  17331. ml_norecursion=yes
  17332. . ${multi_basedir}/config-ml.in
  17333. { ml_norecursion=; unset ml_norecursion;}
  17334. ;;
  17335. "asan/Makefile":F) cat > vpsed$$ << \_EOF
  17336. s!`test -f '$<' || echo '$(srcdir)/'`!!
  17337. _EOF
  17338. sed -f vpsed$$ $ac_file > tmp$$
  17339. mv tmp$$ $ac_file
  17340. rm vpsed$$
  17341. echo 'MULTISUBDIR =' >> $ac_file
  17342. ml_norecursion=yes
  17343. . ${multi_basedir}/config-ml.in
  17344. { ml_norecursion=; unset ml_norecursion;}
  17345. ;;
  17346. "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
  17347. s!`test -f '$<' || echo '$(srcdir)/'`!!
  17348. _EOF
  17349. sed -f vpsed$$ $ac_file > tmp$$
  17350. mv tmp$$ $ac_file
  17351. rm vpsed$$
  17352. echo 'MULTISUBDIR =' >> $ac_file
  17353. ml_norecursion=yes
  17354. . ${multi_basedir}/config-ml.in
  17355. { ml_norecursion=; unset ml_norecursion;}
  17356. ;;
  17357. "tsan/Makefile":F) cat > vpsed$$ << \_EOF
  17358. s!`test -f '$<' || echo '$(srcdir)/'`!!
  17359. _EOF
  17360. sed -f vpsed$$ $ac_file > tmp$$
  17361. mv tmp$$ $ac_file
  17362. rm vpsed$$
  17363. echo 'MULTISUBDIR =' >> $ac_file
  17364. ml_norecursion=yes
  17365. . ${multi_basedir}/config-ml.in
  17366. { ml_norecursion=; unset ml_norecursion;}
  17367. ;;
  17368. "hwasan/Makefile":F) cat > vpsed$$ << \_EOF
  17369. s!`test -f '$<' || echo '$(srcdir)/'`!!
  17370. _EOF
  17371. sed -f vpsed$$ $ac_file > tmp$$
  17372. mv tmp$$ $ac_file
  17373. rm vpsed$$
  17374. echo 'MULTISUBDIR =' >> $ac_file
  17375. ml_norecursion=yes
  17376. . ${multi_basedir}/config-ml.in
  17377. { ml_norecursion=; unset ml_norecursion;}
  17378. ;;
  17379. esac
  17380. done # for ac_tag
  17381. as_fn_exit 0
  17382. _ACEOF
  17383. ac_clean_files=$ac_clean_files_save
  17384. test $ac_write_fail = 0 ||
  17385. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17386. # configure is writing to config.log, and then calls config.status.
  17387. # config.status does its own redirection, appending to config.log.
  17388. # Unfortunately, on DOS this fails, as config.log is still kept open
  17389. # by configure, so config.status won't be able to write to it; its
  17390. # output is simply discarded. So we exec the FD to /dev/null,
  17391. # effectively closing config.log, so it can be properly (re)opened and
  17392. # appended to by config.status. When coming back to configure, we
  17393. # need to make the FD available again.
  17394. if test "$no_create" != yes; then
  17395. ac_cs_success=:
  17396. ac_config_status_args=
  17397. test "$silent" = yes &&
  17398. ac_config_status_args="$ac_config_status_args --quiet"
  17399. exec 5>/dev/null
  17400. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17401. exec 5>>config.log
  17402. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17403. # would make configure fail if this is the last instruction.
  17404. $ac_cs_success || as_fn_exit 1
  17405. fi
  17406. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17408. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17409. fi